--- a/eric7/Plugins/WizardPlugins/MessageBoxWizard/MessageBoxWizardDialog.py Mon May 17 19:58:15 2021 +0200 +++ b/eric7/Plugins/WizardPlugins/MessageBoxWizard/MessageBoxWizardDialog.py Tue May 18 18:19:47 2021 +0200 @@ -153,7 +153,7 @@ self, self.eCaption.text(), self.eMessage.toPlainText(), - QMessageBox.StandardButtons(buttons), + buttons, defaultButton ) elif self.rQuestion.isChecked(): @@ -161,7 +161,7 @@ self, self.eCaption.text(), self.eMessage.toPlainText(), - QMessageBox.StandardButtons(buttons), + buttons, defaultButton ) elif self.rWarning.isChecked(): @@ -169,7 +169,7 @@ self, self.eCaption.text(), self.eMessage.toPlainText(), - QMessageBox.StandardButtons(buttons), + buttons, defaultButton ) elif self.rCritical.isChecked(): @@ -177,7 +177,7 @@ self, self.eCaption.text(), self.eMessage.toPlainText(), - QMessageBox.StandardButtons(buttons), + buttons, defaultButton ) @@ -286,7 +286,7 @@ istring2 = istring + indString joinstring = ' |{0}{1}'.format(os.linesep, istring2) - btnCode = ',{0}{1}QMessageBox.StandardButtons('.format( + btnCode = ',{0}{1}('.format( os.linesep, istring) btnCode += '{0}{1}{2})'.format( os.linesep, istring2, joinstring.join(buttons))