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
57baea1a
Commit
57baea1a
authored
Mar 23, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spacers to main toolbar to group buttons
(also expand toolbar in compact/standard modes)
parent
95567396
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
gui.py
printrun/gui.py
+7
-1
No files found.
printrun/gui.py
View file @
57baea1a
...
...
@@ -412,6 +412,9 @@ def MainToolbar(root, parentpanel = None, use_wrapsizer = False):
root
.
connectbtn
=
make_autosize_button
(
parentpanel
,
_
(
"Connect"
),
root
.
connect
,
_
(
"Connect to the printer"
),
self
)
root
.
resetbtn
=
make_autosize_button
(
parentpanel
,
_
(
"Reset"
),
root
.
reset
,
_
(
"Reset the printer"
),
self
)
self
.
AddStretchSpacer
(
prop
=
1
)
root
.
loadbtn
=
make_autosize_button
(
parentpanel
,
_
(
"Load file"
),
root
.
loadfile
,
_
(
"Load a 3D model file"
),
self
)
root
.
sdbtn
=
make_autosize_button
(
parentpanel
,
_
(
"SD"
),
root
.
sdmenu
,
_
(
"SD Card Printing"
),
self
)
root
.
printerControls
.
append
(
root
.
sdbtn
)
...
...
@@ -420,6 +423,9 @@ def MainToolbar(root, parentpanel = None, use_wrapsizer = False):
root
.
pausebtn
=
make_autosize_button
(
parentpanel
,
_
(
"Pause"
),
root
.
pause
,
_
(
"Pause Current Print"
),
self
)
root
.
offbtn
=
make_autosize_button
(
parentpanel
,
_
(
"Off"
),
root
.
off
,
_
(
"Turn printer off"
),
self
)
root
.
printerControls
.
append
(
root
.
offbtn
)
self
.
AddStretchSpacer
(
prop
=
4
)
if
root
.
settings
.
lockbox
:
parentpanel
.
SetSizer
(
self
)
return
glob
...
...
@@ -560,7 +566,7 @@ class MainWindow(wx.Frame):
else
:
left_sizer
.
Add
(
logpanel
,
1
,
wx
.
EXPAND
)
self
.
lowersizer
.
Add
(
vizpanel
,
1
,
wx
.
EXPAND
)
self
.
mainsizer
.
Add
(
upperpanel
,
0
)
self
.
mainsizer
.
Add
(
upperpanel
,
0
,
wx
.
EXPAND
)
self
.
mainsizer
.
Add
(
lowerpanel
,
1
,
wx
.
EXPAND
)
self
.
panel
.
SetSizer
(
self
.
mainsizer
)
self
.
statusbar
=
self
.
CreateStatusBar
()
...
...
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