Fix Text Not Hiding
Browse files
run.py
CHANGED
|
@@ -258,19 +258,25 @@ class MainWindow(QMainWindow):
|
|
| 258 |
lut_box.setLayout(lut_box_layout)
|
| 259 |
lut_box_layout.addWidget(self.lut_line)
|
| 260 |
lut_box_layout.addWidget(self.lut_btn)
|
| 261 |
-
|
|
|
|
| 262 |
|
| 263 |
self.lut_strength_spin = QDoubleSpinBox()
|
| 264 |
self.lut_strength_spin.setRange(0.0, 1.0)
|
| 265 |
self.lut_strength_spin.setSingleStep(0.01)
|
| 266 |
self.lut_strength_spin.setValue(1.0)
|
| 267 |
self.lut_strength_spin.setToolTip("Blend strength for LUT (0.0 = no effect, 1.0 = full LUT)")
|
| 268 |
-
|
|
|
|
| 269 |
|
| 270 |
-
# Initially hide LUT controls
|
|
|
|
| 271 |
lut_box.setVisible(False)
|
|
|
|
| 272 |
self.lut_strength_spin.setVisible(False)
|
| 273 |
-
|
|
|
|
|
|
|
| 274 |
|
| 275 |
# Camera simulator collapsible group
|
| 276 |
self.camera_box = CollapsibleBox("Camera simulator options")
|
|
|
|
| 258 |
lut_box.setLayout(lut_box_layout)
|
| 259 |
lut_box_layout.addWidget(self.lut_line)
|
| 260 |
lut_box_layout.addWidget(self.lut_btn)
|
| 261 |
+
self.lut_file_label = QLabel("LUT file (png/.npy/.cube)")
|
| 262 |
+
params_layout.addRow(self.lut_file_label, lut_box)
|
| 263 |
|
| 264 |
self.lut_strength_spin = QDoubleSpinBox()
|
| 265 |
self.lut_strength_spin.setRange(0.0, 1.0)
|
| 266 |
self.lut_strength_spin.setSingleStep(0.01)
|
| 267 |
self.lut_strength_spin.setValue(1.0)
|
| 268 |
self.lut_strength_spin.setToolTip("Blend strength for LUT (0.0 = no effect, 1.0 = full LUT)")
|
| 269 |
+
self.lut_strength_label = QLabel("LUT strength")
|
| 270 |
+
params_layout.addRow(self.lut_strength_label, self.lut_strength_spin)
|
| 271 |
|
| 272 |
+
# Initially hide LUT controls and their labels
|
| 273 |
+
self.lut_file_label.setVisible(False)
|
| 274 |
lut_box.setVisible(False)
|
| 275 |
+
self.lut_strength_label.setVisible(False)
|
| 276 |
self.lut_strength_spin.setVisible(False)
|
| 277 |
+
|
| 278 |
+
# Store all widgets that need their visibility toggled
|
| 279 |
+
self._lut_controls = (self.lut_file_label, lut_box, self.lut_strength_label, self.lut_strength_spin)
|
| 280 |
|
| 281 |
# Camera simulator collapsible group
|
| 282 |
self.camera_box = CollapsibleBox("Camera simulator options")
|