Inherits from
- TraitType: enthought.traits.trait_handlers.TraitType
Attributes
- default_value
Define the default value for the trait:
default_value = None
- info_text
A description of the type of value this trait accepts:
info_text = 'an ImageResource or string that can be used to define one'
Inherited from base classes
Method summary
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
- __init__(self, value = None, **metadata)
Creates an Image trait.
Parameters
- value : string or ImageResource
- The default value for the Image, either an ImageResource object, or a string from which an ImageResource object can be derived.
- validate(self, object, name, value)
Validates that a specified value is valid for this trait.