[Twisted-Python] wxPython locking the event processing?

Itamar Shtull-Trauring itamar at itamarst.org
Sat Jul 5 11:14:28 MDT 2003


On Sat, 5 Jul 2003 18:24:49 +0200
"Patrik Blommaskog" <pb_twisted at olga.mine.nu> wrote:

> Meanwhile, is there anything that I should be aware of considering
> that we now have separate threads for wx and Twisted? Can I for
> example use reactor.callLater() to call methods on wx objects, or work
> with Perspectives, Cacheables, reactor etc from wx event handlers
> without any problems?

They will break horribly. So, use reactor.callFromThread to call twisted
APIs from wx thread and the wx equivalent to call wx APIs from the
twisted thread.

-- 
Itamar Shtull-Trauring    http://itamarst.org/
http://www.zoteca.com -- Python & Twisted consulting




More information about the Twisted-Python mailing list