code: def SetSelected(self, node):
          
          self.selected_node = node
          index = self.NodeToIndex(node)
          if index != -1:
              self.Focus(index)
              self.Select(index, True)
          return index
docs: Set our selected node