code: def _reatach(self):
          
          for item, p, idx in self._detached:
              # The item may have been deleted.
              if self.treeview.exists(item) and self.treeview.exists(p):
                  self.treeview.move(item, p, idx)
          self._detached = []
docs: Reinsert the hidden items.