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=\'ch