views:

17

answers:

1

I need to make both a Control-Z and Shift-Control-Z function in a tkinter text widget, so that one may undo and redo things. Anyone have any Idea?

A: 

The Tk text widget supports an undo/redo buffer.

Maybe http://www.tkdocs.com/tutorial/text.html#more helps a bit, otherwise look at the tkinter or Tk docs for the text widget and how to create a binding to some keys. The tkinter function you need is the text widgets edit_undo.

schlenk