[Tutor] Tkinter

Hans Gubitz gubitz@netcologne.de
Thu Dec 5 11:55:06 2002


On Thu, Dec 05, 2002 at 10:54:01AM +0100, Abel Daniel wrote:
>  Hans Gubitz (gubitz@netcologne.de) wrote:
> > My Tkinter.Button is an attribute in the class person. In the
> > Application I want to get the instance of person, button is belonging
> > to.
> > 
> > My workaround is the function holePerson. Is this the way you do it in
> > Python?
> > 
> I have two ideas:
> - subclass Tkinter.Button. I think that way the callback will get
> your new, modified class as event.widget .
> 

Ok. I had already tried this idea, but I had made a mistake. Now it's
ok. Thank you.

Hans
-- 
Hans Gubitz <gubitz@netcologne.de>