Undo class

Mickel Grönroos mickel at csc.fi
Wed Nov 12 01:55:29 EST 2003


On Mon, 10 Nov 2003, Eric Brunel wrote:

> For other widgets, I doubt there can be a generic mechanism to manage
> the undo/redo functions for you: after all, only you can tell what
> actions should be able to be undone or redone. But I'd be really happy
> if someone can prove me wrong!

I need to undo some complex actions involving several steps, not only
entries in Text widgets. I'll take a look at UndoManager and Sketch as
suggested by David Eppstein and John Lee. Basically, I would like to have
a stack of undo commands that I can push to and pop from. I reckon this is
what UndoManager and Sketch does. I'll have a look. Thanks for the
pointers!

/Mickel

--
Mickel Grönroos, application specialist, linguistics, Research support, CSC
PL 405 (Tekniikantie 15 a D), 02101 Espoo, Finland, phone +358-9-4572237
CSC is the Finnish IT center for science, www.csc.fi





More information about the Python-list mailing list