On Sun, Sep 04, 2005 at 09:51:11AM +0200, N. Volbers wrote: > Look at "Documentation" and then at the "Developer's Guide". This is a > very nice introduction to an undo mechanism that basically works like > this: If you call an undoable function, then it must return an > undo-tuple which contains the name of a function f and the appropriate > arguments x,y,..., so that f(x,y,...) will undo the last action. This > will also enable you to offer a "redo" mechanism for free!
This seems more Pythonic to me than the Java-ish Action base class method. If you wanted to get fancy, you could use a decorator, so you just decorate the methods you want un/redoable. Dave Cook _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/