Project/SpellingPropertiesDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2995
63d874899b8b
child 3145
a9de05d4a22f
diff -r 9986ec0e559a -r 10516539f238 Project/SpellingPropertiesDialog.py
--- a/Project/SpellingPropertiesDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Project/SpellingPropertiesDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -46,7 +46,8 @@
         
         from QScintilla.SpellChecker import SpellChecker
         self.spellingComboBox.addItem(self.trUtf8("<default>"))
-        self.spellingComboBox.addItems(sorted(SpellChecker.getAvailableLanguages()))
+        self.spellingComboBox.addItems(
+            sorted(SpellChecker.getAvailableLanguages()))
         
         if not new:
             self.initDialog()
@@ -55,16 +56,17 @@
         """
         Public method to initialize the dialogs data.
         """
-        index = self.spellingComboBox.findText(self.project.pdata["SPELLLANGUAGE"][0])
+        index = self.spellingComboBox.findText(
+            self.project.pdata["SPELLLANGUAGE"][0])
         if index == -1:
             index = 0
         self.spellingComboBox.setCurrentIndex(index)
         if self.project.pdata["SPELLWORDS"][0]:
-            self.pwlEdit.setText(
-                Utilities.toNativeSeparators(self.project.pdata["SPELLWORDS"][0]))
+            self.pwlEdit.setText(Utilities.toNativeSeparators(
+                self.project.pdata["SPELLWORDS"][0]))
         if self.project.pdata["SPELLEXCLUDES"][0]:
-            self.pelEdit.setText(
-                Utilities.toNativeSeparators(self.project.pdata["SPELLEXCLUDES"][0]))
+            self.pelEdit.setText(Utilities.toNativeSeparators(
+                self.project.pdata["SPELLEXCLUDES"][0]))
     
     @pyqtSlot()
     def on_pwlButton_clicked(self):
@@ -75,7 +77,8 @@
         if not pwl:
             pwl = self.project.ppath
         elif not os.path.isabs(pwl):
-            pwl = Utilities.fromNativeSeparators(os.path.join(self.project.ppath, pwl))
+            pwl = Utilities.fromNativeSeparators(
+                os.path.join(self.project.ppath, pwl))
         file = E5FileDialog.getOpenFileName(
             self,
             self.trUtf8("Select project word list"),
@@ -95,7 +98,8 @@
         if not pel:
             pel = self.project.ppath
         elif not os.path.isabs(pel):
-            pel = Utilities.fromNativeSeparators(os.path.join(self.project.ppath, pel))
+            pel = Utilities.fromNativeSeparators(
+                os.path.join(self.project.ppath, pel))
         file = E5FileDialog.getOpenFileName(
             self,
             self.trUtf8("Select project exclude list"),

eric ide

mercurial