Implement method which gathers values across control panel boxes
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user