Inherits from
- Event: enthought.traits.trait_types.Event
Attributes
Inherited from base classes
Method summary
- __init__(self, label = '', filename = None, tooltip = '', toggle = False, width = 32, height = 32, orientation = 'vertical', width_padding = 3, height_padding = 1, view = None, **metadata)
Inherited from base classes
- __call__(self, *args, **kw)
- __getattr__(self, name)
- arg_error(self, method, arg_num, object, name, value)
- as_ctrait(self)
- clone(self, default_value = Missing, **metadata)
- create_editor(self)
- dup_arg_error(self, method, arg_num, object, name)
- error(self, object, name, value)
- full_info(self, object, name, value)
- get_default_value(self)
- get_editor(self, trait = None)
- get_value(self, object, name, trait = None)
- info(self)
- init(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)
- set_value(self, object, name, value)
Methods
- __init__(self, label = '', filename = None, tooltip = '', toggle = False, width = 32, height = 32, orientation = 'vertical', width_padding = 3, height_padding = 1, view = None, **metadata)
Returns a trait event whose editor is a button.
Parameters
- label : string
- The label for the button
- image : enthought.pyface.ImageResource
- An image to display on the button
- style : one of: 'button', 'radio', 'toolbar', 'checkbox'
- The style of button to display
- orientation : one of: 'horizontal', 'vertical'
- The orientation of the label relative to the image
- width_padding : integer between 0 and 31
- Extra padding (in pixels) added to the left and right sides of the button
- height_padding : integer between 0 and 31
- Extra padding (in pixels) added to the top and bottom of the button
- tooltip : string
- What to display when the mouse hovers over the button. An empty string implies no tooltip
- toggle : boolean
- Whether the button is a toggle with 2 states, or a regular button with 1 state
Default Value
No default value because events do not store values.