Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
f13e4f32
Commit
f13e4f32
authored
Apr 03, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Woops, bring back critical line & use Set/GetSize to track window size #520
parent
815a3f15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
pronterface.py
printrun/pronterface.py
+4
-6
No files found.
printrun/pronterface.py
View file @
f13e4f32
...
...
@@ -165,12 +165,10 @@ class PronterWindow(MainWindow, pronsole.pronsole):
# consequences.
# -- Okai, it seems it breaks things like update_gviz_params ><
os
.
putenv
(
"UBUNTU_MENUPROXY"
,
"0"
)
style
=
wx
.
DEFAULT_FRAME_STYLE
size
=
(
self
.
settings
.
last_window_width
,
self
.
settings
.
last_window_height
)
MainWindow
.
__init__
(
self
,
None
,
title
=
_
(
"Pronterface"
),
size
=
size
)
if
self
.
settings
.
last_window_maximized
:
style
|=
wx
.
MAXIMIZE
MainWindow
.
__init__
(
self
,
None
,
title
=
_
(
"Pronterface"
),
size
=
size
,
style
=
style
)
self
.
SetClientSize
(
size
)
self
.
Maximize
()
self
.
SetIcon
(
wx
.
Icon
(
iconfile
(
"pronterface.png"
),
wx
.
BITMAP_TYPE_PNG
))
self
.
Bind
(
wx
.
EVT_SIZE
,
self
.
on_resize
)
self
.
Bind
(
wx
.
EVT_MAXIMIZE
,
self
.
on_maximize
)
...
...
@@ -304,7 +302,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
if
evtsz
[
0
]
<
area
[
2
]
-
20
or
evtsz
[
1
]
<
area
[
3
]
-
20
:
self
.
set
(
"last_window_maximized"
,
False
)
if
not
maximized
and
not
self
.
IsIconized
():
size
=
self
.
Get
Client
Size
()
size
=
self
.
GetSize
()
self
.
set
(
"last_window_width"
,
size
[
0
])
self
.
set
(
"last_window_height"
,
size
[
1
])
event
.
Skip
()
...
...
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