Re: tkinter puzzler

2005-05-16 Thread Russell E. Owen
In article [EMAIL PROTECTED], Paul Rubin http://[EMAIL PROTECTED] wrote: Martin Franklin [EMAIL PROTECTED] writes: I suspect you need to look at the columnconfigure / rowconfigure methods of the container (toplevel or frame) Thanks, columnconfigure turned out to be the answer and Peter

Re: tkinter puzzler

2005-05-14 Thread Paul Rubin
Martin Franklin [EMAIL PROTECTED] writes: I suspect you need to look at the columnconfigure / rowconfigure methods of the container (toplevel or frame) Thanks, columnconfigure turned out to be the answer and Peter Otten's post showing how to use it was very informative. For some reason

tkinter puzzler

2005-05-12 Thread Paul Rubin
I have a gui with a bunch of buttons, labels, the usual stuff. It uses the grid manager: gui = Frame() gui.grid() gui.Label().grid() # put some widgets into the gui ...# more widgets Now at the the very bottom of the gui, I want to add two more buttons, let's say stop and

Re: tkinter puzzler

2005-05-12 Thread Martin Franklin
Paul Rubin wrote: I have a gui with a bunch of buttons, labels, the usual stuff. It uses the grid manager: gui = Frame() gui.grid() gui.Label().grid() # put some widgets into the gui ...# more widgets Now at the the very bottom of the gui, I want to add two more

Re: tkinter puzzler

2005-05-12 Thread Peter Otten
Paul Rubin wrote: I think you are missing the columnconfigure()/rowconfigure() methods as Martin Franklin pointed out. Anyway, here is some code to illustrate the matter. I've found it helpful to use false colors to see what's going on. the yellow 'main' frame contains the red 'north' and the

Re: tkinter puzzler

2005-05-12 Thread Russell E. Owen
In article [EMAIL PROTECTED], Paul Rubin http://[EMAIL PROTECTED] wrote: I have a gui with a bunch of buttons, labels, the usual stuff. It uses the grid manager: gui = Frame() gui.grid() gui.Label().grid() # put some widgets into the gui ...# more widgets Now at the the

Re: Tkinter Puzzler

2005-01-07 Thread Eric Brunel
Tim Daneliuk wrote: I am trying to initialize a menu in the following manner: for entry in [(Up, KeyUpDir), (Back, KeyBackDir), (Home, KeyHomeDir), (Startdir, KeyStartDir), (Root, KeyRootDir)]: func = entry[1] UI.ShortBtn.menu.add_command(label=entry[0], command=lambda: func(None))

Re: Tkinter Puzzler

2005-01-07 Thread Alex Martelli
Tim Daneliuk [EMAIL PROTECTED] wrote: I am trying to initialize a menu in the following manner: for entry in [(Up, KeyUpDir), (Back, KeyBackDir), (Home, KeyHomeDir), (Startdir, KeyStartDir), (Root, KeyRootDir)]: func = entry[1] UI.ShortBtn.menu.add_command(label=entry[0],

Re: Tkinter Puzzler

2005-01-07 Thread Tim Daneliuk
Tim Daneliuk wrote: I am trying to initialize a menu in the following manner: for entry in [(Up, KeyUpDir), (Back, KeyBackDir), (Home, KeyHomeDir), (Startdir, KeyStartDir), (Root, KeyRootDir)]: func = entry[1] UI.ShortBtn.menu.add_command(label=entry[0], command=lambda: func(None))