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
06e4818a
Commit
06e4818a
authored
Jun 08, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorganize Extrude/Reverse controls (#393)
parent
8f92ee14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
gui.py
printrun/gui.py
+6
-6
pronterface.py
pronterface.py
+1
-1
No files found.
printrun/gui.py
View file @
06e4818a
...
...
@@ -129,8 +129,8 @@ def add_extra_controls(self, root, parentpanel, extra_buttons = None):
root
.
edist
=
wx
.
SpinCtrl
(
parentpanel
,
-
1
,
"5"
,
min
=
0
,
max
=
1000
,
size
=
(
70
,
-
1
))
root
.
edist
.
SetBackgroundColour
((
225
,
200
,
200
))
root
.
edist
.
SetForegroundColour
(
"black"
)
self
.
Add
(
root
.
edist
,
pos
=
(
base_line
+
2
,
2
),
span
=
(
1
,
2
),
flag
=
wx
.
EXPAND
|
wx
.
RIGHT
,
border
=
10
)
self
.
Add
(
wx
.
StaticText
(
parentpanel
,
-
1
,
_
(
"mm"
)),
pos
=
(
base_line
+
2
,
4
),
span
=
(
1
,
1
))
self
.
Add
(
root
.
edist
,
pos
=
(
base_line
+
3
,
0
),
span
=
(
1
,
1
),
flag
=
wx
.
EXPAND
|
wx
.
RIGHT
,
border
=
5
)
self
.
Add
(
wx
.
StaticText
(
parentpanel
,
-
1
,
_
(
"mm"
)),
pos
=
(
base_line
+
3
,
1
),
span
=
(
1
,
1
))
root
.
edist
.
SetToolTip
(
wx
.
ToolTip
(
"Amount to Extrude or Retract (mm)"
))
root
.
efeedc
=
wx
.
SpinCtrl
(
parentpanel
,
-
1
,
str
(
root
.
settings
.
e_feedrate
),
min
=
0
,
max
=
50000
,
size
=
(
70
,
-
1
))
root
.
efeedc
.
SetToolTip
(
wx
.
ToolTip
(
"Extrude / Retract speed (mm/min)"
))
...
...
@@ -138,8 +138,8 @@ def add_extra_controls(self, root, parentpanel, extra_buttons = None):
root
.
efeedc
.
SetForegroundColour
(
"black"
)
root
.
efeedc
.
Bind
(
wx
.
EVT_SPINCTRL
,
root
.
setfeeds
)
root
.
efeedc
.
Bind
(
wx
.
EVT_TEXT
,
root
.
setfeeds
)
self
.
Add
(
root
.
efeedc
,
pos
=
(
base_line
+
3
,
2
),
span
=
(
1
,
2
),
flag
=
wx
.
EXPAND
|
wx
.
RIGHT
,
border
=
10
)
self
.
Add
(
wx
.
StaticText
(
parentpanel
,
-
1
,
_
(
"mm/
\n
min"
)),
pos
=
(
base_line
+
3
,
4
),
span
=
(
2
,
1
))
self
.
Add
(
root
.
efeedc
,
pos
=
(
base_line
+
3
,
2
),
span
=
(
1
,
2
),
flag
=
wx
.
EXPAND
|
wx
.
RIGHT
,
border
=
5
)
self
.
Add
(
wx
.
StaticText
(
parentpanel
,
-
1
,
_
(
"mm/
\n
min"
)),
pos
=
(
base_line
+
3
,
4
),
span
=
(
2
,
1
))
gauges_base_line
=
base_line
+
8
if
standalone_mode
else
base_line
+
5
if
root
.
display_gauges
:
...
...
@@ -176,12 +176,12 @@ def add_extra_controls(self, root, parentpanel, extra_buttons = None):
pos_mapping
=
{
(
2
,
5
):(
0
,
0
),
(
4
,
0
):(
3
,
0
),
(
5
,
0
):(
4
,
0
),
(
4
,
2
):(
3
,
2
),
}
span_mapping
=
{
(
2
,
5
):(
1
,
3
),
(
4
,
0
):(
1
,
2
),
(
5
,
0
):(
1
,
2
),
(
4
,
2
):(
1
,
3
),
}
for
i
in
extra_buttons
:
btn
=
extra_buttons
[
i
]
...
...
pronterface.py
View file @
06e4818a
...
...
@@ -226,7 +226,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
SpecialButton
(
_
(
"Motors off"
),
(
"M84"
),
(
250
,
250
,
250
),
None
,
0
,
_
(
"Switch all motors off"
)),
SpecialButton
(
_
(
"Check temp"
),
(
"M105"
),
(
225
,
200
,
200
),
(
2
,
5
),
(
1
,
1
),
_
(
"Check current hotend temperature"
)),
SpecialButton
(
_
(
"Extrude"
),
(
"extrude"
),
(
225
,
200
,
200
),
(
4
,
0
),
(
1
,
2
),
_
(
"Advance extruder by set length"
)),
SpecialButton
(
_
(
"Reverse"
),
(
"reverse"
),
(
225
,
200
,
200
),
(
5
,
0
),
(
1
,
2
),
_
(
"Reverse extruder by set length"
)),
SpecialButton
(
_
(
"Reverse"
),
(
"reverse"
),
(
225
,
200
,
200
),
(
4
,
2
),
(
1
,
3
),
_
(
"Reverse extruder by set length"
)),
]
self
.
custombuttons
=
[]
self
.
btndict
=
{}
...
...
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