0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

docs: pyqtGraph controls in help

This commit is contained in:
wyzula-jan
2023-09-06 17:08:18 +02:00
parent 63744b0fbf
commit 2397af140f

View File

@ -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)