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
6f7c26f5
Commit
6f7c26f5
authored
Jul 15, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move recover button to a new Advanced menu
parent
fa0a69b4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
gui.py
printrun/gui.py
+0
-1
pronterface.py
pronterface.py
+6
-0
No files found.
printrun/gui.py
View file @
6f7c26f5
...
...
@@ -378,7 +378,6 @@ def MainToolbar(root, parentpanel = None, use_wrapsizer = False):
root
.
printbtn
=
make_sized_button
(
parentpanel
,
_
(
"Print"
),
root
.
printfile
,
_
(
"Start Printing Loaded File"
),
self
)
root
.
printbtn
.
Disable
()
root
.
pausebtn
=
make_sized_button
(
parentpanel
,
_
(
"Pause"
),
root
.
pause
,
_
(
"Pause Current Print"
),
self
)
root
.
recoverbtn
=
make_sized_button
(
parentpanel
,
_
(
"Recover"
),
root
.
recover
,
_
(
"Recover previous Print"
),
self
)
root
.
offbtn
=
make_sized_button
(
parentpanel
,
_
(
"Off"
),
root
.
off
,
_
(
"Turn printer off"
),
self
)
root
.
printerControls
.
append
(
root
.
offbtn
)
return
self
...
...
pronterface.py
View file @
6f7c26f5
...
...
@@ -590,6 +590,12 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
project
,
m
.
Append
(
-
1
,
_
(
"Projector"
),
_
(
" Project slices"
)))
self
.
menustrip
.
Append
(
m
,
_
(
"&Tools"
))
m
=
wx
.
Menu
()
self
.
recoverbtn
=
m
.
Append
(
-
1
,
_
(
"Recover"
),
_
(
" Recover previous print after a disconnect (homes X, Y, restores Z and E status)"
))
self
.
recoverbtn
.
Disable
=
lambda
*
a
:
self
.
recoverbtn
.
Enable
(
False
)
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
recover
,
self
.
recoverbtn
)
self
.
menustrip
.
Append
(
m
,
_
(
"&Advanced"
))
# Settings menu
m
=
wx
.
Menu
()
self
.
macros_menu
=
wx
.
Menu
()
...
...
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