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.1"
54 wxPoint wxPyDefaultPosition;
55 wxSize wxPyDefaultSize;
57 //---------------------------------------------------------------------------
58 //---------------------------------------------------------------------------
60 class wxPyApp : public wxEvtHandler {
64 wxPythonApp = new wxPyApp();
70 wxString GetAppName();
74 wxString GetClassName();
75 bool GetExitOnFrameDelete();
77 wxWindow * GetTopWindow();
78 wxString GetVendorName();
86 void SetAppName(const wxString& name);
88 void SetAuto3D(bool auto3D);
90 void SetClassName(const wxString& name);
91 void SetExitOnFrameDelete(bool flag);
92 void SetPrintMode(int mode);
93 void SetTopWindow(wxWindow* window);
94 void SetVendorName(const wxString& name);
96 // This one is wxPython specific. If you override MainLoop,
97 // call this when done.
102 //---------------------------------------------------------------------------
103 //---------------------------------------------------------------------------
107 #ifdef __WXMSW__ // If building for win32...
108 extern HINSTANCE wxhInstance;
111 HINSTANCE hinstDLL, // handle to DLL module
112 DWORD fdwReason, // reason for calling function
113 LPVOID lpvReserved // reserved
116 wxhInstance = hinstDLL;
126 //----------------------------------------------------------------------
127 // This code gets added to the module initialization function
128 //----------------------------------------------------------------------
131 extern "C" SWIGEXPORT(void,initwindowsc)();
132 extern "C" SWIGEXPORT(void,initwindows2c)();
133 extern "C" SWIGEXPORT(void,initeventsc)();
134 extern "C" SWIGEXPORT(void,initmiscc)();
135 extern "C" SWIGEXPORT(void,initgdic)();
136 extern "C" SWIGEXPORT(void,initmdic)();
137 extern "C" SWIGEXPORT(void,initcontrolsc)();
138 extern "C" SWIGEXPORT(void,initcontrols2c)();
139 extern "C" SWIGEXPORT(void,initcmndlgsc)();
144 // We don't want to run the wxEntry or OnInit yet, so we just do the
145 // beginings of what it would have done... See __wxStart() for the
148 wxApp::Initialize((WXHINSTANCE)wxhInstance);
155 // wxPyWindows = new wxHashTable(wxKEY_INTEGER, 100);
157 // Since these modules are all linked together, initialize them now
158 // because python won't be able to find their shared library files,
159 // (since there isn't any.)
171 //----------------------------------------------------------------------
172 // And this gets appended to the shadow class file.
173 //----------------------------------------------------------------------
175 %pragma(python) include="_extras.py";
178 /////////////////////////////////////////////////////////////////////////////
181 // Revision 1.2 1998/08/14 23:36:49 RD
182 // Beginings of wxGTK compatibility
184 // Revision 1.1 1998/08/09 08:25:53 RD