[Tkinter-discuss] Tkinter mouse-event w/o class and/or global?
GKalman
kalman_g at msn.com
Mon Jun 22 15:07:51 CEST 2009
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.
More information about the Tkinter-discuss
mailing list