소스 검색

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)