[PyKDE] QInputDialog bug?

Doug Bell doug101 at xecu.net
Wed May 15 03:46:01 BST 2002


There seems to be a problem with the arguments for the
QInputDialog.getText function using Qt3.  I'm using it as shown:

string, ok = QInputDialog.getText('Caption', 'Enter key words', \
                                  QLineEdit.Normal, '', self)

The fifth argument should be the parent, but I'm getting a TypeError.
The fifth argument in C++ is a boolean ok reference, but it should be
omitted in PyQt.  Or am I missing something?

I'm using PyQt v3.2 with Qt v3.0.4.  I haven't had time yet to compile
and try this with v3.2.2, but I haven't seen anything lately in the cvs
messages about this issue.

Doug.




More information about the PyQt mailing list