eric6/Project/PropertiesDialog.py

changeset 7266
d001bc703c29
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r 0665c4d509c9 -r d001bc703c29 eric6/Project/PropertiesDialog.py
--- a/eric6/Project/PropertiesDialog.py	Tue Sep 24 19:44:17 2019 +0200
+++ b/eric6/Project/PropertiesDialog.py	Wed Sep 25 18:25:43 2019 +0200
@@ -56,8 +56,8 @@
         for pattern, filetype in self.project.pdata["FILETYPES"].items():
             if filetype == "SOURCES":
                 patterns.append(pattern)
-        filters = self.tr("Source Files ({0});;All Files (*)")\
-            .format(" ".join(sorted(patterns)))
+        filters = self.tr("Source Files ({0});;All Files (*)"
+                          ).format(" ".join(sorted(patterns)))
         self.mainscriptPicker.setFilters(filters)
         
         self.languageComboBox.addItems(project.getProgrammingLanguages())
@@ -70,8 +70,10 @@
             self.projectTypeComboBox.addItem(
                 projectType[0], projectType[1])
         
-        ipath = Preferences.getMultiProject("Workspace") or \
+        ipath = (
+            Preferences.getMultiProject("Workspace") or
             Utilities.getHomeDir()
+        )
         self.__initPaths = [
             Utilities.fromNativeSeparators(ipath),
             Utilities.fromNativeSeparators(ipath) + "/",
@@ -100,11 +102,13 @@
             self.eolComboBox.setCurrentIndex(self.project.pdata["EOL"])
             self.vcsLabel.show()
             if self.project.vcs is not None:
-                vcsSystemsDict = e5App().getObject("PluginManager")\
+                vcsSystemsDict = (
+                    e5App().getObject("PluginManager")
                     .getPluginDisplayStrings("version_control")
+                )
                 try:
-                    vcsSystemDisplay = \
-                        vcsSystemsDict[self.project.pdata["VCS"]]
+                    vcsSystemDisplay = vcsSystemsDict[
+                        self.project.pdata["VCS"]]
                 except KeyError:
                     vcsSystemDisplay = "None"
                 self.vcsLabel.setText(
@@ -175,8 +179,8 @@
         """
         if self.spellPropertiesDlg is None:
             from .SpellingPropertiesDialog import SpellingPropertiesDialog
-            self.spellPropertiesDlg = \
-                SpellingPropertiesDialog(self.project, self.newProject, self)
+            self.spellPropertiesDlg = SpellingPropertiesDialog(
+                self.project, self.newProject, self)
         res = self.spellPropertiesDlg.exec_()
         if res == QDialog.Rejected:
             self.spellPropertiesDlg.initDialog()  # reset the dialogs contents
@@ -187,11 +191,11 @@
         Private slot to display the translations properties dialog.
         """
         if self.transPropertiesDlg is None:
-            from .TranslationPropertiesDialog import \
+            from .TranslationPropertiesDialog import (
                 TranslationPropertiesDialog
-            self.transPropertiesDlg = \
-                TranslationPropertiesDialog(self.project, self.newProject,
-                                            self)
+            )
+            self.transPropertiesDlg = TranslationPropertiesDialog(
+                self.project, self.newProject, self)
         else:
             self.transPropertiesDlg.initFilters()
         res = self.transPropertiesDlg.exec_()
@@ -205,8 +209,8 @@
         """
         if self.makePropertiesDlg is None:
             from .MakePropertiesDialog import MakePropertiesDialog
-            self.makePropertiesDlg = \
-                MakePropertiesDialog(self.project, self.newProject, self)
+            self.makePropertiesDlg = MakePropertiesDialog(
+                self.project, self.newProject, self)
         res = self.makePropertiesDlg.exec_()
         if res == QDialog.Rejected:
             self.makePropertiesDlg.initDialog()
@@ -291,10 +295,12 @@
         self.project.pdata["AUTHOR"] = self.authorEdit.text()
         self.project.pdata["EMAIL"] = self.emailEdit.text()
         self.project.pdata["DESCRIPTION"] = self.descriptionEdit.toPlainText()
-        self.project.pdata["PROGLANGUAGE"] = \
+        self.project.pdata["PROGLANGUAGE"] = (
             self.languageComboBox.currentText()
-        self.project.pdata["MIXEDLANGUAGE"] = \
+        )
+        self.project.pdata["MIXEDLANGUAGE"] = (
             self.mixedLanguageCheckBox.isChecked()
+        )
         projectType = self.getProjectType()
         if projectType is not None:
             self.project.pdata["PROJECTTYPE"] = projectType
@@ -308,7 +314,8 @@
         if self.transPropertiesDlg is not None:
             self.transPropertiesDlg.storeData()
         
-        self.project.pdata["MAKEPARAMS"]["MakeEnabled"] = \
+        self.project.pdata["MAKEPARAMS"]["MakeEnabled"] = (
             self.makeCheckBox.isChecked()
+        )
         if self.makePropertiesDlg is not None:
             self.makePropertiesDlg.storeData()

eric ide

mercurial