winfo class

winfo class window

Returns the class name of the Tk widget, window, which is one of the default bindtags for the widget. For example, the class name of a button is Button, and a ttk::notebook is TNotebook. Note that frames and toplevels allow the setting of the class at the time of widget creation.