Creates a new toggle button.
Connect to Toggled signal.
Queries a gtk.toggle_button.ToggleButton and returns its current state.
Sets the status of the toggle button.
Adds self to the group of group.
Emits the ::toggled signal on the gtk.toggle_button.ToggleButton.
Creates a new toggle button with a text label.
Creates a new gtk.toggle_button.ToggleButton containing a label.
Creates a new button containing an icon from the current icon theme.
Creates a gtk.button.Button widget with a gtk.label.Label child.
Creates a new gtk.button.Button containing a label.
Retrieves whether the button can be smaller than the natural size of its contents.
Gets the child widget of button.
Returns whether the button has a frame.
Returns the icon name of the button.
Fetches the text from the label of the button.
gets whether underlines are interpreted as mnemonics.
Sets whether the button size can be smaller than the natural size of its contents.
Sets the child widget of button.
Sets the style of the button.
Adds a gtk.image.Image with the given icon name as a child.
Sets the text of the label of the button to label.
Sets whether to use underlines as mnemonics.
Connect to Activate signal.
Connect to Clicked signal.
A gtk.toggle_button.ToggleButton is a button which remains “pressed-in” when clicked.
Clicking again will cause the toggle button to return to its normal state.
A toggle button is created by calling either gtk.toggle_button.ToggleButton.new_ or gtk.toggle_button.ToggleButton.newWithLabel. If using the former, it is advisable to pack a widget, (such as a gtk.label.Label and/or a gtk.image.Image), into the toggle button’s container. (See gtk.button.Button for more information).
The state of a gtk.toggle_button.ToggleButton can be set specifically using gtk.toggle_button.ToggleButton.setActive, and retrieved using gtk.toggle_button.ToggleButton.getActive.
To simply switch the state of a toggle button, use gtk.toggle_button.ToggleButton.toggled.
Grouping
Toggle buttons can be grouped together, to form mutually exclusive groups - only one of the buttons can be toggled at a time, and toggling another one will switch the currently toggled one off.
To add a gtk.toggle_button.ToggleButton to a group, use gtk.toggle_button.ToggleButton.setGroup.
CSS nodes
gtk.toggle_button.ToggleButton has a single CSS node with name button. To differentiate it from a plain gtk.button.Button, it gets the .toggle style class.
Accessibility
gtk.toggle_button.ToggleButton uses the gtk.types.AccessibleRole.ToggleButton role.
Creating two gtk.toggle_button.ToggleButton widgets.