Commit e11aa9a3 by BellCodeEditor

auto save

parent cf72b1d9
Showing with 11 additions and 0 deletions
import tkinter
def register():
print("dianjile")
name = e1.get()
print("yonghumingshi"+name)
password = e3.get()
print("mimashi"+password)
password1 = e2.get()
print("querenmimashi"+password1)
# 建立窗口对象
root = tkinter.Tk()
......@@ -30,4 +38,7 @@ lab3 = tkinter.Label(root, text='密 码:', font=('宋体', 15),
fg="black")
lab3.place(x=30,y=140)
# 保持窗口监听,进入消息循环
button1 = tkinter.Button(root,text="提交",bg="lightgreen",width=15,
command=register)
button1.place(x=150,y=250)
root.mainloop()
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