From kde-panel-devel Sat Feb 26 09:49:24 2011 From: Luca Beltrame Date: Sat, 26 Feb 2011 09:49:24 +0000 To: kde-panel-devel Subject: Re: Problems about plasmoid's destroy event Message-Id: <20110226094952.A36311B4058 () homiemail-a28 ! g ! dreamhost ! com> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=129871384930336 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0278516425==" --===============0278516425== Content-Type: multipart/signed; boundary="nextPart2339156.x1AWpBYbFj"; micalg="pgp-sha256"; protocol="application/pgp-signature" Content-Transfer-Encoding: 7Bit --nextPart2339156.x1AWpBYbFj Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" In data sabato 26 febbraio 2011 10:38:11, Kun Zhang ha scritto: > Apologies. I found the correct signal signature should be in C++ style, > despite that I'm using python. This signal connection works: > > connect(applet, SIGNAL("appletDestroyed(Plasma::Applet*)"), self.onDestroy) To save yourself some headaches in the future, I'd suggest always using the new-style signal and slot connections API when doing Plasma (or KDE) stuff in Python. Thus, the above line should become applet.appletDestroyed.connect(self.onDestroy) This will avoid issues due to wrong signature names. --nextPart2339156.x1AWpBYbFj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iQIcBAABCAAGBQJNaMyqAAoJEAE/pQtuGk55ox4P/3GRgDYi6DEw33j7x9P9Z1DL IvrxIzpEBwFVlDCiZMelrqPUcqAOh8/UpjCWgnHTjksZv3T6vI3JDRc9fh1f7Ero El1T/TuJYZ8jdeM157BLgqhCBsKLH2xQNCTJagE9+CcrLtY+ETbUSciNsg7pTdsn W48P4Y9ACsjFtOh7+lbwLv++iYcY5TGhOpp2Jqo0+4DFXUR7243p3LoyqxO7uFee AEeDklLrEUT3jEGfrKyk+yvRgA2FCYFcHGelZqGAWMCt8sFxIl2vxjtvYJVFGl8S vEziWji/U5XFCCXnBRo4VaetcaR5ttdykIe1/r1V1OM+G55EJwDIo/CJbeAXXUez LXu/RoJie94Ytq9qirQW/m8NiQ+AluTMJHwZRwwJorFB/coybLtZHIXiCrOEjIhO xAPBwD3Io6+invJFfqCJBpWQW3FcPCkNgFDTl/LbgxBcZ4GhgZbockap5MgztcTx 1mUxboYl3/iVIssthUMkopb5Q7Gf3C1Qj6LVeZzsFY+PJlaTz+2D2IZHcGqO0T6g eS2zpXYGab6hxyqOAO9i7DaD7rlWWRLeD1j9svZO8Io9WXBg0iWWpQ8actWQDYxV WL4UuYo0E7dym1WXl0c6bRrga+kAE7v3nUuT5TmhNyMTsLdXmp7AoOabW3qfH/tV 7sPLwC5jDB3nEBOpS2F1 =tg3c -----END PGP SIGNATURE----- --nextPart2339156.x1AWpBYbFj-- --===============0278516425== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============0278516425==--