From: ronny de w. <ron...@gm...> - 2005-02-26 23:00:40
|
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 |