from tkinter import *


root = Tk()

Label(root, text='username:').grid(row=0, column=0, sticky=W)
Label(root, text='password:').grid(row=1, column=0, sticky=W)

photo = PhotoImage(file='../tk_demo/bg.gif')
Label(root, image=photo).grid(row=0, column=2, rowspan=2, padx=5)

Entry(root).grid(row=0, column=1)
Entry(root, show='*').grid(row=1, column=1)

Button(text='提交', width=10).grid(row=2, columnspan=3, pady=5)

mainloop()
