Preferences/ToolConfigurationDialog.py

changeset 3020
542e97d4ecb3
parent 3010
befeff46ec0f
child 3025
67064c71df21
--- a/Preferences/ToolConfigurationDialog.py	Mon Oct 14 18:26:25 2013 +0200
+++ b/Preferences/ToolConfigurationDialog.py	Mon Oct 14 19:30:36 2013 +0200
@@ -97,21 +97,24 @@
         redirect = self.redirectionModes[self.redirectCombo.currentIndex()][0]
         
         if not executable:
-            E5MessageBox.critical(self,
+            E5MessageBox.critical(
+                self,
                 self.trUtf8("Add tool entry"),
                 self.trUtf8("You have to set an executable to add to the"
                     " Tools-Menu first."))
             return
         
         if not menutext:
-            E5MessageBox.critical(self,
+            E5MessageBox.critical(
+                self,
                 self.trUtf8("Add tool entry"),
                 self.trUtf8("You have to insert a menuentry text to add the"
                     " selected program to the Tools-Menu first."))
             return
         
         if not Utilities.isinpath(executable):
-            E5MessageBox.critical(self,
+            E5MessageBox.critical(
+                self,
                 self.trUtf8("Add tool entry"),
                 self.trUtf8("The selected file could not be found or"
                     " is not an executable."
@@ -120,7 +123,8 @@
         
         if len(self.toolsList.findItems(
                 menutext, Qt.MatchFlags(Qt.MatchExactly))):
-            E5MessageBox.critical(self,
+            E5MessageBox.critical(
+                self,
                 self.trUtf8("Add tool entry"),
                 self.trUtf8("An entry for the menu text {0} already exists.")\
                     .format(menutext))
@@ -152,21 +156,24 @@
         redirect = self.redirectionModes[self.redirectCombo.currentIndex()][0]
         
         if not executable:
-            E5MessageBox.critical(self,
+            E5MessageBox.critical(
+                self,
                 self.trUtf8("Change tool entry"),
                 self.trUtf8("You have to set an executable to change the"
                     " Tools-Menu entry."))
             return
             
         if not menutext:
-            E5MessageBox.critical(self,
+            E5MessageBox.critical(
+                self,
                 self.trUtf8("Change tool entry"),
                 self.trUtf8("You have to insert a menuentry text to change the"
                     " selected Tools-Menu entry."))
             return
             
         if not Utilities.isinpath(executable):
-            E5MessageBox.critical(self,
+            E5MessageBox.critical(
+                self,
                 self.trUtf8("Change tool entry"),
                 self.trUtf8("The selected file could not be found or"
                     " is not an executable."
@@ -259,7 +266,8 @@
         if execfile:
             execfile = Utilities.toNativeSeparators(execfile)
             if not Utilities.isinpath(execfile):
-                E5MessageBox.critical(self,
+                E5MessageBox.critical(
+                    self,
                     self.trUtf8("Select executable"),
                     self.trUtf8("The selected file is not an executable."
                         " Please choose an executable filename."))

eric ide

mercurial