Re: Python plasmoid - can't read value from config

2012-04-10 Thread Alex Dancu
On 04/10/2012 04:18 PM, Aaron J. Seigo wrote: On Monday, April 9, 2012 22:01:08 Alex Dancu wrote: I'm trying to persist and then get back from the configuration the plasmoid settings. I have tried to persist first a single String property with no success at all in getting it back. I tri

Python plasmoid - can't read value from config

2012-04-09 Thread Alex Dancu
Hi, I have this problem with a python plasmoid. I'm trying to persist and then get back from the configuration the plasmoid settings. I have tried to persist first a single String property with no success at all in getting it back. I tried to cast - config.readEntry(QString('k123sensors')) b

Re: Python plasmoid works in plasmoidviewer but not in Plasma

2012-04-01 Thread Alex Dancu
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:

Python plasmoid works in plasmoidviewer but not in Plasma

2012-03-31 Thread Alex Dancu
Hi, I'm trying to write a plasmoid which displays lmsensors information using the systemmonitor dataengine, and I have this issue. Since I don't know the available sensors name, I connect the sourceAdded() signal of the dataengine to a slot called addSource() where I actually call connectToSo