from Tkinter import * def greeting(): print "hello" win = Frame() win.pack(side=LEFT, expand=YES, fill=BOTH) Button(win, text="hello",command=greeting).pack(side=LEFT,expand=YES,fill=Y) Label(win, text="Hello containter").pack(side=TOP) Button(win, text="Quit",command=win.quit).pack(side=RIGHT, expand=YES, fill=X) win.mainloop()