MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / undo

Method undo

SLiCAP/schematic/canvas.py:998–1002  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

996 self.data_changed.emit()
997
998 def undo(self) -> None:
999 if not self._undo_stack:
1000 return
1001 self._redo_stack.append(self.to_data())
1002 self._restore(self._undo_stack.pop())
1003
1004 def redo(self) -> None:
1005 if not self._redo_stack:

Callers 6

keyPressEventMethod · 0.80
_build_edit_menuMethod · 0.80
nFunction · 0.80
rFunction · 0.80
sFunction · 0.80

Calls 2

to_dataMethod · 0.95
_restoreMethod · 0.95

Tested by

no test coverage detected