[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Problems about plasmoid's destroy event
From: Luca Beltrame <einar () heavensinferno ! net>
Date: 2011-02-26 9:49:24
Message-ID: 20110226094952.A36311B4058 () homiemail-a28 ! g ! dreamhost ! com
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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.
["signature.asc" (application/pgp-signature)]
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic