Cancel and redo functions in a text widget Tkinter?

I need to make both a Control+ Zand a Shift+ Control+ Zfunction in Tkinter widgets Textso that I can undo and redo everything.

Does anyone have an idea on how to do this?

+3
source share
2 answers

The tkinter widget Textsupports undo and redo operations using the stack .

You can find additional information at the following link:

http://www.tkdocs.com/tutorial/text.html#more

tkinter Tk docs Text . tkinter Text edit_undo.

+4

Tkinter Control + Z Shift + Control + Z, undo=True. autoseparators=True maxundo=-1. . http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/text-undo-stack.html https://www.tcl.tk/man/tcl8.5/TkCmd/text.htm#M65.

+2

Source: https://habr.com/ru/post/1752915/


All Articles