Thunarx.MenuItem¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Textual representation of the icon (as returned by |
||
r/w |
Label to display to the user |
||
r/w |
The menu belonging to this item. May be null. |
||
r/w/co |
Name of the item |
||
r/w |
Show priority text in toolbars |
||
r/w |
Whether the menu item is sensitive |
||
r/w |
Tooltip for the menu item |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Class Details¶
- class Thunarx.MenuItem(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod list_free(items)¶
- Parameters:
items ([
Thunarx.MenuItem
]) – a list ofThunarx.MenuItem
- classmethod new(name, label, tooltip, icon)¶
- Parameters:
name (
str
) – identifier for the menu itemlabel (
str
) – user-visible label of the menu itemtooltip (
str
) – tooltip of the menu itemicon (
str
) – textual representation of the icon to display in the menu item, as returned byGio.Icon.to_string
(). A path or icon name are valid representations too.
- Returns:
a newly created
Thunarx.MenuItem
- Return type:
Creates a new menu item that can be added to the toolbar or to a contextual menu.
- set_menu(menu)¶
- Parameters:
menu (
Thunarx.Menu
) – pointer to aThunarx.Menu
instance
Attaches menu to menu item.
- set_sensitive(sensitive)¶
-
Sets the
::sensitive
property of the menu item to sensitive.
- do_activate() virtual¶
Signal Details¶
- Thunarx.MenuItem.signals.activate(menu_item)¶
- Signal Name:
activate
- Flags:
- Parameters:
menu_item (
Thunarx.MenuItem
) – The object which received the signal
Property Details¶
- Thunarx.MenuItem.props.icon¶
-
Textual representation of the icon (as returned by
Gio.Icon.to_string
()) to display in the menu item
- Thunarx.MenuItem.props.label¶
-
Label to display to the user
- Thunarx.MenuItem.props.menu¶
- Name:
menu
- Type:
- Default Value:
- Flags:
The menu belonging to this item. May be null.
- Thunarx.MenuItem.props.name¶
- Name:
name
- Type:
- Default Value:
- Flags:
Name of the item
- Thunarx.MenuItem.props.priority¶
-
Show priority text in toolbars
- Thunarx.MenuItem.props.sensitive¶
-
Whether the menu item is sensitive