it might be bug in wxgtk+PostEvent considering that the synchronous example is not working as well.
I was unable to send a PostEvent for custom or even a CommandEvent with linux/gtk. When I override “ProcessEvent” on the Frame, the event is never seen but I see all the other ones.
Calling QueueEvent on the frame doesn’t work either.
Code sample is at https://github.com/sirk390/wxasync/issues/3 but the example could certainly be slimmed down a little. Thus this issue has been confirmed by the authors of wxasync and myself. Can anyone else confirm or comment on this? Should I raise as an issue on wxpython/phoenix?
I rely on custom events in the latest version of my Python UML Pynsource tool for triggering asynchronous rendering of Python UML diagrams using the PlantUML service. The Linux is port has hit a roadblock with this issue, so any thoughts or workarounds would be appreciated.
it might be bug in wxgtk+PostEvent considering that the synchronous example is not working as well.
I was unable to send a PostEvent for custom or even a CommandEvent with linux/gtk. When I override “ProcessEvent” on the Frame, the event is never seen but I see all the other ones.
Calling QueueEvent on the frame doesn’t work either.
Code sample is at https://github.com/sirk390/wxasync/issues/3 but the example could certainly be slimmed down a little. Thus this issue has been confirmed by the authors of wxasync and myself. Can anyone else confirm or comment on this? Should I raise as an issue on wxpython/phoenix?
To summarise for others: It turns out that the problem was in the package wxasync after all - not in wxPython GTK. The problem has now been fixed by the wxasync team.
Just in case anyone doesn’t know, wxasync is a library for using Python 3 asyncio (async/wait) with wxPython.
So, apologies for the false alarm - posting custom events work just fine in wxPython on Linux.
I’m not the author of wxasync, but am sure glad it exists, and use it in my wxPython projects.
There’s even a demo app in the article showing a fun rubber-band app which draws asynchronously. It was based on some old code examples that I found on the web - I ported to Python 3 and phoenix and added the asynchronous feature.