Preferences/ConfigurationPages/EditorHighlightersPage.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3010
befeff46ec0f
child 3058
0a02c433f52d
--- a/Preferences/ConfigurationPages/EditorHighlightersPage.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Preferences/ConfigurationPages/EditorHighlightersPage.py	Fri Oct 18 23:00:41 2013 +0200
@@ -36,7 +36,8 @@
         self.setupUi(self)
         self.setObjectName("EditorHighlightersPage")
         
-        self.editorLexerList.headerItem().setText(self.editorLexerList.columnCount(), "")
+        self.editorLexerList.headerItem().setText(
+            self.editorLexerList.columnCount(), "")
         header = self.editorLexerList.header()
         if qVersion() >= "5.0.0":
             header.setSectionResizeMode(QHeaderView.ResizeToContents)
@@ -105,7 +106,8 @@
     @pyqtSlot()
     def on_deleteLexerButton_clicked(self):
         """
-        Private slot to delete the currently selected lexer association of the list.
+        Private slot to delete the currently selected lexer association of the
+        list.
         """
         itmList = self.editorLexerList.selectedItems()
         if itmList:
@@ -119,10 +121,12 @@
         
     def on_editorLexerList_itemClicked(self, itm, column):
         """
-        Private slot to handle the clicked signal of the lexer association list.
+        Private slot to handle the clicked signal of the lexer association
+        list.
         
         @param itm reference to the selecte item (QTreeWidgetItem)
-        @param column column the item was clicked or activated (integer) (ignored)
+        @param column column the item was clicked or activated (integer)
+            (ignored)
         """
         if itm is None:
             self.editorFileExtEdit.clear()
@@ -143,10 +147,12 @@
         
     def on_editorLexerList_itemActivated(self, itm, column):
         """
-        Private slot to handle the activated signal of the lexer association list.
+        Private slot to handle the activated signal of the lexer association
+        list.
         
         @param itm reference to the selecte item (QTreeWidgetItem)
-        @param column column the item was clicked or activated (integer) (ignored)
+        @param column column the item was clicked or activated (integer)
+            (ignored)
         """
         self.on_editorLexerList_itemClicked(itm, column)
     
@@ -154,6 +160,8 @@
     def on_editorLexerCombo_currentIndexChanged(self, text):
         """
         Private slot to handle the selection of a lexer.
+        
+        @param text text of the lexer combo (string)
         """
         if text in self.extras:
             self.pygmentsLexerCombo.setEnabled(True)
@@ -168,6 +176,7 @@
     Module function to create the configuration page.
     
     @param dlg reference to the configuration dialog
+    @return reference to the instantiated page (ConfigurationPageBase)
     """
     page = EditorHighlightersPage(dlg.getLexers())
     return page

eric ide

mercurial