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:
@ -1,2 +1,7 @@
|
||||
class BECWidget:
|
||||
"""Base class for all BEC widgets."""
|
||||
|
||||
def closeEvent(self, event):
|
||||
if hasattr(self, "cleanup"):
|
||||
self.cleanup()
|
||||
event.accept()
|
||||
|
Reference in New Issue
Block a user