]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : src/gtk/mdi.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initmdic | |
55 | ||
56 | #define SWIG_name "mdic" | |
57 | ||
58 | #include "helpers.h" | |
59 | ||
60 | ||
61 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
62 | PyObject* o2; | |
63 | PyObject* o3; | |
64 | ||
65 | if (!target) { | |
66 | target = o; | |
67 | } else if (target == Py_None) { | |
68 | Py_DECREF(Py_None); | |
69 | target = o; | |
70 | } else { | |
71 | if (!PyTuple_Check(target)) { | |
72 | o2 = target; | |
73 | target = PyTuple_New(1); | |
74 | PyTuple_SetItem(target, 0, o2); | |
75 | } | |
76 | o3 = PyTuple_New(1); | |
77 | PyTuple_SetItem(o3, 0, o); | |
78 | ||
79 | o2 = target; | |
80 | target = PySequence_Concat(o2, o3); | |
81 | Py_DECREF(o2); | |
82 | Py_DECREF(o3); | |
83 | } | |
84 | return target; | |
85 | } | |
86 | ||
87 | #if PYTHON_API_VERSION >= 1009 | |
88 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
89 | #else | |
90 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
91 | #endif | |
92 | #ifdef __cplusplus | |
93 | extern "C" { | |
94 | #endif | |
95 | static void *SwigwxMDIParentFrameTowxFrame(void *ptr) { | |
96 | wxMDIParentFrame *src; | |
97 | wxFrame *dest; | |
98 | src = (wxMDIParentFrame *) ptr; | |
99 | dest = (wxFrame *) src; | |
100 | return (void *) dest; | |
101 | } | |
102 | ||
103 | static void *SwigwxMDIParentFrameTowxWindow(void *ptr) { | |
104 | wxMDIParentFrame *src; | |
105 | wxWindow *dest; | |
106 | src = (wxMDIParentFrame *) ptr; | |
107 | dest = (wxWindow *) src; | |
108 | return (void *) dest; | |
109 | } | |
110 | ||
111 | static void *SwigwxMDIParentFrameTowxEvtHandler(void *ptr) { | |
112 | wxMDIParentFrame *src; | |
113 | wxEvtHandler *dest; | |
114 | src = (wxMDIParentFrame *) ptr; | |
115 | dest = (wxEvtHandler *) src; | |
116 | return (void *) dest; | |
117 | } | |
118 | ||
119 | static void *SwigwxMDIParentFrameTowxObject(void *ptr) { | |
120 | wxMDIParentFrame *src; | |
121 | wxObject *dest; | |
122 | src = (wxMDIParentFrame *) ptr; | |
123 | dest = (wxObject *) src; | |
124 | return (void *) dest; | |
125 | } | |
126 | ||
127 | #define new_wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
128 | static PyObject *_wrap_new_wxMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
129 | PyObject * _resultobj; | |
130 | wxMDIParentFrame * _result; | |
131 | wxWindow * _arg0; | |
132 | wxWindowID _arg1; | |
133 | wxString * _arg2; | |
134 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
135 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
136 | long _arg5 = (long ) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL; | |
137 | char * _arg6 = (char *) "frame"; | |
138 | PyObject * _argo0 = 0; | |
139 | PyObject * _obj2 = 0; | |
140 | wxPoint temp; | |
141 | PyObject * _obj3 = 0; | |
142 | wxSize temp0; | |
143 | PyObject * _obj4 = 0; | |
144 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; | |
145 | char _ptemp[128]; | |
146 | ||
147 | self = self; | |
148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxMDIParentFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
149 | return NULL; | |
150 | if (_argo0) { | |
151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIParentFrame. Expected _wxWindow_p."); | |
154 | return NULL; | |
155 | } | |
156 | } | |
157 | { | |
158 | #if PYTHON_API_VERSION >= 1009 | |
159 | char* tmpPtr; int tmpSize; | |
160 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
161 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
162 | return NULL; | |
163 | } | |
164 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
165 | return NULL; | |
166 | _arg2 = new wxString(tmpPtr, tmpSize); | |
167 | #else | |
168 | if (!PyString_Check(_obj2)) { | |
169 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
170 | return NULL; | |
171 | } | |
172 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
173 | #endif | |
174 | } | |
175 | if (_obj3) | |
176 | { | |
177 | _arg3 = &temp; | |
178 | if (! wxPoint_helper(_obj3, &_arg3)) | |
179 | return NULL; | |
180 | } | |
181 | if (_obj4) | |
182 | { | |
183 | _arg4 = &temp0; | |
184 | if (! wxSize_helper(_obj4, &_arg4)) | |
185 | return NULL; | |
186 | } | |
187 | { | |
188 | wxPy_BEGIN_ALLOW_THREADS; | |
189 | _result = (wxMDIParentFrame *)new_wxMDIParentFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
190 | ||
191 | wxPy_END_ALLOW_THREADS; | |
192 | if (PyErr_Occurred()) return NULL; | |
193 | } if (_result) { | |
194 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIParentFrame_p"); | |
195 | _resultobj = Py_BuildValue("s",_ptemp); | |
196 | } else { | |
197 | Py_INCREF(Py_None); | |
198 | _resultobj = Py_None; | |
199 | } | |
200 | { | |
201 | if (_obj2) | |
202 | delete _arg2; | |
203 | } | |
204 | return _resultobj; | |
205 | } | |
206 | ||
207 | #define wxMDIParentFrame_ActivateNext(_swigobj) (_swigobj->ActivateNext()) | |
208 | static PyObject *_wrap_wxMDIParentFrame_ActivateNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
209 | PyObject * _resultobj; | |
210 | wxMDIParentFrame * _arg0; | |
211 | PyObject * _argo0 = 0; | |
212 | char *_kwnames[] = { "self", NULL }; | |
213 | ||
214 | self = self; | |
215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_ActivateNext",_kwnames,&_argo0)) | |
216 | return NULL; | |
217 | if (_argo0) { | |
218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) { | |
220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ActivateNext. Expected _wxMDIParentFrame_p."); | |
221 | return NULL; | |
222 | } | |
223 | } | |
224 | { | |
225 | wxPy_BEGIN_ALLOW_THREADS; | |
226 | wxMDIParentFrame_ActivateNext(_arg0); | |
227 | ||
228 | wxPy_END_ALLOW_THREADS; | |
229 | if (PyErr_Occurred()) return NULL; | |
230 | } Py_INCREF(Py_None); | |
231 | _resultobj = Py_None; | |
232 | return _resultobj; | |
233 | } | |
234 | ||
235 | #define wxMDIParentFrame_ActivatePrevious(_swigobj) (_swigobj->ActivatePrevious()) | |
236 | static PyObject *_wrap_wxMDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
237 | PyObject * _resultobj; | |
238 | wxMDIParentFrame * _arg0; | |
239 | PyObject * _argo0 = 0; | |
240 | char *_kwnames[] = { "self", NULL }; | |
241 | ||
242 | self = self; | |
243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_ActivatePrevious",_kwnames,&_argo0)) | |
244 | return NULL; | |
245 | if (_argo0) { | |
246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) { | |
248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ActivatePrevious. Expected _wxMDIParentFrame_p."); | |
249 | return NULL; | |
250 | } | |
251 | } | |
252 | { | |
253 | wxPy_BEGIN_ALLOW_THREADS; | |
254 | wxMDIParentFrame_ActivatePrevious(_arg0); | |
255 | ||
256 | wxPy_END_ALLOW_THREADS; | |
257 | if (PyErr_Occurred()) return NULL; | |
258 | } Py_INCREF(Py_None); | |
259 | _resultobj = Py_None; | |
260 | return _resultobj; | |
261 | } | |
262 | ||
263 | #define wxMDIParentFrame_ArrangeIcons(_swigobj) (_swigobj->ArrangeIcons()) | |
264 | static PyObject *_wrap_wxMDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
265 | PyObject * _resultobj; | |
266 | wxMDIParentFrame * _arg0; | |
267 | PyObject * _argo0 = 0; | |
268 | char *_kwnames[] = { "self", NULL }; | |
269 | ||
270 | self = self; | |
271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_ArrangeIcons",_kwnames,&_argo0)) | |
272 | return NULL; | |
273 | if (_argo0) { | |
274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) { | |
276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ArrangeIcons. Expected _wxMDIParentFrame_p."); | |
277 | return NULL; | |
278 | } | |
279 | } | |
280 | { | |
281 | wxPy_BEGIN_ALLOW_THREADS; | |
282 | wxMDIParentFrame_ArrangeIcons(_arg0); | |
283 | ||
284 | wxPy_END_ALLOW_THREADS; | |
285 | if (PyErr_Occurred()) return NULL; | |
286 | } Py_INCREF(Py_None); | |
287 | _resultobj = Py_None; | |
288 | return _resultobj; | |
289 | } | |
290 | ||
291 | #define wxMDIParentFrame_Cascade(_swigobj) (_swigobj->Cascade()) | |
292 | static PyObject *_wrap_wxMDIParentFrame_Cascade(PyObject *self, PyObject *args, PyObject *kwargs) { | |
293 | PyObject * _resultobj; | |
294 | wxMDIParentFrame * _arg0; | |
295 | PyObject * _argo0 = 0; | |
296 | char *_kwnames[] = { "self", NULL }; | |
297 | ||
298 | self = self; | |
299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_Cascade",_kwnames,&_argo0)) | |
300 | return NULL; | |
301 | if (_argo0) { | |
302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) { | |
304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_Cascade. Expected _wxMDIParentFrame_p."); | |
305 | return NULL; | |
306 | } | |
307 | } | |
308 | { | |
309 | wxPy_BEGIN_ALLOW_THREADS; | |
310 | wxMDIParentFrame_Cascade(_arg0); | |
311 | ||
312 | wxPy_END_ALLOW_THREADS; | |
313 | if (PyErr_Occurred()) return NULL; | |
314 | } Py_INCREF(Py_None); | |
315 | _resultobj = Py_None; | |
316 | return _resultobj; | |
317 | } | |
318 | ||
319 | #define wxMDIParentFrame_GetActiveChild(_swigobj) (_swigobj->GetActiveChild()) | |
320 | static PyObject *_wrap_wxMDIParentFrame_GetActiveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
321 | PyObject * _resultobj; | |
322 | wxMDIChildFrame * _result; | |
323 | wxMDIParentFrame * _arg0; | |
324 | PyObject * _argo0 = 0; | |
325 | char *_kwnames[] = { "self", NULL }; | |
326 | ||
327 | self = self; | |
328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_GetActiveChild",_kwnames,&_argo0)) | |
329 | return NULL; | |
330 | if (_argo0) { | |
331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) { | |
333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetActiveChild. Expected _wxMDIParentFrame_p."); | |
334 | return NULL; | |
335 | } | |
336 | } | |
337 | { | |
338 | wxPy_BEGIN_ALLOW_THREADS; | |
339 | _result = (wxMDIChildFrame *)wxMDIParentFrame_GetActiveChild(_arg0); | |
340 | ||
341 | wxPy_END_ALLOW_THREADS; | |
342 | if (PyErr_Occurred()) return NULL; | |
343 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
344 | return _resultobj; | |
345 | } | |
346 | ||
347 | #define wxMDIParentFrame_GetClientWindow(_swigobj) (_swigobj->GetClientWindow()) | |
348 | static PyObject *_wrap_wxMDIParentFrame_GetClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
349 | PyObject * _resultobj; | |
350 | wxMDIClientWindow * _result; | |
351 | wxMDIParentFrame * _arg0; | |
352 | PyObject * _argo0 = 0; | |
353 | char *_kwnames[] = { "self", NULL }; | |
354 | ||
355 | self = self; | |
356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_GetClientWindow",_kwnames,&_argo0)) | |
357 | return NULL; | |
358 | if (_argo0) { | |
359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) { | |
361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetClientWindow. Expected _wxMDIParentFrame_p."); | |
362 | return NULL; | |
363 | } | |
364 | } | |
365 | { | |
366 | wxPy_BEGIN_ALLOW_THREADS; | |
367 | _result = (wxMDIClientWindow *)wxMDIParentFrame_GetClientWindow(_arg0); | |
368 | ||
369 | wxPy_END_ALLOW_THREADS; | |
370 | if (PyErr_Occurred()) return NULL; | |
371 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
372 | return _resultobj; | |
373 | } | |
374 | ||
375 | #define wxMDIParentFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar()) | |
376 | static PyObject *_wrap_wxMDIParentFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
377 | PyObject * _resultobj; | |
378 | wxWindow * _result; | |
379 | wxMDIParentFrame * _arg0; | |
380 | PyObject * _argo0 = 0; | |
381 | char *_kwnames[] = { "self", NULL }; | |
382 | ||
383 | self = self; | |
384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_GetToolBar",_kwnames,&_argo0)) | |
385 | return NULL; | |
386 | if (_argo0) { | |
387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) { | |
389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetToolBar. Expected _wxMDIParentFrame_p."); | |
390 | return NULL; | |
391 | } | |
392 | } | |
393 | { | |
394 | wxPy_BEGIN_ALLOW_THREADS; | |
395 | _result = (wxWindow *)wxMDIParentFrame_GetToolBar(_arg0); | |
396 | ||
397 | wxPy_END_ALLOW_THREADS; | |
398 | if (PyErr_Occurred()) return NULL; | |
399 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
400 | return _resultobj; | |
401 | } | |
402 | ||
403 | #define wxMDIParentFrame_Tile(_swigobj) (_swigobj->Tile()) | |
404 | static PyObject *_wrap_wxMDIParentFrame_Tile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
405 | PyObject * _resultobj; | |
406 | wxMDIParentFrame * _arg0; | |
407 | PyObject * _argo0 = 0; | |
408 | char *_kwnames[] = { "self", NULL }; | |
409 | ||
410 | self = self; | |
411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_Tile",_kwnames,&_argo0)) | |
412 | return NULL; | |
413 | if (_argo0) { | |
414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) { | |
416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_Tile. Expected _wxMDIParentFrame_p."); | |
417 | return NULL; | |
418 | } | |
419 | } | |
420 | { | |
421 | wxPy_BEGIN_ALLOW_THREADS; | |
422 | wxMDIParentFrame_Tile(_arg0); | |
423 | ||
424 | wxPy_END_ALLOW_THREADS; | |
425 | if (PyErr_Occurred()) return NULL; | |
426 | } Py_INCREF(Py_None); | |
427 | _resultobj = Py_None; | |
428 | return _resultobj; | |
429 | } | |
430 | ||
431 | static void *SwigwxMDIChildFrameTowxFrame(void *ptr) { | |
432 | wxMDIChildFrame *src; | |
433 | wxFrame *dest; | |
434 | src = (wxMDIChildFrame *) ptr; | |
435 | dest = (wxFrame *) src; | |
436 | return (void *) dest; | |
437 | } | |
438 | ||
439 | static void *SwigwxMDIChildFrameTowxWindow(void *ptr) { | |
440 | wxMDIChildFrame *src; | |
441 | wxWindow *dest; | |
442 | src = (wxMDIChildFrame *) ptr; | |
443 | dest = (wxWindow *) src; | |
444 | return (void *) dest; | |
445 | } | |
446 | ||
447 | static void *SwigwxMDIChildFrameTowxEvtHandler(void *ptr) { | |
448 | wxMDIChildFrame *src; | |
449 | wxEvtHandler *dest; | |
450 | src = (wxMDIChildFrame *) ptr; | |
451 | dest = (wxEvtHandler *) src; | |
452 | return (void *) dest; | |
453 | } | |
454 | ||
455 | static void *SwigwxMDIChildFrameTowxObject(void *ptr) { | |
456 | wxMDIChildFrame *src; | |
457 | wxObject *dest; | |
458 | src = (wxMDIChildFrame *) ptr; | |
459 | dest = (wxObject *) src; | |
460 | return (void *) dest; | |
461 | } | |
462 | ||
463 | #define new_wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
464 | static PyObject *_wrap_new_wxMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
465 | PyObject * _resultobj; | |
466 | wxMDIChildFrame * _result; | |
467 | wxMDIParentFrame * _arg0; | |
468 | wxWindowID _arg1; | |
469 | wxString * _arg2; | |
470 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
471 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
472 | long _arg5 = (long ) wxDEFAULT_FRAME_STYLE; | |
473 | char * _arg6 = (char *) "frame"; | |
474 | PyObject * _argo0 = 0; | |
475 | PyObject * _obj2 = 0; | |
476 | wxPoint temp; | |
477 | PyObject * _obj3 = 0; | |
478 | wxSize temp0; | |
479 | PyObject * _obj4 = 0; | |
480 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; | |
481 | char _ptemp[128]; | |
482 | ||
483 | self = self; | |
484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxMDIChildFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
485 | return NULL; | |
486 | if (_argo0) { | |
487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) { | |
489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIChildFrame. Expected _wxMDIParentFrame_p."); | |
490 | return NULL; | |
491 | } | |
492 | } | |
493 | { | |
494 | #if PYTHON_API_VERSION >= 1009 | |
495 | char* tmpPtr; int tmpSize; | |
496 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
497 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
498 | return NULL; | |
499 | } | |
500 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
501 | return NULL; | |
502 | _arg2 = new wxString(tmpPtr, tmpSize); | |
503 | #else | |
504 | if (!PyString_Check(_obj2)) { | |
505 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
506 | return NULL; | |
507 | } | |
508 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
509 | #endif | |
510 | } | |
511 | if (_obj3) | |
512 | { | |
513 | _arg3 = &temp; | |
514 | if (! wxPoint_helper(_obj3, &_arg3)) | |
515 | return NULL; | |
516 | } | |
517 | if (_obj4) | |
518 | { | |
519 | _arg4 = &temp0; | |
520 | if (! wxSize_helper(_obj4, &_arg4)) | |
521 | return NULL; | |
522 | } | |
523 | { | |
524 | wxPy_BEGIN_ALLOW_THREADS; | |
525 | _result = (wxMDIChildFrame *)new_wxMDIChildFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
526 | ||
527 | wxPy_END_ALLOW_THREADS; | |
528 | if (PyErr_Occurred()) return NULL; | |
529 | } if (_result) { | |
530 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p"); | |
531 | _resultobj = Py_BuildValue("s",_ptemp); | |
532 | } else { | |
533 | Py_INCREF(Py_None); | |
534 | _resultobj = Py_None; | |
535 | } | |
536 | { | |
537 | if (_obj2) | |
538 | delete _arg2; | |
539 | } | |
540 | return _resultobj; | |
541 | } | |
542 | ||
543 | #define wxMDIChildFrame_Activate(_swigobj) (_swigobj->Activate()) | |
544 | static PyObject *_wrap_wxMDIChildFrame_Activate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
545 | PyObject * _resultobj; | |
546 | wxMDIChildFrame * _arg0; | |
547 | PyObject * _argo0 = 0; | |
548 | char *_kwnames[] = { "self", NULL }; | |
549 | ||
550 | self = self; | |
551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIChildFrame_Activate",_kwnames,&_argo0)) | |
552 | return NULL; | |
553 | if (_argo0) { | |
554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIChildFrame_p")) { | |
556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Activate. Expected _wxMDIChildFrame_p."); | |
557 | return NULL; | |
558 | } | |
559 | } | |
560 | { | |
561 | wxPy_BEGIN_ALLOW_THREADS; | |
562 | wxMDIChildFrame_Activate(_arg0); | |
563 | ||
564 | wxPy_END_ALLOW_THREADS; | |
565 | if (PyErr_Occurred()) return NULL; | |
566 | } Py_INCREF(Py_None); | |
567 | _resultobj = Py_None; | |
568 | return _resultobj; | |
569 | } | |
570 | ||
571 | #define wxMDIChildFrame_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0)) | |
572 | static PyObject *_wrap_wxMDIChildFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
573 | PyObject * _resultobj; | |
574 | wxMDIChildFrame * _arg0; | |
575 | bool _arg1; | |
576 | PyObject * _argo0 = 0; | |
577 | int tempbool1; | |
578 | char *_kwnames[] = { "self","maximize", NULL }; | |
579 | ||
580 | self = self; | |
581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMDIChildFrame_Maximize",_kwnames,&_argo0,&tempbool1)) | |
582 | return NULL; | |
583 | if (_argo0) { | |
584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIChildFrame_p")) { | |
586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Maximize. Expected _wxMDIChildFrame_p."); | |
587 | return NULL; | |
588 | } | |
589 | } | |
590 | _arg1 = (bool ) tempbool1; | |
591 | { | |
592 | wxPy_BEGIN_ALLOW_THREADS; | |
593 | wxMDIChildFrame_Maximize(_arg0,_arg1); | |
594 | ||
595 | wxPy_END_ALLOW_THREADS; | |
596 | if (PyErr_Occurred()) return NULL; | |
597 | } Py_INCREF(Py_None); | |
598 | _resultobj = Py_None; | |
599 | return _resultobj; | |
600 | } | |
601 | ||
602 | #define wxMDIChildFrame_Restore(_swigobj) (_swigobj->Restore()) | |
603 | static PyObject *_wrap_wxMDIChildFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
604 | PyObject * _resultobj; | |
605 | wxMDIChildFrame * _arg0; | |
606 | PyObject * _argo0 = 0; | |
607 | char *_kwnames[] = { "self", NULL }; | |
608 | ||
609 | self = self; | |
610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIChildFrame_Restore",_kwnames,&_argo0)) | |
611 | return NULL; | |
612 | if (_argo0) { | |
613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIChildFrame_p")) { | |
615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Restore. Expected _wxMDIChildFrame_p."); | |
616 | return NULL; | |
617 | } | |
618 | } | |
619 | { | |
620 | wxPy_BEGIN_ALLOW_THREADS; | |
621 | wxMDIChildFrame_Restore(_arg0); | |
622 | ||
623 | wxPy_END_ALLOW_THREADS; | |
624 | if (PyErr_Occurred()) return NULL; | |
625 | } Py_INCREF(Py_None); | |
626 | _resultobj = Py_None; | |
627 | return _resultobj; | |
628 | } | |
629 | ||
630 | static void *SwigwxMDIClientWindowTowxWindow(void *ptr) { | |
631 | wxMDIClientWindow *src; | |
632 | wxWindow *dest; | |
633 | src = (wxMDIClientWindow *) ptr; | |
634 | dest = (wxWindow *) src; | |
635 | return (void *) dest; | |
636 | } | |
637 | ||
638 | static void *SwigwxMDIClientWindowTowxEvtHandler(void *ptr) { | |
639 | wxMDIClientWindow *src; | |
640 | wxEvtHandler *dest; | |
641 | src = (wxMDIClientWindow *) ptr; | |
642 | dest = (wxEvtHandler *) src; | |
643 | return (void *) dest; | |
644 | } | |
645 | ||
646 | static void *SwigwxMDIClientWindowTowxObject(void *ptr) { | |
647 | wxMDIClientWindow *src; | |
648 | wxObject *dest; | |
649 | src = (wxMDIClientWindow *) ptr; | |
650 | dest = (wxObject *) src; | |
651 | return (void *) dest; | |
652 | } | |
653 | ||
654 | #define new_wxMDIClientWindow(_swigarg0,_swigarg1) (new wxMDIClientWindow(_swigarg0,_swigarg1)) | |
655 | static PyObject *_wrap_new_wxMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
656 | PyObject * _resultobj; | |
657 | wxMDIClientWindow * _result; | |
658 | wxMDIParentFrame * _arg0; | |
659 | long _arg1 = (long ) 0; | |
660 | PyObject * _argo0 = 0; | |
661 | char *_kwnames[] = { "parent","style", NULL }; | |
662 | char _ptemp[128]; | |
663 | ||
664 | self = self; | |
665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:new_wxMDIClientWindow",_kwnames,&_argo0,&_arg1)) | |
666 | return NULL; | |
667 | if (_argo0) { | |
668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) { | |
670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIClientWindow. Expected _wxMDIParentFrame_p."); | |
671 | return NULL; | |
672 | } | |
673 | } | |
674 | { | |
675 | wxPy_BEGIN_ALLOW_THREADS; | |
676 | _result = (wxMDIClientWindow *)new_wxMDIClientWindow(_arg0,_arg1); | |
677 | ||
678 | wxPy_END_ALLOW_THREADS; | |
679 | if (PyErr_Occurred()) return NULL; | |
680 | } if (_result) { | |
681 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p"); | |
682 | _resultobj = Py_BuildValue("s",_ptemp); | |
683 | } else { | |
684 | Py_INCREF(Py_None); | |
685 | _resultobj = Py_None; | |
686 | } | |
687 | return _resultobj; | |
688 | } | |
689 | ||
690 | static PyMethodDef mdicMethods[] = { | |
691 | { "new_wxMDIClientWindow", (PyCFunction) _wrap_new_wxMDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
692 | { "wxMDIChildFrame_Restore", (PyCFunction) _wrap_wxMDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS }, | |
693 | { "wxMDIChildFrame_Maximize", (PyCFunction) _wrap_wxMDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
694 | { "wxMDIChildFrame_Activate", (PyCFunction) _wrap_wxMDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS }, | |
695 | { "new_wxMDIChildFrame", (PyCFunction) _wrap_new_wxMDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
696 | { "wxMDIParentFrame_Tile", (PyCFunction) _wrap_wxMDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS }, | |
697 | { "wxMDIParentFrame_GetToolBar", (PyCFunction) _wrap_wxMDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
698 | { "wxMDIParentFrame_GetClientWindow", (PyCFunction) _wrap_wxMDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
699 | { "wxMDIParentFrame_GetActiveChild", (PyCFunction) _wrap_wxMDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS }, | |
700 | { "wxMDIParentFrame_Cascade", (PyCFunction) _wrap_wxMDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS }, | |
701 | { "wxMDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_wxMDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS }, | |
702 | { "wxMDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_wxMDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS }, | |
703 | { "wxMDIParentFrame_ActivateNext", (PyCFunction) _wrap_wxMDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS }, | |
704 | { "new_wxMDIParentFrame", (PyCFunction) _wrap_new_wxMDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
705 | { NULL, NULL } | |
706 | }; | |
707 | #ifdef __cplusplus | |
708 | } | |
709 | #endif | |
710 | /* | |
711 | * This table is used by the pointer type-checker | |
712 | */ | |
713 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
714 | { "_signed_long","_long",0}, | |
715 | { "_wxPrintQuality","_wxCoord",0}, | |
716 | { "_wxPrintQuality","_int",0}, | |
717 | { "_wxPrintQuality","_signed_int",0}, | |
718 | { "_wxPrintQuality","_unsigned_int",0}, | |
719 | { "_wxPrintQuality","_wxWindowID",0}, | |
720 | { "_wxPrintQuality","_uint",0}, | |
721 | { "_wxPrintQuality","_EBool",0}, | |
722 | { "_wxPrintQuality","_size_t",0}, | |
723 | { "_wxPrintQuality","_time_t",0}, | |
724 | { "_class_wxEvtHandler","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler}, | |
725 | { "_class_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler}, | |
726 | { "_class_wxEvtHandler","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler}, | |
727 | { "_class_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler}, | |
728 | { "_class_wxEvtHandler","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler}, | |
729 | { "_class_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler}, | |
730 | { "_byte","_unsigned_char",0}, | |
731 | { "_long","_unsigned_long",0}, | |
732 | { "_long","_signed_long",0}, | |
733 | { "_class_wxObject","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxObject}, | |
734 | { "_class_wxObject","_wxMDIClientWindow",SwigwxMDIClientWindowTowxObject}, | |
735 | { "_class_wxObject","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxObject}, | |
736 | { "_class_wxObject","_wxMDIChildFrame",SwigwxMDIChildFrameTowxObject}, | |
737 | { "_class_wxObject","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxObject}, | |
738 | { "_class_wxObject","_wxMDIParentFrame",SwigwxMDIParentFrameTowxObject}, | |
739 | { "_size_t","_wxCoord",0}, | |
740 | { "_size_t","_wxPrintQuality",0}, | |
741 | { "_size_t","_time_t",0}, | |
742 | { "_size_t","_unsigned_int",0}, | |
743 | { "_size_t","_int",0}, | |
744 | { "_size_t","_wxWindowID",0}, | |
745 | { "_size_t","_uint",0}, | |
746 | { "_uint","_wxCoord",0}, | |
747 | { "_uint","_wxPrintQuality",0}, | |
748 | { "_uint","_time_t",0}, | |
749 | { "_uint","_size_t",0}, | |
750 | { "_uint","_unsigned_int",0}, | |
751 | { "_uint","_int",0}, | |
752 | { "_uint","_wxWindowID",0}, | |
753 | { "_wxChar","_char",0}, | |
754 | { "_char","_wxChar",0}, | |
755 | { "_EBool","_wxCoord",0}, | |
756 | { "_EBool","_wxPrintQuality",0}, | |
757 | { "_EBool","_signed_int",0}, | |
758 | { "_EBool","_int",0}, | |
759 | { "_EBool","_wxWindowID",0}, | |
760 | { "_unsigned_long","_long",0}, | |
761 | { "_signed_int","_wxCoord",0}, | |
762 | { "_signed_int","_wxPrintQuality",0}, | |
763 | { "_signed_int","_EBool",0}, | |
764 | { "_signed_int","_wxWindowID",0}, | |
765 | { "_signed_int","_int",0}, | |
766 | { "_WXTYPE","_short",0}, | |
767 | { "_WXTYPE","_signed_short",0}, | |
768 | { "_WXTYPE","_unsigned_short",0}, | |
769 | { "_unsigned_short","_WXTYPE",0}, | |
770 | { "_unsigned_short","_short",0}, | |
771 | { "_class_wxWindow","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow}, | |
772 | { "_class_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow}, | |
773 | { "_class_wxWindow","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow}, | |
774 | { "_class_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow}, | |
775 | { "_class_wxWindow","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow}, | |
776 | { "_class_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow}, | |
777 | { "_wxObject","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxObject}, | |
778 | { "_wxObject","_wxMDIClientWindow",SwigwxMDIClientWindowTowxObject}, | |
779 | { "_wxObject","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxObject}, | |
780 | { "_wxObject","_wxMDIChildFrame",SwigwxMDIChildFrameTowxObject}, | |
781 | { "_wxObject","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxObject}, | |
782 | { "_wxObject","_wxMDIParentFrame",SwigwxMDIParentFrameTowxObject}, | |
783 | { "_signed_short","_WXTYPE",0}, | |
784 | { "_signed_short","_short",0}, | |
785 | { "_unsigned_char","_byte",0}, | |
786 | { "_unsigned_int","_wxCoord",0}, | |
787 | { "_unsigned_int","_wxPrintQuality",0}, | |
788 | { "_unsigned_int","_time_t",0}, | |
789 | { "_unsigned_int","_size_t",0}, | |
790 | { "_unsigned_int","_uint",0}, | |
791 | { "_unsigned_int","_wxWindowID",0}, | |
792 | { "_unsigned_int","_int",0}, | |
793 | { "_short","_WXTYPE",0}, | |
794 | { "_short","_unsigned_short",0}, | |
795 | { "_short","_signed_short",0}, | |
796 | { "_wxFrame","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame}, | |
797 | { "_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame}, | |
798 | { "_wxFrame","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame}, | |
799 | { "_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame}, | |
800 | { "_wxWindowID","_wxCoord",0}, | |
801 | { "_wxWindowID","_wxPrintQuality",0}, | |
802 | { "_wxWindowID","_time_t",0}, | |
803 | { "_wxWindowID","_size_t",0}, | |
804 | { "_wxWindowID","_EBool",0}, | |
805 | { "_wxWindowID","_uint",0}, | |
806 | { "_wxWindowID","_int",0}, | |
807 | { "_wxWindowID","_signed_int",0}, | |
808 | { "_wxWindowID","_unsigned_int",0}, | |
809 | { "_int","_wxCoord",0}, | |
810 | { "_int","_wxPrintQuality",0}, | |
811 | { "_int","_time_t",0}, | |
812 | { "_int","_size_t",0}, | |
813 | { "_int","_EBool",0}, | |
814 | { "_int","_uint",0}, | |
815 | { "_int","_wxWindowID",0}, | |
816 | { "_int","_unsigned_int",0}, | |
817 | { "_int","_signed_int",0}, | |
818 | { "_time_t","_wxCoord",0}, | |
819 | { "_time_t","_wxPrintQuality",0}, | |
820 | { "_time_t","_unsigned_int",0}, | |
821 | { "_time_t","_int",0}, | |
822 | { "_time_t","_wxWindowID",0}, | |
823 | { "_time_t","_uint",0}, | |
824 | { "_time_t","_size_t",0}, | |
825 | { "_wxCoord","_int",0}, | |
826 | { "_wxCoord","_signed_int",0}, | |
827 | { "_wxCoord","_unsigned_int",0}, | |
828 | { "_wxCoord","_wxWindowID",0}, | |
829 | { "_wxCoord","_uint",0}, | |
830 | { "_wxCoord","_EBool",0}, | |
831 | { "_wxCoord","_size_t",0}, | |
832 | { "_wxCoord","_time_t",0}, | |
833 | { "_wxCoord","_wxPrintQuality",0}, | |
834 | { "_wxEvtHandler","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler}, | |
835 | { "_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler}, | |
836 | { "_wxEvtHandler","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler}, | |
837 | { "_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler}, | |
838 | { "_wxEvtHandler","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler}, | |
839 | { "_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler}, | |
840 | { "_wxWindow","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow}, | |
841 | { "_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow}, | |
842 | { "_wxWindow","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow}, | |
843 | { "_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow}, | |
844 | { "_wxWindow","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow}, | |
845 | { "_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow}, | |
846 | { "_class_wxFrame","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame}, | |
847 | { "_class_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame}, | |
848 | { "_class_wxFrame","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame}, | |
849 | { "_class_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame}, | |
850 | {0,0,0}}; | |
851 | ||
852 | static PyObject *SWIG_globals; | |
853 | #ifdef __cplusplus | |
854 | extern "C" | |
855 | #endif | |
856 | SWIGEXPORT(void) initmdic() { | |
857 | PyObject *m, *d; | |
858 | SWIG_globals = SWIG_newvarlink(); | |
859 | m = Py_InitModule("mdic", mdicMethods); | |
860 | d = PyModule_GetDict(m); | |
861 | { | |
862 | int i; | |
863 | for (i = 0; _swig_mapping[i].n1; i++) | |
864 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
865 | } | |
866 | } |