def __init__(self, parent=None): QsciLexerCustom.__init__(self, parent) self._styles = { 0: 'Default', 1: 'NewText', 2: 'DeletedText', 3: 'ReplacedText', 4: 'LineNumber' } for key in self._styles: setattr(self, self._styles[key], key)
def __init__(self, parent=None): QsciLexerCustom.__init__(self, parent) self._styles = { 0: 'Default', 1: 'ErrorInfo', 2: 'OutputInfo', 3: 'ExitInfo', 4: 'Start' } for key in self._styles: setattr(self, self._styles[key], key)