In this video I’ll show you how to add a scrollbar to your treeview widget with tkinter and Python.

Adding a scrollbar to a treeview widget is just like adding any scrollbar to anything. Treeview has the ability to take a scrollbar, but we won’t use that. Instead we’ll add our treeview widget to a frame, and then add the scrollbar to the frame as we’ve done in many videos in the past.

In this video I’ll also show you the three treeview selectmodes, extended, browse, and none. These allow us to determine how many or few rows in the treeview a user can select.

John Elder

John is the CEO of Codemy.com where he teaches over 100,000 students how to code! He founded one of the Internet's earliest advertising networks and sold it to a publicly company at the height of the first dot com boom. After that he developed the award-winning Submission-Spider search engine submission software that's been used by over 3 million individuals, businesses, and governments in over 42 countries. He's written several Amazon #1 best selling books on coding, and runs a popular Youtube coding channel.

View all posts

1 comment

Your email address will not be published. Required fields are marked *

  • I am working on a project that uses the treeview and I want to add scrollbars to it. In my program I want to use the treeview for topics and sub-topics, when you click on the topic, it displays the information about that topic in a text window on the side.
    Your video covers the pack method, I am using the grid method without success.
    I have tried with and without the frame with the same results, The scrollbar does not move, cannot be moved. I have looked at multiple tutors (all with pack) and as far as i can tell I am doing things correctly. Do you have any videos showing treeview and scroll bars using the grid method.
    (My text window has a scroll bar and works without issue so there is something I am doing wrong but i just can’t see it.)

John Elder

John is the CEO of Codemy.com where he teaches over 100,000 students how to code! He founded one of the Internet's earliest advertising networks and sold it to a publicly company at the height of...