I'm forwarding the email to the mailing list for a couple of reasons, explained below :)
2011/9/26 <jialrs_...@126.com> > Yes, I just change to > X-KDE-ServiceTypes=Plasma/PopupApplet > and it works well . so thank you very much . > This is great, you should've told this in the ml in the first place; in this way, other people with your same issue will find out how to solve that problem (reason #1) ;) > but i still confuse that how the python applet works and why not use the > PopupApplet > class directly as we do in cpp ? it make me crazy . > Here we go with reason #2: I'm not a PyKDE guru, so you'd have better luck if you asked in the mailing list. Imho, the reason is because writing a plasmoid with python (or whatever else scripted language) must be easier than doing it with cpp. You simply change "X-KDE-ServiceTypes" entry from "Plasma/Applet" to "Plasma/PopupApplet" and bang!, you get a bunch of new properties and methods to deal with a PopupApplet, instead of the more complex code you would need to write with cpp in order to achieve the same result. > and what's more , i find no documents > about Plasma.plasmascript at all .What is its type ? Applet? PopupApplet > ? or even appletscript ? > that is so confusing. > I don't think you really need to know what plasmascript is, however here it is the link [1]. Perhaps your confusion comes from the "lack" of documentation about python bindings ... Actually those docs do exist, are extremely detailed and very well made but, unfortunately, they are not as visible as their qml/javascript counterparts. You can have a look here [2] (of course change branch according to the KDE version you are running in your pc) . Good luck with your applet, and have fun :) Cheers, Diego > --邮件发自网易手机邮-- P.S: and you _really_ are a lucky guy, because google put your email in my spam folder, and I would never noticed it if I didn't pressed by mistake the Spam button instead of the Draft one (reason #3) xD [1] https://projects.kde.org/projects/kde/kde-workspace/repository/revisions/master/entry/plasma/generic/scriptengines/python/plasmascript.py [2] https://projects.kde.org/projects/kde/kdebindings/pykde4/repository/revisions/master/show/docs/html/plasma -- H: Who is Watson without Sherlock Holmes? G: Watson was a genius in his own right. My personal blog: http://polentino911.wordpress.com/
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<