def dropped(self, param, event):
        """Adds the dropped parameter *param* into the protocol list.

        Re-implemented from :meth:`AbstractDragView<sparkle.gui.abstract_drag_view.AbstractDragView.dropped>`
        """
        if event.source() == self or isinstance(param, AddLabel):
            index = self.indexAt(event.pos())
            self.model().insertRows(index.row(),1)
            if event.source() == self:
                self.model().setData(index, param)
            else:
                self.hintRequested.emit('Select Components in view to modify -- click to toggle membership of component in auto-parameter')
                row = index.row()
                # select rows doesn't work with -ve indexes
                if row == -1:
                    row = self.model().rowCount() - 1
                self.selectRow(row)
                self.parameterChanged.emit(self.model().selection(index))
        self.dragActive.emit(False)
def dropped ( self , param , event ) : if event . source ( ) == self or isinstance ( param , AddLabel ) : index = self . indexAt ( event . pos ( ) ) self . model ( ) . insertRows ( index . row ( ) , 1 ) if event . source ( ) == self : self . model ( ) . setData ( index , param ) else : self . hintRequested . emit ( 'Select Components in view to modify -- click to toggle membership of component in auto-parameter' ) row = index . row ( ) if row == - 1 : row = self . model ( ) . rowCount ( ) - 1 self . selectRow ( row ) self . parameterChanged . emit ( self . model ( ) . selection ( index ) ) self . dragActive . emit ( False )
Adds the dropped parameter *param* into the protocol list.

        Re-implemented from :meth:`AbstractDragView<sparkle.gui.abstract_drag_view.AbstractDragView.dropped>`