diff --git a/pyqt-apps/siriushla/as_ps_cycle/cycle_window.py b/pyqt-apps/siriushla/as_ps_cycle/cycle_window.py index ad9efc6a1..215f63c1b 100644 --- a/pyqt-apps/siriushla/as_ps_cycle/cycle_window.py +++ b/pyqt-apps/siriushla/as_ps_cycle/cycle_window.py @@ -707,6 +707,7 @@ def keyPressEvent(self, evt): super().keyPressEvent(evt) def closeEvent(self, ev): + """.""" self._update_setup_timer.stop() super().closeEvent(ev) @@ -715,13 +716,17 @@ def closeEvent(self, ev): class MyProgressBar(QProgressBar): + """.""" + def __init__(self, parent=None): + """.""" super().__init__(parent) pal = self.palette() self.default_color = pal.color(QPalette.Highlight) self.warning_color = Qt.red def increment(self): + """.""" current_val = self.value() max_val = self.maximum() if max_val > current_val: @@ -729,9 +734,11 @@ def increment(self): class UpdateProgressBar(QThread): + """.""" increment = Signal() def __init__(self, duration, parent=None): + """.""" super().__init__(parent) self._duration = duration self._quit_task = False @@ -741,6 +748,7 @@ def exit_task(self): self._quit_task = True def run(self): + """.""" t0 = _time.time() while _time.time() - t0 < self._duration: if self._quit_task: