components#

Subcomponents for larger GUI widgets

class perceptivo.gui.widgets.components.Range_Setter(*args: Any, **kwargs: Any)#

Bases: PySide6.QtWidgets.QWidget

Buttons and text fields to parameterize a linearly or logarithmically spaced array of values

Parameters
  • key (str) – key of value that is set by this widget, likely one of types.GUI_PARAM_KEY

  • name (str) – human-readable name of parameter

  • round (int) – Digits to round generated values to (default 0)

  • limits (tuple) – Absolute allowable maximum and minimum

  • step (float) – Step size of the spinboxes

  • *args, **kwargs – passed to PySide6.QtWidgets.QWidget

valueChanged#

alias of perceptivo.types.gui.GUI_Control

buttonClicked#

alias of perceptivo.types.gui.GUI_Control

scaleChanged#

alias of str

__init__(key: Literal['frequencies', 'amplitudes', 'log_x', 'log_y', 'extra_amplitude', 'amplitude_step', 'amplitude_range', 'max_amplitude', 'frequency_step', 'frequency_range', 'iti', 'iti_jitter'], name: str, round: int = 0, limits: Tuple[int, int] = (0, 100), default: perceptivo.types.gui.GUI_Range = GUI_Range(min=0.0, max=100.0, n=10), *args, **kwargs)#
Parameters
  • key (str) – key of value that is set by this widget, likely one of types.GUI_PARAM_KEY

  • name (str) – human-readable name of parameter

  • round (int) – Digits to round generated values to (default 0)

  • limits (tuple) – Absolute allowable maximum and minimum

  • step (float) – Step size of the spinboxes

  • *args, **kwargs – passed to PySide6.QtWidgets.QWidget

value() Tuple[float]#
setMaximum(value: float)#
setMinimum(value: float)#