Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3025
67064c71df21
child 3060
5883ce99ee12
--- a/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py	Fri Nov 01 15:48:48 2013 +0100
@@ -249,13 +249,14 @@
         Private method to test the selected options.
         """
         if self.rAbout.isChecked():
-            E5MessageBox.about(None,
+            E5MessageBox.about(
+                None,
                 self.eCaption.text(),
                 self.eMessage.toPlainText()
             )
         elif self.rAboutQt.isChecked():
-            E5MessageBox.aboutQt(None,
-                self.eCaption.text()
+            E5MessageBox.aboutQt(
+                None, self.eCaption.text()
             )
         elif self.rInformation.isChecked() or \
              self.rQuestion.isChecked() or \
@@ -305,28 +306,32 @@
                 self.defaultCombo.currentIndex()]
             
             if self.rInformation.isChecked():
-                E5MessageBox.information(self,
+                E5MessageBox.information(
+                    self,
                     self.eCaption.text(),
                     self.eMessage.toPlainText(),
                     E5MessageBox.StandardButtons(buttons),
                     defaultButton
                 )
             elif self.rQuestion.isChecked():
-                E5MessageBox.question(self,
+                E5MessageBox.question(
+                    self,
                     self.eCaption.text(),
                     self.eMessage.toPlainText(),
                     E5MessageBox.StandardButtons(buttons),
                     defaultButton
                 )
             elif self.rWarning.isChecked():
-                E5MessageBox.warning(self,
+                E5MessageBox.warning(
+                    self,
                     self.eCaption.text(),
                     self.eMessage.toPlainText(),
                     E5MessageBox.StandardButtons(buttons),
                     defaultButton
                 )
             elif self.rCritical.isChecked():
-                E5MessageBox.critical(self,
+                E5MessageBox.critical(
+                    self,
                     self.eCaption.text(),
                     self.eMessage.toPlainText(),
                     E5MessageBox.StandardButtons(buttons),
@@ -344,20 +349,23 @@
                 icon = E5MessageBox.Critical
             
             if self.rYesNo.isChecked():
-                E5MessageBox.yesNo(self,
+                E5MessageBox.yesNo(
+                    self,
                     self.eCaption.text(),
                     self.eMessage.toPlainText(),
                     icon=icon,
                     yesDefault=self.yesDefaultCheck.isChecked()
                 )
             elif self.rRetryAbort.isChecked():
-                E5MessageBox.retryAbort(self,
+                E5MessageBox.retryAbort(
+                    self,
                     self.eCaption.text(),
                     self.eMessage.toPlainText(),
                     icon=icon
                 )
         elif self.rOkToClearData.isChecked():
-            E5MessageBox.okToClearData(self,
+            E5MessageBox.okToClearData(
+                self,
                 self.eCaption.text(),
                 self.eMessage.toPlainText(),
                 lambda: True
@@ -436,7 +444,8 @@
         btnCode = ""
         defaultIndex = self.defaultCombo.currentIndex()
         if defaultIndex:
-            btnCode = ',{0}{1}{2}'.format(os.linesep, istring,
+            btnCode = ',{0}{1}{2}'.format(
+                os.linesep, istring,
                 self.buttonsCodeListText[defaultIndex])
         return btnCode
     

eric ide

mercurial