From 5da1fd2d89f4b0f3b02de3a298d2fdc570f0a502 Mon Sep 17 00:00:00 2001 From: Eric Poulsen Date: Sat, 5 Dec 2020 16:17:37 -0800 Subject: [PATCH] fix for negative number entry --- wx/lib/intctrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: