Project/LexerAssociationDialog.py

changeset 2408
dc3a7c9d8f6e
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 2995
63d874899b8b
--- a/Project/LexerAssociationDialog.py	Sun Feb 10 19:46:21 2013 +0100
+++ b/Project/LexerAssociationDialog.py	Mon Feb 11 14:08:08 2013 +0100
@@ -9,13 +9,9 @@
 
 import os
 
-from pygments.lexers import get_all_lexers
-
 from PyQt4.QtCore import Qt, pyqtSlot, qVersion
 from PyQt4.QtGui import QHeaderView, QTreeWidgetItem, QDialog
 
-import QScintilla.Lexers
-
 from .Ui_LexerAssociationDialog import Ui_LexerAssociationDialog
 
 
@@ -47,10 +43,13 @@
             self.extsep = "."
         
         self.extras = ["-----------", self.trUtf8("Alternative")]
+        
+        import QScintilla.Lexers
         languages = \
             [''] + sorted(QScintilla.Lexers.getSupportedLanguages().keys()) + self.extras
         self.editorLexerCombo.addItems(languages)
         
+        from pygments.lexers import get_all_lexers
         pygmentsLexers = [''] + sorted([l[0] for l in get_all_lexers()])
         self.pygmentsLexerCombo.addItems(pygmentsLexers)
         

eric ide

mercurial