The "deselect" signal is emitted when a tree item is about to be deselected. This occurs when the user clicks on a selected item or the item is unselected by its parent tree using the unselect_item() method.
Callback function