(self, item)
Add selection rooted at item
Add selection rooted at item
Add selection rooted at item
def _add_selection(self, item):
        """Add selection rooted at item
        """
        outline = self._selection_poly(item)
        path = self._transform.map(outline)
        ppath = self._create_path(item, path)
        label = self._create_label(len(self._selection))
        selection_item = self._SelectionItem(self, ppath, outline, label)
        selection_item.setPos(self.contentsRect().topLeft())
        self._selection[item] = selection_item
def _add_selection ( self , item ) : outline = self . _selection_poly ( item ) path = self . _transform . map ( outline ) ppath = self . _create_path ( item , path ) label = self . _create_label ( len ( self . _selection ) ) selection_item = self . _SelectionItem ( self , ppath , outline , label ) selection_item . setPos ( self . contentsRect ( ) . topLeft ( ) ) self . _selection [ item ] = selection_item