wxPython internals

I would like to implement something like wxPython for another
scripting language (http://gnudatalanguage.sf.net, if you are interested). Could anybody point me to the part of the
source code of wxPython where it is initialized (the C++ code)?
Thanks,
marc

Marc Schellens wrote:

I would like to implement something like wxPython for another
scripting language (http://gnudatalanguage.sf.net, if you are interested). Could anybody point me to the part of the
source code of wxPython where it is initialized (the C++ code)?

It's spread over a few places. First, _core_.so is imported (it was "_core" in 2.5.1.5) and the init_core_ (generated by SWIG) function is called. It calls __wxPyPreStart which is located in helpers.cpp. Control then returns to Python after the import is finished and the other core wxPython modules are loaded and the user's code begins. When they create a wx.App object then it's __init__ calls wxPyApp::_BootstrapApp, also located in helpers.cpp. That function does the rest of the initialization of wxWidgets.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!