Commit a84770ea authored by Gary Hodgson's avatar Gary Hodgson Committed by Guillaume Seguin

changed order of image-move-hide

parent c1df8ed4
...@@ -99,22 +99,28 @@ class dispframe(wx.Frame): ...@@ -99,22 +99,28 @@ class dispframe(wx.Frame):
def showimgdelay(self, image): def showimgdelay(self, image):
self.drawlayer(image,self.slicer) self.drawlayer(image,self.slicer)
print "showing"
self.pic.Show() self.pic.Show()
self.Refresh() self.Refresh()
self.Refresh() def rise(self):
print "raising"
if self.p != None and self.p.online: if self.p != None and self.p.online:
self.p.send_now("G91") self.p.send_now("G91")
self.p.send_now("G1 Z%f F300" % (self.thickness,)) self.p.send_now("G1 Z%f F250" % (self.thickness,))
self.p.send_now("G90") self.p.send_now("G90")
def hidePic(self):
print "hiding"
self.pic.Hide()
self.rise()
def nextimg(self, event): def nextimg(self, event):
if self.index < len(self.layers): if self.index < len(self.layers):
i = self.index i = self.index
print i print i
wx.CallAfter(self.showimgdelay, self.layers[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 self.index += 1
else: else:
print "end" print "end"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment