Re: Tkinter Button widget

2005-07-14 Thread William Park
Peter Otten <[EMAIL PROTECTED]> wrote: > Shankar Iyer ([EMAIL PROTECTED]) wrote: > > > I have another Tkinter-related question. At the beginning of my > > program, a tkinter window is created with six buttons. Each of these > > buttons is assigned a function that should be execute

Re: Tkinter Button widget

2005-07-14 Thread Fuzzyman
Peter Otten wrote: > Shankar Iyer ([EMAIL PROTECTED]) wrote: > [snip..] > > Change your source code from > > # wrong > button = Tkinter.Button(..., command=some_function(),...) > > to > > # correct > button = Tkinter.Button(..., command=some_function,...) > > to pass the *function* to the widget

Re: Tkinter Button widget

2005-07-14 Thread Peter Otten
Shankar Iyer ([EMAIL PROTECTED]) wrote: > I have another Tkinter-related question. At the beginning of my > program, a tkinter window is created with six buttons. Each of these > buttons is assigned a function that should be executed only when the > button is pressed. Howeve

Tkinter Button widget

2005-07-14 Thread Shankar Iyer ([EMAIL PROTECTED])
Hi, I have another Tkinter-related question. At the beginning of my program, a tkinter window is created with six buttons. Each of these buttons is assigned a function that should be executed only when the button is pressed. However, it seems that these functions are all executed once w