python - intercept any kinf of text deletion in a text frame -


how can intercept deletion of text in tkinter program?

up bound <delete>, <cancel>, <backspace>, don't know how check when user presses key while having selection made - leading selected text deletion.

i have in program class mytext, onkey method, suggested here apply tags in text widget bryan oakley , onkey method fires after user pressed key, if check there if selection exists find none.

i should recommend use http://effbot.org/tkinterbook/text.htm selection tag, know selection, put in attribute of class, , @ when event onkey raised


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -