hyperspy.ui_registry module

Registry of user interface widgets.

Format {“tool_key” : {“toolkit” : <function(obj, display, **kwargs)>}}

The tool_key is defined by the “model function” to which the widget provides and user interface. That function gets the widget function from this registry and executes it passing the obj, display and any extra keyword arguments. When display is true, function displays the widget. If False it returns a dictionary with whatever is needed to display the widgets externally (usually for testing or customisation purposes).

hyperspy.ui_registry._toolkits_to_string(toolkits)
hyperspy.ui_registry.add_gui_method(toolkey)
hyperspy.ui_registry.get_gui(self, toolkey, display=True, toolkit=None, **kwargs)
hyperspy.ui_registry.get_partial_gui(toolkey)