75 |
75 |
76 def on_buttonBox_clicked(self, button): |
76 def on_buttonBox_clicked(self, button): |
77 """ |
77 """ |
78 Private slot called by a button of the button box clicked. |
78 Private slot called by a button of the button box clicked. |
79 |
79 |
80 @param button button that was clicked (QAbstractButton) |
80 @param button button that was clicked |
|
81 @type QAbstractButton |
81 """ |
82 """ |
82 if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close): |
83 if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close): |
83 self.close() |
84 self.close() |
84 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): |
85 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): |
85 self.finish() |
86 self.finish() |