ToggleButton.setActive

void setActive(bool isActive)

Sets the status of the toggle button.

Set to true if you want the [gtk.toggle_button.ToggleButton] to be “pressed in”, and false to raise it.

If the status of the button changes, this action causes the [gtk.toggle_button.ToggleButton.toggled] signal to be emitted.

Parameters

isActivetrue or false.