Prechádzať zdrojové kódy

Update app.py

fixed could not get correct img file name bugs
袁堂亮 8 rokov pred
rodič
commit
564cd22519
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      labelme/app.py

+ 1 - 1
labelme/app.py

@@ -758,7 +758,7 @@ class MainWindow(QMainWindow, WindowMixin):
         filters = "Image & Label files (%s)" % \
                 ' '.join(formats + ['*%s' % LabelFile.suffix])
         filename = str(QFileDialog.getOpenFileName(self,
-            '%s - Choose Image or Label file' % __appname__, path, filters)[0])
+            '%s - Choose Image or Label file' % __appname__, path, filters))
         if filename:
             self.loadFile(filename)