I need to temporarily disable widget button

Is disabling the only way to prevent a widget from firing code?

I want the widget to act as normal (show a description), just without the ability to actually click. Disabling completely nullifies everything.