pythonnew at gmail.com
Mon Dec 5 02:31:26 CET 2005
On 12/4/05, Diez B. Roggisch <deets at nospam.web.de> wrote:
> >>What you want instead is something like
> >>if event.source == a:
> >> ...
> >>Please note that I don't know what event actually looks like in Tkinter,
> >>so check the docs what actually gets passed to you.
> > got AttributeError: Event instance has no attribute 'source'
> As I said: I don'k _know_ how event actually looks like,a s I'm not a
> Tkinter-expert, but I've had plenty of projects involving other
> GUI-Toolkits, which work all the same in this manner. After all the
> whole purposs of the event parameter is to inform you about the cause
> for that event - in this case the pressing of a MB on a specific canvas
> But if you'd take it on you to consult the documentation as I asked you
> to do, I'm pretty sure you find the proper attribute.
thanks anyway. The python manual for event is very brief and it is
hard for me to understand.
More information about the Python-list