diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index ee8baeb7b5329dab70c1c7653dc3368bcf7480c6..b1ccfc2f61b38567e05e1de0bb3e1b5a7e3f218e 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -101,6 +101,8 @@ class MainWindow(QMainWindow, WindowMixin): def __init__(self, lang="ch", gpu=False, defaultFilename=None, defaultPrefdefClassFile=None, defaultSaveDir=None): super(MainWindow, self).__init__() self.setWindowTitle(__appname__) + self.setWindowState(Qt.WindowMaximized) # set window max + self.activateWindow() # PPOCRLabel goes to the front when activate # Load setting in the main thread self.settings = Settings()