from tkinter import *
root = Tk()
root.geometry("800x600")
Label(root, text="heading1", relief=GROOVE).pack(side=LEFT, fill=BOTH, expand=True)
Label(root, text="heading2", relief=GROOVE).pack(side=BOTTOM, fill=BOTH, expand=True)
for i in range(5):
Label(root, text=str(i), relief=GROOVE).pack(side=RIGHT,fill=BOTH, expand=True)
root.mainloop()
tkinter pack |