Preferences/PreferencesLexer.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2964
84b65fb9e780
child 3058
0a02c433f52d
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
50 Class defining a special error for the PreferencesLexer class. 50 Class defining a special error for the PreferencesLexer class.
51 """ 51 """
52 def __init__(self, language): 52 def __init__(self, language):
53 """ 53 """
54 Constructor 54 Constructor
55
56 @param language lexer language (string)
55 """ 57 """
56 PreferencesLexerError.__init__(self) 58 PreferencesLexerError.__init__(self)
57 self._errorMessage = \ 59 self._errorMessage = \
58 QApplication.translate("PreferencesLexerError", 60 QApplication.translate("PreferencesLexerError",
59 'Unsupported Lexer Language: {0}').format(language) 61 'Unsupported Lexer Language: {0}').format(language)
67 """ 69 """
68 Constructor 70 Constructor
69 71
70 @param language The lexer language. (string) 72 @param language The lexer language. (string)
71 @param parent The parent widget of this lexer. (QextScintilla) 73 @param parent The parent widget of this lexer. (QextScintilla)
74 @exception PreferencesLexerLanguageError raised to indicate an invalid
75 lexer language
72 """ 76 """
73 super(PreferencesLexer, self).__init__(parent) 77 super(PreferencesLexer, self).__init__(parent)
74 78
75 # These default font families are taken from QScintilla 79 # These default font families are taken from QScintilla
76 if Globals.isWindowsPlatform(): 80 if Globals.isWindowsPlatform():

eric ide

mercurial