Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > RE: undo and redo ?

Thread Tools

RE: undo and redo ?

Robert Brewer
Posts: n/a
Somebody asked:
> > anyone can inspires me how we can
> > achieve undo and redo function ?

Diez B. Roggisch replied:
> When working with a MVC-approach, the actions you the user
> can invoke on the
> model could be created as objects that know how to undo/invert their
> effects. Then you store a list of these actions and
> performing undo takes
> the last action and apply its inverted action to your model.

An excellent point of inspiration can be found via the GoF:

Synopsis/discussion at:


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Undo-Redo, copy instance, custom events and a problem King Python 0 07-26-2010 05:32 AM
Undo/Redo, Subclasses and Lots of Listeners Jason Cavett Java 0 06-15-2007 08:26 PM
implementing undo and redo for textarea's - does Javascript support static variables? Javascript 6 12-10-2004 09:51 PM
undo and redo ? black Python 1 01-02-2004 01:53 PM
undo and redo black Python 0 12-23-2003 03:56 AM