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

fix: overwrite closeEvent and call super class

This commit is contained in:
2024-07-04 17:27:29 +02:00
parent 0e802d8194
commit bc0ef7893e
4 changed files with 4 additions and 4 deletions

View File

@ -337,7 +337,7 @@ class BECStatusBox(BECConnector, QTreeWidget):
def closeEvent(self, event):
super().cleanup()
QTreeWidget().closeEvent(event)
return QTreeWidget.closeEvent(self, event)
def main():

View File

@ -89,4 +89,4 @@ class DeviceComboBox(DeviceInputBase, QComboBox):
def closeEvent(self, event):
super().cleanup()
QComboBox().closeEvent(event)
return QComboBox.closeEvent(self, event)

View File

@ -101,4 +101,4 @@ class DeviceLineEdit(DeviceInputBase, QLineEdit):
def closeEvent(self, event):
super().cleanup()
QLineEdit().closeEvent(event)
return QLineEdit.closeEvent(self, event)

View File

@ -198,7 +198,7 @@ class ScanControl(BECConnector, QWidget):
def closeEvent(self, event):
self.cleanup()
QWidget().closeEvent(event)
return QWidget.closeEvent(self, event)
# Application example