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