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 now 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();
82 bool GetUseBestVisual();
91 void SetAppName(const wxString& name);
93 void SetAuto3D(bool auto3D);
95 void SetClassName(const wxString& name);
96 void SetExitOnFrameDelete(bool flag);
97 void SetPrintMode(int mode);
98 void SetTopWindow(wxWindow* window);
99 void SetVendorName(const wxString& name);
100 void SetUseBestVisual(bool flag);
101 wxIcon GetStdIcon(int which);
107 //----------------------------------------------------------------------
108 // this is used to cleanup after wxWindows when Python shuts down.
111 void wxApp_CleanUp() {
116 //----------------------------------------------------------------------
117 // This code gets added to the module initialization function
118 //----------------------------------------------------------------------
121 extern "C" SWIGEXPORT(void) initwindowsc();
122 extern "C" SWIGEXPORT(void) initwindows2c();
123 extern "C" SWIGEXPORT(void) initeventsc();
124 extern "C" SWIGEXPORT(void) initmiscc();
125 extern "C" SWIGEXPORT(void) initmisc2c();
126 extern "C" SWIGEXPORT(void) initgdic();
127 extern "C" SWIGEXPORT(void) initmdic();
128 extern "C" SWIGEXPORT(void) initcontrolsc();
129 extern "C" SWIGEXPORT(void) initcontrols2c();
130 extern "C" SWIGEXPORT(void) initcmndlgsc();
131 extern "C" SWIGEXPORT(void) initstattoolc();
132 extern "C" SWIGEXPORT(void) initframesc();
133 extern "C" SWIGEXPORT(void) initwindows3c();
134 extern "C" SWIGEXPORT(void) initimagec();
135 extern "C" SWIGEXPORT(void) initprintfwc();
136 extern "C" SWIGEXPORT(void) initsizersc();
137 extern "C" SWIGEXPORT(void) initclip_dndc();
138 extern "C" SWIGEXPORT(void) initgridc();
139 extern "C" SWIGEXPORT(void) initutilsc();
140 extern "C" SWIGEXPORT(void) inithtmlc();
141 extern "C" SWIGEXPORT(void) inithtmlhelpc();
142 extern "C" SWIGEXPORT(void) initcalendarc();
149 __wxPreStart(); // initialize the GUI toolkit, if needed.
152 // Since these modules are all linked together, initialize them now
153 // because Python won't be able to find their shared library files,
154 // (since there isn't any.)
180 //----------------------------------------------------------------------
181 // And this gets appended to the shadow class file.
182 //----------------------------------------------------------------------
184 %pragma(python) include="_extras.py";