I'm attempting to add a scrollbar widget to the Canvas in my program. The program is a basically a table made by adding a Canvas to the master and then adding Frames to the Canvas using .grid(). I've included the relevant portions of code. I'm not sure what it is that I'm doing incorrectly.
from Tkinter import *
master = Tk()
canvas = Canvas(master)
title_frame = Frame(canvas, bd=2, relief=RIDGE)
...
canvas.pack()
vbar = Scrollbar(master, orient=VERTICAL)
vbar.config(command=canvas.yview)
vbar.pack(side=RIGHT, fill=Y)
canvas.config(yscrollcommand=vbar.set)
master.mainloop()