From 36ab14943eaf3c1094dbbc808eafaf28546ddc56 Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 23 Feb 2017 15:53:44 +0300 Subject: [PATCH] Set focus on canvas after image is loaded --- labelImg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/labelImg.py b/labelImg.py index 094d853a..789bd178 100755 --- a/labelImg.py +++ b/labelImg.py @@ -807,6 +807,7 @@ class MainWindow(QMainWindow, WindowMixin): xmlPath = os.path.join(self.defaultSaveDir, basename) self.loadPascalXMLByFilename(xmlPath) + self.canvas.setFocus() return True return False