Number only field

Hi there, I'm sorry I've only just begun to use wxPython with Boa
constructor so this is probably a very newbie question, but is it
possible to require the user to only enter numbers into a field? As
in keyboard buttons other than numbers don't work at all (preferable)
or an error message pops up if a letter is put in it (actually I think
I can do that already using a "TextCtrlEvent" but it wouldn't be as
elegant)

Thanks a lot,
Alex

Hi,

ยทยทยท

On Fri, Jan 22, 2010 at 11:26 AM, Alex S <schmitt.happens@gmail.com> wrote:

Hi there, I'm sorry I've only just begun to use wxPython with Boa
constructor so this is probably a very newbie question, but is it
possible to require the user to only enter numbers into a field? As
in keyboard buttons other than numbers don't work at all (preferable)
or an error message pops up if a letter is put in it (actually I think
I can do that already using a "TextCtrlEvent" but it wouldn't be as
elegant)

See the: IntCtrl and/or Validators sample in the wxPython Demo application

Cody