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 (str) – title to provide to the group box

  • label (str) – text for the label set at the left of the QLineEdit

  • fine_value ([<class ‘float’>, <class ‘int’>, None]) – (optional) value to provide for ‘fine’ step

  • medium_value ([<class ‘float’>, <class ‘int’>, None]) – (optional) value to provide for ‘medium’ step

  • rough_value ([<class ‘float’>, <class ‘int’>, None]) – (optional) value to provide for ‘rough’ step

  • dtype (Union[int, float]) – type of the step. Can be int or float

getStepSize()#
Returns:

displacement shift defined

Return type:

float

setStepSize(value)#
Parameters:

value (float) – shift step

valueChanged#

emit when the step siwe change