RE: undo and redo ?

Discussion in 'Python' started by Robert Brewer, Jan 2, 2004.

  1. 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:
    http://www.amazon.com/exec/obidos/ASIN/0201633612

    Synopsis/discussion at:
    http://c2.com/cgi/wiki?CommandPattern


    FuManChu
     
    Robert Brewer, Jan 2, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. black

    undo and redo

    black, Dec 23, 2003, in forum: Python
    Replies:
    0
    Views:
    357
    black
    Dec 23, 2003
  2. black

    undo and redo ?

    black, Jan 2, 2004, in forum: Python
    Replies:
    1
    Views:
    362
    Diez B. Roggisch
    Jan 2, 2004
  3. Jason Cavett
    Replies:
    0
    Views:
    321
    Jason Cavett
    Jun 15, 2007
  4. King
    Replies:
    0
    Views:
    322
  5. Replies:
    6
    Views:
    466
Loading...

Share This Page