hyperspyui.pluginmanager module#

Created on Sat Dec 13 00:41:15 2014

@author: Vidar Tonaas Fauske

class hyperspyui.pluginmanager.PluginManager(main_window)#

Bases: object

_import_plugin_from_path(name, path)#
static _inheritors(klass)#

Return all defined classes that inherit from ‘klass’.

_load_if_enabled(p_type)#
create_actions()#
create_menu()#
create_toolbars()#
create_tools()#
create_widgets()#
disable_plugin(name)#

Disable plugin functionality. Also unloads plugin.

discover()#

Auto-discover all plugins defined in plugin directory.

enable_plugin(name, value=True)#

Enable/disable plugin functionality. Also loads/unloads plugin. If enabling and the plugin is already loaded, this will reload the plugin.

property enabled#

Returns a read-only dictionary showing the enabled/disabled state of all plugins.

init_plugins()#
load(plugin_type)#
load_from_file(path)#
reload(plugin)#
unload(plugin)#
warn(f_name, p_name, category=<class 'RuntimeWarning'>)#
class hyperspyui.pluginmanager.ReadOnlyDict#

Bases: dict

_readonly = False#
pop(k[, d]) v, remove specified key and return the corresponding value.#

If the key is not found, return the default if given; otherwise, raise a KeyError.

update([E, ]**F) None.  Update D from dict/iterable E and F.#

If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]