Skip to content

Commit 282559d

Browse files
committed
Added Tool tips
1 parent e9763cc commit 282559d

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

GUI/camera_setup_tab.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
QWidget,
55
QGroupBox,
66
QVBoxLayout,
7+
QHBoxLayout,
78
QTableWidget,
89
QLineEdit,
910
QComboBox,
@@ -273,6 +274,7 @@ def __init__(self, setups_table, name, unique_id, fps, exposure_time, gain, down
273274
# Preview button.
274275
self.preview_camera_button = QPushButton("Preview")
275276
self.preview_camera_button.clicked.connect(self.open_preview_camera)
277+
self.preview_camera_button.setToolTip(f"Preview camera: {self.settings.name if self.settings.name is not None else self.settings.unique_id}")
276278

277279
# Populate the table
278280
self.setups_table.insertRow(0)

GUI/camera_widget.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,16 @@ def __init__(self, parent, label, subject_id):
113113
self.start_recording_button.setFixedWidth(30)
114114
self.start_recording_button.setEnabled(bool(self.subject_id))
115115
self.start_recording_button.clicked.connect(self.start_recording)
116+
self.start_recording_button.setToolTip("Start Recording")
116117

117118
# Stop button.
118119
self.stop_recording_button = QPushButton("")
119120
self.stop_recording_button.setIcon(QIcon(os.path.join(self.paths["assets_dir"], "stop.svg")))
120121
self.stop_recording_button.setFixedWidth(30)
121122
self.stop_recording_button.setEnabled(False)
122123
self.stop_recording_button.clicked.connect(self.stop_recording)
123-
124+
self.stop_recording_button.setToolTip("Stop Recording")
125+
124126
# Camera select dropdown
125127
self.camera_id_label = QLabel("Camera:")
126128
self.camera_dropdown = QComboBox()

GUI/video_capture_tab.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,13 @@ def __init__(self, parent=None):
6868
self.save_camera_config_button.setIcon(QIcon(os.path.join(self.paths["assets_dir"], "save.svg")))
6969
self.save_camera_config_button.setFixedHeight(30)
7070
self.save_camera_config_button.clicked.connect(self.save_experiment_config)
71+
self.save_camera_config_button.setToolTip("Save the current camera configuration")
7172

7273
# Load layout button
7374
self.load_experiment_config_button = QPushButton("Load")
74-
# self.load_experiment_config_button.setIcon(QIcon(os.path.join(self.paths["assets_dir"], "upload.svg")))
7575
self.load_experiment_config_button.setFixedHeight(30)
7676
self.load_experiment_config_button.clicked.connect(self.load_experiment_config)
77+
self.load_experiment_config_button.setToolTip("Load a saved camera configuration")
7778

7879
# Config layout
7980
self.config_hlayout = QHBoxLayout()
@@ -93,6 +94,7 @@ def __init__(self, parent=None):
9394
self.save_dir_button.setFixedWidth(30)
9495
self.save_dir_button.setFixedHeight(30)
9596
self.save_dir_button.clicked.connect(self.get_save_dir)
97+
self.save_dir_button.setToolTip("Change the directory to save data")
9698

9799
# Display the save directory
98100
self.save_dir_textbox = QPlainTextEdit(self.paths["data_dir"])
@@ -118,6 +120,7 @@ def __init__(self, parent=None):
118120
self.start_recording_button.setFixedHeight(30)
119121
self.start_recording_button.clicked.connect(self.start_recording)
120122
self.start_recording_button.setEnabled(False)
123+
self.start_recording_button.setToolTip("Start recording all cameras")
121124

122125
# Button for stopping recording
123126
self.stop_recording_button = QPushButton("")
@@ -126,6 +129,8 @@ def __init__(self, parent=None):
126129
self.stop_recording_button.setFixedHeight(30)
127130
self.stop_recording_button.clicked.connect(self.stop_recording)
128131
self.stop_recording_button.setEnabled(False)
132+
self.stop_recording_button.setToolTip("Stop recording all cameras")
133+
129134

130135
self.control_all_hlayout = QHBoxLayout()
131136
self.control_all_hlayout.addWidget(self.start_recording_button)

0 commit comments

Comments
 (0)