def Start(self,event):
self.stopmotion = False
self.count_total = int(self.steps.value.GetValue())
if self.count >= self.count_total:
return
self.gauge.SetRange(self.count_total)
self.xstep = float(self.angle.value.GetValue())*float(self.x.value.GetValue())
self.ystep = float(self.angle.value.GetValue())*float(self.y.value.GetValue())
self.zstep = float(self.angle.value.GetValue())*float(self.z.value.GetValue())
self.filename = file_ext = os.path.splitext( self.filename_path.objectpath.GetValue() )[0]
for i in range(self.count,self.count_total):
if self.stopmotion == False:
self.OnTimer(None)
sleep(float(self.delay.value.GetValue())/1000.0)
else:
break
wx.Yield()
self.count = 0
self.count_total = 0
评论列表
文章目录