Re: [PyQt] QValidator.validate encore

2012-09-29 Thread Phil Thompson
On Sat, 29 Sep 2012 08:24:13 -0700, David Cortesi wrote: >> >> The API is different for different versions of the QString API. >> Phil >> > > Sorry, I'm using Python 2.7 and PyQt4 (4.8.3). > > Looking around the Riverbank docs starting at the top level I find this > link: > > > http://www.rive

Re: [PyQt] QValidator.validate encore

2012-09-29 Thread David Cortesi
> > The API is different for different versions of the QString API. > Phil > Sorry, I'm using Python 2.7 and PyQt4 (4.8.3). Looking around the Riverbank docs starting at the top level I find this link: http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/python_v3.html#qvalidator which s

Re: [PyQt] QValidator.validate encore

2012-09-29 Thread Phil Thompson
On Fri, 28 Sep 2012 16:27:52 -0700, David Cortesi wrote: > I have set up a QValidator whose validate method consists of: > > def validate(self, qs, pos) : > return (QValidator.Acceptable, qs, pos) > > and this still gets TypeError: invalid result type from > findRepValidator.validate

[PyQt] QValidator.validate encore

2012-09-28 Thread David Cortesi
I have set up a QValidator whose validate method consists of: def validate(self, qs, pos) : return (QValidator.Acceptable, qs, pos) and this still gets TypeError: invalid result type from findRepValidator.validate() Very puzzling. ___ PyQt