[Twisted-Python] Twisted and Qt

Jp Calderone exarkun at divmod.com
Thu Aug 4 10:12:57 EDT 2005

On Thu, 04 Aug 2005 06:58:44 -0700, Tom Brown <tom at thebrownboys.net> wrote:
>I am trying to write yet another internet based chess game. I am writing
>the client gui using Qt. When reactor.run() is called in the client,
>there is communication with the server. However, the main window is
>never shown. A code snippet is given below. I followed the qtdemo.py
>example. What am I missing?
>from qt import *
>from twisted.internet.qtreactor import install


>from twisted.internet import reactor, protocol
>from mainwindowimpl import MainWindowImpl
> [snip]

If you don't install the qt reactor, when you import twisted.internet.reactor, the default reactor will be used.


More information about the Twisted-Python mailing list