4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 6)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
47 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
48 extern PyObject
*SWIG_newvarlink(void);
52 #define SWIG_init initmdic
54 #define SWIG_name "mdic"
58 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
63 } else if (target
== Py_None
) {
67 if (!PyList_Check(target
)) {
69 target
= PyList_New(0);
70 PyList_Append(target
, o2
);
73 PyList_Append(target
,o
);
79 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
85 } else if (target
== Py_None
) {
89 if (!PyTuple_Check(target
)) {
91 target
= PyTuple_New(1);
92 PyTuple_SetItem(target
, 0, o2
);
95 PyTuple_SetItem(o3
, 0, o
);
98 target
= PySequence_Concat(o2
, o3
);
106 extern byte
* byte_LIST_helper(PyObject
* source
);
107 extern int* int_LIST_helper(PyObject
* source
);
108 extern long* long_LIST_helper(PyObject
* source
);
109 extern char** string_LIST_helper(PyObject
* source
);
110 extern wxPoint
* wxPoint_LIST_helper(PyObject
* source
);
111 extern wxBitmap
** wxBitmap_LIST_helper(PyObject
* source
);
112 extern wxString
* wxString_LIST_helper(PyObject
* source
);
113 extern wxAcceleratorEntry
* wxAcceleratorEntry_LIST_helper(PyObject
* source
);
116 static char* wxStringErrorMsg
= "string type is required for parameter";
120 static void *SwigwxMDIParentFrameTowxFrame(void *ptr
) {
121 wxMDIParentFrame
*src
;
123 src
= (wxMDIParentFrame
*) ptr
;
124 dest
= (wxFrame
*) src
;
125 return (void *) dest
;
128 static void *SwigwxMDIParentFrameTowxWindow(void *ptr
) {
129 wxMDIParentFrame
*src
;
131 src
= (wxMDIParentFrame
*) ptr
;
132 dest
= (wxWindow
*) src
;
133 return (void *) dest
;
136 static void *SwigwxMDIParentFrameTowxEvtHandler(void *ptr
) {
137 wxMDIParentFrame
*src
;
139 src
= (wxMDIParentFrame
*) ptr
;
140 dest
= (wxEvtHandler
*) src
;
141 return (void *) dest
;
144 #define new_wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
145 static PyObject
*_wrap_new_wxMDIParentFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
146 PyObject
* _resultobj
;
147 wxMDIParentFrame
* _result
;
151 wxPoint
* _arg3
= (wxPoint
*) &wxPyDefaultPosition
;
152 wxSize
* _arg4
= (wxSize
*) &wxPyDefaultSize
;
153 long _arg5
= (long ) wxDEFAULT_FRAME_STYLE
|wxVSCROLL
|wxHSCROLL
;
154 char * _arg6
= (char *) "frame";
155 PyObject
* _argo0
= 0;
156 PyObject
* _obj2
= 0;
157 PyObject
* _argo3
= 0;
158 PyObject
* _argo4
= 0;
159 char *_kwnames
[] = { "parent","id","title","pos","size","style","name", NULL
};
163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOls:new_wxMDIParentFrame",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_argo4
,&_arg5
,&_arg6
))
166 if (_argo0
== Py_None
) { _arg0
= NULL
; }
167 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
168 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMDIParentFrame. Expected _wxWindow_p.");
173 if (!PyString_Check(_obj2
)) {
174 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
177 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
180 if (_argo3
== Py_None
) { _arg3
= NULL
; }
181 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPoint_p")) {
182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of new_wxMDIParentFrame. Expected _wxPoint_p.");
187 if (_argo4
== Py_None
) { _arg4
= NULL
; }
188 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxSize_p")) {
189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of new_wxMDIParentFrame. Expected _wxSize_p.");
194 wxPy_BEGIN_ALLOW_THREADS
;
195 _result
= (wxMDIParentFrame
*)new_wxMDIParentFrame(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
197 wxPy_END_ALLOW_THREADS
;
199 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMDIParentFrame_p");
200 _resultobj
= Py_BuildValue("s",_ptemp
);
203 _resultobj
= Py_None
;
212 #define wxMDIParentFrame_ActivateNext(_swigobj) (_swigobj->ActivateNext())
213 static PyObject
*_wrap_wxMDIParentFrame_ActivateNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
214 PyObject
* _resultobj
;
215 wxMDIParentFrame
* _arg0
;
216 PyObject
* _argo0
= 0;
217 char *_kwnames
[] = { "self", NULL
};
220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_ActivateNext",_kwnames
,&_argo0
))
223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_ActivateNext. Expected _wxMDIParentFrame_p.");
230 wxPy_BEGIN_ALLOW_THREADS
;
231 wxMDIParentFrame_ActivateNext(_arg0
);
233 wxPy_END_ALLOW_THREADS
;
234 } Py_INCREF(Py_None
);
235 _resultobj
= Py_None
;
239 #define wxMDIParentFrame_ActivatePrevious(_swigobj) (_swigobj->ActivatePrevious())
240 static PyObject
*_wrap_wxMDIParentFrame_ActivatePrevious(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
241 PyObject
* _resultobj
;
242 wxMDIParentFrame
* _arg0
;
243 PyObject
* _argo0
= 0;
244 char *_kwnames
[] = { "self", NULL
};
247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_ActivatePrevious",_kwnames
,&_argo0
))
250 if (_argo0
== Py_None
) { _arg0
= NULL
; }
251 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
252 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_ActivatePrevious. Expected _wxMDIParentFrame_p.");
257 wxPy_BEGIN_ALLOW_THREADS
;
258 wxMDIParentFrame_ActivatePrevious(_arg0
);
260 wxPy_END_ALLOW_THREADS
;
261 } Py_INCREF(Py_None
);
262 _resultobj
= Py_None
;
266 #define wxMDIParentFrame_ArrangeIcons(_swigobj) (_swigobj->ArrangeIcons())
267 static PyObject
*_wrap_wxMDIParentFrame_ArrangeIcons(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
268 PyObject
* _resultobj
;
269 wxMDIParentFrame
* _arg0
;
270 PyObject
* _argo0
= 0;
271 char *_kwnames
[] = { "self", NULL
};
274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_ArrangeIcons",_kwnames
,&_argo0
))
277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_ArrangeIcons. Expected _wxMDIParentFrame_p.");
284 wxPy_BEGIN_ALLOW_THREADS
;
285 wxMDIParentFrame_ArrangeIcons(_arg0
);
287 wxPy_END_ALLOW_THREADS
;
288 } Py_INCREF(Py_None
);
289 _resultobj
= Py_None
;
293 #define wxMDIParentFrame_Cascade(_swigobj) (_swigobj->Cascade())
294 static PyObject
*_wrap_wxMDIParentFrame_Cascade(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
295 PyObject
* _resultobj
;
296 wxMDIParentFrame
* _arg0
;
297 PyObject
* _argo0
= 0;
298 char *_kwnames
[] = { "self", NULL
};
301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_Cascade",_kwnames
,&_argo0
))
304 if (_argo0
== Py_None
) { _arg0
= NULL
; }
305 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
306 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_Cascade. Expected _wxMDIParentFrame_p.");
311 wxPy_BEGIN_ALLOW_THREADS
;
312 wxMDIParentFrame_Cascade(_arg0
);
314 wxPy_END_ALLOW_THREADS
;
315 } Py_INCREF(Py_None
);
316 _resultobj
= Py_None
;
320 #define wxMDIParentFrame_GetActiveChild(_swigobj) (_swigobj->GetActiveChild())
321 static PyObject
*_wrap_wxMDIParentFrame_GetActiveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
322 PyObject
* _resultobj
;
323 wxMDIChildFrame
* _result
;
324 wxMDIParentFrame
* _arg0
;
325 PyObject
* _argo0
= 0;
326 char *_kwnames
[] = { "self", NULL
};
330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_GetActiveChild",_kwnames
,&_argo0
))
333 if (_argo0
== Py_None
) { _arg0
= NULL
; }
334 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_GetActiveChild. Expected _wxMDIParentFrame_p.");
340 wxPy_BEGIN_ALLOW_THREADS
;
341 _result
= (wxMDIChildFrame
*)wxMDIParentFrame_GetActiveChild(_arg0
);
343 wxPy_END_ALLOW_THREADS
;
345 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMDIChildFrame_p");
346 _resultobj
= Py_BuildValue("s",_ptemp
);
349 _resultobj
= Py_None
;
354 #define wxMDIParentFrame_GetClientWindow(_swigobj) (_swigobj->GetClientWindow())
355 static PyObject
*_wrap_wxMDIParentFrame_GetClientWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
356 PyObject
* _resultobj
;
357 wxMDIClientWindow
* _result
;
358 wxMDIParentFrame
* _arg0
;
359 PyObject
* _argo0
= 0;
360 char *_kwnames
[] = { "self", NULL
};
364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_GetClientWindow",_kwnames
,&_argo0
))
367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_GetClientWindow. Expected _wxMDIParentFrame_p.");
374 wxPy_BEGIN_ALLOW_THREADS
;
375 _result
= (wxMDIClientWindow
*)wxMDIParentFrame_GetClientWindow(_arg0
);
377 wxPy_END_ALLOW_THREADS
;
379 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMDIClientWindow_p");
380 _resultobj
= Py_BuildValue("s",_ptemp
);
383 _resultobj
= Py_None
;
388 #define wxMDIParentFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar())
389 static PyObject
*_wrap_wxMDIParentFrame_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
390 PyObject
* _resultobj
;
392 wxMDIParentFrame
* _arg0
;
393 PyObject
* _argo0
= 0;
394 char *_kwnames
[] = { "self", NULL
};
398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_GetToolBar",_kwnames
,&_argo0
))
401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_GetToolBar. Expected _wxMDIParentFrame_p.");
408 wxPy_BEGIN_ALLOW_THREADS
;
409 _result
= (wxWindow
*)wxMDIParentFrame_GetToolBar(_arg0
);
411 wxPy_END_ALLOW_THREADS
;
413 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
414 _resultobj
= Py_BuildValue("s",_ptemp
);
417 _resultobj
= Py_None
;
422 #define wxMDIParentFrame_Tile(_swigobj) (_swigobj->Tile())
423 static PyObject
*_wrap_wxMDIParentFrame_Tile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
424 PyObject
* _resultobj
;
425 wxMDIParentFrame
* _arg0
;
426 PyObject
* _argo0
= 0;
427 char *_kwnames
[] = { "self", NULL
};
430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_Tile",_kwnames
,&_argo0
))
433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_Tile. Expected _wxMDIParentFrame_p.");
440 wxPy_BEGIN_ALLOW_THREADS
;
441 wxMDIParentFrame_Tile(_arg0
);
443 wxPy_END_ALLOW_THREADS
;
444 } Py_INCREF(Py_None
);
445 _resultobj
= Py_None
;
449 static void *SwigwxMDIChildFrameTowxFrame(void *ptr
) {
450 wxMDIChildFrame
*src
;
452 src
= (wxMDIChildFrame
*) ptr
;
453 dest
= (wxFrame
*) src
;
454 return (void *) dest
;
457 static void *SwigwxMDIChildFrameTowxWindow(void *ptr
) {
458 wxMDIChildFrame
*src
;
460 src
= (wxMDIChildFrame
*) ptr
;
461 dest
= (wxWindow
*) src
;
462 return (void *) dest
;
465 static void *SwigwxMDIChildFrameTowxEvtHandler(void *ptr
) {
466 wxMDIChildFrame
*src
;
468 src
= (wxMDIChildFrame
*) ptr
;
469 dest
= (wxEvtHandler
*) src
;
470 return (void *) dest
;
473 #define new_wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
474 static PyObject
*_wrap_new_wxMDIChildFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
475 PyObject
* _resultobj
;
476 wxMDIChildFrame
* _result
;
477 wxMDIParentFrame
* _arg0
;
480 wxPoint
* _arg3
= (wxPoint
*) &wxPyDefaultPosition
;
481 wxSize
* _arg4
= (wxSize
*) &wxPyDefaultSize
;
482 long _arg5
= (long ) wxDEFAULT_FRAME_STYLE
;
483 char * _arg6
= (char *) "frame";
484 PyObject
* _argo0
= 0;
485 PyObject
* _obj2
= 0;
486 PyObject
* _argo3
= 0;
487 PyObject
* _argo4
= 0;
488 char *_kwnames
[] = { "parent","id","title","pos","size","style","name", NULL
};
492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOls:new_wxMDIChildFrame",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_argo4
,&_arg5
,&_arg6
))
495 if (_argo0
== Py_None
) { _arg0
= NULL
; }
496 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMDIChildFrame. Expected _wxMDIParentFrame_p.");
502 if (!PyString_Check(_obj2
)) {
503 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
506 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
509 if (_argo3
== Py_None
) { _arg3
= NULL
; }
510 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPoint_p")) {
511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of new_wxMDIChildFrame. Expected _wxPoint_p.");
516 if (_argo4
== Py_None
) { _arg4
= NULL
; }
517 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxSize_p")) {
518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of new_wxMDIChildFrame. Expected _wxSize_p.");
523 wxPy_BEGIN_ALLOW_THREADS
;
524 _result
= (wxMDIChildFrame
*)new_wxMDIChildFrame(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
526 wxPy_END_ALLOW_THREADS
;
528 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMDIChildFrame_p");
529 _resultobj
= Py_BuildValue("s",_ptemp
);
532 _resultobj
= Py_None
;
541 #define wxMDIChildFrame_Activate(_swigobj) (_swigobj->Activate())
542 static PyObject
*_wrap_wxMDIChildFrame_Activate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
543 PyObject
* _resultobj
;
544 wxMDIChildFrame
* _arg0
;
545 PyObject
* _argo0
= 0;
546 char *_kwnames
[] = { "self", NULL
};
549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIChildFrame_Activate",_kwnames
,&_argo0
))
552 if (_argo0
== Py_None
) { _arg0
= NULL
; }
553 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIChildFrame_p")) {
554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIChildFrame_Activate. Expected _wxMDIChildFrame_p.");
559 wxPy_BEGIN_ALLOW_THREADS
;
560 wxMDIChildFrame_Activate(_arg0
);
562 wxPy_END_ALLOW_THREADS
;
563 } Py_INCREF(Py_None
);
564 _resultobj
= Py_None
;
568 #define wxMDIChildFrame_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0))
569 static PyObject
*_wrap_wxMDIChildFrame_Maximize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
570 PyObject
* _resultobj
;
571 wxMDIChildFrame
* _arg0
;
573 PyObject
* _argo0
= 0;
575 char *_kwnames
[] = { "self","maximize", NULL
};
578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMDIChildFrame_Maximize",_kwnames
,&_argo0
,&tempbool1
))
581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIChildFrame_p")) {
583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIChildFrame_Maximize. Expected _wxMDIChildFrame_p.");
587 _arg1
= (bool ) tempbool1
;
589 wxPy_BEGIN_ALLOW_THREADS
;
590 wxMDIChildFrame_Maximize(_arg0
,_arg1
);
592 wxPy_END_ALLOW_THREADS
;
593 } Py_INCREF(Py_None
);
594 _resultobj
= Py_None
;
598 #define wxMDIChildFrame_Restore(_swigobj) (_swigobj->Restore())
599 static PyObject
*_wrap_wxMDIChildFrame_Restore(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
600 PyObject
* _resultobj
;
601 wxMDIChildFrame
* _arg0
;
602 PyObject
* _argo0
= 0;
603 char *_kwnames
[] = { "self", NULL
};
606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIChildFrame_Restore",_kwnames
,&_argo0
))
609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIChildFrame_p")) {
611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIChildFrame_Restore. Expected _wxMDIChildFrame_p.");
616 wxPy_BEGIN_ALLOW_THREADS
;
617 wxMDIChildFrame_Restore(_arg0
);
619 wxPy_END_ALLOW_THREADS
;
620 } Py_INCREF(Py_None
);
621 _resultobj
= Py_None
;
625 static void *SwigwxMDIClientWindowTowxWindow(void *ptr
) {
626 wxMDIClientWindow
*src
;
628 src
= (wxMDIClientWindow
*) ptr
;
629 dest
= (wxWindow
*) src
;
630 return (void *) dest
;
633 static void *SwigwxMDIClientWindowTowxEvtHandler(void *ptr
) {
634 wxMDIClientWindow
*src
;
636 src
= (wxMDIClientWindow
*) ptr
;
637 dest
= (wxEvtHandler
*) src
;
638 return (void *) dest
;
641 #define new_wxMDIClientWindow(_swigarg0,_swigarg1) (new wxMDIClientWindow(_swigarg0,_swigarg1))
642 static PyObject
*_wrap_new_wxMDIClientWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
643 PyObject
* _resultobj
;
644 wxMDIClientWindow
* _result
;
645 wxMDIParentFrame
* _arg0
;
646 long _arg1
= (long ) 0;
647 PyObject
* _argo0
= 0;
648 char *_kwnames
[] = { "parent","style", NULL
};
652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:new_wxMDIClientWindow",_kwnames
,&_argo0
,&_arg1
))
655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMDIClientWindow. Expected _wxMDIParentFrame_p.");
662 wxPy_BEGIN_ALLOW_THREADS
;
663 _result
= (wxMDIClientWindow
*)new_wxMDIClientWindow(_arg0
,_arg1
);
665 wxPy_END_ALLOW_THREADS
;
667 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMDIClientWindow_p");
668 _resultobj
= Py_BuildValue("s",_ptemp
);
671 _resultobj
= Py_None
;
676 static PyMethodDef mdicMethods
[] = {
677 { "new_wxMDIClientWindow", (PyCFunction
) _wrap_new_wxMDIClientWindow
, METH_VARARGS
| METH_KEYWORDS
},
678 { "wxMDIChildFrame_Restore", (PyCFunction
) _wrap_wxMDIChildFrame_Restore
, METH_VARARGS
| METH_KEYWORDS
},
679 { "wxMDIChildFrame_Maximize", (PyCFunction
) _wrap_wxMDIChildFrame_Maximize
, METH_VARARGS
| METH_KEYWORDS
},
680 { "wxMDIChildFrame_Activate", (PyCFunction
) _wrap_wxMDIChildFrame_Activate
, METH_VARARGS
| METH_KEYWORDS
},
681 { "new_wxMDIChildFrame", (PyCFunction
) _wrap_new_wxMDIChildFrame
, METH_VARARGS
| METH_KEYWORDS
},
682 { "wxMDIParentFrame_Tile", (PyCFunction
) _wrap_wxMDIParentFrame_Tile
, METH_VARARGS
| METH_KEYWORDS
},
683 { "wxMDIParentFrame_GetToolBar", (PyCFunction
) _wrap_wxMDIParentFrame_GetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
684 { "wxMDIParentFrame_GetClientWindow", (PyCFunction
) _wrap_wxMDIParentFrame_GetClientWindow
, METH_VARARGS
| METH_KEYWORDS
},
685 { "wxMDIParentFrame_GetActiveChild", (PyCFunction
) _wrap_wxMDIParentFrame_GetActiveChild
, METH_VARARGS
| METH_KEYWORDS
},
686 { "wxMDIParentFrame_Cascade", (PyCFunction
) _wrap_wxMDIParentFrame_Cascade
, METH_VARARGS
| METH_KEYWORDS
},
687 { "wxMDIParentFrame_ArrangeIcons", (PyCFunction
) _wrap_wxMDIParentFrame_ArrangeIcons
, METH_VARARGS
| METH_KEYWORDS
},
688 { "wxMDIParentFrame_ActivatePrevious", (PyCFunction
) _wrap_wxMDIParentFrame_ActivatePrevious
, METH_VARARGS
| METH_KEYWORDS
},
689 { "wxMDIParentFrame_ActivateNext", (PyCFunction
) _wrap_wxMDIParentFrame_ActivateNext
, METH_VARARGS
| METH_KEYWORDS
},
690 { "new_wxMDIParentFrame", (PyCFunction
) _wrap_new_wxMDIParentFrame
, METH_VARARGS
| METH_KEYWORDS
},
697 * This table is used by the pointer type-checker
699 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
700 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
701 { "_wxEvent","_class_wxEvent",0},
702 { "_class_wxActivateEvent","_wxActivateEvent",0},
703 { "_signed_long","_long",0},
704 { "_wxMenuEvent","_class_wxMenuEvent",0},
705 { "_wxPrintQuality","_int",0},
706 { "_wxPrintQuality","_signed_int",0},
707 { "_wxPrintQuality","_unsigned_int",0},
708 { "_wxPrintQuality","_wxWindowID",0},
709 { "_wxPrintQuality","_uint",0},
710 { "_wxPrintQuality","_EBool",0},
711 { "_wxPrintQuality","_size_t",0},
712 { "_class_wxRegionIterator","_wxRegionIterator",0},
713 { "_class_wxMenuBar","_wxMenuBar",0},
714 { "_class_wxEvtHandler","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler
},
715 { "_class_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler
},
716 { "_class_wxEvtHandler","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler
},
717 { "_class_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler
},
718 { "_class_wxEvtHandler","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler
},
719 { "_class_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler
},
720 { "_class_wxEvtHandler","_wxEvtHandler",0},
721 { "_wxPaintEvent","_class_wxPaintEvent",0},
722 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
723 { "_wxCursor","_class_wxCursor",0},
724 { "_wxNotifyEvent","_class_wxNotifyEvent",0},
725 { "_wxMask","_class_wxMask",0},
726 { "_wxPen","_class_wxPen",0},
727 { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0},
728 { "_byte","_unsigned_char",0},
729 { "_wxStaticBox","_class_wxStaticBox",0},
730 { "_wxChoice","_class_wxChoice",0},
731 { "_wxSlider","_class_wxSlider",0},
732 { "_long","_wxDash",0},
733 { "_long","_unsigned_long",0},
734 { "_long","_signed_long",0},
735 { "_wxImageList","_class_wxImageList",0},
736 { "_wxDropFilesEvent","_class_wxDropFilesEvent",0},
737 { "_wxBitmapButton","_class_wxBitmapButton",0},
738 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
739 { "_class_wxGauge","_wxGauge",0},
740 { "_wxDC","_class_wxDC",0},
741 { "_wxSpinEvent","_class_wxSpinEvent",0},
742 { "_size_t","_wxPrintQuality",0},
743 { "_size_t","_unsigned_int",0},
744 { "_size_t","_int",0},
745 { "_size_t","_wxWindowID",0},
746 { "_size_t","_uint",0},
747 { "_class_wxRealPoint","_wxRealPoint",0},
748 { "_class_wxMenuItem","_wxMenuItem",0},
749 { "_class_wxPaintEvent","_wxPaintEvent",0},
750 { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0},
751 { "_class_wxStatusBar","_wxStatusBar",0},
752 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
753 { "_wxPanel","_class_wxPanel",0},
754 { "_wxInitDialogEvent","_class_wxInitDialogEvent",0},
755 { "_wxCheckBox","_class_wxCheckBox",0},
756 { "_wxPyEvent","_class_wxPyEvent",0},
757 { "_wxTextCtrl","_class_wxTextCtrl",0},
758 { "_class_wxMask","_wxMask",0},
759 { "_class_wxKeyEvent","_wxKeyEvent",0},
760 { "_wxColour","_class_wxColour",0},
761 { "_class_wxDialog","_wxDialog",0},
762 { "_wxIdleEvent","_class_wxIdleEvent",0},
763 { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0},
764 { "_wxToolBar","_class_wxToolBar",0},
765 { "_wxStaticLine","_class_wxStaticLine",0},
766 { "_wxBrush","_class_wxBrush",0},
767 { "_wxMiniFrame","_class_wxMiniFrame",0},
768 { "_wxShowEvent","_class_wxShowEvent",0},
769 { "_uint","_wxPrintQuality",0},
770 { "_uint","_size_t",0},
771 { "_uint","_unsigned_int",0},
773 { "_uint","_wxWindowID",0},
774 { "_class_wxEvent","_wxEvent",0},
775 { "_wxCheckListBox","_class_wxCheckListBox",0},
776 { "_wxRect","_class_wxRect",0},
777 { "_wxCommandEvent","_class_wxCommandEvent",0},
778 { "_wxSizeEvent","_class_wxSizeEvent",0},
779 { "_wxPoint","_class_wxPoint",0},
780 { "_class_wxButton","_wxButton",0},
781 { "_wxRadioBox","_class_wxRadioBox",0},
782 { "_wxBitmap","_class_wxBitmap",0},
783 { "_wxPyTimer","_class_wxPyTimer",0},
784 { "_wxWindowDC","_class_wxWindowDC",0},
785 { "_wxScrollBar","_class_wxScrollBar",0},
786 { "_wxSpinButton","_class_wxSpinButton",0},
787 { "_wxToolBarTool","_class_wxToolBarTool",0},
788 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
789 { "_class_wxNotifyEvent","_wxNotifyEvent",0},
790 { "_class_wxPyEvent","_wxPyEvent",0},
791 { "_class_wxIconizeEvent","_wxIconizeEvent",0},
792 { "_class_wxStaticBitmap","_wxStaticBitmap",0},
793 { "_wxMDIChildFrame","_class_wxMDIChildFrame",0},
794 { "_class_wxToolBar","_wxToolBar",0},
795 { "_class_wxStaticLine","_wxStaticLine",0},
796 { "_wxScrollEvent","_class_wxScrollEvent",0},
797 { "_EBool","_wxPrintQuality",0},
798 { "_EBool","_signed_int",0},
799 { "_EBool","_int",0},
800 { "_EBool","_wxWindowID",0},
801 { "_class_wxRegion","_wxRegion",0},
802 { "_class_wxDropFilesEvent","_wxDropFilesEvent",0},
803 { "_wxStaticText","_class_wxStaticText",0},
804 { "_wxFont","_class_wxFont",0},
805 { "_wxCloseEvent","_class_wxCloseEvent",0},
806 { "_unsigned_long","_wxDash",0},
807 { "_unsigned_long","_long",0},
808 { "_class_wxRect","_wxRect",0},
809 { "_class_wxDC","_wxDC",0},
810 { "_wxMDIParentFrame","_class_wxMDIParentFrame",0},
811 { "_class_wxPyTimer","_wxPyTimer",0},
812 { "_wxFocusEvent","_class_wxFocusEvent",0},
813 { "_wxMaximizeEvent","_class_wxMaximizeEvent",0},
814 { "_class_wxSpinButton","_wxSpinButton",0},
815 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
816 { "_class_wxPanel","_wxPanel",0},
817 { "_class_wxCheckBox","_wxCheckBox",0},
818 { "_wxComboBox","_class_wxComboBox",0},
819 { "_wxRadioButton","_class_wxRadioButton",0},
820 { "_signed_int","_wxPrintQuality",0},
821 { "_signed_int","_EBool",0},
822 { "_signed_int","_wxWindowID",0},
823 { "_signed_int","_int",0},
824 { "_class_wxTextCtrl","_wxTextCtrl",0},
825 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
826 { "_wxMenu","_class_wxMenu",0},
827 { "_class_wxMoveEvent","_wxMoveEvent",0},
828 { "_wxListBox","_class_wxListBox",0},
829 { "_wxScreenDC","_class_wxScreenDC",0},
830 { "_class_wxMDIChildFrame","_wxMDIChildFrame",0},
831 { "_WXTYPE","_short",0},
832 { "_WXTYPE","_signed_short",0},
833 { "_WXTYPE","_unsigned_short",0},
834 { "_class_wxMDIClientWindow","_wxMDIClientWindow",0},
835 { "_class_wxBrush","_wxBrush",0},
836 { "_unsigned_short","_WXTYPE",0},
837 { "_unsigned_short","_short",0},
838 { "_class_wxWindow","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow
},
839 { "_class_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow
},
840 { "_class_wxWindow","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow
},
841 { "_class_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow
},
842 { "_class_wxWindow","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow
},
843 { "_class_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow
},
844 { "_class_wxWindow","_wxWindow",0},
845 { "_class_wxStaticText","_wxStaticText",0},
846 { "_class_wxFont","_wxFont",0},
847 { "_class_wxCloseEvent","_wxCloseEvent",0},
848 { "_class_wxMenuEvent","_wxMenuEvent",0},
849 { "_wxClientDC","_class_wxClientDC",0},
850 { "_wxMouseEvent","_class_wxMouseEvent",0},
851 { "_class_wxPoint","_wxPoint",0},
852 { "_wxRealPoint","_class_wxRealPoint",0},
853 { "_class_wxRadioBox","_wxRadioBox",0},
854 { "_signed_short","_WXTYPE",0},
855 { "_signed_short","_short",0},
856 { "_wxMemoryDC","_class_wxMemoryDC",0},
857 { "_wxPaintDC","_class_wxPaintDC",0},
858 { "_class_wxWindowDC","_wxWindowDC",0},
859 { "_class_wxFocusEvent","_wxFocusEvent",0},
860 { "_class_wxMaximizeEvent","_wxMaximizeEvent",0},
861 { "_wxStatusBar","_class_wxStatusBar",0},
862 { "_class_wxToolBarTool","_wxToolBarTool",0},
863 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
864 { "_class_wxCursor","_wxCursor",0},
865 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
866 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
867 { "_unsigned_char","_byte",0},
868 { "_class_wxMenu","_wxMenu",0},
869 { "_wxControl","_class_wxControl",0},
870 { "_class_wxListBox","_wxListBox",0},
871 { "_unsigned_int","_wxPrintQuality",0},
872 { "_unsigned_int","_size_t",0},
873 { "_unsigned_int","_uint",0},
874 { "_unsigned_int","_wxWindowID",0},
875 { "_unsigned_int","_int",0},
876 { "_wxIcon","_class_wxIcon",0},
877 { "_wxDialog","_class_wxDialog",0},
878 { "_class_wxPen","_wxPen",0},
879 { "_short","_WXTYPE",0},
880 { "_short","_unsigned_short",0},
881 { "_short","_signed_short",0},
882 { "_class_wxStaticBox","_wxStaticBox",0},
883 { "_class_wxScrollEvent","_wxScrollEvent",0},
884 { "_wxJoystickEvent","_class_wxJoystickEvent",0},
885 { "_class_wxChoice","_wxChoice",0},
886 { "_class_wxSlider","_wxSlider",0},
887 { "_class_wxImageList","_wxImageList",0},
888 { "_class_wxBitmapButton","_wxBitmapButton",0},
889 { "_wxFrame","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame
},
890 { "_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame
},
891 { "_wxFrame","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame
},
892 { "_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame
},
893 { "_wxFrame","_class_wxFrame",0},
894 { "_wxWindowID","_wxPrintQuality",0},
895 { "_wxWindowID","_size_t",0},
896 { "_wxWindowID","_EBool",0},
897 { "_wxWindowID","_uint",0},
898 { "_wxWindowID","_int",0},
899 { "_wxWindowID","_signed_int",0},
900 { "_wxWindowID","_unsigned_int",0},
901 { "_int","_wxPrintQuality",0},
902 { "_int","_size_t",0},
903 { "_int","_EBool",0},
905 { "_int","_wxWindowID",0},
906 { "_int","_unsigned_int",0},
907 { "_int","_signed_int",0},
908 { "_class_wxMouseEvent","_wxMouseEvent",0},
909 { "_class_wxSpinEvent","_wxSpinEvent",0},
910 { "_wxButton","_class_wxButton",0},
911 { "_wxSize","_class_wxSize",0},
912 { "_wxRegionIterator","_class_wxRegionIterator",0},
913 { "_class_wxMDIParentFrame","_wxMDIParentFrame",0},
914 { "_class_wxPaintDC","_wxPaintDC",0},
915 { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0},
916 { "_class_wxInitDialogEvent","_wxInitDialogEvent",0},
917 { "_class_wxComboBox","_wxComboBox",0},
918 { "_class_wxRadioButton","_wxRadioButton",0},
919 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
920 { "_wxIconizeEvent","_class_wxIconizeEvent",0},
921 { "_class_wxControl","_wxControl",0},
922 { "_wxStaticBitmap","_class_wxStaticBitmap",0},
923 { "_class_wxIcon","_wxIcon",0},
924 { "_class_wxColour","_wxColour",0},
925 { "_class_wxScreenDC","_wxScreenDC",0},
926 { "_wxPalette","_class_wxPalette",0},
927 { "_class_wxIdleEvent","_wxIdleEvent",0},
928 { "_wxEraseEvent","_class_wxEraseEvent",0},
929 { "_class_wxJoystickEvent","_wxJoystickEvent",0},
930 { "_class_wxMiniFrame","_wxMiniFrame",0},
931 { "_wxRegion","_class_wxRegion",0},
932 { "_class_wxShowEvent","_wxShowEvent",0},
933 { "_wxActivateEvent","_class_wxActivateEvent",0},
934 { "_wxGauge","_class_wxGauge",0},
935 { "_class_wxCheckListBox","_wxCheckListBox",0},
936 { "_class_wxCommandEvent","_wxCommandEvent",0},
937 { "_class_wxClientDC","_wxClientDC",0},
938 { "_class_wxSizeEvent","_wxSizeEvent",0},
939 { "_class_wxSize","_wxSize",0},
940 { "_class_wxBitmap","_wxBitmap",0},
941 { "_class_wxMemoryDC","_wxMemoryDC",0},
942 { "_wxMenuBar","_class_wxMenuBar",0},
943 { "_wxEvtHandler","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler
},
944 { "_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler
},
945 { "_wxEvtHandler","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler
},
946 { "_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler
},
947 { "_wxEvtHandler","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler
},
948 { "_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler
},
949 { "_wxEvtHandler","_class_wxEvtHandler",0},
950 { "_wxMenuItem","_class_wxMenuItem",0},
951 { "_class_wxScrollBar","_wxScrollBar",0},
952 { "_wxDash","_unsigned_long",0},
953 { "_wxDash","_long",0},
954 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
955 { "_wxKeyEvent","_class_wxKeyEvent",0},
956 { "_wxMoveEvent","_class_wxMoveEvent",0},
957 { "_class_wxPalette","_wxPalette",0},
958 { "_class_wxEraseEvent","_wxEraseEvent",0},
959 { "_wxMDIClientWindow","_class_wxMDIClientWindow",0},
960 { "_wxWindow","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow
},
961 { "_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow
},
962 { "_wxWindow","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow
},
963 { "_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow
},
964 { "_wxWindow","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow
},
965 { "_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow
},
966 { "_wxWindow","_class_wxWindow",0},
967 { "_class_wxFrame","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame
},
968 { "_class_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame
},
969 { "_class_wxFrame","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame
},
970 { "_class_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame
},
971 { "_class_wxFrame","_wxFrame",0},
974 static PyObject
*SWIG_globals
;
978 SWIGEXPORT(void) initmdic() {
980 SWIG_globals
= SWIG_newvarlink();
981 m
= Py_InitModule("mdic", mdicMethods
);
982 d
= PyModule_GetDict(m
);
985 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
986 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);