0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

fix(bec_widget): added cleanup method to bec widget base class

This commit is contained in:
2024-07-08 16:17:40 +02:00
committed by wyzula_j
parent 5de8804da1
commit fd8766ed87

View File

@ -1,2 +1,7 @@
class BECWidget:
"""Base class for all BEC widgets."""
def closeEvent(self, event):
if hasattr(self, "cleanup"):
self.cleanup()
event.accept()