The identifier is intended for identification and is used inside wxPython to track widgets and bind events or to generate events, etc. But most of the time as a wxPython user, you don’t need to set or use an identifier anywhere, since most of the time when you will use python objects to refer to widgets and not to identifiers, for example
>>> btn = wx.Button(win, label="click me")
>>> btn.Bind(wx.EVT_BUTTON, on_click)
, .