Next / Previous / Contents

5.11. Window names

The term window describes a rectangular area on the desktop.

Tkinter names all these windows using a hierarchical window path name.

To get the path name for a widget w, use str(w).

See also Section 26, “Universal widget methods” for methods you can use to operate on window names, especially the .winfo_name, .winfo_parent, and .winfo_pathname methods.