style: wrap shutter flag f-strings for ruff format
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8f91f1ed2e
commit
32a835b661
1 file changed
+6
-2
@@ -87,9 +87,13 @@ class MonochromatorPanel(QWidget):
|
||||
if self._shutter_open is None:
|
||||
text = "Fast Shutter: —"
|
||||
elif self._shutter_open:
|
||||
text = f"""Fast Shutter: <span style="color: {self._colors["alert"]} ; "> Open ☢️ </span>"""
|
||||
text = (
|
||||
f"""Fast Shutter: <span style="color: {self._colors["alert"]} ; "> Open ☢️ </span>"""
|
||||
)
|
||||
else:
|
||||
text = f"""Fast Shutter: <span style="color: {self._colors["ok"]} ; "> Closed 🚪 </span>"""
|
||||
text = (
|
||||
f"""Fast Shutter: <span style="color: {self._colors["ok"]} ; "> Closed 🚪 </span>"""
|
||||
)
|
||||
if self.shutter_status_label.text() != text:
|
||||
self.shutter_status_label.setText(text)
|
||||
|
||||
|
||||
Reference in new issue
Block a user