def __init__(self, parent=None): super().__init__(parent=parent) self.returnPressed = core.VSignal(self) self.escapePressed = core.VSignal(self) self.tabPressed = core.VSignal(self) self._editor_mode = EditorMode.COMMAND self._state_label = gui.VLabel(parent=self) self._state_label.setGeometry((0, 0, 1, 1)) self._line_edit = gui.VLineEdit(parent=self) self._line_edit.returnPressed.connect(self.returnPressed) self._line_edit.setGeometry((1, 0, self.width() - 1, 1)) self._line_edit.installEventFilter(self) self._updateText()
def __init__(self): super().__init__() self._editor_mode = EditorMode.COMMAND self._current_search = None self._clipboard = None self.editorModeChanged = core.VSignal(self)
def __init__(self, meta_type, document, data=None): """ Initializes the meta info. Not publicly used. There's a factory method on the TextDocument. Args: meta_type (str) : A descriptive identifier string (e.g. CreationTime) document (TextDocument) : the associated TextDocument instance. data (Any, default None) : the value of the meta information. """ self._meta_type = meta_type self._document = document self._data = data self.contentChanged = core.VSignal(self)
def _initSignals(self): self.contentChanged = core.VSignal(self) self.metaContentChanged = core.VSignal(self) self.documentSaved = core.VSignal(self) self.numLinesChanged = core.VSignal(self)
def __init__(self, meta_type, document): self._meta_type = meta_type self._document = document self.resetLines() self.contentChanged = core.VSignal(self)
def _initSignals(self): self.lineChanged = core.VSignal(self) self.lineDeleted = core.VSignal(self) self.lineCreated = core.VSignal(self) self.contentChanged = core.VSignal(self) self.modifiedChanged = core.VSignal(self) self.filenameChanged = core.VSignal(self) self.lineMetaInfoChanged = core.VSignal(self) self.lineMetaInfoDeleted = core.VSignal(self) self.charMetaInfoChanged = core.VSignal(self) self.charMetaInfoDeleted = core.VSignal(self) self.transactionFinished = core.VSignal(self) self.documentSaved = core.VSignal(self)
def __init__(self): super().__init__() self._document_pos_at_top = (1, 1) self.documentPosAtTopChanged = core.VSignal(self)
def __init__(self): self.clear() self.changed = core.VSignal(self)
def __init__(self): self._buffers = [Buffer()] self._current = self._buffers[0] self.currentBufferChanged = core.VSignal(self)