from tkinter import *
from tkinter import messagebox

root = Tk()
#btn01 = Button(root)
#btn01["text"]="点我就送花"

#btn01.pack()

# def songhua(e):   #e就是事件对象
#     messagebox.showinfo("Messge","送你一朵玫瑰花,亲亲我吧")
#     print("送你99朵玫瑰花")
#
# # btn01.bind("<Buttn-1>",songhua)

root.mainloop()  #调用组件的mainloop()方法,进入事件循环