Commit 502d8711 by BellCodeEditor

save project

parent 7d01a482
Showing with 7 additions and 5 deletions
...@@ -6,8 +6,7 @@ root.title("好康的") # 设置窗口标题 ...@@ -6,8 +6,7 @@ root.title("好康的") # 设置窗口标题
root.geometry("400x320+500+300") root.geometry("400x320+500+300")
root.resizable(width=False,height=False) root.resizable(width=False,height=False)
lyb=tkinter.Button(root,text="提交",fg="blue",width=15comment=) # 设置窗口大小
lyb.place(x=140,y=250) # 设置窗口大小
lab = tkinter.Label(root, text='您好!这里有好康♂的', font=('宋体', 15), lab = tkinter.Label(root, text='您好!这里有好康♂的', font=('宋体', 15),
fg="black",width=40, height=2,bg="green") fg="black",width=40, height=2,bg="green")
...@@ -32,9 +31,12 @@ e2.place(x=140,y=140) ...@@ -32,9 +31,12 @@ e2.place(x=140,y=140)
# 确认密码输入框,左上角坐标:x:140,y:200 # 确认密码输入框,左上角坐标:x:140,y:200
e3=tkinter.Entry(root,show="*",font=("宋体",14),bg="light grey",width=18) e3=tkinter.Entry(root,show="*",font=("宋体",14),bg="light grey",width=18)
e3.place(x=140,y=200) e3.place(x=140,y=200)
def sb(): def register():
name=lab1.get() name=e1.get()
print("提交完成,名字是"+name) print("提交完成",name)
lyb=tkinter.Button(root,text="提交",fg="blue",width=15,command=register())
lyb.place(x=140,y=250)
# 注册界面上的文字标签 # 注册界面上的文字标签
# lab = tkinter.Label(root, text='您好!请填写注册信息', font=('宋体', 15), # lab = tkinter.Label(root, text='您好!请填写注册信息', font=('宋体', 15),
# fg="black",width=40, height=2,bg="green") # fg="black",width=40, height=2,bg="green")
......
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