]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/core.i
Lots of bup fixes, API updates, etc
[wxWidgets.git] / wxPython / src / core.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: core.i
3 // Purpose: SWIG interface file for the CORE wxPython classes and stuff.
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 22-May-1998
8 // RCS-ID: $Id$
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13 %module core
14
15
16 %{
17 #include "wx/wxPython/wxPython_int.h"
18 #include "wx/wxPython/pyclasses.h"
19 %}
20
21
22 //---------------------------------------------------------------------------
23
24 #ifndef SWIGXML
25 %include typemaps.i
26 %include my_typemaps.i
27
28 %include _core_api.i
29 %include _core_rename.i
30
31
32
33 %native(_wxPySetDictionary) __wxPySetDictionary;
34
35 %pythoncode {
36 %#// Give a reference to the dictionary of this module to the C++ extension
37 %#// code.
38 _core._wxPySetDictionary(vars())
39
40 %#// A little trick to make 'wx' be a reference to this module so wx.Names can
41 %#// be used here.
42 import sys as _sys
43 wx = _sys.modules[__name__]
44 }
45
46 #endif
47
48 //---------------------------------------------------------------------------
49
50 %{
51 DECLARE_DEF_STRING(EmptyString);
52 // DECLARE_DEF_STRING(PanelNameStr);
53 %}
54
55 //---------------------------------------------------------------------------
56 // Include all the files that make up the core module
57
58 // wxObject, functions and other base stuff
59 %include _defs.i
60 %include _obj.i
61 %include _gdicmn.i
62 %include _streams.i
63 %include _filesys.i
64 %include _image.i
65
66
67 // Events, event handlers, base Windows and such
68 %include _evthandler.i
69 %include _event.i
70 %include _app.i
71 %include _window.i
72 %include _validator.i
73 %include _menu.i
74 %include _control.i
75
76
77 // Layout
78 %include _sizers.i
79 %include _gbsizer.i
80 %include _constraints.i
81
82
83 %pythoncode "_core_ex.py"
84
85 //---------------------------------------------------------------------------
86 // This code gets added to the module initialization function
87
88 %init %{
89 // Initialize threading, some globals and such
90 __wxPyPreStart(d);
91
92
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
95 // versions match.
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 ));
99 %}
100
101 //---------------------------------------------------------------------------