ToggleButton.newWithMnemonic

gtk.toggle_button.ToggleButton newWithMnemonic(string label)

Creates a new [gtk.toggle_button.ToggleButton] containing a label.

The label will be created using [gtk.label.Label.newWithMnemonic], so underscores in label indicate the mnemonic for the button.

Parameters

labelthe text of the button, with an underscore in front of the mnemonic character

Returns

a new [gtk.toggle_button.ToggleButton]