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
42 %native(_wxStart) __wxStart;
43 %native(_wxSetDictionary) __wxSetDictionary;
45 //---------------------------------------------------------------------------
47 #define __version__ "0.4.2"
49 wxPoint wxPyDefaultPosition;
50 wxSize wxPyDefaultSize;
52 //---------------------------------------------------------------------------
53 //---------------------------------------------------------------------------
55 class wxPyApp : public wxEvtHandler {
59 wxPythonApp = new wxPyApp();
65 wxString GetAppName();
69 wxString GetClassName();
70 bool GetExitOnFrameDelete();
72 wxWindow * GetTopWindow();
73 wxString GetVendorName();
81 void SetAppName(const wxString& name);
83 void SetAuto3D(bool auto3D);
85 void SetClassName(const wxString& name);
86 void SetExitOnFrameDelete(bool flag);
87 void SetPrintMode(int mode);
88 void SetTopWindow(wxWindow* window);
89 void SetVendorName(const wxString& name);
91 // This one is wxPython specific. If you override MainLoop,
92 // call this when done.
98 //----------------------------------------------------------------------
99 // This code gets added to the module initialization function
100 //----------------------------------------------------------------------
103 extern "C" SWIGEXPORT(void,initwindowsc)();
104 extern "C" SWIGEXPORT(void,initwindows2c)();
105 extern "C" SWIGEXPORT(void,initeventsc)();
106 extern "C" SWIGEXPORT(void,initmiscc)();
107 extern "C" SWIGEXPORT(void,initgdic)();
108 extern "C" SWIGEXPORT(void,initmdic)();
109 extern "C" SWIGEXPORT(void,initcontrolsc)();
110 extern "C" SWIGEXPORT(void,initcontrols2c)();
111 extern "C" SWIGEXPORT(void,initcmndlgsc)();
112 extern "C" SWIGEXPORT(void,initstattoolc)();
113 extern "C" SWIGEXPORT(void,initframesc)();
119 __wxPreStart(); // initialize the GUI toolkit, if needed.
121 // wxPyWindows = new wxHashTable(wxKEY_INTEGER, 100);
123 // Since these modules are all linked together, initialize them now
124 // because python won't be able to find their shared library files,
125 // (since there isn't any.)
140 //----------------------------------------------------------------------
141 // And this gets appended to the shadow class file.
142 //----------------------------------------------------------------------
144 %pragma(python) include="_extras.py";
147 /////////////////////////////////////////////////////////////////////////////
150 // Revision 1.9 1998/10/20 07:38:04 RD
153 // Revision 1.8 1998/10/07 07:34:35 RD
154 // Version 0.4.1 for wxGTK
156 // Revision 1.7 1998/10/02 06:40:44 RD
158 // Version 0.4 of wxPython for MSW.
160 // Revision 1.6 1998/08/27 21:59:10 RD
161 // Some chicken-and-egg problems solved for wxPython on wxGTK
163 // Revision 1.5 1998/08/27 00:00:28 RD
165 // - have discovered some problems but not yet discovered solutions...
167 // Revision 1.4 1998/08/18 19:48:20 RD
168 // more wxGTK compatibility things.
170 // It builds now but there are serious runtime problems...
172 // Revision 1.3 1998/08/15 07:36:53 RD
173 // - Moved the header in the .i files out of the code that gets put into
174 // the .cpp files. It caused CVS conflicts because of the RCS ID being
175 // different each time.
177 // - A few minor fixes.
179 // Revision 1.2 1998/08/14 23:36:49 RD
180 // Beginings of wxGTK compatibility
182 // Revision 1.1 1998/08/09 08:25:53 RD