![]() |
![]() |
![]() |
![]() |
Nautilus.MenuItemNautilus.MenuItem — Nautilus.MenuItem Reference |
Nautilus.MenuItem extends, gobject.GObject {Nautilus.MenuItem(name,
label,
tooltip,
icon);activate();
set_submenu(menu);
}
"icon" Name of the icon to display in the menu item. Default value: None Read-Write "label" The label to display to the user. Default value: None Read-Write "menu" The Nautilus.Menu menu object belonging to this item. May be None. Read-Write "name" The name of the item. Default value: None Read-Write-ConstructOnly "priority" Whether or not to show priority text in toolbars. Default value: True Read-Write "sensitive" Whether or not the menu item is sensitive. Default value: True Read-Write "tip" The tooltip for the menu item. Default value: None Read-Write
Nautilus.MenuItem(name,
label,
tooltip,
icon);
|
identifier of the item |
|
the user-visible label for the item |
|
the user-visible tooltip for the item |
|
Name of the icon to display in the item |
Creates a new Nautilus.MenuItem
object.
set_submenu(menu);
|
a Nautilus.Menu
|
Attaches a Nautilus.Menu
as the submenu for this Nautilus.MenuItem
.
callback(item,
user_param1,
...);
|
the Nautilus.MenuItem being activated |
|
User-defined parameter the user attaches to the signal connector |
|
Additional parameter(s) the user attaches to the signal connector |
Emits the "activate" signal.