hyperspyui.signalwrapper module

Created on Fri Oct 24 18:27:15 2014

@author: Vidar Tonaas Fauske

class hyperspyui.signalwrapper.SignalWrapper(signal, mainwindow, name=None)

Bases: Actionable

_closed()
_replot()
_untitled_counter = 0
add_figure(fig)
add_model(model)
as_signal1D(axis=0)
as_signal2D(axis=(0, 1))
close()
closing

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

property keep_on_close
make_model(*args, **kwargs)
model_added

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

model_removed

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

nav_closing()
plot(*args, **kwargs)
remove_figure(fig)
remove_model(model)
replot()
sig_closing()
switch_signal(new_signal)

Switch the signal wrapped by this wrapper. To complete the switch, the signal should also be replotted if previously plotted. For performance reasons this is left as the responsibility of the caller.

update()
update_figures()