Inherits from
- TraitType: enthought.traits.trait_handlers.TraitType
Attributes
- default_value
Define the default value for the trait:
default_value = Margin(0)
- info_text
A description of the type of value this trait accepts:
info_text = 'a Margin instance, or an integer in the range from -32 to 32 or a tuple with 1, 2 or 4 integers in that range that can be used to define one'
- klass
The desired value class:
klass = Margin
Inherited from base classes
Method summary
- get_default_value(self)
- validate(self, object, name, value)
Inherited from base classes
- arg_error(self, method, arg_num, object, name, value)
- create_editor(self)
- dup_arg_error(self, method, arg_num, object, name)
- error(self, object, name, value)
- full_info(self, object, name, value)
- get_editor(self, trait = None)
- info(self)
- inner_traits(self)
- is_valid(self, object, name, value)
- keyword_error(self, method, object, name, value)
- missing_arg_error(self, method, arg_num, object, name)
- repr(self, value)
- return_error(self, method, object, value)
Methods
- get_default_value(self)
Returns a tuple of the form: ( default_value_type, default_value ) which describes the default value for this trait.
- validate(self, object, name, value)
Validates that a specified value is valid for this trait.