Whoops, didn't realize I took this conversation off the mailing list.

So, does this mean it is not possible then to have a validator in Python2
fix the string?

On Sat, Aug 14, 2010 at 7:12 AM, Phil Thompson
<[email protected]>wrote:

> On Fri, 6 Aug 2010 14:57:45 -0400, Eric Frederich
> <[email protected]> wrote:
> > The help only lists the (QVlidator.State, int)... it does not list the
> one
> > that returns a new string.
> > Does this mean it is not possible?
> >
> > I get the same docstring for QValidator.validate when I call
> > sip.setapi('QString', 1) or sip.setapi('QString', 2)
> >
> > This is what I get....
> >
> > Help on built-in function validate:
> >
> > validate(...)
> >     QValidator.validate(QString, int) -> (QValidator.State, int)
>
> The docstring doesn't get changed when you set the API version. It is
> correct for the default API for the particular version of Python you are
> using (v1 for Python2 and v2 for Python3).
>
> Phil
>
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to