jdxi_editor.ui.widgets.switch.lit_button ======================================== .. py:module:: jdxi_editor.ui.widgets.switch.lit_button .. autoapi-nested-parse:: Lit Button A checkable button that lights like a JD-Xi panel button: dark when off, filled with the illuminated red (with a soft glow) when on. .. rubric:: Example >>> button = LitButton("ON") # doctest: +SKIP >>> button.setChecked(True) # lit, even with signals blocked Attributes ---------- .. autoapisummary:: jdxi_editor.ui.widgets.switch.lit_button.GLOW_RADIUS Classes ------- .. autoapisummary:: jdxi_editor.ui.widgets.switch.lit_button.LitButton Module Contents --------------- .. py:data:: GLOW_RADIUS :value: 16 .. py:class:: LitButton(text: str, parent: Optional[PySide6.QtWidgets.QWidget] = None, color: Optional[str] = None) Bases: :py:obj:`PySide6.QtWidgets.QPushButton` Checkable panel-style button with an LED-like lit state. .. py:attribute:: _color :value: '#E04435' .. py:method:: stylesheet(color: str) -> str :staticmethod: .. py:method:: checkStateSet() -> None setChecked() from code (also with signals blocked): update the glow. .. py:method:: nextCheckState() -> None A click: update the glow. .. py:method:: is_lit() -> bool .. py:method:: _update_glow() -> None