diff --git a/wx/lib/intctrl.py b/wx/lib/intctrl.py index 7be5f173..a4c24794 100644 --- a/wx/lib/intctrl.py +++ b/wx/lib/intctrl.py @@ -848,7 +848,7 @@ class IntCtrl(wx.TextCtrl): # So, to ensure consistency and to prevent spurious ValueErrors, # we make the following test, and react accordingly: # - if value == '': + if value == '' or value == '-': if not self.IsNoneAllowed(): return 0 else: