[Tutor] Tk -- which label clicked

Ron Weidner xecronix at yahoo.com
Thu Jul 14 21:02:20 CEST 2005



--- geon <geon at post.cz> wrote:

> Ron Weidner napsal(a):
> 
> >This doesn't work.  

> >def icon_click(self, event=None):
> >  print event.widget.option_get("text",
> event.widget)
> >
> >  
> >
> maybe event.widget['text'] ?

event.widget['text'] works.  Thanks.


Ronald Weidner
http://www.techport80.com
PHP Software developer for hire.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Tutor mailing list