: I have a GUI that I made up and inside it is a listbox, I got the scroll bar linked to the listbox. The problem I'm having is that the scroll bar is not stretched to the size of the list box. I can't seem a find a solution to this since I am not using pack() or making my GUI with classes since I am fairly new to this. Any one have any advice to getting the scroll bar to fit the list box?
: Thank you for any advice that you guys can give.
Hi, how about:
from Tkinter import *
root = Tk()
scrollbar = Scrollbar(root)
scrollbar.grid(column=1, row=0, sticky='NS')
listbox = Listbox(root, yscrollcommand=scrollbar.set)
for i in range(1000):
Codesnippet taken from (with slight changes):
That blue part makes the widget (using the grid geometry manager) to take up the remaining space in the directions given (N=north, S=south, E=east, W=west).
I don't know whether that was the problem or...