Tkinter -- Grid布局
from Tkinter import *
root = Tk()
Label(root,text='user').grid(row=0)
Label(root,text='pwd').grid(row=1)
Entry(root).grid(row=0,column=1)
Entry(root,show='*').grid(row=1,column=1)
Button(root,text='login').grid(row=2,column=1)
root.mainloop()