Browse Source

Update app.py

fixed could not get correct img file name bugs
袁堂亮 8 years ago
parent
commit
564cd22519
1 changed files with 1 additions and 1 deletions
  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)