The "select" signal is emitted when a tree item is about to be selected. This occurs when the user clicks on an unseleted item or the item is selected by its parent tree using the select_item() method.
Callback function