[PyKDE] Extra args in KDialogBase.slotOk, slotCancel

Troy Melhase troy at gci.net
Thu May 13 09:41:01 BST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Folks:

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 
pykde-3.8.

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 
this one:

	1.086013601453286e-269

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:

	Linux 2.6.5
	Qt 3.3.0
	KDE 3.2.2
	Python 2.3.3
	SIP 4.0 (snapshot-20040510-SIP4-201)
	PyQt 3.11
	PyKDE 3.11rc1

- -- 
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)

iD8DBQFAoyegY7QSTRCBoM4RAiAtAJ4h48QvkX4rAgAd/PA4hm4HlFza6QCgknNZ
ng05Am34Ma++lU+AlCaW31U=
=8I1l
-----END PGP SIGNATURE-----




More information about the PyQt mailing list