Adeodato Simó wrote:
Hello, any news about this?
This works. (see attachment).
cheers,
--
Simon Edwards | KDE-NL, Guidance tools, Guarddog Firewall
[EMAIL PROTECTED] | http://www.simonzone.com/software/
Nijmegen, The Netherlands | "ZooTV? You made the right choice."
#! /usr/bin/env python
"""Using KConfig crashes the application."""
import sys
from PyKDE4 import kdeui, kdecore
class MainWindow(kdeui.KMainWindow):
def __init__ (self, *args):
kdeui.KMainWindow.__init__(self, *args)
config = kapp.sessionConfig()
config.group('Foo').writeEntry('a', 'b')
print '=== syncing now ===' # not reached
config.sync()
def main():
global kapp
kdecore.KCmdLineArgs.init(sys.argv, 'test', '', kdecore.ki18n('test'), '1.0')
kapp = kdeui.KApplication()
main_window = MainWindow()
main_window.show()
kapp.exec_()
if __name__ == '__main__':
main()
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt