Posts by lucas • 1 point
1 post
-
0
votes1
answer21
viewsQ: I am learning about the Tkinter library, but my code is giving this error"'type' Object is not subscriptable"
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,…
python-3.xasked lucas 1