Custom validator

Basil Shubin bashu at yandex.ru
Tue Jan 2 07:46:07 PST 2007


Hi,

Phil Mayes пишет:
> 
> Try:
> FLOAT = r'\d+\.\d+$'

Not exactly what it should be. The problem is that I want check all 
input char and 'allow' only digits, but all digits should fit the regex 
pattern. For checking where is pressed key correspond the digits, is to 
bind on wx.EVT_CHAR and than check if key is digit (it's showed in 
wxPython validator example). But I don't know how I can check the entire 
inputed string, so it fits regex pattern.

-- 
Basil Shubin
Freelance Software Developer
http://bashu.wordpress.com





More information about the wxpython-users mailing list