319 self.cancelled = False |
319 self.cancelled = False |
320 self.buttonBox.button(QDialogButtonBox.StandardButton.Close).setEnabled(False) |
320 self.buttonBox.button(QDialogButtonBox.StandardButton.Close).setEnabled(False) |
321 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setEnabled(True) |
321 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setEnabled(True) |
322 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setDefault(True) |
322 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setDefault(True) |
323 |
323 |
324 def closeEvent(self, evt): |
324 def closeEvent(self, _evt): |
325 """ |
325 """ |
326 Protected method to handle the close event. |
326 Protected method to handle the close event. |
327 |
327 |
328 @param evt reference to the close event |
328 @param _evt reference to the close event (unused) |
329 @type QCloseEvent |
329 @type QCloseEvent |
330 """ |
330 """ |
331 self.cancelled = True |
331 self.cancelled = True |
332 # The rest is done by the __populateLists() method. |
332 # The rest is done by the __populateLists() method. |
333 |
333 |