I have found a possible solution at Formatting wx.TextCtrl with numeric values only - float precision
But I am not able to use it in my program.
I used the hea