[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Using KWinModule produces Error
From: Simon Edwards <simon () simonzone ! com>
Date: 2004-07-22 13:45:35
Message-ID: 200407221545.35850.simon () simonzone ! com
[Download RAW message or body]
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@simonzone.com | http://www.simonzone.com/software/
Nijmegen, The Netherlands | "ZooTV? You made the right choice."
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic