ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pythoncard
pythoncard
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved