I just wanted to comment in my below example code, when you click “cancel” the modal is not destroyed, the button is merely disabled. Is this the intended functionality?
How would I close the modal when someone clicks the “cancel” button?
···
On Saturday, November 23, 2013 6:32:51 AM UTC-5, RedHotChiliPepper wrote:
Are you sure this is the correct answer? When I click the button that frame freezes and the button remains depressed down while the ProgressDialog animates.
···
On Saturday, November 23, 2013 12:27:17 PM UTC-5, Torsten wrote:
After looking at the wxpython demo i think the solution is:
Maybe there’s another way, but on my system it works. In my previous post i attached the script that is working on my system (win7 64Bit, Python 32Bit, wxPython 2.9.5.0). I’ve attached a small recording of the running app.
Thanks for all your help and especially the video. The code runs the same on my machine as well (win 7 64bit.) My only comment was that the “Click me” button is depressed while the modal is displayed. After you close the modal it is clickable again.
Just out of curiosity, isn’t it bad to have this infinite loop running from a system resource utilization perspective? I added a sleep function so that it loops every 1/5 of a second instead of tens of thousands of times per second.
wx.MilliSleep(200)
But I just wanted your take if that was even necessary.
···
On Saturday, November 23, 2013 5:25:29 PM UTC-5, Torsten wrote:
Maybe there’s another way, but on my system it works. In my previous post i attached the script that is working on my system (win7 64Bit, Python 32Bit, wxPython 2.9.5.0). I’ve attached a small recording of the running app.