浏览代码

Update app.py

fixed could not get correct img file name bugs
袁堂亮 8 年之前
父节点
当前提交
564cd22519
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)