Commit f2213083 by BellCodeEditor

save project

parent f80bfe3f
Showing with 15 additions and 0 deletions
import tkinter
def register():
print('点击了提交按钮')
name=e1.get()
print('提交的用户名是:',name)
p=e2.get()
q=e3.get()
print('密码是:',p)
root=tkinter.Tk()
root.title('注册')
root.geometry('400x300+500+300')
......@@ -19,4 +27,11 @@ e3.place(x=160,y=220)
la=tkinter.Label(root,text='您好!请输入注册信息',font=('宋体',15),fg='red',width=40,height=2,bg='pink')
la.place(x=0,y=0)
root.resizable(width=False,height=False)
n=tkinter.Button(root,text='提交',bg='lightgreen',width=15,command=register)
n.place(x=150,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