Re: Bug in wxPython? MessageDialog.ShowModal() returning always zero on OS X

Dan Haddix <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
I just ran into this myself. I have a cross platform app written in 
python/wx.python and it worked fine on Windows so I couldn't figure out why 
it wasn't working on OSX. Debugging in pyCharm showed that the dialog 
always returned 0 but I had no idea why. I'm glad you guys mentioned the 
threading issue because I never would have suspected that as the problem. I 
was doing this in a thread because it was for an update checker and I 
didn't want to block the main UI while I waited for the http request to 
return. I just moved the dialog part out to a function in the main UI 
thread and used CallAfter like you guys suggested and it worked like a 
charm. 

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.