Commit 4b254655 by BellCodeEditor

save project

parent b58d4ea2
Showing with 16 additions and 15 deletions
......@@ -2,10 +2,10 @@ import tkinter
def q():
name = e1.get()
print("提交的用户名是:",name)
name1=e2.get()
print("密码是:",name1)
name2=e3.get()
print("确认密码是:",name2)
password1 = e2.get()
print("密码是:",password1)
password2 = e3.get()
print("确认密码是:",password2)
# 建立窗口对象
root = tkinter.Tk()
root.title("注册") # 设置窗口标题
......@@ -28,21 +28,21 @@ lab = tkinter.Label(root, text='您好!请填写注册信息', font=('宋体',
lab.place(x=0,y=0)
# 在输入框前展示文字标签:用户名:、密 码:、确认密码:
l2 = tkinter.Label(root, text='用户名:', font=('宋体', 15),
fg="black")
l2.place(x=50,y=80)
l3 = tkinter.Label(root, text='密 码:', font=('宋体', 15),
fg="black")
l3.place(x=50,y=140)
l4 = tkinter.Label(root, text='密 码:', font=('宋体', 15),
fg="black")
l2 = tkinter.Label(root, text = '用户名:', font = ('宋体', 15),
fg = "black")
l2.place(x = 50,y = 80)
l3 = tkinter.Label(root, text = '密 码:', font = ('宋体', 15),
fg = "black")
l3.place(x = 50,y = 140)
l4 = tkinter.Label(root, text = '密 码:', font = ('宋体', 15),
fg ="black")
l4.place(x=50,y=140)
l5 = tkinter.Label(root, text='确认密码:', font=('宋体', 15),
fg="black")
l5.place(x=40,y=200)
l5.place(x = 40,y = 200)
button1=tkinter.Button(root,text="提交",fg="blue",width=15,command=q)
button1.place(x=160,y=260)
button1 = tkinter.Button(root,text = "提交",fg = "blue",width = 15,command = q)
button1.place(x = 160,y = 260)
# 保持窗口监听,进入消息循环
root.mainloop()
\ No newline at end of file
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