Then, into that canvas embed the frame that contains your label widgets. The most common solution is to create a canvas widget and associate the scrollbars with that widget. You can only associate scrollbars with a few widgets, and the root widget and Frame aren't part of that group of widgets. I've tried putting the widget grid into a Frame, but that doesn't seem to support the scrollbar interface, so this doesn't work: mainframe = Frame(root, yscrollcommand=t)Ĭan anyone suggest a way round this limitation? I'd hate to have to rewrite in PyQt and increase my executable image size by so much, just to add a scrollbar! It's possible to put arbitrary widgets in a Canvas widget, but you appear to have to use absolute co-ordinates, so I wouldn't be able to use the grid layout manager? None of these appear to be suitable for displaying a grid of widgets. The documentation implies that only the List, Textbox, Canvas and Entry widgets support the scrollbar interface. I'd like to add a scrollbar, which looks like it should be very easy, but I can't figure it out. The output is a grid of label widgets, but sometimes there are more rows than can be displayed on the screen. I am using Python to parse entries from a log file, and display the entry contents using Tkinter and so far it's been excellent.