Return the integer identifier for the atom whose name is name, creating a new atom if none exists. If displayof is given, the atom is looked up on the display of that window; otherwise it is looked up on the display of the application’s main window.
tkinter/Misc.winfo_atom
Misc.winfo_atom