[Twisted-Python] Re: [twisted+wxPython] widgets do not work?
Josh Ritter
jritter at bektel.com
Tue Oct 12 16:37:06 EDT 2004
I recently posted about this... while the code I presented allowed the
application to create it's controls, I was still having problems...
I switched to this and haven't had a problem since:
class MoMWorldServer(wx.App):
def OnInit(self):
#snip
reactor.startRunning()
wx.EVT_TIMER(self,999999,self.OnTimer)
self.timer=wx.Timer(self,999999)
self.timer.Start(250,False)
return True
def OnTimer(self,event):
reactor.runUntilCurrent()
reactor.doIteration(0)
-Josh Ritter
Technical Director
http://www.prairiegames.com
----- Original Message -----
From: <exarkun at divmod.com>
To: <python-list at python.org>; <twisted-python at twistedmatrix.com>
Sent: Tuesday, October 12, 2004 3:19 PM
Subject: [Twisted-Python] Re: [twisted+wxPython] widgets do not work?
> On Tue, 12 Oct 2004 19:58:38 +0200, Taki Jeden <bartekgorny at interia.pl>
wrote:
> >
> > Hi
> >
> > Anybody used wxPython with twisted?
> >
> > I started putting together a Twisted-based app with wx GUI, and the
widgets
> > just don't work - some controls do not show up etc. - at least on my
> > system.
> >
> > For example, if I just take the wxdemo.py shipped with Twisted, and add
to
> > it a static text, it doesn't show - while if I change
> > reactor.registerWxApp(app)
> > reactor.run(0)
> > into
> > app.MainLoop(0)
> > the text is there. What the heck is wrong with this? Or am I doing
something
> > wrong? Does the same work at yours?
> >
> > Bartek
> >
>
> There are several known problems with Twisted/wxPython integration, but
this doesn't sound like one of them. Could you include your modified
wxdemo.py?
>
> Jp
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
More information about the Twisted-Python
mailing list