[PyKDE] PyKDE Bug

Jim Bublitz jbublitz at nwinternet.com
Thu Jun 6 20:45:01 BST 2002


In KLineEditDlg in PyKDE the static method 'getText' does not
work correctly - it generates a runtime error under some
circumstances. I'm not sure of the exact problem, but it's in
handwritten code for this method (which should return a tuple of
QString and int). This applies to all PyKDE/KDE versions.

The workaround is to instantiate KLineEditDlg, run it with
exec_loop, retrieve the button pressed from exec_loop's return
value, and retrieve the text entered using the KLineEditDlg 'text'
method. The tuple 'getText' returns contains both values, and
'getText' does the exec automatically, with no need to instantiate
KLineEditDlg (or would if it worked).

This will be fixed in the next PyKDE release.

Jim




More information about the PyQt mailing list