Skip to main content

Implementation of Undo, Redo

Project description

Implementation of Undo/Redo

How to install:-
pip install Undo-Redo

UndoRedo class contains following functions:-

  1. append()
    It will append data into stack.
  2. pop()
    It will pop data upto current index.
  3. undo()
    It decreases the current index.
  4. redo()
    It increases the current index.
  5. undoText()
    Returns data of (current index-1). It can be used before undo().
  6. redoText()
    Returns data of (current index+1). It can be used before redo().
  7. undoAvailable()
    Return True if undo is possible.
  8. redoAvailable()
    Return True if redo is possible.
  9. out()
    Returns stack as list.

Example:-
from Undo_Redo import UndoRedo module import
stack=UndoRedo() create object

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Undo_Redo-1.1.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

Undo_Redo-1.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file Undo_Redo-1.1.tar.gz.

File metadata

  • Download URL: Undo_Redo-1.1.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for Undo_Redo-1.1.tar.gz
Algorithm Hash digest
SHA256 4e5f1661e560bf234aca5db9b84f4aabfc5392fd9dee40fc30638ece817aaf9e
MD5 bd689168070cd303da7821e0164210ed
BLAKE2b-256 0e7183a19042b6f3aacb015a891f86cbce4e40e34abf3866178450bd41ef9ef4

See more details on using hashes here.

Provenance

File details

Details for the file Undo_Redo-1.1-py3-none-any.whl.

File metadata

  • Download URL: Undo_Redo-1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for Undo_Redo-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f75f3d78e8e9af666180016e4a175b4e0a1f1530532d73b263aa8d853b87ebc0
MD5 1570867e4b10d7e7fbc3cfc81e7b4570
BLAKE2b-256 e2f786b1db23efd0f9f3f56a702aa178272e5daecc180b38204ecbd80f5d2232

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page