Re: [PyQt] Re: [PyKDE] KConfigSkeleton/KConfigDialog combo not working

2008-04-05 Thread Adeodato Simó
* Jim Bublitz [Fri, 28 Mar 2008 09:17:25 -0800]:

 I'm still looking into this - it doesn't look like it's going to fixed 
 quickly. Just thought I'd let you know.

Ok, I'll wait. :)

-- 
Adeodato Simó dato at net.com.org.es
Debian Developer  adeodato at debian.org
 
— Oh, George, you didn't jump into the river. How sensible of you! 
-- Mrs Banks in “Mary Poppins”

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Re: [PyKDE] KConfigSkeleton/KConfigDialog combo not working

2008-04-03 Thread Jim Bublitz
On Thursday 27 March 2008 08:32, Adeodato Simó wrote:
 Hello.

 I'm having trouble porting my PyKDE3 KConfigSkeleton/KConfigDialog: it
 behaves weird in KDE4.

 I'm attaching a very small sample program. The weird behavior I'm
 observing is:

   (a) on the first run, when no testrc file exists under ~/.kde, the
   value of MyOption is correctly set to False, but when I click on
   the Preferences button, the checkbox is checked (instead of not
   checked, at it'd correspond)

   (b) so I change in the dialog the value to True, when closing the
   dialog the LineEdit updates accordingly, and the option is written
   as true to the testrc file, but when I restart the program, it
   is set to False again

 Can you reproduce? Is there something wrong with my code? (With KDE 3 it
 worked just fine).

I'm still looking into this - it doesn't look like it's going to fixed 
quickly. Just thought I'd let you know.

Jim


___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Re: [PyKDE] KConfigSkeleton/KConfigDialog combo not working

2008-04-03 Thread Jim Bublitz
On Thursday 27 March 2008 08:32, Adeodato Simó wrote:
 Hello.

 I'm having trouble porting my PyKDE3 KConfigSkeleton/KConfigDialog: it
 behaves weird in KDE4.

 I'm attaching a very small sample program. The weird behavior I'm
 observing is:

   (a) on the first run, when no testrc file exists under ~/.kde, the
   value of MyOption is correctly set to False, but when I click on
   the Preferences button, the checkbox is checked (instead of not
   checked, at it'd correspond)

   (b) so I change in the dialog the value to True, when closing the
   dialog the LineEdit updates accordingly, and the option is written
   as true to the testrc file, but when I restart the program, it
   is set to False again

 Can you reproduce? Is there something wrong with my code? (With KDE 3 it
 worked just fine).

Progress report: 

OK - I figured out what's wrong. Now I have to figure out how I want to fix it 
permanently (affects most of the KConfigSkeletonItem subclasses - Item*)

I should have a new release up sometime next week.

Jim

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Re: [PyKDE] KConfigSkeleton/KConfigDialog combo not working

2008-04-03 Thread Adeodato Simó
* Jim Bublitz [Fri, 28 Mar 2008 15:56:25 -0800]:

 OK - I figured out what's wrong. Now I have to figure out how I want to fix 
 it 
 permanently (affects most of the KConfigSkeletonItem subclasses - Item*)

 I should have a new release up sometime next week.

Ooh, these are excellent news, thanks!

Cheers,

-- 
Adeodato Simó dato at net.com.org.es
Debian Developer  adeodato at debian.org
 
Education is what remains after one has forgotten everything he learned in
school.
-- Albert Einstein

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Re: [PyKDE] KConfigSkeleton/KConfigDialog combo not working

2008-03-27 Thread Jim Bublitz
On Thursday 27 March 2008 08:32, Adeodato Simó wrote:
 Hello.

 I'm having trouble porting my PyKDE3 KConfigSkeleton/KConfigDialog: it
 behaves weird in KDE4.

 I'm attaching a very small sample program. The weird behavior I'm
 observing is:

   (a) on the first run, when no testrc file exists under ~/.kde, the
   value of MyOption is correctly set to False, but when I click on
   the Preferences button, the checkbox is checked (instead of not
   checked, at it'd correspond)

   (b) so I change in the dialog the value to True, when closing the
   dialog the LineEdit updates accordingly, and the option is written
   as true to the testrc file, but when I restart the program, it
   is set to False again

 Can you reproduce? Is there something wrong with my code? (With KDE 3 it
 worked just fine).

 Thanks in advance,

If you add some print statements you can see what's happening, but not why - 
haven't figured that out yet.

In Preferences.__init__(), the value is False after both the addItemBool and 
readConfig() calls. But on return from the Preferences() call in the main 
window __init__, the value is True. Obviously , that's not right.

Otherwise, I'm still looking into it.

Jim

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt