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
44 %native(_wxStart) __wxStart;
45 %native(_wxSetDictionary) __wxSetDictionary;
47 //---------------------------------------------------------------------------
49 #define __version__ "0.5.2"
51 wxPoint wxPyDefaultPosition;
52 wxSize wxPyDefaultSize;
54 //---------------------------------------------------------------------------
55 //---------------------------------------------------------------------------
57 class wxPyApp : public wxEvtHandler {
61 wxPythonApp = new wxPyApp();
67 wxString GetAppName();
71 wxString GetClassName();
72 bool GetExitOnFrameDelete();
74 wxWindow * GetTopWindow();
75 wxString GetVendorName();
83 void SetAppName(const wxString& name);
85 void SetAuto3D(bool auto3D);
87 void SetClassName(const wxString& name);
88 void SetExitOnFrameDelete(bool flag);
89 void SetPrintMode(int mode);
90 void SetTopWindow(wxWindow* window);
91 void SetVendorName(const wxString& name);
93 // This one is wxPython specific. If you override MainLoop,
94 // call this when done.
100 //----------------------------------------------------------------------
101 // This code gets added to the module initialization function
102 //----------------------------------------------------------------------
105 extern "C" SWIGEXPORT(void,initwindowsc)();
106 extern "C" SWIGEXPORT(void,initwindows2c)();
107 extern "C" SWIGEXPORT(void,initeventsc)();
108 extern "C" SWIGEXPORT(void,initmiscc)();
109 extern "C" SWIGEXPORT(void,initgdic)();
110 extern "C" SWIGEXPORT(void,initmdic)();
111 extern "C" SWIGEXPORT(void,initcontrolsc)();
112 extern "C" SWIGEXPORT(void,initcontrols2c)();
113 extern "C" SWIGEXPORT(void,initcmndlgsc)();
114 extern "C" SWIGEXPORT(void,initstattoolc)();
115 extern "C" SWIGEXPORT(void,initframesc)();
116 extern "C" SWIGEXPORT(void,initutilsc)();
122 __wxPreStart(); // initialize the GUI toolkit, if needed.
124 // wxPyWindows = new wxHashTable(wxKEY_INTEGER, 100);
126 // Since these modules are all linked together, initialize them now
127 // because python won't be able to find their shared library files,
128 // (since there isn't any.)
145 //----------------------------------------------------------------------
146 // And this gets appended to the shadow class file.
147 //----------------------------------------------------------------------
149 %pragma(python) include="_extras.py";
152 /////////////////////////////////////////////////////////////////////////////
155 // Revision 1.3 1998/12/17 17:52:21 RD
157 // Minor fixes and SWIG code generation for RR's changes. MSW and GTK
158 // versions are much closer now!
160 // Revision 1.2 1998/12/16 22:10:57 RD
162 // Tweaks needed to be able to build wxPython with wxGTK.
164 // Revision 1.1 1998/12/15 20:41:27 RD
165 // Changed the import semantics from "from wxPython import *" to "from
166 // wxPython.wx import *" This is for people who are worried about
167 // namespace pollution, they can use "from wxPython import wx" and then
168 // prefix all the wxPython identifiers with "wx."
170 // Added wxTaskbarIcon for wxMSW.
172 // Made the events work for wxGrid.
176 // Added wxMiniFrame for wxGTK, (untested.)
178 // Changed many of the args and return values that were pointers to gdi
179 // objects to references to reflect changes in the wxWindows API.
181 // Other assorted fixes and additions.
183 // Revision 1.9 1998/10/20 07:38:04 RD
186 // Revision 1.8 1998/10/07 07:34:35 RD
187 // Version 0.4.1 for wxGTK
189 // Revision 1.7 1998/10/02 06:40:44 RD
191 // Version 0.4 of wxPython for MSW.
193 // Revision 1.6 1998/08/27 21:59:10 RD
194 // Some chicken-and-egg problems solved for wxPython on wxGTK
196 // Revision 1.5 1998/08/27 00:00:28 RD
198 // - have discovered some problems but not yet discovered solutions...
200 // Revision 1.4 1998/08/18 19:48:20 RD
201 // more wxGTK compatibility things.
203 // It builds now but there are serious runtime problems...
205 // Revision 1.3 1998/08/15 07:36:53 RD
206 // - Moved the header in the .i files out of the code that gets put into
207 // the .cpp files. It caused CVS conflicts because of the RCS ID being
208 // different each time.
210 // - A few minor fixes.
212 // Revision 1.2 1998/08/14 23:36:49 RD
213 // Beginings of wxGTK compatibility
215 // Revision 1.1 1998/08/09 08:25:53 RD