added method to update countdown label

This commit is contained in:
iLLiCiTiT 2021-09-28 12:54:21 +02:00
parent cddf357daf
commit 4c8ae9d8a9

View file

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