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
03c6a905
Commit
03c6a905
authored
Aug 10, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a SplitterWindow to hold viz & log panes
parent
9c5760ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
gui.py
printrun/gui.py
+17
-6
No files found.
printrun/gui.py
View file @
03c6a905
...
@@ -527,7 +527,20 @@ class MainWindow(wx.Frame):
...
@@ -527,7 +527,20 @@ class MainWindow(wx.Frame):
left_sizer
=
wx
.
BoxSizer
(
wx
.
VERTICAL
)
left_sizer
=
wx
.
BoxSizer
(
wx
.
VERTICAL
)
left_sizer
.
Add
(
left_pane
,
0
)
left_sizer
.
Add
(
left_pane
,
0
)
self
.
lowersizer
.
Add
(
left_sizer
,
0
,
wx
.
EXPAND
)
self
.
lowersizer
.
Add
(
left_sizer
,
0
,
wx
.
EXPAND
)
if
not
compact
:
# Use a splitterwindow to group viz and log
rightpanel
=
self
.
newPanel
(
lowerpanel
)
rightsizer
=
wx
.
BoxSizer
(
wx
.
VERTICAL
)
rightpanel
.
SetSizer
(
rightsizer
)
self
.
splitterwindow
=
wx
.
SplitterWindow
(
rightpanel
,
style
=
wx
.
SP_3D
)
self
.
splitterwindow
.
SetMinimumPaneSize
(
150
)
self
.
splitterwindow
.
SetSashGravity
(
0.5
)
rightsizer
.
Add
(
self
.
splitterwindow
,
1
,
wx
.
EXPAND
)
vizpanel
=
self
.
newPanel
(
self
.
splitterwindow
)
logpanel
=
self
.
newPanel
(
self
.
splitterwindow
)
self
.
splitterwindow
.
SplitVertically
(
vizpanel
,
logpanel
,
0
)
else
:
vizpanel
=
self
.
newPanel
(
lowerpanel
)
vizpanel
=
self
.
newPanel
(
lowerpanel
)
logpanel
=
self
.
newPanel
(
lowerpanel
)
viz_pane
=
VizPane
(
self
,
vizpanel
)
viz_pane
=
VizPane
(
self
,
vizpanel
)
# Custom buttons
# Custom buttons
self
.
centersizer
=
wx
.
GridBagSizer
()
self
.
centersizer
=
wx
.
GridBagSizer
()
...
@@ -535,14 +548,12 @@ class MainWindow(wx.Frame):
...
@@ -535,14 +548,12 @@ class MainWindow(wx.Frame):
self
.
centerpanel
.
SetSizer
(
self
.
centersizer
)
self
.
centerpanel
.
SetSizer
(
self
.
centersizer
)
viz_pane
.
Add
(
self
.
centerpanel
,
0
,
flag
=
wx
.
ALIGN_CENTER
)
viz_pane
.
Add
(
self
.
centerpanel
,
0
,
flag
=
wx
.
ALIGN_CENTER
)
vizpanel
.
SetSizer
(
viz_pane
)
vizpanel
.
SetSizer
(
viz_pane
)
self
.
lowersizer
.
Add
(
vizpanel
,
1
,
wx
.
EXPAND
|
wx
.
ALIGN_CENTER
)
logpanel
=
self
.
newPanel
(
lowerpanel
)
log_pane
=
LogPane
(
self
,
logpanel
)
log_pane
=
LogPane
(
self
,
logpanel
)
logpanel
.
SetSizer
(
log_pane
)
logpanel
.
SetSizer
(
log_pane
)
if
compact
:
if
not
compact
:
left_sizer
.
Add
(
log
panel
,
1
,
wx
.
EXPAND
)
self
.
lowersizer
.
Add
(
right
panel
,
1
,
wx
.
EXPAND
)
else
:
else
:
self
.
lower
sizer
.
Add
(
logpanel
,
1
,
wx
.
EXPAND
)
left_
sizer
.
Add
(
logpanel
,
1
,
wx
.
EXPAND
)
self
.
mainsizer
.
Add
(
upperpanel
,
0
)
self
.
mainsizer
.
Add
(
upperpanel
,
0
)
self
.
mainsizer
.
Add
(
lowerpanel
,
1
,
wx
.
EXPAND
)
self
.
mainsizer
.
Add
(
lowerpanel
,
1
,
wx
.
EXPAND
)
self
.
panel
.
SetSizer
(
self
.
mainsizer
)
self
.
panel
.
SetSizer
(
self
.
mainsizer
)
...
...
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