How to get a binded key not to type into Entry box How to get a binded key not to type into Entry box tkinter tkinter

How to get a binded key not to type into Entry box


Your binding needs to return "break", which tells tkinter to stop any further processing of the event. Returning "break" will prevent the character from being inserted.