[PATCH] Support for PopupApplets in Python

Richard Dale richard.j.dale at gmail.com
Sat Feb 27 13:59:11 CET 2010


On Sat, Feb 27, 2010 at 11:33 AM, Luca Beltrame
<einar at heavensinferno.net> wrote:
> In data sabato 27 febbraio 2010 12:20:37, Simon Edwards ha scritto:
>
>> Luca, do you have a simple example of a PopupApplet that I can look at
>> and test with?
>
> You hit the nail on the head here. The fact is, I can't, as discussed with
> Richard Dale on IRC. I tried, looking at the code of the various applets (each
> seems to do things in a slightly different way) to make a popup, but it
> doesn't seem to work: however, since there is no simple example of a
> popupapplet around I'm unsure if it's the binding to have problems or if I'm
> doing something wrong.
For Ruby I translated the C++ extender tutorial example, but the
problem is that it doesn't work in C++.

http://techbase.kde.org/Development/Tutorials/Plasma/UsingExtenders

I think the name of the data engine that the example uses has changed.
Also the instructions on the CMakeLists.txt content weren't present,
and they should be in a tutorial.

I also don't understand if Plasma::PopupApplet always use extenders,
as in the above tutorial, or whether you normally do something else.
It isn't called a 'Plasma Popup Applet tutorial'.

The ruby example code is in kdeexamples/plasma/ruby/applets/extendertutorial

If it worked it would be quite easy to translate to Python.

-- Richard


More information about the Plasma-devel mailing list