1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface file for the CORE wxPython classes and stuff.
7 // Created: 22-May-1998
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
17 #include "wx/wxPython/wxPython_int.h"
18 #include "wx/wxPython/pyclasses.h"
22 //---------------------------------------------------------------------------
26 %include my_typemaps.i
29 %include _core_rename.i
33 %native(_wxPySetDictionary) __wxPySetDictionary;
36 %#// Give a reference to the dictionary of this module to the C++ extension
38 _core._wxPySetDictionary(vars())
40 %#// A little trick to make 'wx' be a reference to this module so wx.Names can
43 wx = _sys.modules[__name__]
48 //---------------------------------------------------------------------------
51 DECLARE_DEF_STRING(EmptyString);
52 // DECLARE_DEF_STRING(PanelNameStr);
55 //---------------------------------------------------------------------------
56 // Include all the files that make up the core module
58 // wxObject, functions and other base stuff
67 // Events, event handlers, base Windows and such
68 %include _evthandler.i
80 %include _constraints.i
83 %pythoncode "_core_ex.py"
85 //---------------------------------------------------------------------------
86 // This code gets added to the module initialization function
89 // Initialize threading, some globals and such
93 // Although these are defined in __version__ they need to be here too so
94 // that an assert can be done to ensure that the wxPython and the wxWindows
96 PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
97 PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
98 PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
101 //---------------------------------------------------------------------------