1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface file for a python wxWindows module
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
20 //----------------------------------------------------------------------
21 // This is where we include the other wrapper definition files for SWIG
22 //----------------------------------------------------------------------
25 %include my_typemaps.i
45 %native(_wxStart) __wxStart;
46 %native(_wxSetDictionary) __wxSetDictionary;
48 //---------------------------------------------------------------------------
50 #define __version__ "2.0b5"
52 wxPoint wxPyDefaultPosition;
53 wxSize wxPyDefaultSize;
55 //---------------------------------------------------------------------------
56 //---------------------------------------------------------------------------
58 class wxPyApp : public wxEvtHandler {
62 wxPythonApp = new wxPyApp();
68 wxString GetAppName();
72 wxString GetClassName();
73 bool GetExitOnFrameDelete();
75 wxWindow * GetTopWindow();
76 wxString GetVendorName();
84 void SetAppName(const wxString& name);
86 void SetAuto3D(bool auto3D);
88 void SetClassName(const wxString& name);
89 void SetExitOnFrameDelete(bool flag);
90 void SetPrintMode(int mode);
91 void SetTopWindow(wxWindow* window);
92 void SetVendorName(const wxString& name);
94 // This one is wxPython specific. If you override MainLoop,
95 // call this when done.
101 //----------------------------------------------------------------------
102 // This code gets added to the module initialization function
103 //----------------------------------------------------------------------
106 extern "C" SWIGEXPORT(void,initwindowsc)();
107 extern "C" SWIGEXPORT(void,initwindows2c)();
108 extern "C" SWIGEXPORT(void,initeventsc)();
109 extern "C" SWIGEXPORT(void,initmiscc)();
110 extern "C" SWIGEXPORT(void,initgdic)();
111 extern "C" SWIGEXPORT(void,initmdic)();
112 extern "C" SWIGEXPORT(void,initcontrolsc)();
113 extern "C" SWIGEXPORT(void,initcontrols2c)();
114 extern "C" SWIGEXPORT(void,initcmndlgsc)();
115 extern "C" SWIGEXPORT(void,initstattoolc)();
116 extern "C" SWIGEXPORT(void,initframesc)();
117 extern "C" SWIGEXPORT(void,initutilsc)();
118 extern "C" SWIGEXPORT(void,initwindows3c)();
125 __wxPreStart(); // initialize the GUI toolkit, if needed.
127 // wxPyWindows = new wxHashTable(wxKEY_INTEGER, 100);
129 // Since these modules are all linked together, initialize them now
130 // because python won't be able to find their shared library files,
131 // (since there isn't any.)
149 //----------------------------------------------------------------------
150 // And this gets appended to the shadow class file.
151 //----------------------------------------------------------------------
153 %pragma(python) include="_extras.py";
156 /////////////////////////////////////////////////////////////////////////////
159 // Revision 1.6 1999/02/20 09:03:04 RD
160 // Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
161 // window handle. If you can get the window handle into the python code,
162 // it should just work... More news on this later.
164 // Added wxImageList, wxToolTip.
166 // Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
167 // wxRegConfig class.
169 // As usual, some bug fixes, tweaks, etc.
171 // Revision 1.5 1999/02/01 00:10:41 RD
173 // Added the missing EVT_LIST_ITEM_SELECTED and friends.
175 // Revision 1.4 1999/01/30 07:30:16 RD
177 // Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
179 // Various cleanup, tweaks, minor additions, etc. to maintain
180 // compatibility with the current wxWindows.
182 // Revision 1.3 1998/12/17 17:52:21 RD
185 // Minor fixes and SWIG code generation for RR's changes. MSW and GTK
186 // versions are much closer now!
188 // Revision 1.2 1998/12/16 22:10:57 RD
190 // Tweaks needed to be able to build wxPython with wxGTK.
192 // Revision 1.1 1998/12/15 20:41:27 RD
193 // Changed the import semantics from "from wxPython import *" to "from
194 // wxPython.wx import *" This is for people who are worried about
195 // namespace pollution, they can use "from wxPython import wx" and then
196 // prefix all the wxPython identifiers with "wx."
198 // Added wxTaskbarIcon for wxMSW.
200 // Made the events work for wxGrid.
204 // Added wxMiniFrame for wxGTK, (untested.)
206 // Changed many of the args and return values that were pointers to gdi
207 // objects to references to reflect changes in the wxWindows API.
209 // Other assorted fixes and additions.
211 // Revision 1.9 1998/10/20 07:38:04 RD
214 // Revision 1.8 1998/10/07 07:34:35 RD
215 // Version 0.4.1 for wxGTK
217 // Revision 1.7 1998/10/02 06:40:44 RD
219 // Version 0.4 of wxPython for MSW.
221 // Revision 1.6 1998/08/27 21:59:10 RD
222 // Some chicken-and-egg problems solved for wxPython on wxGTK
224 // Revision 1.5 1998/08/27 00:00:28 RD
226 // - have discovered some problems but not yet discovered solutions...
228 // Revision 1.4 1998/08/18 19:48:20 RD
229 // more wxGTK compatibility things.
231 // It builds now but there are serious runtime problems...
233 // Revision 1.3 1998/08/15 07:36:53 RD
234 // - Moved the header in the .i files out of the code that gets put into
235 // the .cpp files. It caused CVS conflicts because of the RCS ID being
236 // different each time.
238 // - A few minor fixes.
240 // Revision 1.2 1998/08/14 23:36:49 RD
241 // Beginings of wxGTK compatibility
243 // Revision 1.1 1998/08/09 08:25:53 RD