control.py 文件源码

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

项目:copycat 作者: LSaldyt 项目源码 文件源码
def __init__(self, parent, *args, **kwargs):
        GridFrame.__init__(self, parent, *args, **kwargs)

        self.paused = True
        self.steps  = 0
        self.go     = False

        self.playbutton = ttk.Button(self, text='Play', command=lambda : self.toggle())
        self.add(self.playbutton, 0, 0)

        self.stepbutton = ttk.Button(self, text='Step', command=lambda : self.step())
        self.add(self.stepbutton, 1, 0)

        self.entry = Entry(self)
        self.add(self.entry, 0, 1, xspan=2)

        self.gobutton = ttk.Button(self, text='Go', command=lambda : self.set_go())
        self.add(self.gobutton, 0, 2, xspan=2)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号