[Twisted-Python] wxPython locking the event processing?
Uwe C. Schroeder
uwe at oss4u.com
Sat Jul 5 03:33:52 MDT 2003
Search the cookbook @ activestate.com.
I posted a recipe there about this.
Basically the wxsupport in twisted emulates the mainloop of wxpython.
However it doesn't account for the fact that wxpython uses a secondary
"mainloop" to handle all modal dialogs (this includes menus, a simple
yesnobox would block the same way).
This can't be "fixed". Either someone bothers to write a real reactor ( which
is hard to because wxPython relies on different graphics toolkits depending
on platform).
Personally I think the wxsupport should be removed from twisted, or at least
be tagged with appropriate comments, since it's not buggy but plain simple
will never work.
Anyways, check the cookbook. You can emulate the twisted mainloop in a
wxpython mainloop.
On Saturday 05 July 2003 01:52 am, Patrik Blommaskog wrote:
> Hi list,
>
> Using Twisted/wxPython/Win2k, it seems to me like Twisted's event
> processing gets locked up while I'm moving around in a menu (without
> selecting anyting). For example, if there is a callLater() pending, but the
> menu bar is activated when the time occurs, the call is not made until I
> leave the menu.
>
> The problem is easily demonstrated with the Twisted wxPython demo found at:
>
> http://twistedmatrix.com/documents/examples/wxdemo.py
>
> Start the app, then click on the "File" menu. Don't select anything, just
> leave the menu there. Now, the output to stdout is suspended. Release the
> menu and the output resumes.
>
> Now, I would really like for my model to keep working in the background
> while I'm moving around in the GUI.
>
> Any suggestions?
>
> - Patrik
>
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
--
UC
--
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417
More information about the Twisted-Python
mailing list