[Twisted-Python] wxReactor Issues
RSGames Support
rsgames at inbox.com
Sat Nov 13 23:34:01 EST 2010
Hi,
Yes, I tried the code below with no luck.
The OnClose() event calls this:
def KillSock():
if wxreactor.WxReactor.callFromThread is not None:
oldStop = wxreactor.WxReactor.stop
def stopFromThread(self):
reactor.callFromThread(oldStop)
wxreactor.WxReactor.stop = stopFromThread
reactor.stop()
When I ran this code in gdb, it did not say the two threads exited like they should do.
Thank you.
-Ryan
> -----Original Message-----
> From: itamar at itamarst.org
> Sent: Sat, 13 Nov 2010 23:21:42 -0500
> To: twisted-python at twistedmatrix.com
> Subject: Re: [Twisted-Python] wxReactor Issues
>
> On Sat, 2010-11-13 at 19:56 -0800, RSGames Support wrote:
>> if wxreactor.WxReactor.callFromThread is not None:
>> oldStop = wxreactor.WxReactor.stop
>> def stopFromThread(self):
>> reactor.callFromThread(oldStop)
>> wxreactor.WxReactor.stop = stopFromThread
>
> Did you try the patch?
____________________________________________________________
Send any screenshot to your friends in seconds...
Works in all emails, instant messengers, blogs, forums and social networks.
TRY IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if2 for FREE
More information about the Twisted-Python
mailing list