如何在启动时设置checkbutton true ,目前在运行我的程序时显示为空复选框。我希望检查按钮启动检查而不是取消选中
这是我的检查按钮的代码
self.checkbutton = Checkbutton(self.frame1, text="Automatisch", onvalue=1, pady=12, padx=0, command=self.set_automatic_bool).grid(row=1, column=1, columnspan=5, sticky=NSEW)
答案 0 :(得分:4)
只是简单的self.checkbutton.select()