RE: [Twisted-Python] Re: Local IP and factory shutdown
![](https://secure.gravatar.com/avatar/6c74cae747873f7a66afe1835031281b.jpg?s=120&d=mm&r=g)
Thanks for the tip, I have tried such a method myself and it does seem to work with GUI focused apps. Unfortunately in my particular case the app has tight timing requirements due to multiple RTP instances each with a period of 30ms which wxTimer cannot meet. Mandeep
![](https://secure.gravatar.com/avatar/2c498e6b589e4a4318a8280da536fb36.jpg?s=120&d=mm&r=g)
"Gill, Mandeep" <mandeep.gill@imperial.ac.uk> writes:
I'd probably give a shot then at either including an IDLE event handler to iterate the reactor as well (if you keep requesting it be recalled, then it should iterate fairly close to constant time when no GUI operations are occurring), or putting the wx loop in an independent thread (as mentioned elsewhere). The thread approach might work really well but will require that you control the information flow - but expect a combination of wxPostEvent for reactor->wx and callFromThread for wx->reactor paths should work. -- David
![](https://secure.gravatar.com/avatar/2c498e6b589e4a4318a8280da536fb36.jpg?s=120&d=mm&r=g)
"Gill, Mandeep" <mandeep.gill@imperial.ac.uk> writes:
I'd probably give a shot then at either including an IDLE event handler to iterate the reactor as well (if you keep requesting it be recalled, then it should iterate fairly close to constant time when no GUI operations are occurring), or putting the wx loop in an independent thread (as mentioned elsewhere). The thread approach might work really well but will require that you control the information flow - but expect a combination of wxPostEvent for reactor->wx and callFromThread for wx->reactor paths should work. -- David
participants (2)
-
David Bolen
-
Gill, Mandeep