(self, item)
Remove selection rooted at item.
Remove selection rooted at item.
Remove selection rooted at item .
def _remove_selection(self, item):
        """Remove selection rooted at item."""

        selection_item = self._selection[item]

        selection_item.hide()
        selection_item.setParentItem(None)
        if self.scene():
            self.scene().removeItem(selection_item)

        del self._selection[item]
def _remove_selection ( self , item ) : selection_item = self . _selection [ item ] selection_item . hide ( ) selection_item . setParentItem ( None ) if self . scene ( ) : self . scene ( ) . removeItem ( selection_item ) del self . _selection [ item ]