Commit 050fefb6 by BellCodeEditor

auto save

parent 84ba3259
Showing with 7 additions and 6 deletions
import tkinter import tkinter
def register(): def register():
name= name=e1.get()
print("点击了注销按键:",name)
root = tkinter.Tk() root = tkinter.Tk()
root.title("注") root.title("注")
root.geometry("500x300+700+350") root.geometry("500x300+700+350")
root.resizable(width=False,height=False)
e = tkinter.Entry(root,show=None,font=("宋体",14),bg="light grey",width=25) e = tkinter.Entry(root,show=None,font=("宋体",14),bg="light grey",width=25)
e.place(x=160,y=80) e.place(x=160,y=80)
e1 = tkinter.Entry(root,show='*',font=("宋体",14),bg="light grey",width=25) e1 = tkinter.Entry(root,show='*',font=("宋体",14),bg="light grey",width=25)
e1.place(x=160,y=140) e1.place(x=160,y=140)
e2 = tkinter.Entry(root,show='*',font=("宋体",14),bg="light grey",width=25) e2 = tkinter.Entry(root,show='*',font=("宋体",14),bg="light grey",width=25)
e2.place(x=160,y=200) e2.place(x=160,y=200)
l = tkinter.Label(root, text="您好,请注",font=("宋体",14),fg="yellow",bg='green',width=30,height=2) l = tkinter.Label(root, text="您好,请注",font=("宋体",14),fg="yellow",bg='green',width=30,height=2)
l.place(x=90, y=20) l.place(x=90, y=20)
ee = tkinter.Label(root, text="用户名:",font=("宋体",14),fg="black") ee = tkinter.Label(root, text="用户名:",font=("宋体",14),fg="black")
ee.place(x=90,y=80) ee.place(x=90,y=80)
...@@ -18,8 +20,6 @@ ee1 = tkinter.Label(root, text="密码:",font=("宋体",14),fg="black") ...@@ -18,8 +20,6 @@ ee1 = tkinter.Label(root, text="密码:",font=("宋体",14),fg="black")
ee1.place(x=100,y=140) ee1.place(x=100,y=140)
ee2 = tkinter.Label(root, text="确认密码:",font=("宋体",14),fg="black") ee2 = tkinter.Label(root, text="确认密码:",font=("宋体",14),fg="black")
ee2.place(x=100,y=200) ee2.place(x=100,y=200)
button1=tkinter.Button(root,text="注销",fg="blue",width=15)
root.resizable(width=False,height=False)
button1=tkinter.Button(root,text="",fg="blue",width=15)
button1.place(x=150,y=250) button1.place(x=150,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