def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def _get_drag_data(self, dragged_item):
    return str(self._items.index(dragged_item))