added public method to change timer stopped attribute

This commit is contained in:
iLLiCiTiT 2021-09-28 12:55:03 +02:00
parent 4c8ae9d8a9
commit bc1ad2b7d2

View file

@ -107,6 +107,10 @@ class WidgetUserIdle(QtWidgets.QWidget):
self.setMaximumSize(QtCore.QSize(self.SIZE_W+100, self.SIZE_H+100))
self.setStyleSheet(style.load_stylesheet())
def set_timer_stopped(self):
self._timer_stopped = True
self._refresh_context()
def _update_countdown_label(self):
self.lbl_rest_time.setText(str(self._countdown))