OptionMenuItem
Added in version 2.18.
- class OptionMenuItem(*args, **kwargs)
One item of a OptionMenu
.
The OptionMenu
is composed of WebKitOptionMenuItem<!– –>s.
A WebKitOptionMenuItem always has a label and can contain a tooltip text.
You can use the WebKitOptionMenuItem of a OptionMenu
to build your
own menus.
Methods
- class OptionMenuItem
- free() → None
Free the
OptionMenuItem
.Added in version 2.18.
- get_label() → str
Get the label of a
OptionMenuItem
.Added in version 2.18.
- get_tooltip() → str
Get the tooltip of a
OptionMenuItem
.Added in version 2.18.
- is_enabled() → bool
Whether a
OptionMenuItem
is enabled.Added in version 2.18.
- is_group_child() → bool
Whether a
OptionMenuItem
is a group child.Added in version 2.18.
- is_group_label() → bool
Whether a
OptionMenuItem
is a group label.Added in version 2.18.
- is_selected() → bool
Whether a
OptionMenuItem
is the currently selected one.Added in version 2.18.