Skip to content

Commit

Permalink
Merge pull request HumanSignal#58 from s-alexey/focus
Browse files Browse the repository at this point in the history
Set focus on image canvas after image is loaded
  • Loading branch information
tzutalin authored Feb 27, 2017
2 parents 4b9c530 + 36ab149 commit eb87c3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions labelImg.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ def loadFile(self, filePath=None):
xmlPath = os.path.join(self.defaultSaveDir, basename)
self.loadPascalXMLByFilename(xmlPath)

self.canvas.setFocus()
return True
return False

Expand Down

0 comments on commit eb87c3d

Please sign in to comment.