Commit 1b7d8e79 by BellCodeEditor

save project

parent 0651e310
Showing with 33 additions and 0 deletions
import tkinter
def register():
name = el3.get()
password1 = el2.get()
password2 = el1.get()
print('用户名:',name,'密码:',password1,password2)
root = tkinter.Tk()
root.title('注册')
root.geometry('400x320+500+300')
lab1 = tkinter.Label(root,text='QQ号:',font=('宋体',12),fg='black')
lab1.place(x=60,y=80)
lab2 = tkinter.Label(root,text='QQ密码:',font=('宋体',12),fg='black')
lab2.place(x=40,y=160)
QQ2 = tkinter.Entry(root,show='*',font=('宋体',14),bg='light grey',width=18)
QQ2.place(x=120,y=160)
QQ1 = tkinter.Entry(root,show='',font=('宋体',14),bg='light grey',width=18)
QQ1.place(x=120,y=80)
button = tkinter.Button(root,text='提交',bg='blue',width=15,command=register)
button.place(x=150,y=280)
logo = photoImage(file='C:\\Users\\Administrator\\Desktop\\test')
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