304 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setEnabled(True) |
304 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setEnabled(True) |
305 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setDefault(True) |
305 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setDefault(True) |
306 |
306 |
307 def closeEvent(self, evt): |
307 def closeEvent(self, evt): |
308 """ |
308 """ |
309 Public method to handle the close event. |
309 Protected method to handle the close event. |
310 |
310 |
311 @param evt reference to the close event |
311 @param evt reference to the close event |
312 @type QCloseEvent |
312 @type QCloseEvent |
313 """ |
313 """ |
314 self.cancelled = True |
314 self.cancelled = True |