[PyKDE] Extra args in KDialogBase.slotOk, slotCancel
troy at gci.net
Thu May 13 09:41:01 BST 2004
-----BEGIN PGP SIGNED MESSAGE-----
I've noticed a strange difference between pykde-3.8 and pykde-3.11rc1. The
methods 'slotOk' and 'slotCancel' on KDialogBase now expect two args: one
for the instance (i.e., self) and another, unnamed argument. Both methods
previously took a single argument, the dialog instance (i.e., self) in
No mention of this extra argument in the sip files, the header files, or the
KDE docs. I don't know if this applies to any other methods in the class
heirarchy; these are just what I've found.
I printed the argument, and it looks like it's a float, usually similar to
Any ideas? Am I missing something basic?
As a work around, I've changed the signatures for these methods in my code to
look like 'def slotOk(self, *args)'. This seems to work, but it doesn't sit
well with me (and pylint rightly complains about the unused argument).
The packages I'm using are:
SIP 4.0 (snapshot-20040510-SIP4-201)
Troy Melhase, troy at gci.net
I am the Christian the Devil warned you about.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the PyQt