Commit 0e867df7 by BellCodeEditor

save project

parent f180bbe0
Showing with 6 additions and 1 deletions
import tkinter as tk import tkinter as tk
root=tk.Tk() root=tk.Tk()
def register():
print(1)
root.title("注册") root.title("注册")
root.geometry("500x400+500+300") #数字×数字=大小 数字=x 数字=y root.geometry("500x400+500+300") #数字×数字=大小 数字=x 数字=y
e=tk.Entry(root,show="*",font=("宋体",14),bg="light grey",width=18) e=tk.Entry(root,show="*",font=("宋体",14),bg="light grey",width=18)
...@@ -14,6 +16,9 @@ w=tk.Label(root,text="密码:",font=("宋体",14),fg="red") ...@@ -14,6 +16,9 @@ w=tk.Label(root,text="密码:",font=("宋体",14),fg="red")
w.place(x=160,y=60) w.place(x=160,y=60)
e=tk.Label(root,text="确认密码:",font=("宋体",14),fg="red") e=tk.Label(root,text="确认密码:",font=("宋体",14),fg="red")
e.place(x=120,y=80) e.place(x=120,y=80)
r=tk.Button(root,text="提交",fg="blue",width=13) r=tk.Button(root,text="提交",bg="lightgreen",width=13,
command=register)
r.place(x=150,y=250) r.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