Commit e7ca7597 by BellCodeEditor

save project

parent 78916bd5
Showing with 4 additions and 1 deletions
...@@ -11,7 +11,7 @@ def register(): ...@@ -11,7 +11,7 @@ def register():
root=tkinter.Tk()#创建窗口 root=tkinter.Tk()#创建窗口
root.title('注册')#设置标题 root.title('注册')#设置标题
root.geometry("400x320+500+300")#设置大小,固定位置 root.geometry("400x320+500+300")#设置大小,固定位置
root.resizable(width=False,height=False) root.resizable(width=False,height=False)#不能拉扯窗口
#用户名输入框,(窗口,显示的是,字体.大小,背景颜色,) #用户名输入框,(窗口,显示的是,字体.大小,背景颜色,)
e1=tkinter.Entry(root,show=None,font=("宋体",14),bg="light grey",width=18) e1=tkinter.Entry(root,show=None,font=("宋体",14),bg="light grey",width=18)
...@@ -31,6 +31,9 @@ lab2.place(x=60,y=140) ...@@ -31,6 +31,9 @@ lab2.place(x=60,y=140)
lab3=tkinter.Label(root,text='确 认',font=("宋体",12),fg='black') lab3=tkinter.Label(root,text='确 认',font=("宋体",12),fg='black')
lab3.place(x=50,y=200) lab3.place(x=50,y=200)
#提交按钮
button=tkinter.Button(root,text='提交',bg='lightgreen',width=15,command=register)
button.place(x=150,y=200)
root.mainloop()#保持窗口 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