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
47 %native(_wxStart) __wxStart;
48 %native(_wxSetDictionary) __wxSetDictionary;
50 //---------------------------------------------------------------------------
52 #define __version__ "2.1b3"
54 wxPoint wxPyDefaultPosition;
55 wxSize wxPyDefaultSize;
57 //---------------------------------------------------------------------------
58 //---------------------------------------------------------------------------
60 class wxPyApp : public wxEvtHandler {
64 wxPythonApp = new wxPyApp();
71 wxString GetAppName();
75 wxString GetClassName();
76 bool GetExitOnFrameDelete();
78 wxWindow * GetTopWindow();
79 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 wxIcon GetStdIcon(int which);
104 //----------------------------------------------------------------------
105 // An instance of this object is created in the main wx module. As long
106 // as there are no extra references to it then when the wx module is being
107 // unloaded from memory then this object's destructor will be called. When
108 // it is then we'll use that as a signal to clean up wxWindows
111 class __wxPyCleanup {
114 ~__wxPyCleanup() { wxApp::CleanUp(); }
118 // now to swigify it...
119 class __wxPyCleanup {
127 //----------------------------------------------------------------------
128 // This code gets added to the module initialization function
129 //----------------------------------------------------------------------
132 extern "C" SWIGEXPORT(void) initwindowsc();
133 extern "C" SWIGEXPORT(void) initwindows2c();
134 extern "C" SWIGEXPORT(void) initeventsc();
135 extern "C" SWIGEXPORT(void) initmiscc();
136 extern "C" SWIGEXPORT(void) initmisc2c();
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();
142 extern "C" SWIGEXPORT(void) initstattoolc();
143 extern "C" SWIGEXPORT(void) initframesc();
144 extern "C" SWIGEXPORT(void) initwindows3c();
145 extern "C" SWIGEXPORT(void) initimagec();
146 extern "C" SWIGEXPORT(void) initprintfwc();
148 extern "C" SWIGEXPORT(void) initutilsc();
149 //extern "C" SWIGEXPORT(void) initoglc();
150 extern "C" SWIGEXPORT(void) initglcanvasc();
158 __wxPreStart(); // initialize the GUI toolkit, if needed.
161 // Since these modules are all linked together, initialize them now
162 // because python won't be able to find their shared library files,
163 // (since there isn't any.)
188 //----------------------------------------------------------------------
189 // And this gets appended to the shadow class file.
190 //----------------------------------------------------------------------
192 %pragma(python) include="_extras.py";