the loop creates several labels as references
need to do hover effect. reduced function does not work. the text is initially just blue and the mouse does not respond
def labelhover(w,ev): if ev is "enter": w["fg"]="red" #w.configure(foreground="red") elif ev is "leave": w["fg"]="blue" # w.configure(foreground="blue") for u in urls: lbl = Label(frame1, text=u ,cursor="hand2" ,justify=LEFT ,wraplength=width-10 ) lbl.bind("<Enter>",labelhover(lbl,"enter")) lbl.bind("<Leave>",labelhover(lbl,"leave")) lbl.pack() lbl.bind("<Button-1>",lambda event,arg=j['adress']:openurl(event,arg))