Preferences/ConfigurationPages/EditorAPIsPage.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3010
befeff46ec0f
child 3058
0a02c433f52d
diff -r 9986ec0e559a -r 10516539f238 Preferences/ConfigurationPages/EditorAPIsPage.py
--- a/Preferences/ConfigurationPages/EditorAPIsPage.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Preferences/ConfigurationPages/EditorAPIsPage.py	Fri Oct 18 23:00:41 2013 +0200
@@ -110,7 +110,8 @@
             self.addInstalledApiFileButton.setEnabled(False)
         
         self.addPluginApiFileButton.setEnabled(
-            len(self.pluginManager.getPluginApiFiles(self.currentApiLanguage)) > 0)
+            len(self.pluginManager.getPluginApiFiles(self.currentApiLanguage))
+                > 0)
         
     def __editorGetApisFromApiList(self):
         """
@@ -168,7 +169,8 @@
             installedAPIFilesPath = QFileInfo(installedAPIFiles[0]).path()
             installedAPIFilesShort = []
             for installedAPIFile in installedAPIFiles:
-                installedAPIFilesShort.append(QFileInfo(installedAPIFile).fileName())
+                installedAPIFilesShort.append(
+                    QFileInfo(installedAPIFile).fileName())
             file, ok = QInputDialog.getItem(
                 self,
                 self.trUtf8("Add from installed APIs"),
@@ -177,7 +179,8 @@
                 0, False)
             if ok:
                 self.apiList.addItem(Utilities.toNativeSeparators(
-                    QFileInfo(QDir(installedAPIFilesPath), file).absoluteFilePath()))
+                    QFileInfo(QDir(installedAPIFilesPath), file)
+                        .absoluteFilePath()))
         else:
             E5MessageBox.warning(self,
                 self.trUtf8("Add from installed APIs"),
@@ -191,7 +194,8 @@
         Private slot to add an API file from the list of API files installed
         by plugins for the selected lexer language.
         """
-        pluginAPIFiles = self.pluginManager.getPluginApiFiles(self.currentApiLanguage)
+        pluginAPIFiles = self.pluginManager.getPluginApiFiles(
+            self.currentApiLanguage)
         pluginAPIFilesDict = {}
         for apiFile in pluginAPIFiles:
             pluginAPIFilesDict[QFileInfo(apiFile).fileName()] = apiFile
@@ -209,7 +213,8 @@
     @pyqtSlot()
     def on_prepareApiButton_clicked(self):
         """
-        Private slot to prepare the API file for the currently selected language.
+        Private slot to prepare the API file for the currently selected
+            language.
         """
         if self.__inPreparation:
             self.__currentAPI and self.__currentAPI.cancelPreparation()
@@ -259,7 +264,8 @@
         @param state state data generated by saveState
         """
         self.apiLanguageComboBox.setCurrentIndex(state)
-        self.on_apiLanguageComboBox_activated(self.apiLanguageComboBox.currentText())
+        self.on_apiLanguageComboBox_activated(
+            self.apiLanguageComboBox.currentText())
     
 
 def create(dlg):
@@ -267,6 +273,7 @@
     Module function to create the configuration page.
     
     @param dlg reference to the configuration dialog
+    @return reference to the instantiated page (ConfigurationPageBase)
     """
     page = EditorAPIsPage()
     return page

eric ide

mercurial