Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
f21a8f54
"deploy/vscode:/vscode.git/clone" did not exist on "8fda7702729bfbedeb744a5d3d6d916c58d5ee24"
Commit
f21a8f54
authored
Jan 19, 2022
by
HinGwenWoong
Browse files
Set window maximized and window goes to the front when activate.
parent
09366736
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
PPOCRLabel/PPOCRLabel.py
PPOCRLabel/PPOCRLabel.py
+2
-0
No files found.
PPOCRLabel/PPOCRLabel.py
View file @
f21a8f54
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment