Tkinter and option database

Fredrik Lundh fredrik at effbot.org
Fri Jan 5 05:42:33 EST 2001


bakaikoa at my-deja.com wrote:
> Any hint, do you know of a way of assigning a Tk name
> to a widget?

http://www.pythonware.com/library/tkinter/introduction/x147-more-on-widget-names.htm

    "If you really need to specify the name of a widget, you
    can use the name option when you create the widget.

    In the following example, the resulting widget is named
    ".dialog.ok" (or, if you forgot to name the dialog, some-
    thing like ".1428748.ok"):

        ok = Button(dialog, name="ok")

(follow the link for more info)

Hope this helps!

Cheers /F







More information about the Python-list mailing list