Nemo.MenuItem¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
Name of the icon to display in the menu item  | 
||
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  | 
Is a separator  | 
||
r/w  | 
Tooltip for the menu item  | 
||
r/w  | 
The custom widget to use in place of text  | 
||
r/w  | 
The custom widget to use in place of text  | 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Fields¶
- Inherited:
 
Class Details¶
- class Nemo.MenuItem(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod list_free(item_list)¶
 - Parameters:
 item_list ([
Nemo.MenuItem]) – a list ofNemo.MenuItem
- classmethod new(name, label, tip, icon)¶
 - Parameters:
 - Returns:
 a newly create
Nemo.MenuItem- Return type:
 
Creates a new menu item that can be added to the toolbar or to a contextual menu.
- classmethod new_separator(name)¶
 - Parameters:
 name (
str) – the identifier for the menu item- Returns:
 a newly created
Nemo.MenuItem- Return type:
 
Creates a new menu item that represents a menu separator.
- classmethod new_widget(name, widget_a, widget_b)¶
 - Parameters:
 name (
str) – the identifier for the menu itemwidget_a (
Gtk.Widget) – the customGtk.Widgetto use for widget-awidget_b (
Gtk.Widget) – the customGtk.Widgetto use for widget-b
- Returns:
 a newly created
Nemo.MenuItemthat will pass widgets to an eventual NemoWidgetAction- Return type:
 
Creates a new widget-based menu item that can be added to the toolbar or to a contextual menu.
- activate()¶
 emits the activate signal.
- set_submenu(menu)¶
 - 
Attachs a menu to the given
Nemo.MenuItem. 
- set_widget_a(widget)¶
 - Parameters:
 widget (
Gtk.Widget) – pointer to aGtk.Widgetuse in place of text
Sets the custom widget A for this
Nemo.MenuItem
- set_widget_b(widget)¶
 - Parameters:
 widget (
Gtk.Widget) – pointer to aGtk.Widgetuse in place of text
Sets the custom widget B for this
Nemo.MenuItem
Signal Details¶
- Nemo.MenuItem.signals.activate(menu_item)¶
 - Signal Name:
 activate- Flags:
 - Parameters:
 menu_item (
Nemo.MenuItem) – The object which received the signal
Property Details¶
- Nemo.MenuItem.props.icon¶
 - 
Name of the icon to display in the menu item
 
- Nemo.MenuItem.props.label¶
 - 
Label to display to the user
 
- Nemo.MenuItem.props.menu¶
 - 
The menu belonging to this item. May be null.
 
- Nemo.MenuItem.props.name¶
 - Name:
 name- Type:
 - Default Value:
 - Flags:
 
Name of the item
- Nemo.MenuItem.props.priority¶
 - 
Show priority text in toolbars
 
- Nemo.MenuItem.props.sensitive¶
 - 
Whether the menu item is sensitive
 
- Nemo.MenuItem.props.separator¶
 - 
Is a separator
 
- Nemo.MenuItem.props.tip¶
 - 
Tooltip for the menu item
 
- Nemo.MenuItem.props.widget_a¶
 - Name:
 widget-a- Type:
 - Default Value:
 - Flags:
 
The custom widget to use in place of text
- Nemo.MenuItem.props.widget_b¶
 - Name:
 widget-b- Type:
 - Default Value:
 - Flags:
 
The custom widget to use in place of text