Commit 3019eb0c by BellCodeEditor

save project

parent 0651e310
Showing with 36 additions and 0 deletions
import tkinter
def register():
name=sb1.get()
print("有一个伞兵加入!",name)
root = tkinter.Tk()
root.title("注册啊!伞兵!!!")
root.geometry("400x320+500+300")
root.resizable(width=False,height=False)
sb1=tkinter.Entry(root,show=None,font=('宋体',14),bg="light grey",width=18)
sb1.place(x=140,y=80)
sb2=tkinter.Entry(root,show="*",font=('宋体',14),bg="light grey",width=18)
sb2.place(x=140,y=140)
sb3=tkinter.Entry(root,show=None,font=('宋体',14),bg="light grey",width=18)
sb3.place(x=140,y=200)
lab=tkinter.Label(root,text='伞兵!快填写信息',font=("宋体",15),fg="white",width=40,height=2,bg="black")
lab.place(x=0,y=0)
lab1=tkinter.Label(root,text='伞兵名称',font=("宋体",12),fg="white",bg="black")
lab1.place(x=60,y=80)
lab2=tkinter.Label(root,text='伞兵密码',font=("宋体",12),fg="white",bg="black")
lab2.place(x=60,y=140)
lab3=tkinter.Label(root,text='伞兵密码2.0',font=("宋体",12),fg="white",bg="black")
lab3.place(x=50,y=200)
button1=tkinter.Button(root,text='确认成为一个伞兵的伞兵',bg="white",width=25,command=register)
button1.place(x=100,y=250)
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