--- a/eric7/Plugins/WizardPlugins/InputDialogWizard/InputDialogWizardDialog.py Wed Jun 09 17:13:01 2021 +0200 +++ b/eric7/Plugins/WizardPlugins/InputDialogWizard/InputDialogWizardDialog.py Wed Jun 09 17:48:02 2021 +0200 @@ -156,7 +156,7 @@ if self.eTextDefault.text(): code += ',{0}{1}self.tr("{2}")'.format( os.linesep, istring, self.eTextDefault.text()) - code += '){0}'.format(estring) + code += '{0}){0}'.format(estring) elif self.rInteger.isChecked(): code += 'getInt({0}{1}'.format(os.linesep, istring) code += '{0},{1}{2}'.format(parent, os.linesep, istring) @@ -164,9 +164,10 @@ self.eCaption.text(), os.linesep, istring) code += 'self.tr("{0}"),{1}{2}'.format( self.eLabel.text(), os.linesep, istring) - code += '{0:d}, {1:d}, {2:d}, {3:d}){4}'.format( + code += '{0:d}, {1:d}, {2:d}, {3:d}'.format( self.sIntDefault.value(), self.sIntFrom.value(), - self.sIntTo.value(), self.sIntStep.value(), estring) + self.sIntTo.value(), self.sIntStep.value()) + code += '{0}){0}'.format(estring) elif self.rDouble.isChecked(): try: doubleDefault = float(self.eDoubleDefault.text()) @@ -186,9 +187,10 @@ self.eCaption.text(), os.linesep, istring) code += 'self.tr("{0}"),{1}{2}'.format( self.eLabel.text(), os.linesep, istring) - code += '{0}, {1}, {2}, {3:d}){4}'.format( + code += '{0}, {1}, {2}, {3:d}'.format( doubleDefault, doubleFrom, doubleTo, - self.sDoubleDecimals.value(), estring) + self.sDoubleDecimals.value()) + code += '{0}){0}'.format(estring) elif self.rItem.isChecked(): code += 'getItem({0}{1}'.format(os.linesep, istring) code += '{0},{1}{2}'.format(parent, os.linesep, istring) @@ -198,7 +200,8 @@ self.eLabel.text(), os.linesep, istring) code += '{0},{1}{2}'.format( self.eVariable.text(), os.linesep, istring) - code += '{0:d}, {1}){2}'.format( - self.sCurrentItem.value(), self.cEditable.isChecked(), estring) + code += '{0:d}, {1}'.format( + self.sCurrentItem.value(), self.cEditable.isChecked()) + code += '{0}){0}'.format(estring) return code