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

Administrator / level3-lesson15-diy2

  • 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 192fd6ea authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 0b3c8d52
Show whitespace changes
Inline Side-by-side
Showing with 12 additions and 0 deletions
  • q.py/q.py
q.py/q.py
View file @ 192fd6ea
import tkinter import tkinter
def register():
name=e.get()
print(name)
name1=e2.get()
print(name1)
name2=e3.get()
print(name2)
print("点击了提交按钮")
rood = tkinter.Tk() rood = tkinter.Tk()
rood.title("注册") rood.title("注册")
rood.geometry("300x300+500+300") rood.geometry("300x300+500+300")
...@@ -16,6 +24,10 @@ e6=tkinter.Label(rood,text="密码",font=("宋体",15),fg="red") ...@@ -16,6 +24,10 @@ e6=tkinter.Label(rood,text="密码",font=("宋体",15),fg="red")
e6.place(x=10,y=120) e6.place(x=10,y=120)
e7=tkinter.Label(rood,text="确认密码",font=("宋体",15),fg="red") e7=tkinter.Label(rood,text="确认密码",font=("宋体",15),fg="red")
e7.place(x=10,y=160) e7.place(x=10,y=160)
rood.resizable(width=False,height=False)
button1=tkinter.Button(rood,text='提交',bg="lightgreen",width=15,command=register)
button1.place(x=130,y=250)
rood.mainloop() rood.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