[wxPython-users] Re: PyValidator and floats, howto?

Werner F. Bruhin werner.bruhin at free.fr
Sat Jan 20 02:24:28 PST 2007


Hi Basil,

Basil Shubin wrote:
> Werner F. Bruhin wrote:
>> Hi Basil,
>>
>> I don't want to insist, but why don't you used just the 
>> wx.lib.masked.numctrl or wx.lib.masked.textctrl with an appropriate 
>> mask?
>
> Thank for suggestion, but I don't like very much masked controls 
> behavior. It's looks very good for phone number, but for floats... 
> First, is dot sign - I have it!
I am not sure I understand, do you want a ',' instead of '.'?  If yes, 
look at DecimalChar and GroupChar property.
> Second, is that I can move input cursor forward and back, while field 
> is empty.
I don't know if this can be changed.  I most set SelectOnEntry to True, 
so when you move into the control you can then type the value.

Werner





More information about the wxpython-users mailing list