<div dir="ltr">I'm using Tkinter. When I do the reactor.listenTCP(), the server takes over the main thread and the GUI freezes. Could you help me craft a GUI-safe solution?</div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 12 June 2013 00:06, Glyph <span dir="ltr"><<a href="mailto:glyph@twistedmatrix.com" target="_blank">glyph@twistedmatrix.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div class="im"><br><div><div>On Jun 11, 2013, at 6:20 PM, Paul Sajna <<a href="mailto:sajattack@gmail.com" target="_blank">sajattack@gmail.com</a>> wrote:</div><br><blockquote type="cite">
<div dir="ltr" style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
I continue to use threads because my application uses a GUI that becomes blocked when the server starts. Also, I am now having a problem where port is undefined until the server is stopped and started again.</div></blockquote>
</div><br></div><div>Paul,</div><div><br></div><div>Until you stop using threads in this manner, you are using threads in a totally unsupported way and Twisted will be broken.</div><div><br></div><div>Twisted supports most GUIs directly though; there is generally no need to use threads.  What GUI library are you using?</div>
<span class="HOEnZb"><font color="#888888"><div><br></div><div>-glyph</div><div><br></div></font></span></div><br>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div><br></div>