Commit 96256322 by BellCodeEditor

save project

parent ba86e55e
Showing with 5 additions and 0 deletions
import tkinter import tkinter
def touch():
print("点击")
# 建立窗口对象 # 建立窗口对象
root = tkinter.Tk() root = tkinter.Tk()
root.title("注册") # 设置窗口标题 root.title("注册") # 设置窗口标题
...@@ -25,5 +27,8 @@ lab1.place(x=30,y=140) ...@@ -25,5 +27,8 @@ lab1.place(x=30,y=140)
lab1 = tkinter.Label(root,text="确认密码",font=("Times",15)) lab1 = tkinter.Label(root,text="确认密码",font=("Times",15))
lab1.place(x=30,y=200) lab1.place(x=30,y=200)
com=tkinter.Button(root,text="提交",font=("Times",25),command=touch)
com.place(x=150,y=250)
# 保持窗口监听,进入消息循环 # 保持窗口监听,进入消息循环
root.mainloop() 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