--- a/Project/LexerAssociationDialog.py Tue Oct 15 22:03:54 2013 +0200 +++ b/Project/LexerAssociationDialog.py Fri Oct 18 23:00:41 2013 +0200 @@ -31,7 +31,8 @@ super(LexerAssociationDialog, self).__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) @@ -47,8 +48,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 @@ -93,7 +95,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: @@ -107,10 +110,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() @@ -131,10 +136,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,7 +161,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()):