how to disable mouse click on widget

You can have a check on input type. However a button is designed to trigger by a press. Perhaps using or creating a different widget would be more suitable for your project?