From 2397af140f2f9ee23ed5e62ef9bdf4d0aba249a1 Mon Sep 17 00:00:00 2001 From: wyzula-jan <133381102+wyzula-jan@users.noreply.github.com> Date: Wed, 6 Sep 2023 17:08:18 +0200 Subject: [PATCH] docs: pyqtGraph controls in help --- .../examples/motor_movement/motor_example.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bec_widgets/examples/motor_movement/motor_example.py b/bec_widgets/examples/motor_movement/motor_example.py index dd4d800b..c1800233 100644 --- a/bec_widgets/examples/motor_movement/motor_example.py +++ b/bec_widgets/examples/motor_movement/motor_example.py @@ -889,6 +889,21 @@ class MotorApp(QWidget): ) layout.addWidget(QLabel("Note: Importing a table will overwrite the current table.")) + # Another Separator + another_separator = QFrame() + another_separator.setFrameShape(QFrame.HLine) + another_separator.setFrameShadow(QFrame.Sunken) + layout.addWidget(another_separator) + + # PyQtGraph Controls + layout.addWidget(QLabel("Graph Window Controls:")) + graph_controls = [ + ("Left Drag", "Pan the view"), + ("Right Drag or Scroll", "Zoom in/out"), + ] + for action, description in graph_controls: + layout.addWidget(QLabel(f"{action} - {description}")) + ok_button = QPushButton("OK") ok_button.clicked.connect(dialog.close) layout.addWidget(ok_button)