Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: How to freeze a button while it is in active modeby SuicideJunkie (Vicar) |
on Jul 17, 2014 at 19:31 UTC ( [id://1094114]=note: print w/replies, xml ) | Need Help?? |
Note that if you just run off and loop on a job, then the GUI will be frozen and windows will mark it "not responding". Be sure to sprinkle in some DoOneEvent() or equivalent calls so your GUI keeps rolling while you work. Also note that just because a button is disabled, doesn't mean it can't be click()ed again if the user is quick and/or tricky. (Eg: Win32-GuiTest) The enable state of the button itself makes a decent flag if the application isn't multithreaded.
In Section
Seekers of Perl Wisdom
|
|