Return a low-level platform-specific identifier for the widget. On Unix this is the X window identifier, and on Windows it is the window handle.
tkinter/Misc.winfo_id
Misc.winfo_id