Preferences/ConfigurationDialog.py

changeset 802
e8882d16384c
parent 791
9ec2ac20e54e
child 825
9cdec3c5bc07
equal deleted inserted replaced
801:16f9875e278b 802:e8882d16384c
129 "PluginManagerPage", None, None], 129 "PluginManagerPage", None, None],
130 "printerPage" : \ 130 "printerPage" : \
131 [self.trUtf8("Printer"), "preferences-printer.png", 131 [self.trUtf8("Printer"), "preferences-printer.png",
132 "PrinterPage", None, None], 132 "PrinterPage", None, None],
133 "py3flakesPage" : \ 133 "py3flakesPage" : \
134 [self.trUtf8("Py3Flakes"), "warning.png", 134 [self.trUtf8("PyFlakes"), "warning.png",
135 "Py3FlakesPage", None, None], 135 "Py3FlakesPage", None, None],
136 "pythonPage" : \ 136 "pythonPage" : \
137 [self.trUtf8("Python"), "preferences-python.png", 137 [self.trUtf8("Python"), "preferences-python.png",
138 "PythonPage", None, None], 138 "PythonPage", None, None],
139 "qtPage" : \ 139 "qtPage" : \
428 """ 428 """
429 Private method to initialize the dictionary of preferences lexers. 429 Private method to initialize the dictionary of preferences lexers.
430 """ 430 """
431 self.lexers = {} 431 self.lexers = {}
432 for language in QScintilla.Lexers.getSupportedLanguages(): 432 for language in QScintilla.Lexers.getSupportedLanguages():
433 try: 433 ## if language in ["Python2", "Python3"]:
434 self.lexers[language] = PreferencesLexer(language, self) 434 ## language = "Python"
435 except PreferencesLexerLanguageError: 435 if language not in self.lexers:
436 pass 436 try:
437 self.lexers[language] = PreferencesLexer(language, self)
438 except PreferencesLexerLanguageError:
439 pass
437 440
438 def __importConfigurationPage(self, name): 441 def __importConfigurationPage(self, name):
439 """ 442 """
440 Private method to import a configuration page module. 443 Private method to import a configuration page module.
441 444

eric ide

mercurial