Preferences/PreferencesLexer.py

changeset 2964
84b65fb9e780
parent 2503
3f1fa98e8e03
child 3025
67064c71df21
child 3057
10516539f238
equal deleted inserted replaced
2963:745d38097b7f 2964:84b65fb9e780
48 Class defining a special error for the PreferencesLexer class. 48 Class defining a special error for the PreferencesLexer class.
49 """ 49 """
50 def __init__(self, language): 50 def __init__(self, language):
51 """ 51 """
52 Constructor 52 Constructor
53
54 @param language lexer language (string)
53 """ 55 """
54 PreferencesLexerError.__init__(self) 56 PreferencesLexerError.__init__(self)
55 self._errorMessage = \ 57 self._errorMessage = \
56 QApplication.translate("PreferencesLexerError", 58 QApplication.translate("PreferencesLexerError",
57 'Unsupported Lexer Language: {0}').format(language) 59 'Unsupported Lexer Language: {0}').format(language)
65 """ 67 """
66 Constructor 68 Constructor
67 69
68 @param language The lexer language. (string) 70 @param language The lexer language. (string)
69 @param parent The parent widget of this lexer. (QextScintilla) 71 @param parent The parent widget of this lexer. (QextScintilla)
72 @exception PreferencesLexerLanguageError raised to indicate an invalid
73 lexer language
70 """ 74 """
71 super().__init__(parent) 75 super().__init__(parent)
72 76
73 # These default font families are taken from QScintilla 77 # These default font families are taken from QScintilla
74 if Globals.isWindowsPlatform(): 78 if Globals.isWindowsPlatform():

eric ide

mercurial