Inherits from
- HasTraits: enthought.traits.has_traits.HasTraits
Attributes
- default_value
N.B. The 'default_value' trait is generated dynamically as a property
default_value = CStr()
- description
A description of the input.
description = Str()
- meta_type
String used to determine what type of GUI editor to use.
meta_type = Str()
- name
The name of the input.
name = Str()
- type
The type of the input.
type = Instance(TypeDef, editor = InstanceEditor(name = '_available_types', editable = False))
- unit_family
The unit family name.
unit_family = unit_family_trait
- unit_system
The unit system.
unit_system = unit_system_trait
- view
view = View(Group(Item(name = 'name'), Item(name = 'description'), Item(name = 'default_value'), Item(name = 'type'), Item(name = 'unit_family', label = 'Measure of'), Item(name = 'unit_system'), Item(name = 'visible')), scrollable = True)
- visible
Allow the script writer to hide this input from the end user
visible = CBool(True)
Inherited from base classes
Method summary
- __getstate__(self)
- __init__(self, name = '', type = None, **kw_args)
- __setstate__(self, state)
- __str__(self)
Inherited from base classes
- __deepcopy__(self, memo)
- __prefix_trait__(self, name)
- __reduce_ex__(self, protocol)
- add_class_trait(cls, name, *trait)
- add_trait(self, name, *trait)
- add_trait_category(cls, category)
- add_trait_listener(self, object, prefix = '')
- all_trait_names(self)
- base_trait(self, name)
- class_default_traits_view(cls)
- class_editable_traits(cls)
- class_trait_names(cls, **metadata)
- class_trait_view(cls, name = None, view_element = None)
- class_trait_view_elements(cls)
- class_traits(cls, **metadata)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- configure_traits(self, filename = None, view = None, kind = None, edit = True, context = None, handler = None, id = '', scrollable = None, **args)
- copy_traits(self, other, traits = None, memo = None, copy = None, **metadata)
- copyable_trait_names(self, **metadata)
- default_traits_view(self)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- get(self, *names, **metadata)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same')
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- set(self, trait_change_notify = True, **traits)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_subclasses(cls, all = False)
- trait_view(self, name = None, view_element = None)
- trait_view_elements(self)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- __getstate__(self)
Get the state of the object for pickling.
- __init__(self, name = '', type = None, **kw_args)
- __setstate__(self, state)
Set the state of the object for unpickling.
- __str__(self)