Skip to content
Alessandro Febretti edited this page Aug 28, 2013 · 5 revisions

[[module omegaToolkit | Python-Reference#module-omegatoolkit]] extends [[Widget]] wraps omegaTookit::ui::Button

Represents a generic button.

Methods

Method(s) Description
static Button create(Container parent) Creates a new button widget
getText(), setText(name) Gets or sets the label for the button
isCheckable() True if this button is a check box
setCheckable(value) Sets the button as a check box
isChecked(), setChecked(value) Gets or sets the checked state for checkable buttons
isRadio(), setRadio(value) Gets or sets the radio button mode for this button. When multiple radio buttons exist in the same container, only one of them can be checked.
setIcon(icon), getIcon() Gets or sets the button icon (as a PixelData object)
getImage() Gets a reference to the internal Image widget used to display the button icon
Clone this wiki locally