Plugins/WizardPlugins/MessageBoxWizard/MessageBoxWizardDialog.py

changeset 446
69aac6eeba9b
parent 425
ca5e65413fc5
child 537
72b32daeb8d6
diff -r 6f3b2099858e -r 69aac6eeba9b Plugins/WizardPlugins/MessageBoxWizard/MessageBoxWizardDialog.py
--- a/Plugins/WizardPlugins/MessageBoxWizard/MessageBoxWizardDialog.py	Sat Jul 31 16:41:42 2010 +0200
+++ b/Plugins/WizardPlugins/MessageBoxWizard/MessageBoxWizardDialog.py	Sat Jul 31 17:17:07 2010 +0200
@@ -294,13 +294,14 @@
         # calculate our indentation level and the indentation string
         il = indLevel + 1
         istring = il * indString
+        estring = os.linesep + indLevel * indString
         
         # now generate the code
         msgdlg = 'QMessageBox.'
         if self.rAbout.isChecked():
             msgdlg += "about(None,{0}".format(os.linesep)
         elif self.rAboutQt.isChecked():
-            msgdlg += "aboutQt(None, {0}".format(os.linesep)
+            msgdlg += "aboutQt(None,{0}".format(os.linesep)
         elif self.rInformation.isChecked():
             msgdlg += "information(None,{0}".format(os.linesep)
         elif self.rQuestion.isChecked():
@@ -315,5 +316,5 @@
                 os.linesep, istring, self.eMessage.toPlainText())
         if not self.rAbout.isChecked() and not self.rAboutQt.isChecked():
             msgdlg += self.__getQt42ButtonCode(istring, indString)
-        msgdlg +='){0}'.format(os.linesep)
+        msgdlg +='){0}'.format(estring)
         return msgdlg

eric ide

mercurial