MenuItem.with_button


Description:

protected MenuItem.with_button (Button button, Label label)

Creates a new menu item using the provided button and label.

This is the main constructor that should be called by superclasses.

Note:

MenuItem uses button.weak_represented_object internally, so implementations must not set that property.