Problems about plasmoid's destroy event

Luca Beltrame einar at
Sat Feb 26 10:49:24 CET 2011

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


This will avoid issues due to wrong signature names. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : 

More information about the Plasma-devel mailing list