[Tutor] Tk -- which label clicked

geon geon at post.cz
Thu Jul 14 20:49:05 CEST 2005

Ron Weidner napsal(a):

>This doesn't work.  Not an error though. :)  What I'm
>trying to do is get the text value of a label.
>def icon_click(self, event=None):
>  print event.widget.option_get("text", event.widget)
maybe event.widget['text'] ?
what else you can put into brackets?: print event.widget.keys()
what else can be after event.?: dir(event)

Vyjímka je pravidlo. Rekurzivní.

More information about the Tutor mailing list