Inherits from
- Widget: enthought.pyface.widget.Widget
Attributes
- clicked
Fired when a 'button' or 'toolbar' style control is clicked:
clicked = Event
- height_padding
Extra padding to add to both the top and bottom sides:
height_padding = Range(0, 31, 5)
- image
The image:
image = Instance(ImageResource, allow_none = True)
- label
The (optional) label:
label = Str
- orientation
Orientation of the text relative to the image:
orientation = Enum('vertical', 'horizontal')
- selected
Is the control selected ('radio' or 'checkbox' style)?
selected = false
- style
Presentation style:
style = Enum('button', 'radio', 'toolbar', 'checkbox')
- width_padding
Extra padding to add to both the left and right sides:
width_padding = Range(0, 31, 7)
Method summary
- __init__(self, parent, **traits)
Methods
- __init__(self, parent, **traits)
Creates a new image control.