def __init__(self, name, filename=None):
        self.name = name
        super(NamedRequirements, self).__init__(filename=filename)
def _get_drag_data(self, dragged_item):
    return str(self._items.index(dragged_item))