Commit 7711870a by BellCodeEditor

auto save

parent 0651e310
Showing with 26 additions and 0 deletions
import tkinter
def reg():
name = e1.get()
print(name)
#创建窗口对象
root = tkinter.Tk()
root.title('注册')#设置标题
root.geometry('340x300+500+300') #设置窗口大小
#文本输入框 用户名框 ,密码框 ,确认密码框
e1 = tkinter.Entry(root,show = None,font = ('宋体',12),bg='lightgreen',width = 18 )
e1.place(x=140,y=80)
#文本
lab1 = tkinter.Label(root,text='请填写注册信息',font =('华文琥珀',12),width=40,bg='green',height=3)
lab1.place(x=0,y = 0)
lab2 = tkinter.Label(root,text='用户名:',font =('华文琥珀',12),fg='red')
lab2.place(x=60,y =80)
button = tkinter.Button(root,text='提交',font =('华文琥珀',12), fg='black',width=10,bg='lightgreen',command=reg)
button.place(x=120,y=250)
#消息循环
root.mainloop()
\ No newline at end of file
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