1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface file for a python wxWindows module
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
22 #undef LoadAccelerators
29 //----------------------------------------------------------------------
30 // This is where we include the other wrapper definition files for SWIG
31 //----------------------------------------------------------------------
34 %include my_typemaps.i
49 %native(_wxStart) __wxStart;
50 %native(_wxSetDictionary) __wxSetDictionary;
52 //---------------------------------------------------------------------------
54 #define __version__ "0.3.1"
56 wxPoint wxPyDefaultPosition;
57 wxSize wxPyDefaultSize;
59 //---------------------------------------------------------------------------
60 //---------------------------------------------------------------------------
62 class wxPyApp : public wxEvtHandler {
66 wxPythonApp = new wxPyApp();
72 wxString GetAppName();
76 wxString GetClassName();
77 bool GetExitOnFrameDelete();
79 wxWindow * GetTopWindow();
80 wxString GetVendorName();
88 void SetAppName(const wxString& name);
90 void SetAuto3D(bool auto3D);
92 void SetClassName(const wxString& name);
93 void SetExitOnFrameDelete(bool flag);
94 void SetPrintMode(int mode);
95 void SetTopWindow(wxWindow* window);
96 void SetVendorName(const wxString& name);
98 // This one is wxPython specific. If you override MainLoop,
99 // call this when done.
100 void AfterMainLoop();
104 //---------------------------------------------------------------------------
105 //---------------------------------------------------------------------------
109 #ifdef __WXMSW__ // If building for win32...
110 extern HINSTANCE wxhInstance;
113 HINSTANCE hinstDLL, // handle to DLL module
114 DWORD fdwReason, // reason for calling function
115 LPVOID lpvReserved // reserved
118 wxhInstance = hinstDLL;
128 //----------------------------------------------------------------------
129 // This code gets added to the module initialization function
130 //----------------------------------------------------------------------
133 extern "C" SWIGEXPORT(void,initwindowsc)();
134 extern "C" SWIGEXPORT(void,initwindows2c)();
135 extern "C" SWIGEXPORT(void,initeventsc)();
136 extern "C" SWIGEXPORT(void,initmiscc)();
137 extern "C" SWIGEXPORT(void,initgdic)();
138 extern "C" SWIGEXPORT(void,initmdic)();
139 extern "C" SWIGEXPORT(void,initcontrolsc)();
140 extern "C" SWIGEXPORT(void,initcontrols2c)();
141 extern "C" SWIGEXPORT(void,initcmndlgsc)();
146 // We don't want to run the wxEntry or OnInit yet, so we just do the
147 // beginings of what it would have done... See __wxStart() for the
150 wxApp::Initialize((WXHINSTANCE)wxhInstance);
157 // wxPyWindows = new wxHashTable(wxKEY_INTEGER, 100);
159 // Since these modules are all linked together, initialize them now
160 // because python won't be able to find their shared library files,
161 // (since there isn't any.)
173 //----------------------------------------------------------------------
174 // And this gets appended to the shadow class file.
175 //----------------------------------------------------------------------
177 %pragma(python) include="_extras.py";
180 /////////////////////////////////////////////////////////////////////////////
183 // Revision 1.3 1998/08/15 07:36:53 RD
184 // - Moved the header in the .i files out of the code that gets put into
185 // the .cpp files. It caused CVS conflicts because of the RCS ID being
186 // different each time.
188 // - A few minor fixes.
190 // Revision 1.2 1998/08/14 23:36:49 RD
191 // Beginings of wxGTK compatibility
193 // Revision 1.1 1998/08/09 08:25:53 RD