mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
fix(spinner): stop timer on close event
This commit is contained in:
@ -75,6 +75,10 @@ class SpinnerWidget(QWidget):
|
|||||||
painter.drawArc(adjusted_rect, self.angle * 16, int(angle_span))
|
painter.drawArc(adjusted_rect, self.angle * 16, int(angle_span))
|
||||||
painter.end()
|
painter.end()
|
||||||
|
|
||||||
|
def closeEvent(self, event):
|
||||||
|
self.timer.stop()
|
||||||
|
super().closeEvent(event)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__": # pragma: no cover
|
if __name__ == "__main__": # pragma: no cover
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
|
Reference in New Issue
Block a user