[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Python plasmoid - can't read value from config
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2012-04-10 13:18:13
Message-ID: 4524143.l1dk1mROHZ () freedom
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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.

-- 
Aaron J. Seigo
["signature.asc" (application/pgp-signature)]

_______________________________________________
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