You can use NumCtrl from wx.lib.masked.
example
example
import wx from wx.lib.masked import NumCtrl class Form: def __init__(self, *args, **kwargs): self.frame = wx.Frame(*args, **kwargs) self.panel = wx.Panel(self.frame) self.numctrl = NumCtrl(self.panel) if __name__ == '__main__': app = wx.App() hform = Form(None, title='Number Control') hform.frame.Show() app.MainLoop()
99 percent of computer problems exists between chair and keyboard.