[PyQt] [PyKDE] KConfigSkeleton/KConfigDialog combo not working
Adeodato Simó
dato at net.com.org.es
Thu Mar 27 15:32:02 GMT 2008
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,
--
Adeodato Simó dato at net.com.org.es
Debian Developer adeodato at debian.org
- Oh! Uh, congratulations.
- For what?
- You know, your thing tomorrow, renewing your vows.
- You congratulate the groom. You offer the bride best wishes.
-- Luke and Emily
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 2353 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080327/f67f425e/test.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testui.py
Type: text/x-python
Size: 1088 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080327/f67f425e/testui.py
-------------- next part --------------
<ui version="4.0" >
<class>Dialog</class>
<widget class="QDialog" name="Dialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QCheckBox" name="kcfg_MyOption" >
<property name="text" >
<string>Option</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
More information about the PyQt
mailing list