Inherits from
- TraitHandler: enthought.traits.trait_handlers.TraitHandler
Method summary
- __init__(self, low = None, high = None, exclude_low = False, exclude_high = False)
- float_validate(self, object, name, value)
- get_editor(self, trait)
- info(self)
- int_validate(self, object, name, value)
- long_validate(self, object, name, value)
Methods
- __init__(self, low = None, high = None, exclude_low = False, exclude_high = False)
Creates a TraitRange handler.
Parameters
- low : number
- The minimum value that the trait can accept
- high : number
- The maximum value that the trait can accept
- exclude_low : Boolean
- Should the low value be exclusive (or inclusive)
- exclude_high : Boolean
- Should the high value be exclusive (or inclusive)
Description
The low and high values must be of the same Python numeric type, either int, long or float. Alternatively, one of the values may be None, to indicate that that portion of the range is unbounded. The exclude_low and exclude_high values can be used to specify whether the low and high values should be exclusive (or inclusive).
- float_validate(self, object, name, value)
- get_editor(self, trait)
- info(self)
- int_validate(self, object, name, value)
- long_validate(self, object, name, value)