interface _test.py 文件源码

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

项目:Story_CoWriting 作者: alexis-jacq 项目源码 文件源码
def robot(self, label,items, name):
        for child in self.mainframe.winfo_children():
            child.destroy()
        self.add_emoji()
        self.add_trace()
        self.set_title(label)

        ind = 0
        for item in items:
            col = ind%4 + 1
            row = ind/4 + 1
            if name=="true":
                ttk.Button(self.mainframe, text=item).grid(column=col, row=row, sticky=N+S+E+W)
            else:
                ttk.Button(self.mainframe, text=item, image=images[item], compound="top").grid(column=col, row=row, sticky=N+S+E+W)
            ind+=1
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号