plotter_14.py 386 B

12345678910111213
  1. def customSlider():
  2. limitSlider = QSlider(Qt.Horizontal)
  3. limitSlider.setMinimum(-3)
  4. limitSlider.setMaximum(3)
  5. limitSlider.setValue(1)
  6. limitSlider.setTickPosition(QSlider.TicksBothSides)
  7. limitSlider.setTickInterval(1)
  8. limitSlider.valueChanged.connect(lambda: valueChange(workspace))
  9. limitSlider.setStatusTip("Change axes limit")
  10. return limitSlider