Commit 070fb902 by BellCodeEditor

save project

parent 10087d9b
Showing with 11 additions and 1 deletions
import tkinter
alist = []
def register():
name = e.get()
mima = e1.get()
mima_new = e2.get()
if mima == mima_new:
alist.append({name:mima})
print(alist)
root = tkinter.Tk()
root.title("注册")
root.geometry("500x300+700+350")
......@@ -19,5 +27,6 @@ e1.place(x=160,y=140)
ee1.place(x=100,y=140)
e2.place(x=160,y=200)
ee2.place(x=100,y=200)
button1=tkinter.Button(root, text='提交',bg='green',width=15,command = register)
button1.place(x=200, y=230)
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