Commit b2e1d55f by BellCodeEditor

save project

parent 66fa28f1
Showing with 5 additions and 3 deletions
import tkinter import tkinter
# 建立窗口对象 # 建立窗口对象
root = tkinter.Tk() root = tkinter.Tk()
root.title("注册") # 设置窗口标题 root.title("注册") # 设置窗口标题
...@@ -15,7 +14,7 @@ e2.place(x=140,y=140) ...@@ -15,7 +14,7 @@ e2.place(x=140,y=140)
e3=tkinter.Entry(root,show='*',font=('宋体',14),bg='purple',width=18) e3=tkinter.Entry(root,show='*',font=('宋体',14),bg='purple',width=18)
e3.place(x=140,y=200) e3.place(x=140,y=200)
# 注册界面上的文字标签 # 注册界面上的文字标签
lab = tkinter.Label(root, text='Hello!Pleace enter your log in information.', lab = tkinter.Label(root, text='Hello!Pleace enter your information.',
font=('宋体', 15),fg="black",width=50, height=2,bg="green") font=('宋体', 15),fg="black",width=50, height=2,bg="green")
lab.place(x=0,y=0) lab.place(x=0,y=0)
# 在输入框前展示文字标签:用户名:、密 码:、确认密码: # 在输入框前展示文字标签:用户名:、密 码:、确认密码:
...@@ -25,5 +24,7 @@ l2=tkinter.Label(root,text='Password:',font=('宋体',15),fg='yellow',width=9,he ...@@ -25,5 +24,7 @@ l2=tkinter.Label(root,text='Password:',font=('宋体',15),fg='yellow',width=9,he
l2.place(x=40,y=140) l2.place(x=40,y=140)
l3=tkinter.Label(root,text='Confirm password:',font=('宋体',10),fg='blue',width=17,height=2,bg='light blue') l3=tkinter.Label(root,text='Confirm password:',font=('宋体',10),fg='blue',width=17,height=2,bg='light blue')
l3.place(x=10,y=200) l3.place(x=10,y=200)
button=tkinter.Button(root,text='Enter',fg='brown',width=5,command=f)
button.place(x=200,y=250)
# 保持窗口监听,进入消息循环 # 保持窗口监听,进入消息循环
root.mainloop() 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