def find_treelistitem_with_data(tree_list, data, index=0):
    """
        Seek through the given tree_list to find the Item wich contains data in the data-array.

        Parameters
        ----------

        tree_list: wx.TreeCtrl
            existing TreeCtrl which is seeked
        data: obj
            data-Object that is assumed to be in any TreeList Item
        index: index for the data-list in the item
    """
    root_item = tree_list.GetRootItem()
    child, cookie = tree_list.GetFirstChild(root_item)
    while child.IsOk():
        item_data = tree_list.GetItemData(child)
        if item_data[index] == data:
            return child
        child, cookie = tree_list.GetNextChild(root_item, cookie)
    return tree_list.AppendItem(root_item, str(data.name), data=[data])
