Preferences/ConfigurationPages/InterfacePage.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2677
3d4277929fb3
parent 3010
befeff46ec0f
child 3058
0a02c433f52d
--- a/Preferences/ConfigurationPages/InterfacePage.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Preferences/ConfigurationPages/InterfacePage.py	Fri Oct 18 23:00:41 2013 +0200
@@ -208,7 +208,8 @@
         self.languageComboBox.clear()
         
         fnlist = glob.glob("eric5_*.qm") + \
-            glob.glob(os.path.join(getConfig('ericTranslationsDir'), "eric5_*.qm")) + \
+            glob.glob(os.path.join(
+                getConfig('ericTranslationsDir'), "eric5_*.qm")) + \
             glob.glob(os.path.join(Utilities.getConfigDir(), "eric5_*.qm"))
         locales = {}
         for fn in fnlist:
@@ -216,9 +217,9 @@
             if locale not in locales:
                 translator = QTranslator()
                 translator.load(fn)
-                locales[locale] = \
-                    translator.translate("InterfacePage", "English",
-                                         "Translate this with your language") + \
+                locales[locale] = translator.translate(
+                    "InterfacePage", "English",
+                    "Translate this with your language") + \
                     " ({0})".format(locale)
         localeList = sorted(list(locales.keys()))
         try:
@@ -248,8 +249,9 @@
             self,
             self.trUtf8("Select style sheet file"),
             self.styleSheetEdit.text(),
-            self.trUtf8("Qt Style Sheets (*.qss);;Cascading Style Sheets (*.css);;"
-                        "All files (*)"))
+            self.trUtf8(
+                "Qt Style Sheets (*.qss);;Cascading Style Sheets (*.css);;"
+                "All files (*)"))
         
         if file:
             self.styleSheetEdit.setText(Utilities.toNativeSeparators(file))
@@ -257,7 +259,7 @@
     @pyqtSlot()
     def on_resetLayoutButton_clicked(self):
         """
-        Private method to reset layout to factory defaults
+        Private method to reset layout to factory defaults.
         """
         Preferences.resetLayout()
     
@@ -267,6 +269,7 @@
     Module function to create the configuration page.
     
     @param dlg reference to the configuration dialog
+    @return reference to the instantiated page (ConfigurationPageBase)
     """
     page = InterfacePage()
     return page

eric ide

mercurial