Preferences/ToolConfigurationDialog.py

changeset 3010
befeff46ec0f
parent 2302
f29e9405c851
child 3020
542e97d4ecb3
child 3057
10516539f238
diff -r bf5ae5d7477d -r befeff46ec0f Preferences/ToolConfigurationDialog.py
--- a/Preferences/ToolConfigurationDialog.py	Sat Oct 12 17:31:40 2013 +0200
+++ b/Preferences/ToolConfigurationDialog.py	Sat Oct 12 18:25:29 2013 +0200
@@ -40,7 +40,8 @@
             ("no", self.trUtf8("no redirection")),
             ("show", self.trUtf8("show output")),
             ("insert", self.trUtf8("insert into current editor")),
-            ("replaceSelection", self.trUtf8("replace selection of current editor")),
+            ("replaceSelection",
+             self.trUtf8("replace selection of current editor")),
         ]
         
         self.toollist = copy.deepcopy(toollist)
@@ -117,7 +118,8 @@
                     " Please choose an executable filename."))
             return
         
-        if len(self.toolsList.findItems(menutext, Qt.MatchFlags(Qt.MatchExactly))):
+        if len(self.toolsList.findItems(
+                menutext, Qt.MatchFlags(Qt.MatchExactly))):
             E5MessageBox.critical(self,
                 self.trUtf8("Add tool entry"),
                 self.trUtf8("An entry for the menu text {0} already exists.")\
@@ -246,7 +248,8 @@
     @pyqtSlot()
     def on_executableButton_clicked(self):
         """
-        Private slot to handle the executable selection via a file selection dialog.
+        Private slot to handle the executable selection via a file selection
+        dialog.
         """
         execfile = E5FileDialog.getOpenFileName(
             self,
@@ -296,7 +299,8 @@
                 self.iconEdit.setText(tool['icon'])
                 self.executableEdit.setText(tool['executable'])
                 self.argumentsEdit.setText(tool['arguments'])
-                self.redirectCombo.setCurrentIndex(self.__findModeIndex(tool['redirect']))
+                self.redirectCombo.setCurrentIndex(
+                    self.__findModeIndex(tool['redirect']))
             
             self.changeButton.setEnabled(False)
             self.deleteButton.setEnabled(True)

eric ide

mercurial