Explorar o código

Update app.py

fixed could not get correct img file name bugs
袁堂亮 %!s(int64=8) %!d(string=hai) anos
pai
achega
564cd22519
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)