e.pack()
b1 = Button(win, text='animal', command=lambda : set_text('animal'))
b1.pack()
b2 = Button(win, text='plant', command=lambda : set_text('plant'))
b2.pack()
win.mainloop()
set the text of an entry using a button tkinter