#test_scroll_bar_2_pack.py from tkinter import * t = Tk() c = Canvas(t) hsb = Scrollbar(t, orient="h", command=c.xview) vsb = Scrollbar(t, orient="v", command=c.yview) c.configure(yscrollcommand=vsb.set, xscrollcommand=hsb.set)