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
574ed62d
Commit
574ed62d
authored
Oct 16, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mini controls, specify speed for move-to-center button
parent
104948d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
xybuttons.py
printrun/gui/xybuttons.py
+1
-1
pronterface.py
printrun/pronterface.py
+2
-2
No files found.
printrun/gui/xybuttons.py
View file @
574ed62d
...
@@ -407,7 +407,7 @@ class XYButtonsMini(XYButtons):
...
@@ -407,7 +407,7 @@ class XYButtonsMini(XYButtons):
0
:
"x"
,
0
:
"x"
,
1
:
"z"
,
1
:
"z"
,
2
:
"y"
,
2
:
"y"
,
3
:
"
xy
"
,
3
:
"
center
"
,
}
}
def
bind_events
(
self
):
def
bind_events
(
self
):
...
...
printrun/pronterface.py
View file @
574ed62d
...
@@ -587,7 +587,8 @@ class PronterWindow(MainWindow, pronsole.pronsole):
...
@@ -587,7 +587,8 @@ class PronterWindow(MainWindow, pronsole.pronsole):
elif
axis
==
"center"
:
elif
axis
==
"center"
:
center_x
=
self
.
build_dimensions_list
[
0
]
/
2
+
self
.
build_dimensions_list
[
3
]
center_x
=
self
.
build_dimensions_list
[
0
]
/
2
+
self
.
build_dimensions_list
[
3
]
center_y
=
self
.
build_dimensions_list
[
1
]
/
2
+
self
.
build_dimensions_list
[
4
]
center_y
=
self
.
build_dimensions_list
[
1
]
/
2
+
self
.
build_dimensions_list
[
4
]
self
.
onecmd
(
'G0 X
%
d Y
%
d'
%
(
center_x
,
center_y
))
feed
=
self
.
settings
.
xy_feedrate
self
.
onecmd
(
'G0 X
%
s Y
%
s F
%
s'
%
(
center_x
,
center_y
,
feed
))
else
:
else
:
return
return
self
.
p
.
send_now
(
'M114'
)
self
.
p
.
send_now
(
'M114'
)
...
@@ -611,7 +612,6 @@ class PronterWindow(MainWindow, pronsole.pronsole):
...
@@ -611,7 +612,6 @@ class PronterWindow(MainWindow, pronsole.pronsole):
if
new_y
<
self
.
build_dimensions_list
[
4
]
or
new_y
>
self
.
build_dimensions_list
[
1
]
+
self
.
build_dimensions_list
[
4
]:
if
new_y
<
self
.
build_dimensions_list
[
4
]
or
new_y
>
self
.
build_dimensions_list
[
1
]
+
self
.
build_dimensions_list
[
4
]:
self
.
clamped_move_message
()
self
.
clamped_move_message
()
return
return
self
.
onecmd
(
'move Y
%
s'
%
y
)
else
:
else
:
return
return
self
.
p
.
send_now
(
'M114'
)
self
.
p
.
send_now
(
'M114'
)
...
...
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