LabeledSlider

class glue.viewers.custom.qt.custom_viewer.LabeledSlider(min, max, default=None, parent=None)[source]

Bases: PyQt5.QtWidgets.QWidget

A labeled slider widget, that handles floats and integers

Parameters:
  • min – Minimum slider value
  • max – Maximum slider value
  • default – Initial value
  • parent – Widget parent

Attributes Summary

valueChanged Pointer to valueChanged signal.

Methods Summary

setValue(val) Set the numerical value of the slider
set_value(val) Set the numerical value of the slider
value([layer, view]) Return the numerical value of the slider

Attributes Documentation

valueChanged[source]

Pointer to valueChanged signal.

Warning

the value emitted by this signal is unscaled, and shouldn’t be used directly. Use .value() instead

Methods Documentation

setValue(val)

Set the numerical value of the slider

set_value(val)[source]

Set the numerical value of the slider

value(layer=None, view=None)[source]

Return the numerical value of the slider