gtk.button.Button has a single CSS node with name button. The node will get the
style classes .image-button or .text-button, if the content is just an
image or label, respectively. It may also receive the .flat style class.
When activating a button via the keyboard, the button will temporarily
gain the .keyboard-activating style class.
Other style classes that are commonly used with gtk.button.Button include
.suggested-action and .destructive-action. In special cases, buttons
can be made round by adding the .circular style class.
The gtk.button.Button widget is generally used to trigger a callback function that is called when the button is pressed.
The gtk.button.Button widget can hold any valid child widget. That is, it can hold almost any other standard gtk.widget.Widget. The most commonly used child is the gtk.label.Label.
CSS nodes
gtk.button.Button has a single CSS node with name button. The node will get the style classes .image-button or .text-button, if the content is just an image or label, respectively. It may also receive the .flat style class. When activating a button via the keyboard, the button will temporarily gain the .keyboard-activating style class.
Other style classes that are commonly used with gtk.button.Button include .suggested-action and .destructive-action. In special cases, buttons can be made round by adding the .circular style class.
Button-like widgets like gtk.toggle_button.ToggleButton, gtk.menu_button.MenuButton, gtk.volume_button.VolumeButton, gtk.lock_button.LockButton, gtk.color_button.ColorButton or gtk.font_button.FontButton use style classes such as .toggle, .popup, .scale, .lock, .color on the button node to differentiate themselves from a plain gtk.button.Button.
Accessibility
gtk.button.Button uses the gtk.types.AccessibleRole.Button role.