[PyKDE] QInputDialog.getText and QLineEdit.Password

Phil Thompson phil at river-bank.demon.co.uk
Fri Apr 19 11:18:41 BST 2002


Eli Carter wrote:
> 
> Phil Thompson wrote:
> > Eli Carter wrote:
> >
> >>I found a post on this question here:
> >>http://mats.gmd.de/pipermail/pykde/2001-May/001050.html
> >>
> >>I seem to have the same problem using this:
> >>QInputDialog.getText( 'Sensitive Data', 'Password:', QLineEdit.Password )
> >>I'm getting this:
> >>TypeError: Argument 3 of QInputDialog.getText() has an invalid type
> >>
> >>I'm using python + Qt from RedHat 7.2.  Is that bug present in that
> >>version, or am I doing something wrong?
> >>If it's a bug, is there a work-around I can use?
> >
> >
> > What versions are bundled with RedHat? Are they still on Python 1.5.2?
> >
> > I would have hoped that a bug reported a year ago would have been fixed
> > by now.
> 
> Thanks for the reply. :)
> 
> Python 1.5.2-35 and PyQt 2.4-1
> Hmm.. the build date for PyQt is Jul 2001, so they had a month I guess...
> so it probably is the same problem.  I didn't find an updated rpm for
> RedHat.
> Do you have a workaround (i.e. doesn't require changing the installed
> version)?

The problem (now that I've looked it up) was that one of the getText()
variants was simply missing. So the workaround is not to use that
variant.

Phil





More information about the PyQt mailing list