Ross McFarland > Gtk2-1.043 > xs/GtkButton.xs


Annotate this POD


New  2
Open  7
View/Report Bugs
Source   Latest Release: Gtk2-1.203


Mnemonics are "memory aids"; in GTK+, a mnemonic is an underlined character which corresponds to a keyboard accelerator. For a button, that means pressing Alt and that key activates the button.

For convenience, Gtk2-Perl uses mnemonics by default on widgets that support them. If characters in label string are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use '__' (two underscores). If you don't want to use mnemonics at all, use the non-mnemonic version explicitly (e.g. Gtk2::Button::new_with_label).

syntax highlighting: