panelvisual.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:bonsu 作者: bonsudev 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号