[wxPython-users] Re: Custom validator
Paul Koning
pkoning at equallogic.com
Tue Jan 2 14:30:37 PST 2007
>>>>> "Josiah" == Josiah Carlson <jcarlson at uci.edu> writes:
Josiah> Almost. If you use that regular expression, then a user who
Josiah> planned on writing '.5' wouldn't be able to type the leading
Josiah> '.'. One could use r'^(\d*\.\d*)$' with some post-processing
Josiah> afterwards to make it so that an empty entry or just a plain
Josiah> '.' turns into a zero.
Or r'^(\.\d+\|\d+\.\d*\)' -- that way dot alone is disallowed
directly.
paul
More information about the wxpython-users
mailing list