提交 f21a8f54 编写于 作者: H HinGwenWoong

Set window maximized and window goes to the front when activate.

上级 09366736
...@@ -101,6 +101,8 @@ class MainWindow(QMainWindow, WindowMixin): ...@@ -101,6 +101,8 @@ class MainWindow(QMainWindow, WindowMixin):
def __init__(self, lang="ch", gpu=False, defaultFilename=None, defaultPrefdefClassFile=None, defaultSaveDir=None): def __init__(self, lang="ch", gpu=False, defaultFilename=None, defaultPrefdefClassFile=None, defaultSaveDir=None):
super(MainWindow, self).__init__() super(MainWindow, self).__init__()
self.setWindowTitle(__appname__) 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 # Load setting in the main thread
self.settings = Settings() self.settings = Settings()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册