[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] dbus and PyKDE
From:       Jim Bublitz <jbublitz () nwinternet ! com>
Date:       2008-04-08 16:52:00
Message-ID: 200804080952.01404.jbublitz () nwinternet ! com
[Download RAW message or body]

> KStandardAction doesn't seem to have the necessary c++ slot to python
> slot changes needed, this app doesn't work
> http://kubuntu.org/~jriddell/tmp/kapplication.py

KStandardAction.close(self, self.hideMainWindow, self.actionCollection())

Try

KStandardAction.close(self.hideMainWindow, self.actionCollection())

PyKDE and PyQt slot specifications only specify the slot method or function, 
not the slot's owner (first 'self') and method (self.hideMainWindow). 
Otherwise, if you were using the Qt syntax, the slot name would be a char *, 
not a method address.

The close() method is included in KStandardAction inPyKDE (see 
sip/.kdeui/kstandardaction.sip).

Jim
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic