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
45 %native(_wxStart) __wxStart;
46 %native(_wxSetDictionary) __wxSetDictionary;
48 //---------------------------------------------------------------------------
50 #define __version__ "2.1b1"
52 wxPoint wxPyDefaultPosition;
53 wxSize wxPyDefaultSize;
55 //---------------------------------------------------------------------------
56 //---------------------------------------------------------------------------
58 class wxPyApp : public wxEvtHandler {
62 wxPythonApp = new wxPyApp();
68 wxString GetAppName();
72 wxString GetClassName();
73 bool GetExitOnFrameDelete();
75 wxWindow * GetTopWindow();
76 wxString GetVendorName();
84 void SetAppName(const wxString& name);
86 void SetAuto3D(bool auto3D);
88 void SetClassName(const wxString& name);
89 void SetExitOnFrameDelete(bool flag);
90 void SetPrintMode(int mode);
91 void SetTopWindow(wxWindow* window);
92 void SetVendorName(const wxString& name);
94 // This one is wxPython specific. If you override MainLoop,
95 // call this when done.
101 //----------------------------------------------------------------------
102 // This code gets added to the module initialization function
103 //----------------------------------------------------------------------
106 extern "C" SWIGEXPORT(void,initwindowsc)();
107 extern "C" SWIGEXPORT(void,initwindows2c)();
108 extern "C" SWIGEXPORT(void,initeventsc)();
109 extern "C" SWIGEXPORT(void,initmiscc)();
110 extern "C" SWIGEXPORT(void,initmisc2c)();
111 extern "C" SWIGEXPORT(void,initgdic)();
112 extern "C" SWIGEXPORT(void,initmdic)();
113 extern "C" SWIGEXPORT(void,initcontrolsc)();
114 extern "C" SWIGEXPORT(void,initcontrols2c)();
115 extern "C" SWIGEXPORT(void,initcmndlgsc)();
116 extern "C" SWIGEXPORT(void,initstattoolc)();
117 extern "C" SWIGEXPORT(void,initframesc)();
118 extern "C" SWIGEXPORT(void,initwindows3c)();
119 extern "C" SWIGEXPORT(void,initimagec)();
120 extern "C" SWIGEXPORT(void,initprintfwc)();
122 extern "C" SWIGEXPORT(void,initutilsc)();
123 extern "C" SWIGEXPORT(void,initglcanvasc)();
131 __wxPreStart(); // initialize the GUI toolkit, if needed.
133 // wxPyWindows = new wxHashTable(wxKEY_INTEGER, 100);
135 // Since these modules are all linked together, initialize them now
136 // because python won't be able to find their shared library files,
137 // (since there isn't any.)
161 //----------------------------------------------------------------------
162 // And this gets appended to the shadow class file.
163 //----------------------------------------------------------------------
165 %pragma(python) include="_extras.py";