for i in range(300):
    label1 = Label(sw.window, text='foo')
label1.grid(row=i, column=0)
button = Button(root, text='Quit', command=root.quit)
button.pack(side=RIGHT)
root = Tix.Tk()
build_ui(root)
root.mainloop()
How do you keep a widget in view while scrolling?