MenuItem.newWithMnemonic

gtk.menu_item.MenuItem newWithMnemonic(string label)

Creates a new #GtkMenuItem containing a label.

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

Parameters

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

Returns

a new #GtkMenuItem