[Twisted-Python] Twisted and wxPython
Hi, Anyone can give me a sample app skeleton to get two frameworks work together well? Or just give me a link where I can figure out the technical details. Thanks.
from twisted.internet import wxreactor
wxreactor.install()
from twisted.internet import reactor
.....
write your code here
.....
reactor.registerWxApp(app)
reactor.run()
You don't need wx mainloop. The key thing here is to import wxreactor first
and install it and then import reactor. 'app' in the last but one line is
the instance of your wx.App .
On Fri, Aug 28, 2009 at 11:05 AM, 陶艺夫
Hi, Anyone can give me a sample app skeleton to get two frameworks work together well? Or just give me a link where I can figure out the technical details.
Thanks.
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-- Thanks & Regards, Godson Gera http://godson.in
Thanks. I'll try it out.
2009/8/28 Godson Gera
from twisted.internet import wxreactor wxreactor.install() from twisted.internet import reactor
..... write your code here .....
reactor.registerWxApp(app) reactor.run()
You don't need wx mainloop. The key thing here is to import wxreactor first and install it and then import reactor. 'app' in the last but one line is the instance of your wx.App .
On Fri, Aug 28, 2009 at 11:05 AM, 陶艺夫
wrote: Hi, Anyone can give me a sample app skeleton to get two frameworks work together well? Or just give me a link where I can figure out the technical details.
Thanks.
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-- Thanks & Regards, Godson Gera http://godson.in
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
There's also a wxpython example in the twisted subversion repository. See:
http://twistedmatrix.com/trac/browser/trunk/doc/core/examples/wxdemo.py
It follows the basic pattern that Godson provided.
Kevin Horn
2009/8/28 陶艺夫
Thanks. I'll try it out.
2009/8/28 Godson Gera
from twisted.internet import wxreactor
wxreactor.install() from twisted.internet import reactor
..... write your code here .....
reactor.registerWxApp(app) reactor.run()
You don't need wx mainloop. The key thing here is to import wxreactor first and install it and then import reactor. 'app' in the last but one line is the instance of your wx.App .
On Fri, Aug 28, 2009 at 11:05 AM, 陶艺夫
wrote: Hi, Anyone can give me a sample app skeleton to get two frameworks work together well? Or just give me a link where I can figure out the technical details.
Thanks.
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-- Thanks & Regards, Godson Gera http://godson.in
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Thanks, it's absolutely a good sample.
It's grateful that there are so many people helpful out there :)
2009/8/28 Kevin Horn
There's also a wxpython example in the twisted subversion repository. See:
http://twistedmatrix.com/trac/browser/trunk/doc/core/examples/wxdemo.py
It follows the basic pattern that Godson provided.
Kevin Horn
2009/8/28 陶艺夫
Thanks. I'll try it out.
2009/8/28 Godson Gera
from twisted.internet import wxreactor
wxreactor.install() from twisted.internet import reactor
..... write your code here .....
reactor.registerWxApp(app) reactor.run()
You don't need wx mainloop. The key thing here is to import wxreactor first and install it and then import reactor. 'app' in the last but one line is the instance of your wx.App .
On Fri, Aug 28, 2009 at 11:05 AM, 陶艺夫
wrote: Hi, Anyone can give me a sample app skeleton to get two frameworks work together well? Or just give me a link where I can figure out the technical details.
Thanks.
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-- Thanks & Regards, Godson Gera http://godson.in
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (3)
-
Godson Gera
-
Kevin Horn
-
陶艺夫