Tk button enable/disable?
Fredrik Lundh
effbot at telia.com
Tue May 2 03:11:58 EDT 2000
Albert Wagner <alwagner at tcac.net> wrote:
> Then later when conditions dictate:
>
> self.openButton.state = 'normal'
> self.closeButton.state = 'normal'
> self.deleteButton.state = 'normal'
> self.openButton.update()
> self.closeButton.update()
> self.deleteButton.update()
>
> They are initially disabled OK, but I cannot figure out how to later
> enable them. Any help greatly appreciated.
how about
self.openButton.config(state='normal')
also see:
http://www.pythonware.com/library/tkinter/introduction/widget-configuration.
htm
</F>
More information about the Python-list
mailing list