Any Pythonic GTK Undo library?

T

Tony Nelson

I'm looking for a "pythonic" GTK Undo library/class. It would have a
framework for Undo/Redo, and would provide Undo/Redo for TextView,
Entry, and containers and other classes. In a "batteries included"
fashion, just instantiating a "UndoableTextView" or "UndoableEntry" or
"UndoableContainer" would provide Undo and Redo in the right-click menu;
simply connecting such an object to an "UndoableUIManager" would take
care of the stock items in the menus and toolbar; and there would be a
simple connection to some sort of "UndoableDocument" interface or mix-in
for more global sequencing of Undo/Redo. Does something like this exist
for Python or GTK? Googling didn't turn up anything useful.

I'm disappointed that GTK doesn't do this already. Making my own seems
doable, but a fair amount of work. If there isn't some such thing
already, is there interest in using one that I make?

I know about GUndo, which doesn't implement any actual undo operations;
the actual operations would need to be coded for TextView and Entry and
anything else.
________________________________________________________________________
TonyN.:' *firstname*nlsnews@georgea*lastname*.com
' <http://www.georgeanelson.com/>
 
T

Tony Nelson

Dave Cook said:
You might ask the authors of Kiwi if they plan to add undo/redo. Or help
them add it if you can.

http://www.async.com.br/projects/kiwi/

Well, after I implement it myself, if I do, I could give them the code
to port to kiwi.

It would be great to have this feature in the Gtk C API, though. I do see
some relevant bugzilla entries:

http://bugzilla.gnome.org/show_bug.cgi?id=316551

You might want to make a new request for a general undo/redo interface.

Well, after I implement it myself, if I do, I could give them the code
to translate to C.
________________________________________________________________________
TonyN.:' *firstname*nlsnews@georgea*lastname*.com
' <http://www.georgeanelson.com/>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top