WebKit.OptionMenuItem

Fields

None

Methods

copy ()

free ()

get_label ()

get_tooltip ()

is_enabled ()

is_group_child ()

is_group_label ()

is_selected ()

Details

class WebKit.OptionMenuItem

One item of a WebKit.OptionMenu.

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

New in version 2.18.

copy()
Returns:

A copy of passed in WebKit.OptionMenuItem

Return type:

WebKit.OptionMenuItem

Make a copy of the WebKit.OptionMenuItem.

New in version 2.18.

free()

Free the WebKit.OptionMenuItem.

New in version 2.18.

get_label()
Returns:

The label of self.

Return type:

str

Get the label of a WebKit.OptionMenuItem.

New in version 2.18.

get_tooltip()
Returns:

The tooltip of self, or None.

Return type:

str

Get the tooltip of a WebKit.OptionMenuItem.

New in version 2.18.

is_enabled()
Returns:

True if the self is enabled or False otherwise.

Return type:

bool

Whether a WebKit.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 WebKit.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 WebKit.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 WebKit.OptionMenuItem is the currently selected one.

New in version 2.18.