ToggleButton.setMode

Sets whether the button is displayed as a separate indicator and label. You can call this function on a checkbutton or a radiobutton with draw_indicator = FALSE to make the button look like a normal button.

This can be used to create linked strip of buttons that work like a gtk.StackSwitcher

This function only affects instances of classes like gtk.CheckButton and gtk.RadioButton that derive from gtk.ToggleButton, not instances of gtk.ToggleButton itself.

class ToggleButton
void
setMode

Parameters

drawIndicator bool

if TRUE, draw the button as a separate indicator and label; if FALSE, draw the button like a normal button