I added the following code (taken from this post), however I didn't get the desired solution.
def change_colour():
trv.set(trv.selection()[0],0,tags='changed_tag') #this causes problem
trv.tag_configure("changed_tag",foreground="blue",background="yellow")
When executed I get this error (from the first line of the function):
TypeError: set() got an unexpected keyword argument 'tags'
My goal is to change the tag of the selected item (in treeview), so it's colour will be changed.