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
43 %native(_wxStart) __wxStart;
44 %native(_wxSetDictionary) __wxSetDictionary;
46 //---------------------------------------------------------------------------
48 #define __version__ "2.0b9"
50 wxPoint wxPyDefaultPosition;
51 wxSize wxPyDefaultSize;
53 //---------------------------------------------------------------------------
54 //---------------------------------------------------------------------------
56 class wxPyApp : public wxEvtHandler {
60 wxPythonApp = new wxPyApp();
66 wxString GetAppName();
70 wxString GetClassName();
71 bool GetExitOnFrameDelete();
73 wxWindow * GetTopWindow();
74 wxString GetVendorName();
82 void SetAppName(const wxString& name);
84 void SetAuto3D(bool auto3D);
86 void SetClassName(const wxString& name);
87 void SetExitOnFrameDelete(bool flag);
88 void SetPrintMode(int mode);
89 void SetTopWindow(wxWindow* window);
90 void SetVendorName(const wxString& name);
92 // This one is wxPython specific. If you override MainLoop,
93 // call this when done.
99 //----------------------------------------------------------------------
100 // This code gets added to the module initialization function
101 //----------------------------------------------------------------------
104 extern "C" SWIGEXPORT(void,initwindowsc)();
105 extern "C" SWIGEXPORT(void,initwindows2c)();
106 extern "C" SWIGEXPORT(void,initeventsc)();
107 extern "C" SWIGEXPORT(void,initmiscc)();
108 extern "C" SWIGEXPORT(void,initgdic)();
109 extern "C" SWIGEXPORT(void,initmdic)();
110 extern "C" SWIGEXPORT(void,initcontrolsc)();
111 extern "C" SWIGEXPORT(void,initcontrols2c)();
112 extern "C" SWIGEXPORT(void,initcmndlgsc)();
113 extern "C" SWIGEXPORT(void,initstattoolc)();
114 extern "C" SWIGEXPORT(void,initframesc)();
115 extern "C" SWIGEXPORT(void,initwindows3c)();
116 extern "C" SWIGEXPORT(void,initimagec)();
118 extern "C" SWIGEXPORT(void,initutilsc)();
119 extern "C" SWIGEXPORT(void,initglcanvasc)();
127 __wxPreStart(); // initialize the GUI toolkit, if needed.
129 // wxPyWindows = new wxHashTable(wxKEY_INTEGER, 100);
131 // Since these modules are all linked together, initialize them now
132 // because python won't be able to find their shared library files,
133 // (since there isn't any.)
155 //----------------------------------------------------------------------
156 // And this gets appended to the shadow class file.
157 //----------------------------------------------------------------------
159 %pragma(python) include="_extras.py";