Plugins/WizardPlugins/ColorDialogWizard/ColorDialogWizardDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3005
3953ddfb991d
child 3058
0a02c433f52d
--- a/Plugins/WizardPlugins/ColorDialogWizard/ColorDialogWizardDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Plugins/WizardPlugins/ColorDialogWizard/ColorDialogWizardDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -35,8 +35,8 @@
         super(ColorDialogWizardDialog, self).__init__(parent)
         self.setupUi(self)
         
-        self.bTest = \
-            self.buttonBox.addButton(self.trUtf8("Test"), QDialogButtonBox.ActionRole)
+        self.bTest = self.buttonBox.addButton(
+            self.trUtf8("Test"), QDialogButtonBox.ActionRole)
     
     def on_buttonBox_clicked(self, button):
         """
@@ -68,7 +68,8 @@
                 except:
                     E5MessageBox.critical(self,
                         self.trUtf8("QColorDialog Wizard Error"),
-                        self.trUtf8("""<p>The colour <b>{0}</b> is not valid.</p>""")
+                        self.trUtf8(
+                            """<p>The colour <b>{0}</b> is not valid.</p>""")
                             .format(coStr))
             
         elif self.rRGBA.isChecked():
@@ -134,9 +135,8 @@
             code += ', None,{0}'.format(os.linesep)
             code += '{0}self.trUtf8("{1}"),{2}'.format(
                 istring, self.eTitle.text(), os.linesep)
-            code += \
-                '{0}QColorDialog.ColorDialogOptions(QColorDialog.ShowAlphaChannel)'\
-                    .format(istring)
+            code += '{0}QColorDialog.ColorDialogOptions(' \
+                'QColorDialog.ShowAlphaChannel)'.format(istring)
             code += '){0}'.format(estring)
         elif self.rRGBA.isChecked():
             code += 'getColor('
@@ -149,9 +149,8 @@
             code += '{0}None,{1}'.format(istring, os.linesep)
             code += '{0}self.trUtf8("{1}"),{2}'.format(
                 istring, self.eTitle.text(), os.linesep)
-            code += \
-                '{0}QColorDialog.ColorDialogOptions(QColorDialog.ShowAlphaChannel)'\
-                    .format(istring)
+            code += '{0}QColorDialog.ColorDialogOptions(' \
+                'QColorDialog.ShowAlphaChannel)'.format(istring)
             code += '){0}'.format(estring)
         
         return code

eric ide

mercurial