[PATCH] Support for PopupApplets in Python

Petri Damstén petri.damsten at gmail.com
Sat Feb 27 15:13:23 CET 2010


On Saturday 27 February 2010 14:59:11 Richard Dale wrote:
> 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.

Python popup applet with extenders:
http://websvn.kde.org/trunk/KDE/kdeexamples/plasma/python/applets/pyhello/

Needs hello dataengine:
http://websvn.kde.org/trunk/KDE/kdeexamples/plasma/python/dataengines/pyhello/

Petri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100227/fcc566ef/attachment.sig 


More information about the Plasma-devel mailing list