Commit 7d01a482 by BellCodeEditor

save project

parent e7daf62a
Showing with 6 additions and 2 deletions
...@@ -5,8 +5,10 @@ root = tkinter.Tk() ...@@ -5,8 +5,10 @@ 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)
lyb=tkinter.Button(root,text="提交",fg="blue",width=15)
lyb=tkinter.Button(root,text="提交",fg="blue",width=15comment=)
lyb.place(x=140,y=250) # 设置窗口大小 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")
lab.place(x=0,y=0) lab.place(x=0,y=0)
...@@ -30,7 +32,9 @@ e2.place(x=140,y=140) ...@@ -30,7 +32,9 @@ 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():
name=lab1.get()
print("提交完成,名字是"+name)
# 注册界面上的文字标签 # 注册界面上的文字标签
# 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