Preferences/ToolConfigurationDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3010
befeff46ec0f
child 3058
0a02c433f52d
--- a/Preferences/ToolConfigurationDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Preferences/ToolConfigurationDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -42,7 +42,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)
@@ -119,7 +120,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.")\
@@ -248,7 +250,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,
@@ -298,7 +301,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