Tkinter issue

yanivk at my-deja.com yanivk at my-deja.com
Mon Aug 28 05:03:29 EDT 2000


Hi,
If this works for you, you might not need any self managed lists:

def change_state(widget, state=NORMAL):
   for wid in widget.children.values():
      change_state(wid, state)
   try:
      widget.config(state=state)
   except TclError:
      pass

then you just need to call:
change_state(<frame instance>, <requested state>)

Good luck,
Yaniv


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list