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 /////////////////////////////////////////////////////////////////////////////
16 #include "wx/wxPython/wxPython_int.h"
17 #include "wx/wxPython/pyclasses.h"
21 //---------------------------------------------------------------------------
25 %include my_typemaps.i
28 %include __core_rename.i
30 %native(_wxPySetDictionary) __wxPySetDictionary;
31 %native(_wxPyFixStockObjects) __wxPyFixStockObjects;
34 %#// Give a reference to the dictionary of this module to the C++ extension
36 _core_._wxPySetDictionary(vars())
38 %#// A little trick to make 'wx' be a reference to this module so wx.Names can
41 wx = _sys.modules[__name__]
48 //---------------------------------------------------------------------------
49 // Include all the files that make up the core module
51 // wxObject, functions and other base stuff
54 MAKE_CONST_WXSTRING(EmptyString);
63 // Events, event handlers, base Windows and such
64 %include _evthandler.i
77 %include _constraints.i
80 %pythoncode "_core_ex.py"
82 //---------------------------------------------------------------------------
83 // This code gets added to the module initialization function
86 // Initialize threading, some globals and such
90 // Although these are defined in __version__ they need to be here too so
91 // that an assert can be done to ensure that the wxPython and the wxWindows
93 PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
94 PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
95 PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
98 //---------------------------------------------------------------------------