Implement method which gathers values across control panel boxes

This commit is contained in:
DarkPhoenix
2019-06-26 16:50:54 +03:00
parent ee4a1f936b
commit 22ca78cb68
3 changed files with 28 additions and 7 deletions

View File

@@ -18,10 +18,10 @@
# =============================================================================
import wx
import re
import wx
def valToStr(val):
if val is None:
@@ -83,7 +83,7 @@ class RangeBox(wx.TextCtrl):
if currentValue == self._storedValue:
event.Skip()
return
if currentValue == '' or re.match('^\d*\.?\d*\-?\d*\.?\d*$', currentValue):
if currentValue == '' or re.match('^\d*\.?\d*-?\d*\.?\d*$', currentValue):
self._storedValue = currentValue
event.Skip()
else: