Python plasmoid - can't read value from config

Alex Dancu alex.dancu at gmail.com
Tue Apr 10 19:48:37 UTC 2012


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 tried to cast -
>> config.readEntry(QString('k123sensors')) but still no success.
> if you are calling readConfig from the constructor, it won't work. you can only
> access your config reliably after init() is called on the applet.
>
> furthermore, if you are running it in plasmoidviewer, then the configuration
> that is loaded is the default empty one and then the saved config is loaded.
> this helps test configChanged(), which i'm guessing you haven't implemented in
> your applet. without configChanged(), your applet will not work with desktop
> scripting, for instance.
>
>
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
Thank you very much, this explain the mystery.

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120410/f0c567c9/attachment.html>


More information about the Plasma-devel mailing list