Toggle on off the Button to command the computer to preform some action. ToggleButton is usually used in a ToolBar without text.
The ToggleButton is a specialized control that has the abilty of being selected. ToggleButtons, when clicked, display their state (selected or unselected).
addChildren (self, children)
enableGlobalActions (self, enable)
saveAsPng (self, fname)
setF1HelpTopic (self, helptopic)
setProperties (self, kwds)
- addChildren(self, children)¶
Add child widgets/layouts into this widget.
Widget children get layed out using a VBoxLayout.
Typically, you’ll pass the parent/children into the constructor instead of calling this function directly.
- param children
- type children
list[Widget] | Layout
Deletes this and all its children.
- enableGlobalActions(self, enable)¶
Sets the state of Global Actions.
Disable the global actions to get key events.
- param enable
Determines whether to enable or disable global actions.
- type enable
Returns the mouse position.
Returns the mouse position relative to this widget.
Hides the widget.
- saveAsPng(self, fname)¶
Saves the widget as a .png file.
- param fname
The file name for the .png
- type fname
True if it was saved succesfully, False otherwise.
- setF1HelpTopic(self, helptopic)¶
Popup web-browser helps when the user hits F1 when over this.
- param helptopic
Topic name user needs help in.
- type helptopic
- setProperties(self, kwds)¶
Ensure proper order of setting properties.
- param kwds
A dict so the order of the properties are set is unpredictable checkable must be set before checked, or checked will not take effect.
Shows the widget.