Re: [Tutor] Tkinter event for changing OptionMenu items

2005-07-23 Thread Michael Lange
On Thu, 21 Jul 2005 14:16:05 -0400 Bernard Lebel <[EMAIL PROTECTED]> wrote: > Hi Michael, > > Let say I have a MenuOption, that consists of 3 items. This MenuOption > sits on top of the Tkinter window. > > In the lower part, I have a bunch of widgets (text fields). When the > choose a different

Re: [Tutor] Tkinter event for changing OptionMenu items

2005-07-21 Thread jfouhy
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

Re: [Tutor] Tkinter event for changing OptionMenu items

2005-07-21 Thread geon
Bernard Lebel wrote: >Hello, > >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? > > >var1 = StringVar() >var1.s

Re: [Tutor] Tkinter event for changing OptionMenu items

2005-07-21 Thread Bernard Lebel
Hi Michael, Let say I have a MenuOption, that consists of 3 items. This MenuOption sits on top of the Tkinter window. In the lower part, I have a bunch of widgets (text fields). When the choose a different item from the MenuOption, it would call a function that clears the lower part and repopulat

Re: [Tutor] Tkinter event for changing OptionMenu items

2005-07-21 Thread Michael Lange
On Thu, 21 Jul 2005 12:19:00 -0400 Bernard Lebel <[EMAIL PROTECTED]> wrote: > Hello, > > 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

[Tutor] Tkinter event for changing OptionMenu items

2005-07-21 Thread Bernard Lebel
Hello, 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? var1 = StringVar() var1.set( aTables[0] ) oOptionMenu = Opt