tomwer.gui.utils.step.StepSizeSelectorWidget#
- class tomwer.gui.utils.step.StepSizeSelectorWidget(parent=None, title='', label='step size', fine_value=0.1, medium_value=0.5, rough_value=1.0, unit='px', dtype=<class 'float'>)#
Widget to define some steps size (as float). Used by the Axis and the AxisOrdered widgets
- Parameters:
title – title to provide to the group box
label (str) – text for the label set at the left of the QLineEdit
fine_value (float | int | None) – (optional) value to provide for ‘fine’ step
medium_value (float | int | None) – (optional) value to provide for ‘medium’ step
rough_value (float | int | None) – (optional) value to provide for ‘rough’ step
dtype (int | float) – type of the step. Can be int or float
- getStepSize()#
- Return type:
float | int
- Returns:
displacement shift defined. Output is of same type as the ‘dtype’ provided during construction.
- setStepSize(value)#
- Parameters:
value (float | int) – shift step
- valueChanged#
emit when the step size change