from Tkinter import * def fun(): print 'Hello' root = Tk() b = Button(root, text='Button1', command=fun) b.grid(row=0, column=0) l = Label(root, text='Hello', fg='red') l.grid(row=1, column=0) e = Entry(root) e.grid(row=1, column=1) root.mainloop()