Inherits from
- ThemedWindow: enthought.traits.ui.wx.themed_window.ThemedWindow
Attributes
- best_size
The best size for the control:
best_size = Property
- bitmap_bounds
The position and size of the current bitmap within the control:
bitmap_bounds = Property(depends_on = 'updated')
- control
The underlying wx.Window control:
control = Instance(wx.Window)
- current_text
The current text value to display:
current_text = Property(depends_on = 'text, password')
- enabled
Is the control enabled:
enabled = Bool(True)
- image
An (optional) image to be drawn inside the control:
image = Image(event = 'updated')
- min_size
Minimum default size for the control:
min_size = Tuple(Int, Int)
- offset
An additional, optional offset to apply to the text/image position:
offset = Tuple(Int, Int)
- password
Is the text value private (like a password):
password = Bool(False, event = 'updated')
- position
The position of the image relative to the text:
position = Position(event = 'updated')
- spacing
The amount of spacing between the image and the text:
spacing = Spacing(event = 'updated')
- text
The (optional) text to be displayed inside the control:
text = Str(event = 'updated')
- text_bounds
The position and size of the current text within the control:
text_bounds = Property(depends_on = 'updated')
- text_size
The size of the current text:
text_size = Property(depends_on = 'current_text, control')
- updated
An event fired when any display related value changes:
updated = Event
Inherited from base classes
Method summary
- create_control(self, parent)
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- __setstate__(self, state, trait_change_notify = True)
- 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)
- capture_mouse(self)
- 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)
- has_traits_interface(self, *interfaces)
- in_control(self, x, y)
- init_control(self)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- print_traits(self, show_help = False, **metadata)
- refresh(self)
- release_mouse(self)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- 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_get(self, *names, **metadata)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_set(self, trait_change_notify = True, **traits)
- trait_setq(self, **traits)
- 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
- create_control(self, parent)
Creates the underlying wx.Window object.