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
Post a Comment