I need to temporarily disable widget button

As Stefan said SetEnabled and SetVisibility is what are you looking for, if it doesn’t work maybe that node is never reached/called, debug it with print string please.