Inheritance diagram for wx.ToggleButton:
wx.ToggleButton is a button that stays pressed when clicked by the user. In other words, it is similar to wx.CheckBox in functionality but looks like a wx.Button.
See also
Event Name | Description |
---|---|
wx.EVT_TOGGLEBUTTON(id, func) | Handles a toggle button click event. |
Constructor, creating and showing a toggle button.
Parameters:
Returns:
Gets the state of the toggle button.
Returns True if it is pressed, False otherwise.
Returns:
bool
Sets the toggle button to the given state. This does not cause a wx.EVT_TOGGLEBUTTON event to be emitted.
Parameters: