Commit 902160d4 by BellCodeEditor

save project

parent 4664de85
Showing with 5 additions and 1 deletions
import tkinter
def reqister():
name = e1.get()
a = e2.get()
b = e3.get()
# 建立窗口对象
root = tkinter.Tk()
root.title("注册") # 设置窗口标题
......@@ -31,7 +35,7 @@ lab3 = tkinter.Label(root, text='确认密码:',fg="black",width=10, height=2)
lab3.place(x=100,y=200)
bt=tkinter.Button(root,text='SB',font=('宋体',15),fg='black')
bt=tkinter.Button(root,text='SB',font=('宋体',15),fg='black',command = reqister)
bt.place(x=180,y=260)
# 保持窗口监听,进入消息循环
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