xxxxxxxxxx
def search():
query = search_entry.get()
selections = []
for child in tree.get_children():
if query.lower() in tree.item(child)['values'].lower(): # compare strings in lower cases.
print(tree.item(child)['values'])
selections.append(child)
print('search completed')
tree.selection_set(selections)