Commit f2ab0d5e by BellCodeEditor

save project

parent 75d53087
Showing with 10 additions and 1 deletions
import tkinter
def c():
name=e1.get()
name1=e2.get()
print("输入的用户名为"+name)
print("输入的密码为"+name1)
print("已成功提交")
# 建立窗口对象
root = tkinter.Tk()
......@@ -30,6 +37,8 @@ lab2.place(x=40,y=140)
lab3 = tkinter.Label(root, text='请确认密码', font=('宋体', 10),
fg="black",width=8, height=1,bg="green")
lab3.place(x=40,y=200)
b=tkinter.Button(root,text="提交",fg="green",width=15,command=c)
b.place(x=150,y=250)
root.resizable(width=True,height=True)
# 保持窗口监听,进入消息循环
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