Inherits from
- Event: enthought.traits.trait_types.Event
Attributes
Inherited from base classes
Method summary
- __init__(self, label = '', image = None, style = 'button', orientation = 'vertical', width_padding = 7, height_padding = 5, view = None, **metadata)
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, label = '', image = None, style = 'button', orientation = 'vertical', width_padding = 7, height_padding = 5, 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
Default Value
No default value because events do not store values.