3 /////////////////////////////////////////////////////////////////////////////
5 // Purpose: SWIG interface file for a python wxWindows module
11 // Copyright: (c) 1998 by Total Control Software
12 // Licence: wxWindows license
13 /////////////////////////////////////////////////////////////////////////////
20 #undef LoadAccelerators
27 //----------------------------------------------------------------------
28 // This is where we include the other wrapper definition files for SWIG
29 //----------------------------------------------------------------------
32 %include my_typemaps.i
47 %native(_wxStart) __wxStart;
48 %native(_wxSetDictionary) __wxSetDictionary;
50 //---------------------------------------------------------------------------
52 #define __version__ "0.3.0"
55 wxPoint wxPyDefaultPosition;
56 wxSize wxPyDefaultSize;
59 //---------------------------------------------------------------------------
60 //---------------------------------------------------------------------------
62 class wxPyApp : public wxEvtHandler {
66 wxPythonApp = new wxPyApp();
72 wxString GetAppName();
74 wxString GetClassName();
75 bool GetExitOnFrameDelete();
77 wxWindow * GetTopWindow();
78 wxString GetVendorName();
86 void SetAppName(const wxString& name);
87 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.
100 //---------------------------------------------------------------------------
101 //---------------------------------------------------------------------------
105 #ifdef __WXMSW__ // If building for win32...
106 extern HINSTANCE wxhInstance;
109 HINSTANCE hinstDLL, // handle to DLL module
110 DWORD fdwReason, // reason for calling function
111 LPVOID lpvReserved // reserved
114 wxhInstance = hinstDLL;
124 //----------------------------------------------------------------------
125 // This code gets added to the module initialization function
126 //----------------------------------------------------------------------
129 extern "C" SWIGEXPORT(void,initwindowsc)();
130 extern "C" SWIGEXPORT(void,initwindows2c)();
131 extern "C" SWIGEXPORT(void,initeventsc)();
132 extern "C" SWIGEXPORT(void,initmiscc)();
133 extern "C" SWIGEXPORT(void,initgdic)();
134 extern "C" SWIGEXPORT(void,initmdic)();
135 extern "C" SWIGEXPORT(void,initcontrolsc)();
136 extern "C" SWIGEXPORT(void,initcontrols2c)();
137 extern "C" SWIGEXPORT(void,initcmndlgsc)();
142 // We don't want to run the wxEntry or OnInit yet, so we just do the
143 // beginings of what it would have done... See __wxStart() for the
146 wxApp::Initialize((WXHINSTANCE)wxhInstance);
153 // wxPyWindows = new wxHashTable(wxKEY_INTEGER, 100);
155 // Since these modules are all linked together, initialize them now
156 // because python won't be able to find their shared library files,
157 // (since there isn't any.)
169 //----------------------------------------------------------------------
170 // And this gets appended to the shadow class file.
171 //----------------------------------------------------------------------
173 %pragma(python) include="_extras.py";
176 /////////////////////////////////////////////////////////////////////////////
179 // Revision 1.1 1998/08/09 08:25:53 RD