[Kde-pim] Python object that match or binding Settings object

Kevin Krammer kevin.krammer at gmx.at
Fri Aug 19 08:51:17 BST 2011


On Friday, 2011-08-19, Mario Santagiuliana wrote:
> In data 19/8/2011 09:11:46, Kevin Krammer ha scritto:
> > One thing that looks wrong is the second parameter to addItemInt().
> > This  should be a reference to a variable or class member, just like in
> > addItemString().
> 
> It should be ok, the documentation report an integer value to pass:
> http://api.kde.org/pykde-4.5-api/kdecore/KCoreConfigSkeleton.html#addItemInt

An integer variable, a reference to an object, not a literal.
This is were any value will be stored, I am not sure whether Python allows to 
change the value of 0 or whether one would want that if it were possible,

In C++ that parameter is an int& (integer reference) so the compiler would not 
even allow to pass a literal there.

> > You could try a subclass of the skeleton like in the article.
> 
> I try it but the result is the same, there is not creation of a file
> configuration...

Maybe it needs setCurrentGroup?

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20110819/fb65c32c/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list