Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / level3-lesson17-diy1

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit f800c7f6 authored 4 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent f3a7f122 c81600l1550p256a15090/wx185236
Show whitespace changes
Inline Side-by-side
Showing with 23 additions and 12 deletions
  • my_window.py
my_window.py
View file @ f800c7f6
import tkinter
def regi():
print(e1.get())
print(e2.get())
print(e3.get())
root=tkinter.Tk()
root.title("注册")
root.geometry("400x300+500+200")
lab=tkinter.Label(root,text="您好!请输入注册信息。",font=("",18),fg="white",bg="black")
lab=tkinter.Label(root,text=" 您 好 ! 请 输 入 注 册 信 息 。",font=("华文琥珀",18),fg="green",bg="black",width=30)
lab.place(x=0,y=0)
e1=tkinter.Entry(root,show=None,font=('宋体',14),bg="green",width=18)
e1.place(x=140,y=80)
e1=tkinter.Entry(root,show=None,font=('宋体',14),bg="yellow",width=18)
e1.place(x=160,y=80)
lab1=tkinter.Label(root,text="账号:",font=("宋体",15),fg="red",width=10)
lab1.place(x=80,y=80)
lab1.place(x=50,y=80)
e2=tkinter.Entry(root,show='*',font=('宋体',14),bg="yellow",width=18)
e2.place(x=160,y=120)
e2=tkinter.Entry(root,show=None,font=('宋体',14),bg="green",width=18)
e2.place(x=140,y=120)
lab2=tkinter.Label(root,text="密码:",font=("宋体",14),fg="red",width=10)
lab2.place(x=50,y=120)
lab2=tkinter.Label(root,text="密码:",font=("宋体",14),fg="red",width=10)
lab2.place(x=80,y=120)
e3=tkinter.Entry(root,show="*",font=('宋体',14),bg="yellow",width=18)
e3.place(x=160,y=160)
e3=tkinter.Entry(root,show=None,font=('宋体',14),bg="green",width=18)
e3.place(x=80,y=160)
lab3=tkinter.Label(root,text="确认密码:",font=("宋体",14),fg="red",width=10)
lab3.place(x=30,y=160)
lab3=tkinter.Label(root,text="确认密码:",font=("宋体",14),fg="red",width=10)
lab3.place(x=50,y=160)
btn=tkinter.Button(root,text=('提 交'),font=("宋体"),fg="white",bg="black",command=regi,width=20)
btn.place(x=100,y=220)
root.mainloop()
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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