Project/DebuggerPropertiesDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2995
63d874899b8b
child 3058
0a02c433f52d
diff -r 9986ec0e559a -r 10516539f238 Project/DebuggerPropertiesDialog.py
--- a/Project/DebuggerPropertiesDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Project/DebuggerPropertiesDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -27,7 +27,8 @@
 
 class DebuggerPropertiesDialog(QDialog, Ui_DebuggerPropertiesDialog):
     """
-    Class implementing a dialog for entering project specific debugger settings.
+    Class implementing a dialog for entering project specific debugger
+    settings.
     """
     def __init__(self, project, parent=None, name=None):
         """
@@ -44,26 +45,32 @@
         
         self.debugClientCompleter = E5FileCompleter(self.debugClientEdit)
         self.interpreterCompleter = E5FileCompleter(self.interpreterEdit)
-        self.translationLocalCompleter = E5DirCompleter(self.translationLocalEdit)
+        self.translationLocalCompleter = E5DirCompleter(
+            self.translationLocalEdit)
         
         self.project = project
         
         if self.project.debugProperties["INTERPRETER"]:
-            self.interpreterEdit.setText(self.project.debugProperties["INTERPRETER"])
+            self.interpreterEdit.setText(
+                self.project.debugProperties["INTERPRETER"])
         else:
-            if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2", "Python3"]:
+            if self.project.pdata["PROGLANGUAGE"][0] in \
+                    ["Python", "Python2", "Python3"]:
                 self.interpreterEdit.setText(sys.executable)
             elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby":
                 self.interpreterEdit.setText("/usr/bin/ruby")
         if self.project.debugProperties["DEBUGCLIENT"]:
-            self.debugClientEdit.setText(self.project.debugProperties["DEBUGCLIENT"])
+            self.debugClientEdit.setText(
+                self.project.debugProperties["DEBUGCLIENT"])
         else:
             if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2"]:
-                debugClient = os.path.join(getConfig('ericDir'),
-                                           "DebugClients", "Python", "DebugClient.py")
+                debugClient = os.path.join(
+                    getConfig('ericDir'),
+                    "DebugClients", "Python", "DebugClient.py")
             elif self.project.pdata["PROGLANGUAGE"][0] == "Python3":
-                debugClient = os.path.join(getConfig('ericDir'),
-                                           "DebugClients", "Python3", "DebugClient.py")
+                debugClient = os.path.join(
+                    getConfig('ericDir'),
+                    "DebugClients", "Python3", "DebugClient.py")
             elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby":
                 debugClient = os.path.join(getConfig('ericDir'),
                     "DebugClients", "Ruby", "DebugClient.rb")
@@ -114,7 +121,8 @@
         """
         Private slot to handle the Debug Client selection.
         """
-        filters = self.project.dbgFilters[self.project.pdata["PROGLANGUAGE"][0]]
+        filters = self.project.dbgFilters[
+            self.project.pdata["PROGLANGUAGE"][0]]
         filters += self.trUtf8("All Files (*)")
         file = E5FileDialog.getOpenFileName(
             self,
@@ -132,7 +140,8 @@
         self.project.debugProperties["INTERPRETER"] = \
             self.interpreterEdit.text()
         if not self.project.debugProperties["INTERPRETER"]:
-            if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2", "Python3"]:
+            if self.project.pdata["PROGLANGUAGE"][0] in \
+                    ["Python", "Python2", "Python3"]:
                 self.project.debugProperties["INTERPRETER"] = sys.executable
             elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby":
                 self.project.debugProperties["INTERPRETER"] = "/usr/bin/ruby"
@@ -141,11 +150,13 @@
             self.debugClientEdit.text()
         if not self.project.debugProperties["DEBUGCLIENT"]:
             if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2"]:
-                debugClient = os.path.join(getConfig('ericDir'),
-                                           "DebugClients", "Python", "DebugClient.py")
+                debugClient = os.path.join(
+                    getConfig('ericDir'),
+                    "DebugClients", "Python", "DebugClient.py")
             elif self.project.pdata["PROGLANGUAGE"][0] == "Python3":
-                debugClient = os.path.join(getConfig('ericDir'),
-                                           "DebugClients", "Python3", "DebugClient.py")
+                debugClient = os.path.join(
+                    getConfig('ericDir'),
+                    "DebugClients", "Python3", "DebugClient.py")
             elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby":
                 debugClient = os.path.join(getConfig('ericDir'),
                     "DebugClients", "Ruby", "DebugClient.rb")

eric ide

mercurial