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
49 %native(_wxStart) __wxStart;
50 %native(_wxSetDictionary) __wxSetDictionary;
52 //---------------------------------------------------------------------------
55 #define __version__ "0.0.0" // The real value is now in setup.py...
57 wxPoint wxPyDefaultPosition;
58 wxSize wxPyDefaultSize;
60 //---------------------------------------------------------------------------
61 //---------------------------------------------------------------------------
63 class wxPyApp : public wxEvtHandler {
67 wxPythonApp = new wxPyApp();
74 wxString GetAppName();
78 wxString GetClassName();
79 bool GetExitOnFrameDelete();
81 wxWindow * GetTopWindow();
82 wxString GetVendorName();
83 bool GetUseBestVisual();
92 void SetAppName(const wxString& name);
94 void SetAuto3D(bool auto3D);
96 void SetClassName(const wxString& name);
97 void SetExitOnFrameDelete(bool flag);
98 void SetPrintMode(int mode);
99 void SetTopWindow(wxWindow* window);
100 void SetVendorName(const wxString& name);
101 void SetUseBestVisual(bool flag);
102 wxIcon GetStdIcon(int which);
108 wxPyApp* wxGetApp() {
113 //----------------------------------------------------------------------
114 // this is used to cleanup after wxWindows when Python shuts down.
117 void wxApp_CleanUp() {
122 //----------------------------------------------------------------------
123 // This code gets added to the module initialization function
124 //----------------------------------------------------------------------
127 extern "C" SWIGEXPORT(void) initwindowsc();
128 extern "C" SWIGEXPORT(void) initwindows2c();
129 extern "C" SWIGEXPORT(void) initeventsc();
130 extern "C" SWIGEXPORT(void) initmiscc();
131 extern "C" SWIGEXPORT(void) initmisc2c();
132 extern "C" SWIGEXPORT(void) initgdic();
133 extern "C" SWIGEXPORT(void) initmdic();
134 extern "C" SWIGEXPORT(void) initcontrolsc();
135 extern "C" SWIGEXPORT(void) initcontrols2c();
136 extern "C" SWIGEXPORT(void) initcmndlgsc();
137 extern "C" SWIGEXPORT(void) initstattoolc();
138 extern "C" SWIGEXPORT(void) initframesc();
139 extern "C" SWIGEXPORT(void) initwindows3c();
140 extern "C" SWIGEXPORT(void) initimagec();
141 extern "C" SWIGEXPORT(void) initprintfwc();
142 extern "C" SWIGEXPORT(void) initsizersc();
143 extern "C" SWIGEXPORT(void) initclip_dndc();
144 extern "C" SWIGEXPORT(void) initgridc();
145 extern "C" SWIGEXPORT(void) initutilsc();
146 extern "C" SWIGEXPORT(void) inithtmlc();
147 extern "C" SWIGEXPORT(void) inithtmlhelpc();
148 extern "C" SWIGEXPORT(void) initcalendarc();
149 extern "C" SWIGEXPORT(void) initstreamsc();
150 extern "C" SWIGEXPORT(void) initfilesysc();
152 extern "C" SWIGEXPORT(void) initglcanvasc();
153 extern "C" SWIGEXPORT(void) initoglc();
154 extern "C" SWIGEXPORT(void) initstc_c();
161 __wxPreStart(); // initialize the GUI toolkit, if needed.
164 // Since these modules are all linked together, initialize them now
165 // because Python won't be able to find their shared library files,
166 // (since there isn't any.)
198 //----------------------------------------------------------------------
199 // And this gets appended to the shadow class file.
200 //----------------------------------------------------------------------
202 %pragma(python) include="_extras.py";