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
a84770ea
Commit
a84770ea
authored
Jun 07, 2012
by
Gary Hodgson
Committed by
Guillaume Seguin
May 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed order of image-move-hide
parent
c1df8ed4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
projectlayer.py
projectlayer.py
+11
-5
No files found.
projectlayer.py
View file @
a84770ea
...
...
@@ -99,22 +99,28 @@ class dispframe(wx.Frame):
def
showimgdelay
(
self
,
image
):
self
.
drawlayer
(
image
,
self
.
slicer
)
print
"showing"
self
.
pic
.
Show
()
self
.
Refresh
()
self
.
Refresh
()
def
rise
(
self
):
print
"raising"
if
self
.
p
!=
None
and
self
.
p
.
online
:
self
.
p
.
send_now
(
"G91"
)
self
.
p
.
send_now
(
"G1 Z
%
f F
30
0"
%
(
self
.
thickness
,))
self
.
p
.
send_now
(
"G1 Z
%
f F
25
0"
%
(
self
.
thickness
,))
self
.
p
.
send_now
(
"G90"
)
def
hidePic
(
self
):
print
"hiding"
self
.
pic
.
Hide
()
self
.
rise
()
def
nextimg
(
self
,
event
):
if
self
.
index
<
len
(
self
.
layers
):
i
=
self
.
index
print
i
wx
.
CallAfter
(
self
.
showimgdelay
,
self
.
layers
[
i
])
wx
.
FutureCall
(
1000
*
self
.
interval
,
self
.
pic
.
Hide
)
wx
.
FutureCall
(
1000
*
self
.
interval
,
self
.
hidePic
)
self
.
index
+=
1
else
:
print
"end"
...
...
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