parameters: (self, value=None)
return_statement: return ret
docstring: Returns True if no value is specified and the current value
          of the control falls within the current bounds.  As the clock
          is a "circle", both minimum and maximum bounds must be set for
          a value to ever be considered "out of 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.  As the clock
          is a "circle", both minimum and maximum bounds must be set for
          a value to ever be considered "out of 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 . As the clock is a circle both minimum and maximum bounds must be set for a value to ever be considered out of 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.  As the clock
          is a "circle", both minimum and maximum bounds must be set for
          a value to ever be considered "out of 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.
          """
          if value is not None:
              try:
                  value = self.GetWxDateTime(value)   # try to regularize passed value
              except ValueError:
  ##                dbg('ValueError getting wxDateTime for %s' % repr(value), indent=0)
                  raise
  
  ##        dbg('TimeCtrl::IsInBounds(%s)' % repr(value), indent=1)
          if self.__min is None or self.__max is None:
  ##            dbg(indent=0)
              return True
  
          elif value is None:
              try:
                  value = self.GetWxDateTime()
              except:
  ##                dbg('exception occurred', indent=0)
                  raise
  
  ##        dbg('value:', value.FormatTime())
  
          # Get wxDateTime representations of bounds:
          min = self.GetMin()
          max = self.GetMax()
  
          midnight = wx.DateTimeFromDMY(1, 0, 1970)
          if min <= max:   # they don't span midnight
              ret = min <= value <= max
  
          else:
              # have to break into 2 tests; to be in bounds
              # either "min" <= value (<= midnight of *next day*)
              # or midnight <= value <= "max"
              ret = min <= value or (midnight <= value <= max)
  ##        dbg('in bounds?', ret, indent=0)
          return ret
function_tokens: def IsInBounds ( self , value = None ) : if value is not None : try : value = self . GetWxDateTime ( value ) # try to regularize passed value except ValueError : ##                dbg('ValueError getting wxDateTime for %s' % repr(value), indent=0) raise ##        dbg('TimeCtrl::IsInBounds(%s)' % repr(value), indent=1) if self . __min is None or self . __max is None : ##            dbg(indent=0) return True elif value is None : try : value = self . GetWxDateTime ( ) except : ##                dbg('exception occurred', indent=0) raise ##        dbg('value:', value.FormatTime()) # Get wxDateTime representations of bounds: min = self . GetMin ( ) max = self . GetMax ( ) midnight = wx . DateTimeFromDMY ( 1 , 0 , 1970 ) if min <= max : # they don't span midnight ret = min <= value <= max else : # have to break into 2 tests; to be in bounds # either "min" <= value (<= midnight of *next day*) # or midnight <= value <= "max" ret = min <= value or ( midnight <= value <= max ) ##        dbg('in bounds?', ret, indent=0) return ret