from Tkinter import * def greeting(): print 'hello' win = Frame() win.pack(side=TOP,expand=YES, fill=BOTH) Button(win,text='Hello', command=greeting).pack(side=LEFT,anchor=N) Label(win,text='Hello containter World ......!').pack(side=TOP) Button(win,text='QUIT', command=win.quit).pack(side=RIGHT,expand=YES,fill=X) win.mainloop()