hyperspyui.widgets.extendedqwidgets module

Created on Fri Nov 21 22:11:04 2014

@author: Vidar Tonaas Fauske

class hyperspyui.widgets.extendedqwidgets.ExClickLabel

Bases: QLabel

QLabel with ‘clicked()’ signal.

clicked

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

mouseReleaseEvent(self, ev: QMouseEvent | None)
class hyperspyui.widgets.extendedqwidgets.ExDoubleSlider(parent=None, orientation=None)

Bases: QSlider

QSlider with double values instead of int values.

_int2dbl(intval)
_on_change(intval)
double_valueChanged

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

setRange(self, min: int, max: int)
setValue(self, a0: int)
value(self) int
class hyperspyui.widgets.extendedqwidgets.ExMessageBox

Bases: QMessageBox

checkBox(self) QCheckBox | None
isChecked()
setCheckBox(self, cb: QCheckBox | None)
class hyperspyui.widgets.extendedqwidgets.ExRememberPrompt(*args, **kwargs)

Bases: ExMessageBox

class hyperspyui.widgets.extendedqwidgets.ExToolWindow(parent=None)

Bases: QDialog

QDialog with Qt.Tool window flags.

class hyperspyui.widgets.extendedqwidgets.FigureWidget(main_window, parent=None)

Bases: QDockWidget

_on_figure_change(window)

Called when a connected update triggers. If the window is valid, it sets up the traitsui dialog capture, and calls cb_make_dialog. If the window is invalid, it clears the widget.

connect_(action=None)

Connects the widget to its update trigger, which is either a supplied action, or by default, the subWindowActivated of the MainWindow.

disconnect(action=None)

Disconnects an update trigger connected with connect().

on_visibility(visible)
hyperspyui.widgets.extendedqwidgets.tr(text)