hyperspyui.util module
Created on Mon Oct 27 18:47:05 2014
@author: Vidar Tonaas Fauske
- class hyperspyui.util.AttributeDict(obj=None)
Bases:
dict
A dict subclass that exposes its items as attributes.
- static delattr(ns, name)
- classmethod from_mapping(ns, names=None)
- classmethod from_object(obj, names=None)
- classmethod from_sequence(seq, names=None)
- static getattr(ns, name)
- static hasattr(ns, name)
- static setattr(ns, name, value)
- class hyperspyui.util.Namespace(obj=None)
Bases:
AttributeDict
A dict subclass that exposes its items as attributes.
Warning: Namespace instances do not have direct access to the dict methods.
- hyperspyui.util.block_signals(target)
- hyperspyui.util.create_add_component_actions(parent, callback, prefix='', postfix='')
- hyperspyui.util.crosshair_cursor()
- hyperspyui.util.debug_trace()
Set a tracepoint in the Python debugger that works with Qt
- hyperspyui.util.dummy_context_manager(*args, **kwargs)
- hyperspyui.util.fig2image_plot(fig, signals)
- hyperspyui.util.fig2sig(fig, signals)
- hyperspyui.util.fig2win(fig, windows)
- hyperspyui.util.load_cursor(filename, hotX=-1, hotY=-1)
- hyperspyui.util.lstrip(string, prefix)
- hyperspyui.util.tr(text)
- hyperspyui.util.win2fig(window)
- hyperspyui.util.win2sig(window, signals=None, plotting_signal=None)