diff -r 27f636beebad -r 2c730d5fd177 eric6/Plugins/WizardPlugins/ColorDialogWizard/ColorDialogWizardDialog.py --- a/eric6/Plugins/WizardPlugins/ColorDialogWizard/ColorDialogWizardDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Plugins/WizardPlugins/ColorDialogWizard/ColorDialogWizardDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -35,7 +35,7 @@ self.setupUi(self) self.bTest = self.buttonBox.addButton( - self.tr("Test"), QDialogButtonBox.ActionRole) + self.tr("Test"), QDialogButtonBox.ButtonRole.ActionRole) msh = self.minimumSizeHint() self.resize(max(self.width(), msh.width()), msh.height()) @@ -80,7 +80,8 @@ QColor(self.sRed.value(), self.sGreen.value(), self.sBlue.value(), self.sAlpha.value()), None, self.eTitle.text(), - QColorDialog.ColorDialogOptions(QColorDialog.ShowAlphaChannel)) + QColorDialog.ColorDialogOptions( + QColorDialog.ColorDialogOption.ShowAlphaChannel)) def on_eRGB_textChanged(self, text): """ @@ -150,13 +151,15 @@ code += '{0}QColor({1}),{2}'.format( istring, col, os.linesep) else: - code += '{0}QColor(Qt.white),{1}'.format(istring, os.linesep) + code += '{0}QColor(Qt.GlobalColor.white),{1}'.format( + istring, os.linesep) code += '{0}{1},{2}'.format(istring, parent, os.linesep) code += '{0}self.tr("{1}"),{2}'.format( istring, self.eTitle.text(), os.linesep) code += ( '{0}QColorDialog.ColorDialogOptions(' - 'QColorDialog.ShowAlphaChannel)'.format(istring) + 'QColorDialog.ColorDialogOption.ShowAlphaChannel)' + .format(istring) ) code += '){0}'.format(estring) elif self.rRGBA.isChecked(): @@ -173,7 +176,8 @@ istring, self.eTitle.text(), os.linesep) code += ( '{0}QColorDialog.ColorDialogOptions(' - 'QColorDialog.ShowAlphaChannel)'.format(istring) + 'QColorDialog.ColorDialogOption.ShowAlphaChannel)' + .format(istring) ) code += '){0}'.format(estring)