302 self.cancelled = False |
302 self.cancelled = False |
303 self.buttonBox.button(QDialogButtonBox.StandardButton.Close).setEnabled(False) |
303 self.buttonBox.button(QDialogButtonBox.StandardButton.Close).setEnabled(False) |
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): |
|
308 """ |
|
309 Public method to handle the close event. |
|
310 |
|
311 @param evt reference to the close event |
|
312 @type QCloseEvent |
|
313 """ |
|
314 self.cancelled = True |
|
315 # The rest is done by the __populateLists() method. |
|
316 |
307 def on_buttonBox_clicked(self, button): |
317 def on_buttonBox_clicked(self, button): |
308 """ |
318 """ |
309 Private slot called by a button of the button box clicked. |
319 Private slot called by a button of the button box clicked. |
310 |
320 |
311 @param button button that was clicked (QAbstractButton) |
321 @param button button that was clicked (QAbstractButton) |