calling functions from Tk
Matt Gushee
mgushee at havenrock.com
Thu Dec 30 18:37:13 EST 1999
Ivan Van Laningham <ivanlan at callware.com> writes:
> command=test
>
> command=test('blah')
>
> The first method tells Button that 'test' is the name of the function to
> call when the button is pressed. The second method says that the result
> of running "test('blah') is the function to call when the button is
> pressed.
Yeah. I dunno about anybody else, but ... this makes perfect sense
when you think about it, but it seems really non-intuitive to
me. Shouldn't this be in big red letters in some FAQ somewhere?
Or maybe it is, and nobody read it.
--
Matt Gushee
Portland, Maine, USA
mgushee at havenrock.com
http://www.havenrock.com/
More information about the Python-list
mailing list