traitsui.ui_traits module¶
Defines common traits used within the traits.ui package.
-
class
traitsui.ui_traits.
ATheme
(value=None, **metadata)¶ Bases:
traits.trait_handlers.TraitType
Defines a trait whose value must be a traits UI Theme or a string that can be converted to one.
-
default_value
= None¶
-
info_text
= 'a Theme or string that can be used to define one'¶
-
validate
(object, name, value)¶ Validates that a specified value is valid for this trait.
-
-
class
traitsui.ui_traits.
StatusItem
(value=None, **traits)¶
-
class
traitsui.ui_traits.
ViewStatus
(default_value=<traits.trait_handlers.NoDefaultSpecified object>, **metadata)¶ Bases:
traits.trait_handlers.TraitType
Defines a trait whose value must be a single StatusItem instance or a list of StatusItem instances.
-
default_value
= None¶
-
info_text
= 'None, a string, a single StatusItem instance, or a list or tuple of strings and/or StatusItem instances'¶
-
validate
(object, name, value)¶ Validates that a specified value is valid for this trait.
-
-
traitsui.ui_traits.
convert_theme
(value, level=3)¶ Converts a specified value to a Theme if possible.