WebKit2.OptionMenuItem

Fields

None

Methods

copy ()

free ()

get_label ()

get_tooltip ()

is_enabled ()

is_group_child ()

is_group_label ()

is_selected ()

Details

class WebKit2.OptionMenuItem

One item of a WebKit2.OptionMenu.

The WebKit2.OptionMenu is composed of WebKit2.OptionMenuItem s. A WebKit2.OptionMenuItem always has a label and can contain a tooltip text. You can use the WebKit2.OptionMenuItem of a WebKit2.OptionMenu to build your own menus.

New in version 2.18.

copy()
Returns:

A copy of passed in WebKit2.OptionMenuItem

Return type:

WebKit2.OptionMenuItem

Make a copy of the WebKit2.OptionMenuItem.

New in version 2.18.

free()

Free the WebKit2.OptionMenuItem.

New in version 2.18.

get_label()
Returns:

The label of self.

Return type:

str

Get the label of a WebKit2.OptionMenuItem.

New in version 2.18.

get_tooltip()
Returns:

The tooltip of self, or None.

Return type:

str

Get the tooltip of a WebKit2.OptionMenuItem.

New in version 2.18.

is_enabled()
Returns:

True if the self is enabled or False otherwise.

Return type:

bool

Whether a WebKit2.OptionMenuItem is enabled.

New in version 2.18.

is_group_child()
Returns:

True if the self is a group child or False otherwise.

Return type:

bool

Whether a WebKit2.OptionMenuItem is a group child.

New in version 2.18.

is_group_label()
Returns:

True if the self is a group label or False otherwise.

Return type:

bool

Whether a WebKit2.OptionMenuItem is a group label.

New in version 2.18.

is_selected()
Returns:

True if the self is selected or False otherwise.

Return type:

bool

Whether a WebKit2.OptionMenuItem is the currently selected one.

New in version 2.18.