Thank you so much for your PROMPT reply. Now I do understand what "event.widget" means.
Please consider this issue [RESOLVED] GKalman wrote: > > > As an example: > > I want to click on a Canvas and with that change its background color. > > The "usual" way is to declare a class (i.e a namespace). > > An other way is declare c=Canvas(...) as global. > > Question: > > Is it possible to do this without a class (OOP) or global variables? > -- View this message in context: http://www.nabble.com/Tkinter-mouse-event-w-o-class-and-or-global--tp24145910p24146898.html Sent from the Python - tkinter-discuss mailing list archive at Nabble.com. _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss