from Tkinter import *
def formulario(parent):
frame = Frame(parent, bd=2, relief=SUNKEN)
frame.grid_rowconfigure(0, weight=1)
frame.grid_columnconfigure(0, weight=1)
yscrollbar = Scrollbar(frame)
yscrollbar.grid(row=0, column=1, sticky=N+S)
canvas = Canvas(frame, bd=0,scrollregion=(0, 0, 1000, 1000),yscrollcommand=yscrollbar.set)
canvas.grid(row=0, column=0, sticky=N+S+E+W)
yscrollbar.config(command=canvas.yview)
for i in range(30):
label=Label(canvas,text="Hola Mundo numero # %d"%(i))
label.grid(row=i)
frame.pack()
if __name__=='__main__':
root=Tk()
formulario(Toplevel())
mainloop()