Re: tkinter puzzler

2005-05-16 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Paul Rubin 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

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 colu

Re: tkinter puzzler

2005-05-12 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, 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

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 bl

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

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-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(No

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(lab

Re: Tkinter Puzzler

2005-01-07 Thread F. Petitjean
Le 07 Jan 2005 05:28:31 EST, Tim Daneliuk a écrit : > 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.

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(No

Tkinter Puzzler

2005-01-07 Thread Tim Daneliuk
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)) However, at runt