1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-12-31 11:11:17 +01: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
parent b9f2abcb21
commit 08a39bf41c

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()