[Python] Remove command from a button

Discussão em 'Python' iniciado por Stack, Outubro 3, 2024.

  1. Stack

    Stack Membro Participativo

    b1=Button(bla bla bla,command=run_something)

    b1.configure (command='')


    I want to remove the 'command' from a button so that if pressed nothing happens

    how would I do this?

    note: I did not use the b1.bind(<"button-1">) no I cant change it to this and then use b1.unbind

    Continue reading...

Compartilhe esta Página