Commit 484ee1ad by BellCodeEditor

save project

parent 208f4696
Showing with 11 additions and 0 deletions
import tkinter
def register():
name1 = e1.get()
print("提交的用户名是:",name)
name2 = e2.get()
print("提交的密 码是:",name)
name3 = e3.get()
print("提交的确认密码是:",name)
# 建立窗口对象
root = tkinter.Tk()
root.title("注册") # 设置窗口标题
......@@ -25,6 +33,9 @@ lab2 = tkinter.Label(root, text='密 码:', font=('宋体', 15))
lab2.place(x=50,y=140)
lab3 = tkinter.Label(root, text='确认密码:', font=('宋体', 15))
lab3.place(x=50,y=200)
button1 = tkinter.Button(root,text = '提交'bg="lightgreen",width=15,command=register)
button1.place(x=150,y=200)
# 保持窗口监听,进入消息循环
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