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
e01d858c
Commit
e01d858c
authored
Jun 08, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rework tabbed mode, fixing #392
parent
0354fb22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
gui.py
printrun/gui.py
+6
-2
No files found.
printrun/gui.py
View file @
e01d858c
...
...
@@ -391,9 +391,9 @@ class MainWindow(wx.Frame):
add_extra_controls
(
extracontrols
,
self
,
page1panel2
,
left_pane
.
extra_buttons
)
rightsizer
.
AddStretchSpacer
()
rightsizer
.
Add
(
extracontrols
,
0
,
wx
.
ALIGN_CENTER
)
self
.
lowersizer
.
Add
(
leftsizer
,
1
,
wx
.
ALIGN_CENTER
)
self
.
lowersizer
.
Add
(
leftsizer
,
0
,
wx
.
ALIGN_CENTER
|
wx
.
RIGHT
,
border
=
10
)
self
.
lowersizer
.
Add
(
rightsizer
,
1
,
wx
.
ALIGN_CENTER
)
self
.
mainsizer_page1
.
Add
(
page1panel2
,
1
,
wx
.
EXPAND
)
self
.
mainsizer_page1
.
Add
(
page1panel2
,
1
)
self
.
mainsizer
=
wx
.
BoxSizer
(
wx
.
HORIZONTAL
)
self
.
splitterwindow
=
wx
.
SplitterWindow
(
page2panel
,
style
=
wx
.
SP_3D
)
page2sizer1
=
wx
.
BoxSizer
(
wx
.
HORIZONTAL
)
...
...
@@ -435,6 +435,10 @@ class MainWindow(wx.Frame):
i
.
Disable
()
self
.
cbuttons_reload
()
minsize
=
self
.
lowersizer
.
GetMinSize
()
# lower pane
minsize
[
1
]
=
self
.
notebook
.
GetSize
()[
1
]
self
.
SetMinSize
(
self
.
ClientToWindowSize
(
minsize
))
# client to window
self
.
Fit
()
def
createGui
(
self
,
compact
=
False
):
self
.
mainsizer
=
wx
.
BoxSizer
(
wx
.
VERTICAL
)
...
...
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