My objective is to change the text of label widget when the mouse move over the label.For one label i would do something like this:
import Tkinter as tk
def
import Tkinter as tk
root = tk.Tk()
mylist = ['a','b','c','d','e']
for i, x in enumerate(mylist):
label = tk.Label(root, text="Label "+str(i))
label.grid(row=i+1, column=1)
label.bind("", lambda e, x=x: e.widget.config(text=x))
label.bind("", lambda e, i=i: e.widget.config(text="Label "+str(i)))
root.mainloop()