]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/core.i
SetStringSelection and etc. fixes
[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 #include "wx/wxPython/wxPython_int.h"
17 #include "wx/wxPython/pyclasses.h"
18 %}
19
20
21 //---------------------------------------------------------------------------
22
23 #ifndef SWIGXML
24 %include typemaps.i
25 %include my_typemaps.i
26
27 %include _core_api.i
28 %include __core_rename.i
29
30 %native(_wxPySetDictionary) __wxPySetDictionary;
31 %native(_wxPyFixStockObjects) __wxPyFixStockObjects;
32
33 %pythoncode {
34 %#// Give a reference to the dictionary of this module to the C++ extension
35 %#// code.
36 _core_._wxPySetDictionary(vars())
37
38 %#// A little trick to make 'wx' be a reference to this module so wx.Names can
39 %#// be used here.
40 import sys as _sys
41 wx = _sys.modules[__name__]
42 }
43
44 #endif
45
46
47
48 //---------------------------------------------------------------------------
49 // Include all the files that make up the core module
50
51 // wxObject, functions and other base stuff
52 %include _defs.i
53
54 MAKE_CONST_WXSTRING(EmptyString);
55
56 %include _obj.i
57 %include _gdicmn.i
58 %include _streams.i
59 %include _filesys.i
60 %include _image.i
61
62
63 // Events, event handlers, base Windows and such
64 %include _evthandler.i
65 %include _event.i
66 %include _app.i
67 %include _accel.i
68 %include _window.i
69 %include _validator.i
70 %include _menu.i
71 %include _control.i
72
73
74 // Layout
75 %include _sizers.i
76 %include _gbsizer.i
77 %include _constraints.i
78
79
80 %pythoncode "_core_ex.py"
81
82 //---------------------------------------------------------------------------
83 // This code gets added to the module initialization function
84
85 %init %{
86 // Initialize threading, some globals and such
87 __wxPyPreStart(d);
88
89
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
92 // versions match.
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 ));
96 %}
97
98 //---------------------------------------------------------------------------