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
[EMAIL PROTECTED]       | http://www.simonzone.com/software/
Nijmegen, The Netherlands | "ZooTV? You made the right choice."

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to