Commit f822edbb by BellCodeEditor

save project

parent 0651e310
Showing with 38 additions and 0 deletions
import tkinter
#实例化窗口对象
root = tkinter.Tk()
#设置窗口的大小
root.geometry('400x300+1000+500')
#标题
root.title('***')
#文本输入框
e1 = tkinter.Entry(root,show=None,font=('黑体',14),width = 18)
e1.place(x=150 , y=80 )
e2 = tkinter.Entry(root,show=None,font=('黑体',14),width = 18)
e2.place(x=150 , y=130 )
e3 = tkinter.Entry(root,show=None,font=('黑体',14),width = 18)
e3.place(x=150 , y=180)
lab = tkinter.Label(root,text = '您好!请填写注册信息',font = ('黑体',18),fg = 'black',width = 40,height = 2,bg = 'red')
lab.place(x=0,y=0)
l1 = tkinter.Label(root,text = '用户名:',fg = 'red',font=('黑体',14))
l1.place(x =60,y = 80 )
l2 = tkinter.Label(root,text = '密码:',fg = 'red',font=('黑体',14))
l2.place(x =60,y = 130 )
l3 = tkinter.Label(root,text = '确认密码:',fg = 'red',font=('黑体',14))
l3.place(x =10,y = 180 )
e4=tkinter.Button(root,text='ok',fg = 'red',font=('黑体',14))
e4.place(x =150,y = 200 )
#消息循环
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