- winfo name window
Returns the name of the widget window. The name of all widgets except “.” is the last part of the path name; for “.” it is derived from the overall application name (where not overridden with the -name option to wish). It is a Tk_Uid.