-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion and nextEventMatchingMask
Error on MacOS when using wx.FileDialog
called through flask/dash
#2683
Comments
nextEventMatchingMask
Error on MacOSwhen using wx.FileDialog
nextEventMatchingMask
Error on MacOSwhen using wx.FileDialog
called through flask/dash
Hard to say without a small, self-contained example but the error message suggests you might be making wxPython calls from a non-main thread. Is that a possibility? |
The application is almost certainly running in a multi threaded mode. |
That's likely the problem then. wxPython (GUI) calls have to be made from the main thread. |
Any insight into the difference in GUI handling for wxPython across different operating systems? When I run my application multi-threaded on either Windows or Linux, the dialog opens and functions perfectly fine. |
You're just getting lucky on Windows and Linux. You could try wrapping your GUI code with |
nextEventMatchingMask
Error on MacOSwhen using wx.FileDialog
called through flask/dashnextEventMatchingMask
Error on MacOS when using wx.FileDialog
called through flask/dash
I am attempting to run a
wx.Dialog
popup through my flask/dash application with the following calback logic:The dialog opens dynamically when the user selects a button.
This works perfectly fine on both Linux and Windows, but on MacOS I get the following error in the console trace:
My current python environment (3.9.11) is set up with the following:
The text was updated successfully, but these errors were encountered: