from tkinter import *

root =Tk()
Label(root,text = '用户名').grid(row = 0,sticky = W)
Label(root,text = '密码').grid(row = 1,sticky = W)
Entry(root).grid(row = 0,column = 1)
Entry(root,show = '*').grid(row = 1,column = 1)
Button(text = '提交',width=10).grid(row = 2,columnspan=2,pady=5)

mainloop()
