0
def bt_click(botao):
print(botao["text"])
janela = Tk()
bt1 = Button(janela, width=20, text= "botão 1")
bt1["command"]= partial(bt_click, bt1)
bt1.place(x=100, y=100)
bt2 = Button(janela, width=20, text="botão 2")
bt2["command"] = partial[bt_click, bt2]
bt2.place(x=200, y=200)
janela.geometry("300x300+200+200")
janela.mainloop()
Your code is missing "import". It would be interesting to edit your reply and add the full error message.
– Camilo Santos
Where are you setting
partial
. Is it a function? Complement with the minimum code for reproduction– Breno