#Frames Grid example. from tkinter import * class GridDemo: def __init__(self,win): self.myWin = win #Create the widgets self.leftFrame = Frame(self.myWin,borderwidth=5,relief="solid" ) self.leftFrame.grid(row=0,column=0,padx=5) l = Label(self.leftFrame,text="0,0 Frame Label!", bg="Blue") l.pack() b = Button(self.leftFrame,text="B1") b.pack() b = Button(self.leftFrame,text="B2") b.pack(fill=X) self.rightFrame = Frame(self.myWin, borderwidth=5,relief="solid" ) self.rightFrame.grid(row=1,column=1, pady=5) b = Button(self.rightFrame,text="top") b.pack(side=TOP) b = Button(self.rightFrame, text="bottom") b.pack(side=BOTTOM) b = Button(self.myWin, text="(0,1)") b.grid(row=1,column=0,sticky=N) b = Button(self.myWin, text="(1,0) span=2") b.grid(row=0, column=1, columnspan=2, sticky=S) mw = Tk() mwo = GridDemo(mw) mw.mainloop()