'Mode name/identifier. :class:`spyder.widgets.sourcecode.CodeEditor`
uses that as the attribute key when you install a mode.'

def __init__(self):

    self.name = self.__class__.__name__
    self.description = self.__doc__
    self._enabled = False
    self._editor = None
    self._on_close = False
