Updates the attributes of the button. If some of the arguments are omitted
or null, the corresponding attributes are not updated.
iconPath Path to the new icon of the button.
tooltipText Text shown as a tooltip when user hovers the mouse over
the button.
disabled Whether the button is disabled.