wxPython's PI generator

In wxPython’s .pyi files, it is stated that “This file is generated by wxPython’s PI generator…”. I googled this generator but found nothing. I really need this kind of generator to help with my python localization project. Could someone kindly tell me where this PI generator is.
Thanks Very Much.

It’s located in the source tree at etgtools/pi_generator.py. It’s driven by the same data objects used to generate the sip code, and those objects originally came from the XML produced from the wxWidgets documentation. So it’s pretty specific to wxWidgets and wxPython, I’m not sure how useful it will be in other contexts.

Thank you very much, Robin!