Commit ecf909d2 by BellCodeEditor

save project

parent 94d0cd2a
Showing with 12 additions and 2 deletions
import tkinter
def register():
name = e1.get()
print("提交用户名是:",name)
name1 = e2.get()
print("密码是:",name1)
name2 = e3.get()
print("确认密码是:",name2)
# 建立窗口对象
root = tkinter.Tk()
......@@ -29,6 +38,7 @@ lab2.place(x=10,y=140)
lab3 = tkinter.Label(root, text='确认密码',font=('宋体', 15),
fg="black", height=2)
lab3.place(x=10,y=200)
button1=tkinter.Button(root,text='提交',bg="lightgreen",width=15,command=register())
button1.place(150,250)
root.resizable(width=False,height=False)
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