Commit f6f6e7fa by BellCodeEditor

save project

parent 0651e310
Showing with 39 additions and 0 deletions
import tkinter import tkinter
root = tkinter.Tk()
root.title("注册")
root.geometry("400x320+500+300")
def a():
b = el.get()
c = el1.get()
d = el2.get()
print("信息",b,c,d)
el = tkinter.Entry(root,show = "?",font=("宋体",14),bg="green",width=18)
el.place(x=140,y=80)
el1 = tkinter.Entry(root,show = "*",font=("宋体",14),bg="purple",width=18)
el1.place(x=140,y=140)
el2 = tkinter.Entry(root,show = "%",font=("宋体",14),bg="red",width=18)
el2.place(x=140,y=200)
lab = tkinter.Label(root,text = "输入",font = ("宋体",15),fg = "red",width = 40,bg = "pink")
lab.place(x=0,y=0)
lab1 = tkinter.Label(root,text='用户名',font=("宋体",12),fg = "pink")
lab1.place(x=50,y=80)
lab2 = tkinter.Label(root,text='密 码',font=("宋体",12),fg = "pink")
lab2.place(x=50,y=140)
lab3 = tkinter.Label(root,text='确认密码',font=("宋体",12),fg = "pink")
lab3.place(x=50,y=200)
button = tkinter.Button(root,text="提交",bg = 'blue',width=15,command=a)
button.place(x=100,y=250)
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