From 910cd73320ad004728b88fc67f52c1552f5bd5e0 Mon Sep 17 00:00:00 2001 From: tzutalin Date: Thu, 9 Mar 2017 11:55:56 +0800 Subject: [PATCH] Fix unicode issue for showing window title --- labelImg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labelImg.py b/labelImg.py index a6c81e3f..f3261b12 100644 --- a/labelImg.py +++ b/labelImg.py @@ -833,7 +833,7 @@ class MainWindow(QMainWindow, WindowMixin): xmlPath = os.path.join(self.defaultSaveDir, basename) self.loadPascalXMLByFilename(xmlPath) - self.setWindowTitle('{} - {}'.format(__appname__, filePath)) + self.setWindowTitle(__appname__ + ' ' + filePath) self.canvas.setFocus(True) return True