[Twisted-Python] how to change an qt4 applicaion using twisted?
yangyouxiu
yangyouxiu at gmail.com
Sun Nov 17 03:10:30 MST 2013
Thank you very much.
Is it reasonable to bulid only one protocol to deal with datas tranports between client and server ? If in this way, i believe i have to write lots of case to deal with the message, such as to call differnent method,it's impressive.
Is there any suggestions?
杨有秀
敬上
From: Laurens Van Houtven
Date: 2013-11-17 17:57
To: Twisted general discussion
Subject: Re: [Twisted-Python] how to change an qt4 applicaion using twisted?
Hi yangyouxiu,
Like Twisted, Qt (and almost all GUI toolkits) work on a single thread, evented mechanism, with an event loop at its core. Qt4Reactor, I believe, just merges these two loops into one loop.
The documentation for Qt4Reactor should tell you how to do that. Presumably there's a reactor.install() somewhere :)
good luck
lvh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20131117/f771426c/attachment-0002.html>
More information about the Twisted-Python
mailing list