Categories
How to cancel the default action (tkinter)?
The Tab button by default switches the focus on the elements, this is very annoying, how to make sure that nothing happens when you click on this button?
Answer the question
In order to leave comments, you need to log in
In the constructor of the form class or just somewhere during initialization, we make the following function:
def stop_tab(e): return("break")
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question