【发布时间】:2013-04-09 10:19:57
【问题描述】:
当某些事件发生时,我需要将Button 的状态从DISABLED 更改为NORMAL。
这是我的 Button 的当前状态,当前处于禁用状态:
self.x = Button(self.dialog, text="Download",
state=DISABLED, command=self.download).pack(side=LEFT)
self.x(state=NORMAL) # this does not seem to work
任何人都可以帮助我如何做到这一点?
【问题讨论】:
标签: python button tkinter state