Uranium
Application Framework
|
Base class for plugins that extend the functionality of Uranium. More...
Public Member Functions | |
__init__ (self) | |
addMenuItem (self, str name, Callable[[], Any] func) | |
Add an item to the sub-menu of the extension. | |
setMenuName (self, str name) | |
Set name of the menu where all menu items are placed in. | |
str | getMenuName (self) |
Get the name of the menu where all menu items are placed in. | |
activateMenuItem (self, str name) | |
Call function associated with option. | |
List[str] | getMenuItemList (self) |
Get list of all menu item names. | |
![]() | |
__init__ (self) | |
getPluginId (self) | |
setPluginId (self, plugin_id) | |
Protected Attributes | |
_menu_function_dict | |
_menu_name | |
![]() | |
_plugin_id | |
Base class for plugins that extend the functionality of Uranium.
Every extension adds a (sub) menu to the extension menu with one or more menu items.
UM.Extension.Extension.__init__ | ( | self | ) |
Reimplemented from UM.PluginObject.PluginObject.
UM.Extension.Extension.activateMenuItem | ( | self, | |
str | name | ||
) |
Call function associated with option.
name | string |
UM.Extension.Extension.addMenuItem | ( | self, | |
str | name, | ||
Callable[[], Any] | func | ||
) |
Add an item to the sub-menu of the extension.
name | string |
function | function |
List[str] UM.Extension.Extension.getMenuItemList | ( | self | ) |
Get list of all menu item names.
str UM.Extension.Extension.getMenuName | ( | self | ) |
Get the name of the menu where all menu items are placed in.
menu | name string |
UM.Extension.Extension.setMenuName | ( | self, | |
str | name | ||
) |
Set name of the menu where all menu items are placed in.
name | string |