Preferences/ToolConfigurationDialog.py

changeset 945
8cd4d08fa9f6
parent 882
34b86be88bf0
child 1112
8a7d1b9d18db
--- a/Preferences/ToolConfigurationDialog.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/Preferences/ToolConfigurationDialog.py	Fri Mar 11 16:51:57 2011 +0100
@@ -18,6 +18,7 @@
 from .Ui_ToolConfigurationDialog import Ui_ToolConfigurationDialog
 import Utilities
 
+
 class ToolConfigurationDialog(QDialog, Ui_ToolConfigurationDialog):
     """
     Class implementing a configuration dialog for the tools menu.
@@ -125,11 +126,11 @@
         
         self.toolsList.addItem(menutext)
         tool = {
-            'menutext' : menutext,
-            'icon' : icon,
-            'executable' : executable,
-            'arguments' : arguments,
-            'redirect' : redirect,
+            'menutext': menutext,
+            'icon': icon,
+            'executable': executable,
+            'arguments': arguments,
+            'redirect': redirect,
         }
         self.toollist.append(tool)
         
@@ -171,11 +172,11 @@
             return
             
         self.toollist[row] = {
-            'menutext' : menutext,
-            'icon' : icon,
-            'executable' : executable,
-            'arguments' : arguments,
-            'redirect' : redirect,
+            'menutext': menutext,
+            'icon': icon,
+            'executable': executable,
+            'arguments': arguments,
+            'redirect': redirect,
         }
         self.toolsList.currentItem().setText(menutext)
         self.changeButton.setEnabled(False)
@@ -234,11 +235,11 @@
         """
         self.toolsList.addItem('--')
         tool = {
-            'menutext' : '--',
-            'icon' : '',
-            'executable' : '',
-            'arguments' : '',
-            'redirect' : 'no',
+            'menutext': '--',
+            'icon': '',
+            'executable': '',
+            'arguments': '',
+            'redirect': 'no',
         }
         self.toollist.append(tool)
         
@@ -305,7 +306,7 @@
             else:
                 self.upButton.setEnabled(False)
             
-            if row+1 != len(self.toollist):
+            if row + 1 != len(self.toollist):
                 self.downButton.setEnabled(True)
             else:
                 self.downButton.setEnabled(False)
@@ -372,9 +373,9 @@
         
     def getToollist(self):
         """
-        Public method to retrieve the tools list. 
+        Public method to retrieve the tools list.
         
-        @return a list of tuples containing the menu text, the executable, 
+        @return a list of tuples containing the menu text, the executable,
             the executables arguments and a redirection flag
         """
         return self.toollist[:]

eric ide

mercurial