tkinter, event.widget, what do i get?

skanemupp at yahoo.se skanemupp at yahoo.se
Tue Apr 15 16:45:08 EDT 2008


when calling function hmm here, what do i get? the widget i clicked
on?
if i have a canvs on wich i have a bitmap and i click on the bitmap,
is the event.widget then the bitmap?
can i get info about the bitmap then? like color of the pixel i
clicked. if so, how?


w.bind("<Key>", key)
w.bind("<Button-1>", hmm)

def hmm(event):
    return event.widget



More information about the Python-list mailing list