[Tutor] GUI Buttons

ALAN GAULD alan.gauld at btinternet.com
Wed Oct 14 09:49:26 CEST 2009


> But when is the configure() method more appropriate to change e.g. the button 
> status?


configure is better when you need to change more than one attribute of a 
widget at a time. The dictionary style access is just a convenience feature. 
If you prefer you can use configure() all the time.

Alan G.

> > > How can I programmatically create a list of all
> > available buttons?
> > 
> > Just add your buttons to a list when you create them
> > Then in your reset method do
> > 
> > for button in ButtonList:
> >    button['state'] = NORMAL
> > 


More information about the Tutor mailing list