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(): |