How is it not working? Are you getting any errors in the Godot console?
The property name for disabling a button is disabled
, so that might be something to try as well. I know I have used code like button_node_here.disabled = true
without any issue in Godot.