how to return value from button clicked by python

r rt8396 at gmail.com
Fri Sep 11 20:08:51 CEST 2009


On Sep 11, 10:19 am, chen tao <ct19850... at gmail.com> wrote:
(snip)
>     I tried the button.invoke() function, it almost got it...however,
> I only want it returns value when the button clicked, but because the
> program is in the class _ini_ function, so it always runs once before
> I click the button...

so don't call the function in the __init__ method OR just write a
def...?



More information about the Python-list mailing list