parameters: (self, value=None)
docstring: Returns True if no value is specified and the current value
          of the control falls within the current bounds.  This function can
          also be called with a value to see if that value would fall within
          the current bounds of the given control.
docstring_summary: Returns True if no value is specified and the current value
          of the control falls within the current bounds.  This function can
          also be called with a value to see if that value would fall within
          the current bounds of the given control.
docstring_tokens: Returns True if no value is specified and the current value of the control falls within the current bounds . This function can also be called with a value to see if that value would fall within the current bounds of the given control .
function: def IsInBounds(self, value=None):
          """
          Returns True if no value is specified and the current value
          of the control falls within the current bounds.  This function can
          also be called with a value to see if that value would fall within
          the current bounds of the given control.
          """
  ##        dbg('IsInBounds(%s)' % repr(value), indent=1)
          if value is None:
              value = self.GetValue()
          else:
              try:
                  value = self._GetNumValue(self._toGUI(value))
              except ValueError, e:
  ##                dbg('error getting NumValue(self._toGUI(value)):', e, indent=0)
                  return False
              if value.strip() == '':
                  value = None
              elif self._fractionWidth:
                  value = float(value)
              else:
                  value = long(value)
  
          min = self.GetMin()
          max = self.GetMax()
          if min is None: min = value
          if max is None: max = value
  
          # if bounds set, and value is None, return False
          if value == None and (min is not None or max is not None):
  ##            dbg('finished IsInBounds', indent=0)
              return 0
          else:
  ##            dbg('finished IsInBounds', indent=0)
              return min <= value <= max
function_tokens: def IsInBounds ( self , value = None ) : ##        dbg('IsInBounds(%s)' % repr(value), indent=1) if value is None : value = self . GetValue ( ) else : try : value = self . _GetNumValue ( self . _toGUI ( value ) ) except ValueError , e : ##                dbg('error getting NumValue(self._toGUI(value)):', e, indent=0) return False if value . strip ( ) == '' : value = None elif self . _fractionWidth : value = float ( value ) else : value = long ( value ) min = self . GetMin ( ) max = self . GetMax ( ) if min is None : min = value if max is None : max = value # if bounds set, and value is None, return False if value == None and ( min is not None or max is not None ) : ##            dbg('finished IsInBounds', indent=0) return 0 else : ##            dbg('finished IsInBounds', indent=0) return min <= value <= max