[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Python plasmoid works in plasmoidviewer but not in Plasma
From: Alex Dancu <alex.dancu () gmail ! com>
Date: 2012-04-01 14:58:31
Message-ID: 4F786D17.9020601 () gmail ! com
[Download RAW message or body]
Thanks, it worked.
Is there a variable or something that I can check at runtime to see if
my plasmoid is running in plasmoidviewer or not?
if in_plasmoidviewer:
self.connect(self.lmSensorsEngine, SIGNAL('sourceAdded(const
QString &)'), self, SLOT('addSource(const QString &)'))
else:
for sourceName in self.lmSensorsEngine.sources():
self.addSource(sourceName)
Thanks,
Alex
On 03/31/2012 09:45 PM, Shaun Reich wrote:
> because when it's in plasma-desktop, all of the sources are already
> created. but in plasmoidviewer, it's starting everything from scratch.
> i'm guessing that's the problem, so you just need to iterate over
> dataengine::sources() on init.
>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic