diff --git a/pydm/widgets/byte.py b/pydm/widgets/byte.py index 4d8816b36..6653d32a8 100644 --- a/pydm/widgets/byte.py +++ b/pydm/widgets/byte.py @@ -638,6 +638,28 @@ def paintEvent(self, event: QPaintEvent) -> None: self._painter.drawEllipse(QPoint(w // 2, h // 2), r, r) self._painter.end() + # color state setters/getters + @Property(int) + def currentValue(self) -> int: + """ + The color for when widget is in state 0 + Returns + ------- + int + """ + return self._curr_state + + @currentValue.setter + def currentValue(self, new_state: int) -> None: + """ + The color for when widget is in state 0 + Parameters + ---------- + new_color : int + """ + if new_state != self._curr_state: + self._curr_state = new_state + # color state setters/getters @Property(QColor) def state0Color(self) -> QColor: