Creating horizontal and vertical scrollbars

In Tkinter, geometry managers take all the necessary space to fit all the widgets in their parent container. However, if the container has a fixed size or exceeds the screen's size, there will be a region that will not be visible to users.

Scroll bar widgets are not automatically added in Tkinter, so you must create and lay them out as any other type of widget. Another consideration is that only a few widget classes have the configuration options that make it possible to connect them to a scrollbar.

To work around this, you will learn to take advantage of the flexibility of the Canvas widget to make any container scrollable.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset