PartSeg.common_gui.universal_gui_part¶
This module contains simple, useful widgets which implementation is too short to create separated files for them
- class PartSeg.common_gui.universal_gui_part.ChannelComboBox[source]¶
Bases:
QComboBox
Combobox for selecting channel index. Channel numeration starts from 1 for user and from 0 for developer
- class PartSeg.common_gui.universal_gui_part.CustomDoubleSpinBox(*args, bounds=None, **kwargs)[source]¶
Bases:
QDoubleSpinBox
Spin box for float with dynamic single steep
- Parameters
bounds – Bounds for changing single step. Default value:
((0.2, 0.01), (2, 0.1), (300, 1), (1000, 10), (10000, 100)), 1000
Format:(List[(threshold, single_step)], default_single_step)
the single_step is chosen by checking upper bound of threshold of current spin box value
- class PartSeg.common_gui.universal_gui_part.CustomSpinBox(*args, bounds=None, **kwargs)[source]¶
Bases:
QSpinBox
Spin box for integer with dynamic single steep
- Parameters
bounds – Bounds for changing single step. Default value:
((300, 1), (1000, 10), (10000, 100)), 1000
Format:(List[(threshold, single_step)], default_single_step)
the single_step is chosen by checking upper bound of threshold of current spin box value
- class PartSeg.common_gui.universal_gui_part.EnumComboBox(enum, parent=None)[source]¶
Bases:
superqt.combobox._enum_combobox.QEnumComboBox
Combobox for choose
enum.Enum
values- Parameters
enum (
TypeVar
(TypeVar
, bound= <member ‘__bound__’ of ‘TypeVar’ objects>, covariant=<member ‘__covariant__’ of ‘TypeVar’ objects>, contravariant=<member ‘__contravariant__’ of ‘TypeVar’ objects>)) – Enum on which base combo box should be created. For proper showing labels overload the__str__
function of givenenum.Enum
- property current_choose¶
current value as Enum member
- class PartSeg.common_gui.universal_gui_part.Hline(parent=None)[source]¶
Bases:
QWidget
Horizontal line
- paintEvent(self, a0: QPaintEvent)[source]¶
- class PartSeg.common_gui.universal_gui_part.InfoLabel(text_list, delay=10000, parent=None)[source]¶
Bases:
QWidget
Label for cyclic showing text from list. It uses
ProgressCircle
to inform user abu time to change text.- Parameters
- class PartSeg.common_gui.universal_gui_part.MguiChannelComboBox(**kwargs)[source]¶
Bases:
magicgui.widgets.ComboBox
Combobox for selecting channel index. Channel numeration starts from 1 for user and from 0 for developer
- class PartSeg.common_gui.universal_gui_part.ProgressCircle(background='white', main_color='darkCyan', parent=None)[source]¶
Bases:
QWidget
This is widget for generating circuital progress bar
- Parameters
Warning
This widget currently have no minimum size. You need to specify it in your code