Started with TextCtrl, and of course it allows any text. So I started looking to using a wx.Validator, but the OnChar only seems to work in Dialogs. So I went looking for something already created -- surely other people need to make apps that take numbers, right?
So I found IntCtrl, and immediately found a bug: If you start to type a negative number, you can't continue entering the number. So I filed a PR: https://github.com/wxWidgets/Phoenix/pull/1868
Get a little further along, and I realize some of my fields are floats, so I again go looking for something and find masked.NumCtrl, and I immediately find that if you delete the selected text -- you guessed it -- you can't enter a number anymore.
What I need (essentially) is:
- Enter only numbers
- Numbers are limited to a range
- Some of my fields will be floating point
I'm using Phoenix wxPython-4.1.1