def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def _get_drag_data(self, dragged_item):
    return str(self._items.index(dragged_item))