提交 6ca8a690 编写于 作者: K Kentaro Wada

Fix of opening supported images when using Python3

上级 8d40b3c7
......@@ -763,8 +763,8 @@ class MainWindow(QMainWindow, WindowMixin):
return
path = os.path.dirname(str(self.filename))\
if self.filename else '.'
formats = ['*.%s' % str(fmt).lower()\
for fmt in QImageReader.supportedImageFormats()]
formats = ['*.{}'.format(fmt.data().decode())
for fmt in QImageReader.supportedImageFormats()]
filters = "Image & Label files (%s)" % \
' '.join(formats + ['*%s' % LabelFile.suffix])
filename = QFileDialog.getOpenFileName(self,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册