0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

fix(spinner): stop timer on close event

This commit is contained in:
2024-07-31 20:58:46 +02:00
committed by wyzula_j
parent 1f30dd73a9
commit 30fef929cf

View File

@ -75,6 +75,10 @@ class SpinnerWidget(QWidget):
painter.drawArc(adjusted_rect, self.angle * 16, int(angle_span))
painter.end()
def closeEvent(self, event):
self.timer.stop()
super().closeEvent(event)
if __name__ == "__main__": # pragma: no cover
app = QApplication(sys.argv)