Project/LexerAssociationDialog.py

changeset 2995
63d874899b8b
parent 2408
dc3a7c9d8f6e
child 3010
befeff46ec0f
diff -r 5ae1349b8fb4 -r 63d874899b8b Project/LexerAssociationDialog.py
--- a/Project/LexerAssociationDialog.py	Tue Oct 08 19:46:25 2013 +0200
+++ b/Project/LexerAssociationDialog.py	Tue Oct 08 19:47:37 2013 +0200
@@ -29,7 +29,8 @@
         super().__init__(parent)
         self.setupUi(self)
 
-        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)
@@ -45,8 +46,9 @@
         self.extras = ["-----------", self.trUtf8("Alternative")]
         
         import QScintilla.Lexers
-        languages = \
-            [''] + sorted(QScintilla.Lexers.getSupportedLanguages().keys()) + self.extras
+        languages = [''] + \
+            sorted(QScintilla.Lexers.getSupportedLanguages().keys()) + \
+            self.extras
         self.editorLexerCombo.addItems(languages)
         
         from pygments.lexers import get_all_lexers
@@ -91,7 +93,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:
@@ -108,7 +111,8 @@
         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()
@@ -129,10 +133,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)
     
@@ -152,7 +158,8 @@
 
     def transferData(self):
         """
-        Public slot to transfer the associations into the projects data structure.
+        Public slot to transfer the associations into the projects data
+        structure.
         """
         self.project.pdata["LEXERASSOCS"] = {}
         for index in range(self.editorLexerList.topLevelItemCount()):

eric ide

mercurial