[Twisted-Python] wxPython integration & msg sending from the GUI
![](https://secure.gravatar.com/avatar/275dbf027f6e280894a60f83a480e083.jpg?s=120&d=mm&r=g)
Hello everyone, when using wxPython integration, if my GUI wants to send msgs, do I need to schedule the msg sending through the reactor like is needed when using non-reactor threads (see my post who's subject is "does setTcpNoDelay() not work?"), like : reactor.callFromThread(srv.sendMessage, "my msg") or can I directly call it like : srv.sendMessage(my msg") ? I followed the wx integration tutorial on the Twisted homepage. I guess my question is more like : "Does the wxPython integration make it run in the reactor thread or not". Thank you, Gabriel
![](https://secure.gravatar.com/avatar/d7875f8cfd8ba9262bfff2bf6f6f9b35.jpg?s=120&d=mm&r=g)
On Mon, 2008-08-18 at 12:11 +0200, Gabriel Rossetti wrote:
or can I directly call it like :
srv.sendMessage(my msg")
You can do that, yes.
? I followed the wx integration tutorial on the Twisted homepage. I guess my question is more like : "Does the wxPython integration make it run in the reactor thread or not".
wxreactor makes wx run in same thread as Twisted, yes (at least from your point of view).
![](https://secure.gravatar.com/avatar/275dbf027f6e280894a60f83a480e083.jpg?s=120&d=mm&r=g)
Itamar Shtull-Trauring wrote:
On Mon, 2008-08-18 at 12:11 +0200, Gabriel Rossetti wrote:
or can I directly call it like :
srv.sendMessage(my msg")
You can do that, yes.
Ok
? I followed the wx integration tutorial on the Twisted homepage. I guess my question is more like : "Does the wxPython integration make it run in the reactor thread or not".
wxreactor makes wx run in same thread as Twisted, yes (at least from your point of view).
Ok, thank you! Gabriel
participants (2)
-
Gabriel Rossetti
-
Itamar Shtull-Trauring