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
48 %native(_wxStart) __wxStart;
49 %native(_wxSetDictionary) __wxSetDictionary;
51 //---------------------------------------------------------------------------
54 #define __version__ "0.0.0" // The real value is in build.py...
56 wxPoint wxPyDefaultPosition;
57 wxSize wxPyDefaultSize;
59 //---------------------------------------------------------------------------
60 //---------------------------------------------------------------------------
62 class wxPyApp : public wxEvtHandler {
66 wxPythonApp = new wxPyApp();
73 wxString GetAppName();
77 wxString GetClassName();
78 bool GetExitOnFrameDelete();
80 wxWindow * GetTopWindow();
81 wxString GetVendorName();
90 void SetAppName(const wxString& name);
92 void SetAuto3D(bool auto3D);
94 void SetClassName(const wxString& name);
95 void SetExitOnFrameDelete(bool flag);
96 void SetPrintMode(int mode);
97 void SetTopWindow(wxWindow* window);
98 void SetVendorName(const wxString& name);
100 wxIcon GetStdIcon(int which);
106 //----------------------------------------------------------------------
107 // An instance of this object is created in the main wx module. As long
108 // as there are no extra references to it then when the wx module is being
109 // unloaded from memory then this object's destructor will be called. When
110 // it is then we'll use that as a signal to clean up wxWindows
113 class __wxPyCleanup {
116 ~__wxPyCleanup() { wxApp::CleanUp(); }
120 // now to swigify it...
121 class __wxPyCleanup {
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) initmisc2c();
138 extern "C" SWIGEXPORT(void) initgdic();
139 extern "C" SWIGEXPORT(void) initmdic();
140 extern "C" SWIGEXPORT(void) initcontrolsc();
141 extern "C" SWIGEXPORT(void) initcontrols2c();
142 extern "C" SWIGEXPORT(void) initcmndlgsc();
143 extern "C" SWIGEXPORT(void) initstattoolc();
144 extern "C" SWIGEXPORT(void) initframesc();
145 extern "C" SWIGEXPORT(void) initwindows3c();
146 extern "C" SWIGEXPORT(void) initimagec();
147 extern "C" SWIGEXPORT(void) initprintfwc();
148 extern "C" SWIGEXPORT(void) initsizersc();
155 __wxPreStart(); // initialize the GUI toolkit, if needed.
158 // Since these modules are all linked together, initialize them now
159 // because python won't be able to find their shared library files,
160 // (since there isn't any.)
179 //----------------------------------------------------------------------
180 // And this gets appended to the shadow class file.
181 //----------------------------------------------------------------------
183 %pragma(python) include="_extras.py";