O'Reilly logo

Tkinter GUI Application Development Blueprints - Second Edition by Bhaskar Chaudhary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Widget traversal

If a GUI has more than one widget, a given widget can come under focus when you explicitly click on the widget. Alternatively, the focus can be shifted to other widgets in the order that the widgets were created in the program by pressing the Tab key on the keyboard.

Therefore, it is vital to create widgets in the order that we want the user to traverse through them. Otherwise, the user will have a tough time navigating between the widgets using the keyboard.

Different widgets are designed to behave differently to different keyboard strokes. Therefore, let's spend some time trying to understand the rules of traversing through widgets using the keyboard.

Have a look at the 10.02_widget_traversal.py file to understand the keyboard ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required