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
0b918fcb
Commit
0b918fcb
authored
Mar 25, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rework minimum size enforcement
parent
a4a933cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
gui.py
printrun/gui.py
+6
-1
No files found.
printrun/gui.py
View file @
0b918fcb
...
...
@@ -800,8 +800,13 @@ class MainWindow(wx.Frame):
# This prevents resizing below a reasonnable value
# We sum the lowersizer (left pane / viz / log) min size
# the toolbar height and the statusbar/menubar sizes
minsize
=
self
.
lowersizer
.
GetMinSize
()
# lower pane
minsize
=
[
0
,
0
]
minsize
[
0
]
=
self
.
lowersizer
.
GetMinSize
()[
0
]
# lower pane
minsize
[
1
]
=
max
(
viz_pane
.
GetMinSize
()[
1
],
controls_sizer
.
GetMinSize
()[
1
])
minsize
[
1
]
+=
self
.
uppersizer
.
GetMinSize
()[
1
]
# toolbar height
displaysize
=
wx
.
DisplaySize
()
minsize
[
0
]
=
min
(
minsize
[
0
],
displaysize
[
0
])
minsize
[
1
]
=
min
(
minsize
[
1
],
displaysize
[
1
])
self
.
SetMinSize
(
self
.
ClientToWindowSize
(
minsize
))
# client to window
# disable all printer controls until we connect to a printer
...
...
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