Commit da5e7fcc by BellCodeEditor

save project

parent 307ac72d
Showing with 28 additions and 0 deletions
import tkinter
def xvz():
a12 = e1.get()
b12 = e2.get()
c12 = e3.get()
print(a12,b12,c12)
root = tkinter.Tk()
root.title("注册账号")
root.geometry("400x320+500+300")
e1 = tkinter.Entry(root,show=None,font=('行楷',18),bg="light grey",width=12) # 显示成明文形式
e1.place(x=140, y=80)
e2 = tkinter.Entry(root,show = '*',font = ('行楷',18),bg = 'white',width = 12)
e2.place(x=140,y=140)
e3 = tkinter.Entry(root,show = '*',font = ('行楷',18),bg = 'white',width = 12)
e3.place(x=140,y=200)
lab = tkinter.Label(root, text='注册账号信息', font=('行楷', 15),
fg="black",width=40, height=2,bg="light blue")
lab.place(x=0,y=0)
a = tkinter.Label(root, text='用户名', font=('行楷',15),fg="black")
b = tkinter.Label(root, text='密码', font=('行楷',15),fg="black")
c = tkinter.Label(root, text='确认密码', font=('行楷',15),fg="black")
a.place(x = 70,y = 80)
b.place(x = 90,y = 140)
c.place(x = 50,y = 200)
qwe= tkinter.Button(root,text = '提交',font = ('行楷',15),width = 10,height=2,bg='light blue',command = xvz)
qwe.place(x=150,y = 250)
root.mainloop()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment