docs: def register_view(self, view):
          """Called when the view was registered"""
          super(StateMachineTreeController, self).register_view(view)
          self.view.connect('button_press_event', self.mouse_click)
          self.view_is_registered = True
          self.update(with_expand=True)