[PyKDE] QInputDialog bug?

Phil Thompson phil at river-bank.demon.co.uk
Wed May 15 10:39:01 BST 2002


Doug Bell wrote:
> 
> 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.

It's a bug. v3.2.4 will be released fairly soon.

Phil




More information about the PyQt mailing list