[Pythoncard-users] Make button inactive
by Ronny De Winter other posts by this author
Feb 26 2005 3:03PM messages near this date
RE: [Pythoncard-users] Text field widgets
|
Re: [Pythoncard-users] Make button inactive
Hello,
I have a Test button which should perform an action, like sleeping
5 secs in the example below. During this action the button should not accept
any event. So one should not be able to click the button again before the action
related to the button is finished. During the action any Test button
clicks should
be ignored.
How can i do that?
Why doe the code below does not show this behavious ?
def on_Test_mouseClick(self, event):
print "*** button clicked"
# why can i not disable the button with:
self.components.Test.enabled = False
time.sleep(5)
self.components.Test.enabled = True
Ronny De Winter
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
Thread:
Ronny De Winter
Liam Clarke
Ronny De Winter
Kevin Altis
Ronny De Winter
|