Skip to content

Instantly share code, notes, and snippets.

@Sean-Bradley
Created April 12, 2019 12:30
Show Gist options
  • Save Sean-Bradley/78c08934413d51100ad8d0beb1fff4e9 to your computer and use it in GitHub Desktop.
Save Sean-Bradley/78c08934413d51100ad8d0beb1fff4e9 to your computer and use it in GitHub Desktop.
class IUndoRedo(metaclass=ABCMeta):
"""The Undo Redo interface"""
@abstractstaticmethod
def history():
"""the history of the states"""
@abstractstaticmethod
def undo():
"""for undoing the hsitory of the states"""
@abstractstaticmethod
def redo():
"""for redoing the hsitory of the states"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment