'How can the Python scrollbar move?

Python's scroll bar won't move. When I lower the mouse wheel, I want the scroll bar to go down as well.

frame=tkinter.Frame(window)
scrollbar=tkinter.Scrollbar(frame)
scrollbar.pack(side="right", fill="y")

scrollbar["command"]=treeview.yview
frame.pack()
window.mainloop()


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source