Summary: | Python PopupApplet doesn't popup when in a panel | ||
---|---|---|---|
Product: | [Unmaintained] bindings | Reporter: | Thomas Tanghus <thomas> |
Component: | general | Assignee: | kde-bindings |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | lamefun.x0r |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
A minimal test case Plasma Widget
A working example of a Python PopupApplet |
BTW: I'm using KDE SC 4.4.5 but it is not selectable in the dropdown list. After a lot of searching i finally found a working Python Plasmoid. metadata.desktop needs to have the following line: ServiceTypes=Plasma/Applet,Plasma/PopupApplet I'll attach a working (as of KDE SC 4.5.1) example Created attachment 52700 [details]
A working example of a Python PopupApplet
This bug does affect me, on KDE 4.5.5 Have to call self.setGraphicsWidget twice to get my applet working. Overloading function: def graphicsWidget(self): return self._widget doesn't work at all. Can you attach a package with your Plasmoid? Then I'll have a look at it. |
Created attachment 49155 [details] A minimal test case Plasma Widget Version: unspecified (using KDE 4.4.4) OS: Linux I have tried to create a Python based PopupApplet for the last ~6 months to no avail. I have attached a minimal test case. When added to the panel it shows up fine with the correct icon. When added to the desktop it also works as supposed and shows the correct QGraphicsWidget. The peculiar thing is that if I first add it to the desktop and then drag it to the panel it works as expected and the QGraphicsWidget pops up when you click on the icon. It's like some signal/slot doesn't get connected or whatever. This is the wish I get the most from the users of my Plasmoids and I have tried everything I can think of to get it to work, I have read the source code for the libraries and for the bindings and I have asked on the kde-bindings and plasma-devel mailing lists. Reproducible: Always Steps to Reproduce: Install the attached plasmoid package. Add the "Python PopupApplet" Widget to the panel. Click on the icon. Actual Results: Nothing happens. Expected Results: The QGraphicsWidget should pop up. When first added to the desktop and the dragged to the panel it works OK.