Preferences/PreferencesLexer.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3025
67064c71df21
child 3145
a9de05d4a22f
equal deleted inserted replaced
3057:10516539f238 3058:0a02c433f52d
22 """ 22 """
23 def __init__(self): 23 def __init__(self):
24 """ 24 """
25 Constructor 25 Constructor
26 """ 26 """
27 self._errorMessage = \ 27 self._errorMessage = QApplication.translate(
28 QApplication.translate("PreferencesLexerError", 28 "PreferencesLexerError",
29 "Unspecific PreferencesLexer error.") 29 "Unspecific PreferencesLexer error.")
30 30
31 def __repr__(self): 31 def __repr__(self):
32 """ 32 """
33 Private method returning a representation of the exception. 33 Private method returning a representation of the exception.
34 34
54 Constructor 54 Constructor
55 55
56 @param language lexer language (string) 56 @param language lexer language (string)
57 """ 57 """
58 PreferencesLexerError.__init__(self) 58 PreferencesLexerError.__init__(self)
59 self._errorMessage = \ 59 self._errorMessage = QApplication.translate(
60 QApplication.translate("PreferencesLexerError", 60 "PreferencesLexerError",
61 'Unsupported Lexer Language: {0}').format(language) 61 'Unsupported Lexer Language: {0}').format(language)
62 62
63 63
64 class PreferencesLexer(QsciLexer): 64 class PreferencesLexer(QsciLexer):
65 """ 65 """
66 Subclass of QsciLexer to implement preferences specific lexer methods. 66 Subclass of QsciLexer to implement preferences specific lexer methods.

eric ide

mercurial