[Kde-bindings] [Bug 202601] Plasma.PopupApplet not available in python plasmoid
Thomas Olsen
tanghus at gmail.com
Sat Dec 4 14:37:09 UTC 2010
https://bugs.kde.org/show_bug.cgi?id=202601
Thomas Olsen <tanghus at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tanghus at gmail.com
--- Comment #1 from Thomas Olsen <tanghus gmail com> 2010-12-04 15:36:53 ---
This works from 4.5 if you put:
ServiceTypes=Plasma/Applet,Plasma/PopupApplet
in metadata.desktop and just construct the Applet as a normal Applet:
from PyKDE4.plasmascript import Applet
class MyPopupApplet(Applet):
def __init__(self,parent,args=None):
Applet.__init__(self, parent)
def init(self):
self._widget = MyMopupWidget(self) # Some QGraphicsWidget derivative
self.setGraphicsWidget(self._widget)
self.setPopupIcon("my-icon")
self.setGraphicsWidget(self._widget) # for some reason it only works when
called twice.
So this should be marked as (almost) fixed and closed.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kde-bindings
mailing list