Base class for plugins that extend the functionality of Uranium.
More...
|
def | __init__ (self) |
|
def | addMenuItem (self, str name, Callable[[], Any] func) |
| Add an item to the sub-menu of the extension. More...
|
|
def | setMenuName (self, str name) |
| Set name of the menu where all menu items are placed in. More...
|
|
str | getMenuName (self) |
| Get the name of the menu where all menu items are placed in. More...
|
|
def | activateMenuItem (self, str name) |
| Call function associated with option. More...
|
|
List[str] | getMenuItemList (self) |
| Get list of all menu item names. More...
|
|
def | getPluginId (self) |
|
def | setPluginId (self, 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.
◆ activateMenuItem()
def UM.Extension.Extension.activateMenuItem |
( |
|
self, |
|
|
str |
name |
|
) |
| |
Call function associated with option.
- Parameters
-
◆ addMenuItem()
def UM.Extension.Extension.addMenuItem |
( |
|
self, |
|
|
str |
name, |
|
|
Callable[[], Any] |
func |
|
) |
| |
Add an item to the sub-menu of the extension.
- Parameters
-
name | string |
function | function |
◆ getMenuItemList()
List[str] UM.Extension.Extension.getMenuItemList |
( |
|
self | ) |
|
Get list of all menu item names.
- Returns
- list
◆ getMenuName()
str UM.Extension.Extension.getMenuName |
( |
|
self | ) |
|
Get the name of the menu where all menu items are placed in.
- Parameters
-
◆ setMenuName()
def UM.Extension.Extension.setMenuName |
( |
|
self, |
|
|
str |
name |
|
) |
| |
Set name of the menu where all menu items are placed in.
- Parameters
-
The documentation for this class was generated from the following file: