[PyKDE] Using KWinModule produces Error
Simon Edwards
simon at simonzone.com
Thu Jul 22 15:45:01 BST 2004
Hi,
On Thursday 22 July 2004 10:04, Martin Kügler wrote:
> I am a long time python programmer but new with KDE. Lately I installed
> SIP, PyQT and PyKDE on my Mandrake 9.2 System with Python version 2.3 (#2,
> Aug 31 2003, 17:27:29) and everything worked fine and the first examples
> work great - I really appreciate this QT an KDE bindings!
> however when I try to do the following:
>
> import sys
> from qt import *
> from kdecore import KWinModule
> app=QApplication(sys.argv)
> mod=KWinModule()
In KDE you need a KApplication object instead of a QApplication object.
KCmdLineArgs.init(sys.argv,aboutdata)
kapp = KApplication()
Try that first.
cheers,
--
Simon Edwards | Guarddog Firewall
simon at simonzone.com | http://www.simonzone.com/software/
Nijmegen, The Netherlands | "ZooTV? You made the right choice."
More information about the PyQt
mailing list