Button.newWithMnemonic

Creates a new gtk.button.Button containing a label.

If characters in label are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use “__” (two underscores). The first underlined character represents a keyboard accelerator called a mnemonic. Pressing <kbd>Alt</kbd> and that key activates the button.

class Button
static
newWithMnemonic
(
string label
)

Parameters

label string

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

Return Value

Type: gtk.button.Button