Quoting Bernard Lebel <[EMAIL PROTECTED]>: > I'm trying to bind an event to the changes made to an OptionMenu. Ie > the user chooses a different item, the rest of the Tk window gets > updated. To repopulate the window, a function would be called by the > binding. > > Any suggestion?
The easiest way is to use a Pmw.OptionMenu, which has this functionality built-in :-) Alternatively, you can trace the StringVar you connect to the OptionMenu. I have never done anything with traces, but there are some instructions here: http://www.astro.washington.edu/owen/ROTKFolklore.html -- John. _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
