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
4b4e4a2b
Commit
4b4e4a2b
authored
Mar 27, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move setlayer() call to printsentcb
parent
218ce7f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
pronterface.py
printrun/pronterface.py
+11
-11
No files found.
printrun/pronterface.py
View file @
4b4e4a2b
...
@@ -371,13 +371,6 @@ class PronterWindow(MainWindow, pronsole.pronsole):
...
@@ -371,13 +371,6 @@ class PronterWindow(MainWindow, pronsole.pronsole):
def
sentcb
(
self
,
line
,
gline
):
def
sentcb
(
self
,
line
,
gline
):
if
not
gline
:
if
not
gline
:
pass
pass
elif
gline
.
is_move
:
if
gline
.
z
is
not
None
:
layer
=
gline
.
z
if
layer
!=
self
.
curlayer
:
self
.
curlayer
=
layer
wx
.
CallAfter
(
self
.
gviz
.
clearhilights
)
wx
.
CallAfter
(
self
.
gviz
.
setlayer
,
layer
)
elif
gline
.
command
in
[
"M104"
,
"M109"
]:
elif
gline
.
command
in
[
"M104"
,
"M109"
]:
gline_s
=
gcoder
.
S
(
gline
)
gline_s
=
gcoder
.
S
(
gline
)
if
gline_s
is
not
None
:
if
gline_s
is
not
None
:
...
@@ -442,9 +435,16 @@ class PronterWindow(MainWindow, pronsole.pronsole):
...
@@ -442,9 +435,16 @@ class PronterWindow(MainWindow, pronsole.pronsole):
return
None
return
None
def
printsentcb
(
self
,
gline
):
def
printsentcb
(
self
,
gline
):
if
gline
.
is_move
and
hasattr
(
self
.
gwindow
,
"set_current_gline"
):
if
gline
.
is_move
:
if
gline
.
z
is
not
None
:
layer
=
gline
.
z
if
layer
!=
self
.
curlayer
:
self
.
curlayer
=
layer
wx
.
CallAfter
(
self
.
gviz
.
clearhilights
)
wx
.
CallAfter
(
self
.
gviz
.
setlayer
,
layer
)
if
hasattr
(
self
.
gwindow
,
"set_current_gline"
):
wx
.
CallAfter
(
self
.
gwindow
.
set_current_gline
,
gline
)
wx
.
CallAfter
(
self
.
gwindow
.
set_current_gline
,
gline
)
if
gline
.
is_move
and
hasattr
(
self
.
gviz
,
"set_current_gline"
):
if
hasattr
(
self
.
gviz
,
"set_current_gline"
):
wx
.
CallAfter
(
self
.
gviz
.
set_current_gline
,
gline
)
wx
.
CallAfter
(
self
.
gviz
.
set_current_gline
,
gline
)
def
do_pront_extrude
(
self
,
l
=
""
):
def
do_pront_extrude
(
self
,
l
=
""
):
...
...
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