<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_interface(self, interface):
 """Add update toolbar callback to the interface"""

        self.interface = interface
        self.interface.callbacks.update_toolbar = self._update
        self._update()