def __init__(self, parent, buttontext, mycommand,r,c):
ttk.Checkbutton.__init__(self, parent)
self.var = BooleanVar()
self.config(text=buttontext, onvalue= True , variable = self.var, offvalue = False, command=mycommand)
self.grid(row=r,column=c)
评论列表
文章目录