#Disabling buttons after clicks

1 messages · Page 1 of 1 (latest)

strong halo
#

Hello. I have a couple of components (buttons) and an on_button_click event, how can I disable this button after clicking a button?

hasty kite
#

disabled=True

strong halo
edgy pond
#

You need to edit the message with the now disabled bit

strong halo
hasty kite
#

for button in components:
button.disabled = True
edit_message(components=components)
Why are you using listener?are you one of those who using listener for every command?

strong halo
hasty kite
#

U can use view with 15 buttons

strong halo