]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/windows2.cpp
SWIGged updates for wxGTK
[wxWidgets.git] / wxPython / src / gtk / windows2.cpp
1 /*
2 * FILE : src/gtk/windows2.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 "Python.h"
23
24 #include <string.h>
25 #include <stdlib.h>
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
30 # else
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
33 # else
34 # define SWIGEXPORT(a) a
35 # endif
36 # endif
37 #else
38 # define SWIGEXPORT(a) a
39 #endif
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
48 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
49 extern PyObject *SWIG_newvarlink(void);
50 #ifdef __cplusplus
51 }
52 #endif
53 #define SWIG_init initwindows2c
54
55 #define SWIG_name "windows2c"
56
57 #include "helpers.h"
58 #ifdef OLD_GRID
59 #include <wx/grid.h>
60 #endif
61 #include <wx/notebook.h>
62 #include <wx/splitter.h>
63 #include <wx/imaglist.h>
64 #ifdef __WXMSW__
65 #include <wx/msw/taskbar.h>
66 #endif
67
68 // Put some wx default wxChar* values into wxStrings.
69 DECLARE_DEF_STRING(NOTEBOOK_NAME);
70 DECLARE_DEF_STRING(PanelNameStr);
71 DECLARE_DEF_STRING(ControlNameStr);
72
73 static const wxChar* wxSplitterNameStr = wxT("splitter");
74 DECLARE_DEF_STRING(SplitterNameStr);
75 static const wxString wxPyEmptyString(wxT(""));
76
77
78 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
79 PyObject* o2;
80 PyObject* o3;
81
82 if (!target) {
83 target = o;
84 } else if (target == Py_None) {
85 Py_DECREF(Py_None);
86 target = o;
87 } else {
88 if (!PyTuple_Check(target)) {
89 o2 = target;
90 target = PyTuple_New(1);
91 PyTuple_SetItem(target, 0, o2);
92 }
93 o3 = PyTuple_New(1);
94 PyTuple_SetItem(o3, 0, o);
95
96 o2 = target;
97 target = PySequence_Concat(o2, o3);
98 Py_DECREF(o2);
99 Py_DECREF(o3);
100 }
101 return target;
102 }
103 // C++ version of Python aware wxWindow
104 class wxPyWindow : public wxWindow
105 {
106 DECLARE_DYNAMIC_CLASS(wxPyWindow)
107 public:
108 wxPyWindow() : wxWindow() {}
109 wxPyWindow(wxWindow* parent, const wxWindowID id,
110 const wxPoint& pos = wxDefaultPosition,
111 const wxSize& size = wxDefaultSize,
112 long style = 0,
113 const wxString& name = wxPyPanelNameStr)
114 : wxWindow(parent, id, pos, size, style, name) {}
115
116
117 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
118 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
119 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
120 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
121
122 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
123 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
124 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
125
126 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
127 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
128
129 DEC_PYCALLBACK__(InitDialog);
130 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
131 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
132 DEC_PYCALLBACK_BOOL_(Validate);
133
134 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
135 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
136 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
137
138 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
139 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
140
141 PYPRIVATE;
142 };
143
144 IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow);
145
146 IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow);
147 IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize);
148 IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize);
149 IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize);
150
151 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize);
152 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize);
153 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition);
154
155 IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize);
156 IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize);
157
158 IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog);
159 IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow);
160 IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow);
161 IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate);
162
163 IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus);
164 IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard);
165 IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize);
166
167 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild);
168 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild);
169
170 // C++ version of Python aware wxControl
171 class wxPyControl : public wxControl
172 {
173 DECLARE_DYNAMIC_CLASS(wxPyControl)
174 public:
175 wxPyControl() : wxControl() {}
176 wxPyControl(wxWindow* parent, const wxWindowID id,
177 const wxPoint& pos = wxDefaultPosition,
178 const wxSize& size = wxDefaultSize,
179 long style = 0,
180 const wxValidator& validator=wxDefaultValidator,
181 const wxString& name = wxPyControlNameStr)
182 : wxControl(parent, id, pos, size, style, validator, name) {}
183
184
185 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
186 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
187 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
188 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
189
190 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
191 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
192 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
193
194 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
195 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
196
197 DEC_PYCALLBACK__(InitDialog);
198 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
199 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
200 DEC_PYCALLBACK_BOOL_(Validate);
201
202 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
203 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
204 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
205
206 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
207 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
208
209 PYPRIVATE;
210 };
211
212 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
213
214 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
215 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
216 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
217 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
218
219 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
220 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
221 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
222
223 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
224 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
225
226 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
227 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
228 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
229 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
230
231 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
232 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
233 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
234
235 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
236 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
237
238 // C++ version of Python aware wxPanel
239 class wxPyPanel : public wxPanel
240 {
241 DECLARE_DYNAMIC_CLASS(wxPyPanel)
242 public:
243 wxPyPanel() : wxPanel() {}
244 wxPyPanel(wxWindow* parent, const wxWindowID id,
245 const wxPoint& pos = wxDefaultPosition,
246 const wxSize& size = wxDefaultSize,
247 long style = 0,
248 const wxString& name = wxPyPanelNameStr)
249 : wxPanel(parent, id, pos, size, style, name) {}
250
251
252 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
253 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
254 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
255 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
256
257 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
258 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
259 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
260
261 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
262 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
263
264 DEC_PYCALLBACK__(InitDialog);
265 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
266 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
267 DEC_PYCALLBACK_BOOL_(Validate);
268
269 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
270 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
271 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
272
273 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
274 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
275
276 PYPRIVATE;
277 };
278
279 IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel);
280
281 IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow);
282 IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize);
283 IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize);
284 IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize);
285
286 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize);
287 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize);
288 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition);
289
290 IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize);
291 IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize);
292
293 IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog);
294 IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow);
295 IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow);
296 IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate);
297
298 IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus);
299 IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard);
300 IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize);
301
302 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild);
303 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild);
304
305 #ifdef __cplusplus
306 extern "C" {
307 #endif
308 static void *SwigwxNotebookEventTowxNotifyEvent(void *ptr) {
309 wxNotebookEvent *src;
310 wxNotifyEvent *dest;
311 src = (wxNotebookEvent *) ptr;
312 dest = (wxNotifyEvent *) src;
313 return (void *) dest;
314 }
315
316 static void *SwigwxNotebookEventTowxCommandEvent(void *ptr) {
317 wxNotebookEvent *src;
318 wxCommandEvent *dest;
319 src = (wxNotebookEvent *) ptr;
320 dest = (wxCommandEvent *) src;
321 return (void *) dest;
322 }
323
324 static void *SwigwxNotebookEventTowxEvent(void *ptr) {
325 wxNotebookEvent *src;
326 wxEvent *dest;
327 src = (wxNotebookEvent *) ptr;
328 dest = (wxEvent *) src;
329 return (void *) dest;
330 }
331
332 static void *SwigwxNotebookEventTowxObject(void *ptr) {
333 wxNotebookEvent *src;
334 wxObject *dest;
335 src = (wxNotebookEvent *) ptr;
336 dest = (wxObject *) src;
337 return (void *) dest;
338 }
339
340 #define new_wxNotebookEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxNotebookEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
341 static PyObject *_wrap_new_wxNotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
342 PyObject * _resultobj;
343 wxNotebookEvent * _result;
344 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
345 int _arg1 = (int ) 0;
346 int _arg2 = (int ) -1;
347 int _arg3 = (int ) -1;
348 char *_kwnames[] = { "commandType","id","sel","oldSel", NULL };
349 char _ptemp[128];
350
351 self = self;
352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxNotebookEvent",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
353 return NULL;
354 {
355 PyThreadState* __tstate = wxPyBeginAllowThreads();
356 _result = (wxNotebookEvent *)new_wxNotebookEvent(_arg0,_arg1,_arg2,_arg3);
357
358 wxPyEndAllowThreads(__tstate);
359 if (PyErr_Occurred()) return NULL;
360 } if (_result) {
361 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebookEvent_p");
362 _resultobj = Py_BuildValue("s",_ptemp);
363 } else {
364 Py_INCREF(Py_None);
365 _resultobj = Py_None;
366 }
367 return _resultobj;
368 }
369
370 #define wxNotebookEvent_GetSelection(_swigobj) (_swigobj->GetSelection())
371 static PyObject *_wrap_wxNotebookEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
372 PyObject * _resultobj;
373 int _result;
374 wxNotebookEvent * _arg0;
375 PyObject * _argo0 = 0;
376 char *_kwnames[] = { "self", NULL };
377
378 self = self;
379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookEvent_GetSelection",_kwnames,&_argo0))
380 return NULL;
381 if (_argo0) {
382 if (_argo0 == Py_None) { _arg0 = NULL; }
383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) {
384 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_GetSelection. Expected _wxNotebookEvent_p.");
385 return NULL;
386 }
387 }
388 {
389 PyThreadState* __tstate = wxPyBeginAllowThreads();
390 _result = (int )wxNotebookEvent_GetSelection(_arg0);
391
392 wxPyEndAllowThreads(__tstate);
393 if (PyErr_Occurred()) return NULL;
394 } _resultobj = Py_BuildValue("i",_result);
395 return _resultobj;
396 }
397
398 #define wxNotebookEvent_GetOldSelection(_swigobj) (_swigobj->GetOldSelection())
399 static PyObject *_wrap_wxNotebookEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
400 PyObject * _resultobj;
401 int _result;
402 wxNotebookEvent * _arg0;
403 PyObject * _argo0 = 0;
404 char *_kwnames[] = { "self", NULL };
405
406 self = self;
407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookEvent_GetOldSelection",_kwnames,&_argo0))
408 return NULL;
409 if (_argo0) {
410 if (_argo0 == Py_None) { _arg0 = NULL; }
411 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) {
412 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_GetOldSelection. Expected _wxNotebookEvent_p.");
413 return NULL;
414 }
415 }
416 {
417 PyThreadState* __tstate = wxPyBeginAllowThreads();
418 _result = (int )wxNotebookEvent_GetOldSelection(_arg0);
419
420 wxPyEndAllowThreads(__tstate);
421 if (PyErr_Occurred()) return NULL;
422 } _resultobj = Py_BuildValue("i",_result);
423 return _resultobj;
424 }
425
426 #define wxNotebookEvent_SetOldSelection(_swigobj,_swigarg0) (_swigobj->SetOldSelection(_swigarg0))
427 static PyObject *_wrap_wxNotebookEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
428 PyObject * _resultobj;
429 wxNotebookEvent * _arg0;
430 int _arg1;
431 PyObject * _argo0 = 0;
432 char *_kwnames[] = { "self","page", NULL };
433
434 self = self;
435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebookEvent_SetOldSelection",_kwnames,&_argo0,&_arg1))
436 return NULL;
437 if (_argo0) {
438 if (_argo0 == Py_None) { _arg0 = NULL; }
439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) {
440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_SetOldSelection. Expected _wxNotebookEvent_p.");
441 return NULL;
442 }
443 }
444 {
445 PyThreadState* __tstate = wxPyBeginAllowThreads();
446 wxNotebookEvent_SetOldSelection(_arg0,_arg1);
447
448 wxPyEndAllowThreads(__tstate);
449 if (PyErr_Occurred()) return NULL;
450 } Py_INCREF(Py_None);
451 _resultobj = Py_None;
452 return _resultobj;
453 }
454
455 #define wxNotebookEvent_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
456 static PyObject *_wrap_wxNotebookEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
457 PyObject * _resultobj;
458 wxNotebookEvent * _arg0;
459 int _arg1;
460 PyObject * _argo0 = 0;
461 char *_kwnames[] = { "self","page", NULL };
462
463 self = self;
464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebookEvent_SetSelection",_kwnames,&_argo0,&_arg1))
465 return NULL;
466 if (_argo0) {
467 if (_argo0 == Py_None) { _arg0 = NULL; }
468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) {
469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_SetSelection. Expected _wxNotebookEvent_p.");
470 return NULL;
471 }
472 }
473 {
474 PyThreadState* __tstate = wxPyBeginAllowThreads();
475 wxNotebookEvent_SetSelection(_arg0,_arg1);
476
477 wxPyEndAllowThreads(__tstate);
478 if (PyErr_Occurred()) return NULL;
479 } Py_INCREF(Py_None);
480 _resultobj = Py_None;
481 return _resultobj;
482 }
483
484 static void *SwigwxNotebookTowxControl(void *ptr) {
485 wxNotebook *src;
486 wxControl *dest;
487 src = (wxNotebook *) ptr;
488 dest = (wxControl *) src;
489 return (void *) dest;
490 }
491
492 static void *SwigwxNotebookTowxWindow(void *ptr) {
493 wxNotebook *src;
494 wxWindow *dest;
495 src = (wxNotebook *) ptr;
496 dest = (wxWindow *) src;
497 return (void *) dest;
498 }
499
500 static void *SwigwxNotebookTowxEvtHandler(void *ptr) {
501 wxNotebook *src;
502 wxEvtHandler *dest;
503 src = (wxNotebook *) ptr;
504 dest = (wxEvtHandler *) src;
505 return (void *) dest;
506 }
507
508 static void *SwigwxNotebookTowxObject(void *ptr) {
509 wxNotebook *src;
510 wxObject *dest;
511 src = (wxNotebook *) ptr;
512 dest = (wxObject *) src;
513 return (void *) dest;
514 }
515
516 #define new_wxNotebook(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxNotebook(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
517 static PyObject *_wrap_new_wxNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
518 PyObject * _resultobj;
519 wxNotebook * _result;
520 wxWindow * _arg0;
521 wxWindowID _arg1;
522 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
523 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
524 long _arg4 = (long ) 0;
525 wxString * _arg5 = (wxString *) &wxPyNOTEBOOK_NAME;
526 PyObject * _argo0 = 0;
527 wxPoint temp;
528 PyObject * _obj2 = 0;
529 wxSize temp0;
530 PyObject * _obj3 = 0;
531 PyObject * _obj5 = 0;
532 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
533 char _ptemp[128];
534
535 self = self;
536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxNotebook",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5))
537 return NULL;
538 if (_argo0) {
539 if (_argo0 == Py_None) { _arg0 = NULL; }
540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxNotebook. Expected _wxWindow_p.");
542 return NULL;
543 }
544 }
545 if (_obj2)
546 {
547 _arg2 = &temp;
548 if (! wxPoint_helper(_obj2, &_arg2))
549 return NULL;
550 }
551 if (_obj3)
552 {
553 _arg3 = &temp0;
554 if (! wxSize_helper(_obj3, &_arg3))
555 return NULL;
556 }
557 if (_obj5)
558 {
559 _arg5 = wxString_in_helper(_obj5);
560 if (_arg5 == NULL)
561 return NULL;
562 }
563 {
564 PyThreadState* __tstate = wxPyBeginAllowThreads();
565 _result = (wxNotebook *)new_wxNotebook(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5);
566
567 wxPyEndAllowThreads(__tstate);
568 if (PyErr_Occurred()) return NULL;
569 } if (_result) {
570 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebook_p");
571 _resultobj = Py_BuildValue("s",_ptemp);
572 } else {
573 Py_INCREF(Py_None);
574 _resultobj = Py_None;
575 }
576 {
577 if (_obj5)
578 delete _arg5;
579 }
580 return _resultobj;
581 }
582
583 #define new_wxPreNotebook() (new wxNotebook())
584 static PyObject *_wrap_new_wxPreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
585 PyObject * _resultobj;
586 wxNotebook * _result;
587 char *_kwnames[] = { NULL };
588 char _ptemp[128];
589
590 self = self;
591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreNotebook",_kwnames))
592 return NULL;
593 {
594 PyThreadState* __tstate = wxPyBeginAllowThreads();
595 _result = (wxNotebook *)new_wxPreNotebook();
596
597 wxPyEndAllowThreads(__tstate);
598 if (PyErr_Occurred()) return NULL;
599 } if (_result) {
600 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebook_p");
601 _resultobj = Py_BuildValue("s",_ptemp);
602 } else {
603 Py_INCREF(Py_None);
604 _resultobj = Py_None;
605 }
606 return _resultobj;
607 }
608
609 #define wxNotebook_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
610 static PyObject *_wrap_wxNotebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
611 PyObject * _resultobj;
612 bool _result;
613 wxNotebook * _arg0;
614 wxWindow * _arg1;
615 wxWindowID _arg2;
616 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
617 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
618 long _arg5 = (long ) 0;
619 wxString * _arg6 = (wxString *) &wxPyNOTEBOOK_NAME;
620 PyObject * _argo0 = 0;
621 PyObject * _argo1 = 0;
622 wxPoint temp;
623 PyObject * _obj3 = 0;
624 wxSize temp0;
625 PyObject * _obj4 = 0;
626 PyObject * _obj6 = 0;
627 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
628
629 self = self;
630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxNotebook_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6))
631 return NULL;
632 if (_argo0) {
633 if (_argo0 == Py_None) { _arg0 = NULL; }
634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_Create. Expected _wxNotebook_p.");
636 return NULL;
637 }
638 }
639 if (_argo1) {
640 if (_argo1 == Py_None) { _arg1 = NULL; }
641 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
642 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_Create. Expected _wxWindow_p.");
643 return NULL;
644 }
645 }
646 if (_obj3)
647 {
648 _arg3 = &temp;
649 if (! wxPoint_helper(_obj3, &_arg3))
650 return NULL;
651 }
652 if (_obj4)
653 {
654 _arg4 = &temp0;
655 if (! wxSize_helper(_obj4, &_arg4))
656 return NULL;
657 }
658 if (_obj6)
659 {
660 _arg6 = wxString_in_helper(_obj6);
661 if (_arg6 == NULL)
662 return NULL;
663 }
664 {
665 PyThreadState* __tstate = wxPyBeginAllowThreads();
666 _result = (bool )wxNotebook_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6);
667
668 wxPyEndAllowThreads(__tstate);
669 if (PyErr_Occurred()) return NULL;
670 } _resultobj = Py_BuildValue("i",_result);
671 {
672 if (_obj6)
673 delete _arg6;
674 }
675 return _resultobj;
676 }
677
678 #define wxNotebook_GetPageCount(_swigobj) (_swigobj->GetPageCount())
679 static PyObject *_wrap_wxNotebook_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
680 PyObject * _resultobj;
681 int _result;
682 wxNotebook * _arg0;
683 PyObject * _argo0 = 0;
684 char *_kwnames[] = { "self", NULL };
685
686 self = self;
687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetPageCount",_kwnames,&_argo0))
688 return NULL;
689 if (_argo0) {
690 if (_argo0 == Py_None) { _arg0 = NULL; }
691 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
692 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPageCount. Expected _wxNotebook_p.");
693 return NULL;
694 }
695 }
696 {
697 PyThreadState* __tstate = wxPyBeginAllowThreads();
698 _result = (int )wxNotebook_GetPageCount(_arg0);
699
700 wxPyEndAllowThreads(__tstate);
701 if (PyErr_Occurred()) return NULL;
702 } _resultobj = Py_BuildValue("i",_result);
703 return _resultobj;
704 }
705
706 #define wxNotebook_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
707 static PyObject *_wrap_wxNotebook_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
708 PyObject * _resultobj;
709 int _result;
710 wxNotebook * _arg0;
711 int _arg1;
712 PyObject * _argo0 = 0;
713 char *_kwnames[] = { "self","page", NULL };
714
715 self = self;
716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_SetSelection",_kwnames,&_argo0,&_arg1))
717 return NULL;
718 if (_argo0) {
719 if (_argo0 == Py_None) { _arg0 = NULL; }
720 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
721 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetSelection. Expected _wxNotebook_p.");
722 return NULL;
723 }
724 }
725 {
726 PyThreadState* __tstate = wxPyBeginAllowThreads();
727 _result = (int )wxNotebook_SetSelection(_arg0,_arg1);
728
729 wxPyEndAllowThreads(__tstate);
730 if (PyErr_Occurred()) return NULL;
731 } _resultobj = Py_BuildValue("i",_result);
732 return _resultobj;
733 }
734
735 #define wxNotebook_AdvanceSelection(_swigobj,_swigarg0) (_swigobj->AdvanceSelection(_swigarg0))
736 static PyObject *_wrap_wxNotebook_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
737 PyObject * _resultobj;
738 wxNotebook * _arg0;
739 bool _arg1 = (bool ) TRUE;
740 PyObject * _argo0 = 0;
741 int tempbool1 = (int) TRUE;
742 char *_kwnames[] = { "self","forward", NULL };
743
744 self = self;
745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxNotebook_AdvanceSelection",_kwnames,&_argo0,&tempbool1))
746 return NULL;
747 if (_argo0) {
748 if (_argo0 == Py_None) { _arg0 = NULL; }
749 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
750 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_AdvanceSelection. Expected _wxNotebook_p.");
751 return NULL;
752 }
753 }
754 _arg1 = (bool ) tempbool1;
755 {
756 PyThreadState* __tstate = wxPyBeginAllowThreads();
757 wxNotebook_AdvanceSelection(_arg0,_arg1);
758
759 wxPyEndAllowThreads(__tstate);
760 if (PyErr_Occurred()) return NULL;
761 } Py_INCREF(Py_None);
762 _resultobj = Py_None;
763 return _resultobj;
764 }
765
766 #define wxNotebook_GetSelection(_swigobj) (_swigobj->GetSelection())
767 static PyObject *_wrap_wxNotebook_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
768 PyObject * _resultobj;
769 int _result;
770 wxNotebook * _arg0;
771 PyObject * _argo0 = 0;
772 char *_kwnames[] = { "self", NULL };
773
774 self = self;
775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetSelection",_kwnames,&_argo0))
776 return NULL;
777 if (_argo0) {
778 if (_argo0 == Py_None) { _arg0 = NULL; }
779 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
780 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetSelection. Expected _wxNotebook_p.");
781 return NULL;
782 }
783 }
784 {
785 PyThreadState* __tstate = wxPyBeginAllowThreads();
786 _result = (int )wxNotebook_GetSelection(_arg0);
787
788 wxPyEndAllowThreads(__tstate);
789 if (PyErr_Occurred()) return NULL;
790 } _resultobj = Py_BuildValue("i",_result);
791 return _resultobj;
792 }
793
794 #define wxNotebook_SetPageText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPageText(_swigarg0,_swigarg1))
795 static PyObject *_wrap_wxNotebook_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
796 PyObject * _resultobj;
797 bool _result;
798 wxNotebook * _arg0;
799 int _arg1;
800 wxString * _arg2;
801 PyObject * _argo0 = 0;
802 PyObject * _obj2 = 0;
803 char *_kwnames[] = { "self","page","text", NULL };
804
805 self = self;
806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxNotebook_SetPageText",_kwnames,&_argo0,&_arg1,&_obj2))
807 return NULL;
808 if (_argo0) {
809 if (_argo0 == Py_None) { _arg0 = NULL; }
810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPageText. Expected _wxNotebook_p.");
812 return NULL;
813 }
814 }
815 {
816 _arg2 = wxString_in_helper(_obj2);
817 if (_arg2 == NULL)
818 return NULL;
819 }
820 {
821 PyThreadState* __tstate = wxPyBeginAllowThreads();
822 _result = (bool )wxNotebook_SetPageText(_arg0,_arg1,*_arg2);
823
824 wxPyEndAllowThreads(__tstate);
825 if (PyErr_Occurred()) return NULL;
826 } _resultobj = Py_BuildValue("i",_result);
827 {
828 if (_obj2)
829 delete _arg2;
830 }
831 return _resultobj;
832 }
833
834 #define wxNotebook_GetPageText(_swigobj,_swigarg0) (_swigobj->GetPageText(_swigarg0))
835 static PyObject *_wrap_wxNotebook_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
836 PyObject * _resultobj;
837 wxString * _result;
838 wxNotebook * _arg0;
839 int _arg1;
840 PyObject * _argo0 = 0;
841 char *_kwnames[] = { "self","page", NULL };
842
843 self = self;
844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_GetPageText",_kwnames,&_argo0,&_arg1))
845 return NULL;
846 if (_argo0) {
847 if (_argo0 == Py_None) { _arg0 = NULL; }
848 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
849 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPageText. Expected _wxNotebook_p.");
850 return NULL;
851 }
852 }
853 {
854 PyThreadState* __tstate = wxPyBeginAllowThreads();
855 _result = new wxString (wxNotebook_GetPageText(_arg0,_arg1));
856
857 wxPyEndAllowThreads(__tstate);
858 if (PyErr_Occurred()) return NULL;
859 }{
860 #if wxUSE_UNICODE
861 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
862 #else
863 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
864 #endif
865 }
866 {
867 delete _result;
868 }
869 return _resultobj;
870 }
871
872 #define wxNotebook_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0))
873 static PyObject *_wrap_wxNotebook_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
874 PyObject * _resultobj;
875 wxNotebook * _arg0;
876 wxImageList * _arg1;
877 PyObject * _argo0 = 0;
878 PyObject * _argo1 = 0;
879 char *_kwnames[] = { "self","imageList", NULL };
880
881 self = self;
882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_SetImageList",_kwnames,&_argo0,&_argo1))
883 return NULL;
884 if (_argo0) {
885 if (_argo0 == Py_None) { _arg0 = NULL; }
886 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
887 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetImageList. Expected _wxNotebook_p.");
888 return NULL;
889 }
890 }
891 if (_argo1) {
892 if (_argo1 == Py_None) { _arg1 = NULL; }
893 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
894 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_SetImageList. Expected _wxImageList_p.");
895 return NULL;
896 }
897 }
898 {
899 PyThreadState* __tstate = wxPyBeginAllowThreads();
900 wxNotebook_SetImageList(_arg0,_arg1);
901
902 wxPyEndAllowThreads(__tstate);
903 if (PyErr_Occurred()) return NULL;
904 } Py_INCREF(Py_None);
905 _resultobj = Py_None;
906 return _resultobj;
907 }
908
909 #define wxNotebook_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0))
910 static PyObject *_wrap_wxNotebook_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
911 PyObject * _resultobj;
912 wxNotebook * _arg0;
913 wxImageList * _arg1;
914 PyObject * _argo0 = 0;
915 PyObject * _argo1 = 0;
916 char *_kwnames[] = { "self","imageList", NULL };
917
918 self = self;
919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_AssignImageList",_kwnames,&_argo0,&_argo1))
920 return NULL;
921 if (_argo0) {
922 if (_argo0 == Py_None) { _arg0 = NULL; }
923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_AssignImageList. Expected _wxNotebook_p.");
925 return NULL;
926 }
927 }
928 if (_argo1) {
929 if (_argo1 == Py_None) { _arg1 = NULL; }
930 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
931 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_AssignImageList. Expected _wxImageList_p.");
932 return NULL;
933 }
934 }
935 {
936 PyThreadState* __tstate = wxPyBeginAllowThreads();
937 wxNotebook_AssignImageList(_arg0,_arg1);
938
939 wxPyEndAllowThreads(__tstate);
940 if (PyErr_Occurred()) return NULL;
941 } Py_INCREF(Py_None);
942 _resultobj = Py_None;
943 return _resultobj;
944 }
945
946 #define wxNotebook_GetImageList(_swigobj) (_swigobj->GetImageList())
947 static PyObject *_wrap_wxNotebook_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
948 PyObject * _resultobj;
949 wxImageList * _result;
950 wxNotebook * _arg0;
951 PyObject * _argo0 = 0;
952 char *_kwnames[] = { "self", NULL };
953
954 self = self;
955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetImageList",_kwnames,&_argo0))
956 return NULL;
957 if (_argo0) {
958 if (_argo0 == Py_None) { _arg0 = NULL; }
959 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
960 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetImageList. Expected _wxNotebook_p.");
961 return NULL;
962 }
963 }
964 {
965 PyThreadState* __tstate = wxPyBeginAllowThreads();
966 _result = (wxImageList *)wxNotebook_GetImageList(_arg0);
967
968 wxPyEndAllowThreads(__tstate);
969 if (PyErr_Occurred()) return NULL;
970 }{ _resultobj = wxPyMake_wxObject(_result); }
971 return _resultobj;
972 }
973
974 #define wxNotebook_GetPageImage(_swigobj,_swigarg0) (_swigobj->GetPageImage(_swigarg0))
975 static PyObject *_wrap_wxNotebook_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
976 PyObject * _resultobj;
977 int _result;
978 wxNotebook * _arg0;
979 int _arg1;
980 PyObject * _argo0 = 0;
981 char *_kwnames[] = { "self","page", NULL };
982
983 self = self;
984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_GetPageImage",_kwnames,&_argo0,&_arg1))
985 return NULL;
986 if (_argo0) {
987 if (_argo0 == Py_None) { _arg0 = NULL; }
988 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
989 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPageImage. Expected _wxNotebook_p.");
990 return NULL;
991 }
992 }
993 {
994 PyThreadState* __tstate = wxPyBeginAllowThreads();
995 _result = (int )wxNotebook_GetPageImage(_arg0,_arg1);
996
997 wxPyEndAllowThreads(__tstate);
998 if (PyErr_Occurred()) return NULL;
999 } _resultobj = Py_BuildValue("i",_result);
1000 return _resultobj;
1001 }
1002
1003 #define wxNotebook_SetPageImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPageImage(_swigarg0,_swigarg1))
1004 static PyObject *_wrap_wxNotebook_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
1005 PyObject * _resultobj;
1006 bool _result;
1007 wxNotebook * _arg0;
1008 int _arg1;
1009 int _arg2;
1010 PyObject * _argo0 = 0;
1011 char *_kwnames[] = { "self","page","image", NULL };
1012
1013 self = self;
1014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxNotebook_SetPageImage",_kwnames,&_argo0,&_arg1,&_arg2))
1015 return NULL;
1016 if (_argo0) {
1017 if (_argo0 == Py_None) { _arg0 = NULL; }
1018 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPageImage. Expected _wxNotebook_p.");
1020 return NULL;
1021 }
1022 }
1023 {
1024 PyThreadState* __tstate = wxPyBeginAllowThreads();
1025 _result = (bool )wxNotebook_SetPageImage(_arg0,_arg1,_arg2);
1026
1027 wxPyEndAllowThreads(__tstate);
1028 if (PyErr_Occurred()) return NULL;
1029 } _resultobj = Py_BuildValue("i",_result);
1030 return _resultobj;
1031 }
1032
1033 #define wxNotebook_GetRowCount(_swigobj) (_swigobj->GetRowCount())
1034 static PyObject *_wrap_wxNotebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
1035 PyObject * _resultobj;
1036 int _result;
1037 wxNotebook * _arg0;
1038 PyObject * _argo0 = 0;
1039 char *_kwnames[] = { "self", NULL };
1040
1041 self = self;
1042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetRowCount",_kwnames,&_argo0))
1043 return NULL;
1044 if (_argo0) {
1045 if (_argo0 == Py_None) { _arg0 = NULL; }
1046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetRowCount. Expected _wxNotebook_p.");
1048 return NULL;
1049 }
1050 }
1051 {
1052 PyThreadState* __tstate = wxPyBeginAllowThreads();
1053 _result = (int )wxNotebook_GetRowCount(_arg0);
1054
1055 wxPyEndAllowThreads(__tstate);
1056 if (PyErr_Occurred()) return NULL;
1057 } _resultobj = Py_BuildValue("i",_result);
1058 return _resultobj;
1059 }
1060
1061 #define wxNotebook_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0))
1062 static PyObject *_wrap_wxNotebook_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1063 PyObject * _resultobj;
1064 wxNotebook * _arg0;
1065 wxSize * _arg1;
1066 PyObject * _argo0 = 0;
1067 wxSize temp;
1068 PyObject * _obj1 = 0;
1069 char *_kwnames[] = { "self","size", NULL };
1070
1071 self = self;
1072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_SetPageSize",_kwnames,&_argo0,&_obj1))
1073 return NULL;
1074 if (_argo0) {
1075 if (_argo0 == Py_None) { _arg0 = NULL; }
1076 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1077 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPageSize. Expected _wxNotebook_p.");
1078 return NULL;
1079 }
1080 }
1081 {
1082 _arg1 = &temp;
1083 if (! wxSize_helper(_obj1, &_arg1))
1084 return NULL;
1085 }
1086 {
1087 PyThreadState* __tstate = wxPyBeginAllowThreads();
1088 wxNotebook_SetPageSize(_arg0,*_arg1);
1089
1090 wxPyEndAllowThreads(__tstate);
1091 if (PyErr_Occurred()) return NULL;
1092 } Py_INCREF(Py_None);
1093 _resultobj = Py_None;
1094 return _resultobj;
1095 }
1096
1097 #define wxNotebook_SetPadding(_swigobj,_swigarg0) (_swigobj->SetPadding(_swigarg0))
1098 static PyObject *_wrap_wxNotebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) {
1099 PyObject * _resultobj;
1100 wxNotebook * _arg0;
1101 wxSize * _arg1;
1102 PyObject * _argo0 = 0;
1103 wxSize temp;
1104 PyObject * _obj1 = 0;
1105 char *_kwnames[] = { "self","padding", NULL };
1106
1107 self = self;
1108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_SetPadding",_kwnames,&_argo0,&_obj1))
1109 return NULL;
1110 if (_argo0) {
1111 if (_argo0 == Py_None) { _arg0 = NULL; }
1112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPadding. Expected _wxNotebook_p.");
1114 return NULL;
1115 }
1116 }
1117 {
1118 _arg1 = &temp;
1119 if (! wxSize_helper(_obj1, &_arg1))
1120 return NULL;
1121 }
1122 {
1123 PyThreadState* __tstate = wxPyBeginAllowThreads();
1124 wxNotebook_SetPadding(_arg0,*_arg1);
1125
1126 wxPyEndAllowThreads(__tstate);
1127 if (PyErr_Occurred()) return NULL;
1128 } Py_INCREF(Py_None);
1129 _resultobj = Py_None;
1130 return _resultobj;
1131 }
1132
1133 #define wxNotebook_DeletePage(_swigobj,_swigarg0) (_swigobj->DeletePage(_swigarg0))
1134 static PyObject *_wrap_wxNotebook_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) {
1135 PyObject * _resultobj;
1136 bool _result;
1137 wxNotebook * _arg0;
1138 int _arg1;
1139 PyObject * _argo0 = 0;
1140 char *_kwnames[] = { "self","page", NULL };
1141
1142 self = self;
1143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_DeletePage",_kwnames,&_argo0,&_arg1))
1144 return NULL;
1145 if (_argo0) {
1146 if (_argo0 == Py_None) { _arg0 = NULL; }
1147 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1148 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_DeletePage. Expected _wxNotebook_p.");
1149 return NULL;
1150 }
1151 }
1152 {
1153 PyThreadState* __tstate = wxPyBeginAllowThreads();
1154 _result = (bool )wxNotebook_DeletePage(_arg0,_arg1);
1155
1156 wxPyEndAllowThreads(__tstate);
1157 if (PyErr_Occurred()) return NULL;
1158 } _resultobj = Py_BuildValue("i",_result);
1159 return _resultobj;
1160 }
1161
1162 #define wxNotebook_RemovePage(_swigobj,_swigarg0) (_swigobj->RemovePage(_swigarg0))
1163 static PyObject *_wrap_wxNotebook_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) {
1164 PyObject * _resultobj;
1165 bool _result;
1166 wxNotebook * _arg0;
1167 int _arg1;
1168 PyObject * _argo0 = 0;
1169 char *_kwnames[] = { "self","page", NULL };
1170
1171 self = self;
1172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_RemovePage",_kwnames,&_argo0,&_arg1))
1173 return NULL;
1174 if (_argo0) {
1175 if (_argo0 == Py_None) { _arg0 = NULL; }
1176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_RemovePage. Expected _wxNotebook_p.");
1178 return NULL;
1179 }
1180 }
1181 {
1182 PyThreadState* __tstate = wxPyBeginAllowThreads();
1183 _result = (bool )wxNotebook_RemovePage(_arg0,_arg1);
1184
1185 wxPyEndAllowThreads(__tstate);
1186 if (PyErr_Occurred()) return NULL;
1187 } _resultobj = Py_BuildValue("i",_result);
1188 return _resultobj;
1189 }
1190
1191 #define wxNotebook_DeleteAllPages(_swigobj) (_swigobj->DeleteAllPages())
1192 static PyObject *_wrap_wxNotebook_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
1193 PyObject * _resultobj;
1194 bool _result;
1195 wxNotebook * _arg0;
1196 PyObject * _argo0 = 0;
1197 char *_kwnames[] = { "self", NULL };
1198
1199 self = self;
1200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_DeleteAllPages",_kwnames,&_argo0))
1201 return NULL;
1202 if (_argo0) {
1203 if (_argo0 == Py_None) { _arg0 = NULL; }
1204 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1205 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_DeleteAllPages. Expected _wxNotebook_p.");
1206 return NULL;
1207 }
1208 }
1209 {
1210 PyThreadState* __tstate = wxPyBeginAllowThreads();
1211 _result = (bool )wxNotebook_DeleteAllPages(_arg0);
1212
1213 wxPyEndAllowThreads(__tstate);
1214 if (PyErr_Occurred()) return NULL;
1215 } _resultobj = Py_BuildValue("i",_result);
1216 return _resultobj;
1217 }
1218
1219 #define wxNotebook_AddPage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddPage(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1220 static PyObject *_wrap_wxNotebook_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) {
1221 PyObject * _resultobj;
1222 bool _result;
1223 wxNotebook * _arg0;
1224 wxWindow * _arg1;
1225 wxString * _arg2;
1226 int _arg3 = (int ) FALSE;
1227 int _arg4 = (int ) -1;
1228 PyObject * _argo0 = 0;
1229 PyObject * _argo1 = 0;
1230 PyObject * _obj2 = 0;
1231 char *_kwnames[] = { "self","page","text","select","imageId", NULL };
1232
1233 self = self;
1234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxNotebook_AddPage",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4))
1235 return NULL;
1236 if (_argo0) {
1237 if (_argo0 == Py_None) { _arg0 = NULL; }
1238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_AddPage. Expected _wxNotebook_p.");
1240 return NULL;
1241 }
1242 }
1243 if (_argo1) {
1244 if (_argo1 == Py_None) { _arg1 = NULL; }
1245 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1246 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_AddPage. Expected _wxWindow_p.");
1247 return NULL;
1248 }
1249 }
1250 {
1251 _arg2 = wxString_in_helper(_obj2);
1252 if (_arg2 == NULL)
1253 return NULL;
1254 }
1255 {
1256 PyThreadState* __tstate = wxPyBeginAllowThreads();
1257 _result = (bool )wxNotebook_AddPage(_arg0,_arg1,*_arg2,_arg3,_arg4);
1258
1259 wxPyEndAllowThreads(__tstate);
1260 if (PyErr_Occurred()) return NULL;
1261 } _resultobj = Py_BuildValue("i",_result);
1262 {
1263 if (_obj2)
1264 delete _arg2;
1265 }
1266 return _resultobj;
1267 }
1268
1269 #define wxNotebook_InsertPage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->InsertPage(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1270 static PyObject *_wrap_wxNotebook_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) {
1271 PyObject * _resultobj;
1272 bool _result;
1273 wxNotebook * _arg0;
1274 int _arg1;
1275 wxWindow * _arg2;
1276 wxString * _arg3;
1277 bool _arg4 = (bool ) FALSE;
1278 int _arg5 = (int ) -1;
1279 PyObject * _argo0 = 0;
1280 PyObject * _argo2 = 0;
1281 PyObject * _obj3 = 0;
1282 int tempbool4 = (int) FALSE;
1283 char *_kwnames[] = { "self","page","page","text","select","imageId", NULL };
1284
1285 self = self;
1286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|ii:wxNotebook_InsertPage",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&tempbool4,&_arg5))
1287 return NULL;
1288 if (_argo0) {
1289 if (_argo0 == Py_None) { _arg0 = NULL; }
1290 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1291 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_InsertPage. Expected _wxNotebook_p.");
1292 return NULL;
1293 }
1294 }
1295 if (_argo2) {
1296 if (_argo2 == Py_None) { _arg2 = NULL; }
1297 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
1298 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxNotebook_InsertPage. Expected _wxWindow_p.");
1299 return NULL;
1300 }
1301 }
1302 {
1303 _arg3 = wxString_in_helper(_obj3);
1304 if (_arg3 == NULL)
1305 return NULL;
1306 }
1307 _arg4 = (bool ) tempbool4;
1308 {
1309 PyThreadState* __tstate = wxPyBeginAllowThreads();
1310 _result = (bool )wxNotebook_InsertPage(_arg0,_arg1,_arg2,*_arg3,_arg4,_arg5);
1311
1312 wxPyEndAllowThreads(__tstate);
1313 if (PyErr_Occurred()) return NULL;
1314 } _resultobj = Py_BuildValue("i",_result);
1315 {
1316 if (_obj3)
1317 delete _arg3;
1318 }
1319 return _resultobj;
1320 }
1321
1322 #define wxNotebook_GetPage(_swigobj,_swigarg0) (_swigobj->GetPage(_swigarg0))
1323 static PyObject *_wrap_wxNotebook_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
1324 PyObject * _resultobj;
1325 wxWindow * _result;
1326 wxNotebook * _arg0;
1327 int _arg1;
1328 PyObject * _argo0 = 0;
1329 char *_kwnames[] = { "self","page", NULL };
1330
1331 self = self;
1332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_GetPage",_kwnames,&_argo0,&_arg1))
1333 return NULL;
1334 if (_argo0) {
1335 if (_argo0 == Py_None) { _arg0 = NULL; }
1336 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1337 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPage. Expected _wxNotebook_p.");
1338 return NULL;
1339 }
1340 }
1341 {
1342 PyThreadState* __tstate = wxPyBeginAllowThreads();
1343 _result = (wxWindow *)wxNotebook_GetPage(_arg0,_arg1);
1344
1345 wxPyEndAllowThreads(__tstate);
1346 if (PyErr_Occurred()) return NULL;
1347 }{ _resultobj = wxPyMake_wxObject(_result); }
1348 return _resultobj;
1349 }
1350
1351 static void wxNotebook_ResizeChildren(wxNotebook *self) {
1352 wxSizeEvent evt(self->GetClientSize());
1353 self->GetEventHandler()->ProcessEvent(evt);
1354 }
1355 static PyObject *_wrap_wxNotebook_ResizeChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
1356 PyObject * _resultobj;
1357 wxNotebook * _arg0;
1358 PyObject * _argo0 = 0;
1359 char *_kwnames[] = { "self", NULL };
1360
1361 self = self;
1362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_ResizeChildren",_kwnames,&_argo0))
1363 return NULL;
1364 if (_argo0) {
1365 if (_argo0 == Py_None) { _arg0 = NULL; }
1366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_ResizeChildren. Expected _wxNotebook_p.");
1368 return NULL;
1369 }
1370 }
1371 {
1372 PyThreadState* __tstate = wxPyBeginAllowThreads();
1373 wxNotebook_ResizeChildren(_arg0);
1374
1375 wxPyEndAllowThreads(__tstate);
1376 if (PyErr_Occurred()) return NULL;
1377 } Py_INCREF(Py_None);
1378 _resultobj = Py_None;
1379 return _resultobj;
1380 }
1381
1382 static void *SwigwxSplitterEventTowxNotifyEvent(void *ptr) {
1383 wxSplitterEvent *src;
1384 wxNotifyEvent *dest;
1385 src = (wxSplitterEvent *) ptr;
1386 dest = (wxNotifyEvent *) src;
1387 return (void *) dest;
1388 }
1389
1390 static void *SwigwxSplitterEventTowxCommandEvent(void *ptr) {
1391 wxSplitterEvent *src;
1392 wxCommandEvent *dest;
1393 src = (wxSplitterEvent *) ptr;
1394 dest = (wxCommandEvent *) src;
1395 return (void *) dest;
1396 }
1397
1398 static void *SwigwxSplitterEventTowxEvent(void *ptr) {
1399 wxSplitterEvent *src;
1400 wxEvent *dest;
1401 src = (wxSplitterEvent *) ptr;
1402 dest = (wxEvent *) src;
1403 return (void *) dest;
1404 }
1405
1406 static void *SwigwxSplitterEventTowxObject(void *ptr) {
1407 wxSplitterEvent *src;
1408 wxObject *dest;
1409 src = (wxSplitterEvent *) ptr;
1410 dest = (wxObject *) src;
1411 return (void *) dest;
1412 }
1413
1414 #define new_wxSplitterEvent(_swigarg0,_swigarg1) (new wxSplitterEvent(_swigarg0,_swigarg1))
1415 static PyObject *_wrap_new_wxSplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
1416 PyObject * _resultobj;
1417 wxSplitterEvent * _result;
1418 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
1419 wxSplitterWindow * _arg1 = (wxSplitterWindow *) NULL;
1420 PyObject * _argo1 = 0;
1421 char *_kwnames[] = { "type","splitter", NULL };
1422 char _ptemp[128];
1423
1424 self = self;
1425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iO:new_wxSplitterEvent",_kwnames,&_arg0,&_argo1))
1426 return NULL;
1427 if (_argo1) {
1428 if (_argo1 == Py_None) { _arg1 = NULL; }
1429 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSplitterWindow_p")) {
1430 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxSplitterEvent. Expected _wxSplitterWindow_p.");
1431 return NULL;
1432 }
1433 }
1434 {
1435 PyThreadState* __tstate = wxPyBeginAllowThreads();
1436 _result = (wxSplitterEvent *)new_wxSplitterEvent(_arg0,_arg1);
1437
1438 wxPyEndAllowThreads(__tstate);
1439 if (PyErr_Occurred()) return NULL;
1440 } if (_result) {
1441 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterEvent_p");
1442 _resultobj = Py_BuildValue("s",_ptemp);
1443 } else {
1444 Py_INCREF(Py_None);
1445 _resultobj = Py_None;
1446 }
1447 return _resultobj;
1448 }
1449
1450 #define wxSplitterEvent_GetSashPosition(_swigobj) (_swigobj->GetSashPosition())
1451 static PyObject *_wrap_wxSplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
1452 PyObject * _resultobj;
1453 int _result;
1454 wxSplitterEvent * _arg0;
1455 PyObject * _argo0 = 0;
1456 char *_kwnames[] = { "self", NULL };
1457
1458 self = self;
1459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetSashPosition",_kwnames,&_argo0))
1460 return NULL;
1461 if (_argo0) {
1462 if (_argo0 == Py_None) { _arg0 = NULL; }
1463 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) {
1464 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetSashPosition. Expected _wxSplitterEvent_p.");
1465 return NULL;
1466 }
1467 }
1468 {
1469 PyThreadState* __tstate = wxPyBeginAllowThreads();
1470 _result = (int )wxSplitterEvent_GetSashPosition(_arg0);
1471
1472 wxPyEndAllowThreads(__tstate);
1473 if (PyErr_Occurred()) return NULL;
1474 } _resultobj = Py_BuildValue("i",_result);
1475 return _resultobj;
1476 }
1477
1478 #define wxSplitterEvent_GetX(_swigobj) (_swigobj->GetX())
1479 static PyObject *_wrap_wxSplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
1480 PyObject * _resultobj;
1481 int _result;
1482 wxSplitterEvent * _arg0;
1483 PyObject * _argo0 = 0;
1484 char *_kwnames[] = { "self", NULL };
1485
1486 self = self;
1487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetX",_kwnames,&_argo0))
1488 return NULL;
1489 if (_argo0) {
1490 if (_argo0 == Py_None) { _arg0 = NULL; }
1491 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) {
1492 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetX. Expected _wxSplitterEvent_p.");
1493 return NULL;
1494 }
1495 }
1496 {
1497 PyThreadState* __tstate = wxPyBeginAllowThreads();
1498 _result = (int )wxSplitterEvent_GetX(_arg0);
1499
1500 wxPyEndAllowThreads(__tstate);
1501 if (PyErr_Occurred()) return NULL;
1502 } _resultobj = Py_BuildValue("i",_result);
1503 return _resultobj;
1504 }
1505
1506 #define wxSplitterEvent_GetY(_swigobj) (_swigobj->GetY())
1507 static PyObject *_wrap_wxSplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
1508 PyObject * _resultobj;
1509 int _result;
1510 wxSplitterEvent * _arg0;
1511 PyObject * _argo0 = 0;
1512 char *_kwnames[] = { "self", NULL };
1513
1514 self = self;
1515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetY",_kwnames,&_argo0))
1516 return NULL;
1517 if (_argo0) {
1518 if (_argo0 == Py_None) { _arg0 = NULL; }
1519 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) {
1520 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetY. Expected _wxSplitterEvent_p.");
1521 return NULL;
1522 }
1523 }
1524 {
1525 PyThreadState* __tstate = wxPyBeginAllowThreads();
1526 _result = (int )wxSplitterEvent_GetY(_arg0);
1527
1528 wxPyEndAllowThreads(__tstate);
1529 if (PyErr_Occurred()) return NULL;
1530 } _resultobj = Py_BuildValue("i",_result);
1531 return _resultobj;
1532 }
1533
1534 #define wxSplitterEvent_GetWindowBeingRemoved(_swigobj) (_swigobj->GetWindowBeingRemoved())
1535 static PyObject *_wrap_wxSplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) {
1536 PyObject * _resultobj;
1537 wxWindow * _result;
1538 wxSplitterEvent * _arg0;
1539 PyObject * _argo0 = 0;
1540 char *_kwnames[] = { "self", NULL };
1541
1542 self = self;
1543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetWindowBeingRemoved",_kwnames,&_argo0))
1544 return NULL;
1545 if (_argo0) {
1546 if (_argo0 == Py_None) { _arg0 = NULL; }
1547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) {
1548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetWindowBeingRemoved. Expected _wxSplitterEvent_p.");
1549 return NULL;
1550 }
1551 }
1552 {
1553 PyThreadState* __tstate = wxPyBeginAllowThreads();
1554 _result = (wxWindow *)wxSplitterEvent_GetWindowBeingRemoved(_arg0);
1555
1556 wxPyEndAllowThreads(__tstate);
1557 if (PyErr_Occurred()) return NULL;
1558 }{ _resultobj = wxPyMake_wxObject(_result); }
1559 return _resultobj;
1560 }
1561
1562 #define wxSplitterEvent_SetSashPosition(_swigobj,_swigarg0) (_swigobj->SetSashPosition(_swigarg0))
1563 static PyObject *_wrap_wxSplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
1564 PyObject * _resultobj;
1565 wxSplitterEvent * _arg0;
1566 int _arg1;
1567 PyObject * _argo0 = 0;
1568 char *_kwnames[] = { "self","pos", NULL };
1569
1570 self = self;
1571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterEvent_SetSashPosition",_kwnames,&_argo0,&_arg1))
1572 return NULL;
1573 if (_argo0) {
1574 if (_argo0 == Py_None) { _arg0 = NULL; }
1575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) {
1576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_SetSashPosition. Expected _wxSplitterEvent_p.");
1577 return NULL;
1578 }
1579 }
1580 {
1581 PyThreadState* __tstate = wxPyBeginAllowThreads();
1582 wxSplitterEvent_SetSashPosition(_arg0,_arg1);
1583
1584 wxPyEndAllowThreads(__tstate);
1585 if (PyErr_Occurred()) return NULL;
1586 } Py_INCREF(Py_None);
1587 _resultobj = Py_None;
1588 return _resultobj;
1589 }
1590
1591 static void *SwigwxSplitterWindowTowxWindow(void *ptr) {
1592 wxSplitterWindow *src;
1593 wxWindow *dest;
1594 src = (wxSplitterWindow *) ptr;
1595 dest = (wxWindow *) src;
1596 return (void *) dest;
1597 }
1598
1599 static void *SwigwxSplitterWindowTowxEvtHandler(void *ptr) {
1600 wxSplitterWindow *src;
1601 wxEvtHandler *dest;
1602 src = (wxSplitterWindow *) ptr;
1603 dest = (wxEvtHandler *) src;
1604 return (void *) dest;
1605 }
1606
1607 static void *SwigwxSplitterWindowTowxObject(void *ptr) {
1608 wxSplitterWindow *src;
1609 wxObject *dest;
1610 src = (wxSplitterWindow *) ptr;
1611 dest = (wxObject *) src;
1612 return (void *) dest;
1613 }
1614
1615 #define new_wxSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1616 static PyObject *_wrap_new_wxSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1617 PyObject * _resultobj;
1618 wxSplitterWindow * _result;
1619 wxWindow * _arg0;
1620 wxWindowID _arg1;
1621 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
1622 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
1623 long _arg4 = (long ) wxSP_3D|wxCLIP_CHILDREN;
1624 wxString * _arg5 = (wxString *) &wxPySplitterNameStr;
1625 PyObject * _argo0 = 0;
1626 wxPoint temp;
1627 PyObject * _obj2 = 0;
1628 wxSize temp0;
1629 PyObject * _obj3 = 0;
1630 PyObject * _obj5 = 0;
1631 char *_kwnames[] = { "parent","id","point","size","style","name", NULL };
1632 char _ptemp[128];
1633
1634 self = self;
1635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxSplitterWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5))
1636 return NULL;
1637 if (_argo0) {
1638 if (_argo0 == Py_None) { _arg0 = NULL; }
1639 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1640 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSplitterWindow. Expected _wxWindow_p.");
1641 return NULL;
1642 }
1643 }
1644 if (_obj2)
1645 {
1646 _arg2 = &temp;
1647 if (! wxPoint_helper(_obj2, &_arg2))
1648 return NULL;
1649 }
1650 if (_obj3)
1651 {
1652 _arg3 = &temp0;
1653 if (! wxSize_helper(_obj3, &_arg3))
1654 return NULL;
1655 }
1656 if (_obj5)
1657 {
1658 _arg5 = wxString_in_helper(_obj5);
1659 if (_arg5 == NULL)
1660 return NULL;
1661 }
1662 {
1663 PyThreadState* __tstate = wxPyBeginAllowThreads();
1664 _result = (wxSplitterWindow *)new_wxSplitterWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5);
1665
1666 wxPyEndAllowThreads(__tstate);
1667 if (PyErr_Occurred()) return NULL;
1668 } if (_result) {
1669 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterWindow_p");
1670 _resultobj = Py_BuildValue("s",_ptemp);
1671 } else {
1672 Py_INCREF(Py_None);
1673 _resultobj = Py_None;
1674 }
1675 {
1676 if (_obj5)
1677 delete _arg5;
1678 }
1679 return _resultobj;
1680 }
1681
1682 #define new_wxPreSplitterWindow() (new wxSplitterWindow())
1683 static PyObject *_wrap_new_wxPreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1684 PyObject * _resultobj;
1685 wxSplitterWindow * _result;
1686 char *_kwnames[] = { NULL };
1687 char _ptemp[128];
1688
1689 self = self;
1690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSplitterWindow",_kwnames))
1691 return NULL;
1692 {
1693 PyThreadState* __tstate = wxPyBeginAllowThreads();
1694 _result = (wxSplitterWindow *)new_wxPreSplitterWindow();
1695
1696 wxPyEndAllowThreads(__tstate);
1697 if (PyErr_Occurred()) return NULL;
1698 } if (_result) {
1699 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterWindow_p");
1700 _resultobj = Py_BuildValue("s",_ptemp);
1701 } else {
1702 Py_INCREF(Py_None);
1703 _resultobj = Py_None;
1704 }
1705 return _resultobj;
1706 }
1707
1708 #define wxSplitterWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1709 static PyObject *_wrap_wxSplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1710 PyObject * _resultobj;
1711 bool _result;
1712 wxSplitterWindow * _arg0;
1713 wxWindow * _arg1;
1714 wxWindowID _arg2;
1715 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1716 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1717 long _arg5 = (long ) wxSP_3D|wxCLIP_CHILDREN;
1718 wxString * _arg6 = (wxString *) &wxPySplitterNameStr;
1719 PyObject * _argo0 = 0;
1720 PyObject * _argo1 = 0;
1721 wxPoint temp;
1722 PyObject * _obj3 = 0;
1723 wxSize temp0;
1724 PyObject * _obj4 = 0;
1725 PyObject * _obj6 = 0;
1726 char *_kwnames[] = { "self","parent","id","point","size","style","name", NULL };
1727
1728 self = self;
1729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxSplitterWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6))
1730 return NULL;
1731 if (_argo0) {
1732 if (_argo0 == Py_None) { _arg0 = NULL; }
1733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_Create. Expected _wxSplitterWindow_p.");
1735 return NULL;
1736 }
1737 }
1738 if (_argo1) {
1739 if (_argo1 == Py_None) { _arg1 = NULL; }
1740 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1741 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_Create. Expected _wxWindow_p.");
1742 return NULL;
1743 }
1744 }
1745 if (_obj3)
1746 {
1747 _arg3 = &temp;
1748 if (! wxPoint_helper(_obj3, &_arg3))
1749 return NULL;
1750 }
1751 if (_obj4)
1752 {
1753 _arg4 = &temp0;
1754 if (! wxSize_helper(_obj4, &_arg4))
1755 return NULL;
1756 }
1757 if (_obj6)
1758 {
1759 _arg6 = wxString_in_helper(_obj6);
1760 if (_arg6 == NULL)
1761 return NULL;
1762 }
1763 {
1764 PyThreadState* __tstate = wxPyBeginAllowThreads();
1765 _result = (bool )wxSplitterWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6);
1766
1767 wxPyEndAllowThreads(__tstate);
1768 if (PyErr_Occurred()) return NULL;
1769 } _resultobj = Py_BuildValue("i",_result);
1770 {
1771 if (_obj6)
1772 delete _arg6;
1773 }
1774 return _resultobj;
1775 }
1776
1777 #define wxSplitterWindow_GetWindow1(_swigobj) (_swigobj->GetWindow1())
1778 static PyObject *_wrap_wxSplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) {
1779 PyObject * _resultobj;
1780 wxWindow * _result;
1781 wxSplitterWindow * _arg0;
1782 PyObject * _argo0 = 0;
1783 char *_kwnames[] = { "self", NULL };
1784
1785 self = self;
1786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetWindow1",_kwnames,&_argo0))
1787 return NULL;
1788 if (_argo0) {
1789 if (_argo0 == Py_None) { _arg0 = NULL; }
1790 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1791 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetWindow1. Expected _wxSplitterWindow_p.");
1792 return NULL;
1793 }
1794 }
1795 {
1796 PyThreadState* __tstate = wxPyBeginAllowThreads();
1797 _result = (wxWindow *)wxSplitterWindow_GetWindow1(_arg0);
1798
1799 wxPyEndAllowThreads(__tstate);
1800 if (PyErr_Occurred()) return NULL;
1801 }{ _resultobj = wxPyMake_wxObject(_result); }
1802 return _resultobj;
1803 }
1804
1805 #define wxSplitterWindow_GetWindow2(_swigobj) (_swigobj->GetWindow2())
1806 static PyObject *_wrap_wxSplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) {
1807 PyObject * _resultobj;
1808 wxWindow * _result;
1809 wxSplitterWindow * _arg0;
1810 PyObject * _argo0 = 0;
1811 char *_kwnames[] = { "self", NULL };
1812
1813 self = self;
1814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetWindow2",_kwnames,&_argo0))
1815 return NULL;
1816 if (_argo0) {
1817 if (_argo0 == Py_None) { _arg0 = NULL; }
1818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetWindow2. Expected _wxSplitterWindow_p.");
1820 return NULL;
1821 }
1822 }
1823 {
1824 PyThreadState* __tstate = wxPyBeginAllowThreads();
1825 _result = (wxWindow *)wxSplitterWindow_GetWindow2(_arg0);
1826
1827 wxPyEndAllowThreads(__tstate);
1828 if (PyErr_Occurred()) return NULL;
1829 }{ _resultobj = wxPyMake_wxObject(_result); }
1830 return _resultobj;
1831 }
1832
1833 #define wxSplitterWindow_SetSplitMode(_swigobj,_swigarg0) (_swigobj->SetSplitMode(_swigarg0))
1834 static PyObject *_wrap_wxSplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1835 PyObject * _resultobj;
1836 wxSplitterWindow * _arg0;
1837 int _arg1;
1838 PyObject * _argo0 = 0;
1839 char *_kwnames[] = { "self","mode", NULL };
1840
1841 self = self;
1842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetSplitMode",_kwnames,&_argo0,&_arg1))
1843 return NULL;
1844 if (_argo0) {
1845 if (_argo0 == Py_None) { _arg0 = NULL; }
1846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetSplitMode. Expected _wxSplitterWindow_p.");
1848 return NULL;
1849 }
1850 }
1851 {
1852 PyThreadState* __tstate = wxPyBeginAllowThreads();
1853 wxSplitterWindow_SetSplitMode(_arg0,_arg1);
1854
1855 wxPyEndAllowThreads(__tstate);
1856 if (PyErr_Occurred()) return NULL;
1857 } Py_INCREF(Py_None);
1858 _resultobj = Py_None;
1859 return _resultobj;
1860 }
1861
1862 #define wxSplitterWindow_GetSplitMode(_swigobj) (_swigobj->GetSplitMode())
1863 static PyObject *_wrap_wxSplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1864 PyObject * _resultobj;
1865 int _result;
1866 wxSplitterWindow * _arg0;
1867 PyObject * _argo0 = 0;
1868 char *_kwnames[] = { "self", NULL };
1869
1870 self = self;
1871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetSplitMode",_kwnames,&_argo0))
1872 return NULL;
1873 if (_argo0) {
1874 if (_argo0 == Py_None) { _arg0 = NULL; }
1875 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1876 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetSplitMode. Expected _wxSplitterWindow_p.");
1877 return NULL;
1878 }
1879 }
1880 {
1881 PyThreadState* __tstate = wxPyBeginAllowThreads();
1882 _result = (int )wxSplitterWindow_GetSplitMode(_arg0);
1883
1884 wxPyEndAllowThreads(__tstate);
1885 if (PyErr_Occurred()) return NULL;
1886 } _resultobj = Py_BuildValue("i",_result);
1887 return _resultobj;
1888 }
1889
1890 #define wxSplitterWindow_Initialize(_swigobj,_swigarg0) (_swigobj->Initialize(_swigarg0))
1891 static PyObject *_wrap_wxSplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
1892 PyObject * _resultobj;
1893 wxSplitterWindow * _arg0;
1894 wxWindow * _arg1;
1895 PyObject * _argo0 = 0;
1896 PyObject * _argo1 = 0;
1897 char *_kwnames[] = { "self","window", NULL };
1898
1899 self = self;
1900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSplitterWindow_Initialize",_kwnames,&_argo0,&_argo1))
1901 return NULL;
1902 if (_argo0) {
1903 if (_argo0 == Py_None) { _arg0 = NULL; }
1904 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1905 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_Initialize. Expected _wxSplitterWindow_p.");
1906 return NULL;
1907 }
1908 }
1909 if (_argo1) {
1910 if (_argo1 == Py_None) { _arg1 = NULL; }
1911 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1912 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_Initialize. Expected _wxWindow_p.");
1913 return NULL;
1914 }
1915 }
1916 {
1917 PyThreadState* __tstate = wxPyBeginAllowThreads();
1918 wxSplitterWindow_Initialize(_arg0,_arg1);
1919
1920 wxPyEndAllowThreads(__tstate);
1921 if (PyErr_Occurred()) return NULL;
1922 } Py_INCREF(Py_None);
1923 _resultobj = Py_None;
1924 return _resultobj;
1925 }
1926
1927 #define wxSplitterWindow_SplitVertically(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SplitVertically(_swigarg0,_swigarg1,_swigarg2))
1928 static PyObject *_wrap_wxSplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) {
1929 PyObject * _resultobj;
1930 bool _result;
1931 wxSplitterWindow * _arg0;
1932 wxWindow * _arg1;
1933 wxWindow * _arg2;
1934 int _arg3 = (int ) 0;
1935 PyObject * _argo0 = 0;
1936 PyObject * _argo1 = 0;
1937 PyObject * _argo2 = 0;
1938 char *_kwnames[] = { "self","window1","window2","sashPosition", NULL };
1939
1940 self = self;
1941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxSplitterWindow_SplitVertically",_kwnames,&_argo0,&_argo1,&_argo2,&_arg3))
1942 return NULL;
1943 if (_argo0) {
1944 if (_argo0 == Py_None) { _arg0 = NULL; }
1945 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1946 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SplitVertically. Expected _wxSplitterWindow_p.");
1947 return NULL;
1948 }
1949 }
1950 if (_argo1) {
1951 if (_argo1 == Py_None) { _arg1 = NULL; }
1952 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1953 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_SplitVertically. Expected _wxWindow_p.");
1954 return NULL;
1955 }
1956 }
1957 if (_argo2) {
1958 if (_argo2 == Py_None) { _arg2 = NULL; }
1959 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
1960 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxSplitterWindow_SplitVertically. Expected _wxWindow_p.");
1961 return NULL;
1962 }
1963 }
1964 {
1965 PyThreadState* __tstate = wxPyBeginAllowThreads();
1966 _result = (bool )wxSplitterWindow_SplitVertically(_arg0,_arg1,_arg2,_arg3);
1967
1968 wxPyEndAllowThreads(__tstate);
1969 if (PyErr_Occurred()) return NULL;
1970 } _resultobj = Py_BuildValue("i",_result);
1971 return _resultobj;
1972 }
1973
1974 #define wxSplitterWindow_SplitHorizontally(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SplitHorizontally(_swigarg0,_swigarg1,_swigarg2))
1975 static PyObject *_wrap_wxSplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) {
1976 PyObject * _resultobj;
1977 bool _result;
1978 wxSplitterWindow * _arg0;
1979 wxWindow * _arg1;
1980 wxWindow * _arg2;
1981 int _arg3 = (int ) 0;
1982 PyObject * _argo0 = 0;
1983 PyObject * _argo1 = 0;
1984 PyObject * _argo2 = 0;
1985 char *_kwnames[] = { "self","window1","window2","sashPosition", NULL };
1986
1987 self = self;
1988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxSplitterWindow_SplitHorizontally",_kwnames,&_argo0,&_argo1,&_argo2,&_arg3))
1989 return NULL;
1990 if (_argo0) {
1991 if (_argo0 == Py_None) { _arg0 = NULL; }
1992 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1993 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SplitHorizontally. Expected _wxSplitterWindow_p.");
1994 return NULL;
1995 }
1996 }
1997 if (_argo1) {
1998 if (_argo1 == Py_None) { _arg1 = NULL; }
1999 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2000 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_SplitHorizontally. Expected _wxWindow_p.");
2001 return NULL;
2002 }
2003 }
2004 if (_argo2) {
2005 if (_argo2 == Py_None) { _arg2 = NULL; }
2006 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
2007 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxSplitterWindow_SplitHorizontally. Expected _wxWindow_p.");
2008 return NULL;
2009 }
2010 }
2011 {
2012 PyThreadState* __tstate = wxPyBeginAllowThreads();
2013 _result = (bool )wxSplitterWindow_SplitHorizontally(_arg0,_arg1,_arg2,_arg3);
2014
2015 wxPyEndAllowThreads(__tstate);
2016 if (PyErr_Occurred()) return NULL;
2017 } _resultobj = Py_BuildValue("i",_result);
2018 return _resultobj;
2019 }
2020
2021 #define wxSplitterWindow_Unsplit(_swigobj,_swigarg0) (_swigobj->Unsplit(_swigarg0))
2022 static PyObject *_wrap_wxSplitterWindow_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) {
2023 PyObject * _resultobj;
2024 bool _result;
2025 wxSplitterWindow * _arg0;
2026 wxWindow * _arg1 = (wxWindow *) NULL;
2027 PyObject * _argo0 = 0;
2028 PyObject * _argo1 = 0;
2029 char *_kwnames[] = { "self","toRemove", NULL };
2030
2031 self = self;
2032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxSplitterWindow_Unsplit",_kwnames,&_argo0,&_argo1))
2033 return NULL;
2034 if (_argo0) {
2035 if (_argo0 == Py_None) { _arg0 = NULL; }
2036 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2037 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_Unsplit. Expected _wxSplitterWindow_p.");
2038 return NULL;
2039 }
2040 }
2041 if (_argo1) {
2042 if (_argo1 == Py_None) { _arg1 = NULL; }
2043 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2044 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_Unsplit. Expected _wxWindow_p.");
2045 return NULL;
2046 }
2047 }
2048 {
2049 PyThreadState* __tstate = wxPyBeginAllowThreads();
2050 _result = (bool )wxSplitterWindow_Unsplit(_arg0,_arg1);
2051
2052 wxPyEndAllowThreads(__tstate);
2053 if (PyErr_Occurred()) return NULL;
2054 } _resultobj = Py_BuildValue("i",_result);
2055 return _resultobj;
2056 }
2057
2058 #define wxSplitterWindow_ReplaceWindow(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReplaceWindow(_swigarg0,_swigarg1))
2059 static PyObject *_wrap_wxSplitterWindow_ReplaceWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
2060 PyObject * _resultobj;
2061 bool _result;
2062 wxSplitterWindow * _arg0;
2063 wxWindow * _arg1;
2064 wxWindow * _arg2;
2065 PyObject * _argo0 = 0;
2066 PyObject * _argo1 = 0;
2067 PyObject * _argo2 = 0;
2068 char *_kwnames[] = { "self","winOld","winNew", NULL };
2069
2070 self = self;
2071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxSplitterWindow_ReplaceWindow",_kwnames,&_argo0,&_argo1,&_argo2))
2072 return NULL;
2073 if (_argo0) {
2074 if (_argo0 == Py_None) { _arg0 = NULL; }
2075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_ReplaceWindow. Expected _wxSplitterWindow_p.");
2077 return NULL;
2078 }
2079 }
2080 if (_argo1) {
2081 if (_argo1 == Py_None) { _arg1 = NULL; }
2082 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2083 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_ReplaceWindow. Expected _wxWindow_p.");
2084 return NULL;
2085 }
2086 }
2087 if (_argo2) {
2088 if (_argo2 == Py_None) { _arg2 = NULL; }
2089 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
2090 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxSplitterWindow_ReplaceWindow. Expected _wxWindow_p.");
2091 return NULL;
2092 }
2093 }
2094 {
2095 PyThreadState* __tstate = wxPyBeginAllowThreads();
2096 _result = (bool )wxSplitterWindow_ReplaceWindow(_arg0,_arg1,_arg2);
2097
2098 wxPyEndAllowThreads(__tstate);
2099 if (PyErr_Occurred()) return NULL;
2100 } _resultobj = Py_BuildValue("i",_result);
2101 return _resultobj;
2102 }
2103
2104 #define wxSplitterWindow_IsSplit(_swigobj) (_swigobj->IsSplit())
2105 static PyObject *_wrap_wxSplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) {
2106 PyObject * _resultobj;
2107 bool _result;
2108 wxSplitterWindow * _arg0;
2109 PyObject * _argo0 = 0;
2110 char *_kwnames[] = { "self", NULL };
2111
2112 self = self;
2113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_IsSplit",_kwnames,&_argo0))
2114 return NULL;
2115 if (_argo0) {
2116 if (_argo0 == Py_None) { _arg0 = NULL; }
2117 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2118 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_IsSplit. Expected _wxSplitterWindow_p.");
2119 return NULL;
2120 }
2121 }
2122 {
2123 PyThreadState* __tstate = wxPyBeginAllowThreads();
2124 _result = (bool )wxSplitterWindow_IsSplit(_arg0);
2125
2126 wxPyEndAllowThreads(__tstate);
2127 if (PyErr_Occurred()) return NULL;
2128 } _resultobj = Py_BuildValue("i",_result);
2129 return _resultobj;
2130 }
2131
2132 #define wxSplitterWindow_SetSashSize(_swigobj,_swigarg0) (_swigobj->SetSashSize(_swigarg0))
2133 static PyObject *_wrap_wxSplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2134 PyObject * _resultobj;
2135 wxSplitterWindow * _arg0;
2136 int _arg1;
2137 PyObject * _argo0 = 0;
2138 char *_kwnames[] = { "self","width", NULL };
2139
2140 self = self;
2141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetSashSize",_kwnames,&_argo0,&_arg1))
2142 return NULL;
2143 if (_argo0) {
2144 if (_argo0 == Py_None) { _arg0 = NULL; }
2145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetSashSize. Expected _wxSplitterWindow_p.");
2147 return NULL;
2148 }
2149 }
2150 {
2151 PyThreadState* __tstate = wxPyBeginAllowThreads();
2152 wxSplitterWindow_SetSashSize(_arg0,_arg1);
2153
2154 wxPyEndAllowThreads(__tstate);
2155 if (PyErr_Occurred()) return NULL;
2156 } Py_INCREF(Py_None);
2157 _resultobj = Py_None;
2158 return _resultobj;
2159 }
2160
2161 #define wxSplitterWindow_SetBorderSize(_swigobj,_swigarg0) (_swigobj->SetBorderSize(_swigarg0))
2162 static PyObject *_wrap_wxSplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2163 PyObject * _resultobj;
2164 wxSplitterWindow * _arg0;
2165 int _arg1;
2166 PyObject * _argo0 = 0;
2167 char *_kwnames[] = { "self","width", NULL };
2168
2169 self = self;
2170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetBorderSize",_kwnames,&_argo0,&_arg1))
2171 return NULL;
2172 if (_argo0) {
2173 if (_argo0 == Py_None) { _arg0 = NULL; }
2174 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2175 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetBorderSize. Expected _wxSplitterWindow_p.");
2176 return NULL;
2177 }
2178 }
2179 {
2180 PyThreadState* __tstate = wxPyBeginAllowThreads();
2181 wxSplitterWindow_SetBorderSize(_arg0,_arg1);
2182
2183 wxPyEndAllowThreads(__tstate);
2184 if (PyErr_Occurred()) return NULL;
2185 } Py_INCREF(Py_None);
2186 _resultobj = Py_None;
2187 return _resultobj;
2188 }
2189
2190 #define wxSplitterWindow_GetSashSize(_swigobj) (_swigobj->GetSashSize())
2191 static PyObject *_wrap_wxSplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2192 PyObject * _resultobj;
2193 int _result;
2194 wxSplitterWindow * _arg0;
2195 PyObject * _argo0 = 0;
2196 char *_kwnames[] = { "self", NULL };
2197
2198 self = self;
2199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetSashSize",_kwnames,&_argo0))
2200 return NULL;
2201 if (_argo0) {
2202 if (_argo0 == Py_None) { _arg0 = NULL; }
2203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetSashSize. Expected _wxSplitterWindow_p.");
2205 return NULL;
2206 }
2207 }
2208 {
2209 PyThreadState* __tstate = wxPyBeginAllowThreads();
2210 _result = (int )wxSplitterWindow_GetSashSize(_arg0);
2211
2212 wxPyEndAllowThreads(__tstate);
2213 if (PyErr_Occurred()) return NULL;
2214 } _resultobj = Py_BuildValue("i",_result);
2215 return _resultobj;
2216 }
2217
2218 #define wxSplitterWindow_GetBorderSize(_swigobj) (_swigobj->GetBorderSize())
2219 static PyObject *_wrap_wxSplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2220 PyObject * _resultobj;
2221 int _result;
2222 wxSplitterWindow * _arg0;
2223 PyObject * _argo0 = 0;
2224 char *_kwnames[] = { "self", NULL };
2225
2226 self = self;
2227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetBorderSize",_kwnames,&_argo0))
2228 return NULL;
2229 if (_argo0) {
2230 if (_argo0 == Py_None) { _arg0 = NULL; }
2231 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2232 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetBorderSize. Expected _wxSplitterWindow_p.");
2233 return NULL;
2234 }
2235 }
2236 {
2237 PyThreadState* __tstate = wxPyBeginAllowThreads();
2238 _result = (int )wxSplitterWindow_GetBorderSize(_arg0);
2239
2240 wxPyEndAllowThreads(__tstate);
2241 if (PyErr_Occurred()) return NULL;
2242 } _resultobj = Py_BuildValue("i",_result);
2243 return _resultobj;
2244 }
2245
2246 #define wxSplitterWindow_SetSashPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSashPosition(_swigarg0,_swigarg1))
2247 static PyObject *_wrap_wxSplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2248 PyObject * _resultobj;
2249 wxSplitterWindow * _arg0;
2250 int _arg1;
2251 bool _arg2 = (bool ) TRUE;
2252 PyObject * _argo0 = 0;
2253 int tempbool2 = (int) TRUE;
2254 char *_kwnames[] = { "self","position","redraw", NULL };
2255
2256 self = self;
2257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxSplitterWindow_SetSashPosition",_kwnames,&_argo0,&_arg1,&tempbool2))
2258 return NULL;
2259 if (_argo0) {
2260 if (_argo0 == Py_None) { _arg0 = NULL; }
2261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetSashPosition. Expected _wxSplitterWindow_p.");
2263 return NULL;
2264 }
2265 }
2266 _arg2 = (bool ) tempbool2;
2267 {
2268 PyThreadState* __tstate = wxPyBeginAllowThreads();
2269 wxSplitterWindow_SetSashPosition(_arg0,_arg1,_arg2);
2270
2271 wxPyEndAllowThreads(__tstate);
2272 if (PyErr_Occurred()) return NULL;
2273 } Py_INCREF(Py_None);
2274 _resultobj = Py_None;
2275 return _resultobj;
2276 }
2277
2278 #define wxSplitterWindow_GetSashPosition(_swigobj) (_swigobj->GetSashPosition())
2279 static PyObject *_wrap_wxSplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2280 PyObject * _resultobj;
2281 int _result;
2282 wxSplitterWindow * _arg0;
2283 PyObject * _argo0 = 0;
2284 char *_kwnames[] = { "self", NULL };
2285
2286 self = self;
2287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetSashPosition",_kwnames,&_argo0))
2288 return NULL;
2289 if (_argo0) {
2290 if (_argo0 == Py_None) { _arg0 = NULL; }
2291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetSashPosition. Expected _wxSplitterWindow_p.");
2293 return NULL;
2294 }
2295 }
2296 {
2297 PyThreadState* __tstate = wxPyBeginAllowThreads();
2298 _result = (int )wxSplitterWindow_GetSashPosition(_arg0);
2299
2300 wxPyEndAllowThreads(__tstate);
2301 if (PyErr_Occurred()) return NULL;
2302 } _resultobj = Py_BuildValue("i",_result);
2303 return _resultobj;
2304 }
2305
2306 #define wxSplitterWindow_SetMinimumPaneSize(_swigobj,_swigarg0) (_swigobj->SetMinimumPaneSize(_swigarg0))
2307 static PyObject *_wrap_wxSplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2308 PyObject * _resultobj;
2309 wxSplitterWindow * _arg0;
2310 int _arg1;
2311 PyObject * _argo0 = 0;
2312 char *_kwnames[] = { "self","min", NULL };
2313
2314 self = self;
2315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetMinimumPaneSize",_kwnames,&_argo0,&_arg1))
2316 return NULL;
2317 if (_argo0) {
2318 if (_argo0 == Py_None) { _arg0 = NULL; }
2319 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2320 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetMinimumPaneSize. Expected _wxSplitterWindow_p.");
2321 return NULL;
2322 }
2323 }
2324 {
2325 PyThreadState* __tstate = wxPyBeginAllowThreads();
2326 wxSplitterWindow_SetMinimumPaneSize(_arg0,_arg1);
2327
2328 wxPyEndAllowThreads(__tstate);
2329 if (PyErr_Occurred()) return NULL;
2330 } Py_INCREF(Py_None);
2331 _resultobj = Py_None;
2332 return _resultobj;
2333 }
2334
2335 #define wxSplitterWindow_GetMinimumPaneSize(_swigobj) (_swigobj->GetMinimumPaneSize())
2336 static PyObject *_wrap_wxSplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2337 PyObject * _resultobj;
2338 int _result;
2339 wxSplitterWindow * _arg0;
2340 PyObject * _argo0 = 0;
2341 char *_kwnames[] = { "self", NULL };
2342
2343 self = self;
2344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetMinimumPaneSize",_kwnames,&_argo0))
2345 return NULL;
2346 if (_argo0) {
2347 if (_argo0 == Py_None) { _arg0 = NULL; }
2348 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2349 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetMinimumPaneSize. Expected _wxSplitterWindow_p.");
2350 return NULL;
2351 }
2352 }
2353 {
2354 PyThreadState* __tstate = wxPyBeginAllowThreads();
2355 _result = (int )wxSplitterWindow_GetMinimumPaneSize(_arg0);
2356
2357 wxPyEndAllowThreads(__tstate);
2358 if (PyErr_Occurred()) return NULL;
2359 } _resultobj = Py_BuildValue("i",_result);
2360 return _resultobj;
2361 }
2362
2363 #define wxSplitterWindow_SizeWindows(_swigobj) (_swigobj->SizeWindows())
2364 static PyObject *_wrap_wxSplitterWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2365 PyObject * _resultobj;
2366 wxSplitterWindow * _arg0;
2367 PyObject * _argo0 = 0;
2368 char *_kwnames[] = { "self", NULL };
2369
2370 self = self;
2371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_SizeWindows",_kwnames,&_argo0))
2372 return NULL;
2373 if (_argo0) {
2374 if (_argo0 == Py_None) { _arg0 = NULL; }
2375 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2376 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SizeWindows. Expected _wxSplitterWindow_p.");
2377 return NULL;
2378 }
2379 }
2380 {
2381 PyThreadState* __tstate = wxPyBeginAllowThreads();
2382 wxSplitterWindow_SizeWindows(_arg0);
2383
2384 wxPyEndAllowThreads(__tstate);
2385 if (PyErr_Occurred()) return NULL;
2386 } Py_INCREF(Py_None);
2387 _resultobj = Py_None;
2388 return _resultobj;
2389 }
2390
2391 #define wxSplitterWindow_SetNeedUpdating(_swigobj,_swigarg0) (_swigobj->SetNeedUpdating(_swigarg0))
2392 static PyObject *_wrap_wxSplitterWindow_SetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) {
2393 PyObject * _resultobj;
2394 wxSplitterWindow * _arg0;
2395 bool _arg1;
2396 PyObject * _argo0 = 0;
2397 int tempbool1;
2398 char *_kwnames[] = { "self","needUpdating", NULL };
2399
2400 self = self;
2401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetNeedUpdating",_kwnames,&_argo0,&tempbool1))
2402 return NULL;
2403 if (_argo0) {
2404 if (_argo0 == Py_None) { _arg0 = NULL; }
2405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetNeedUpdating. Expected _wxSplitterWindow_p.");
2407 return NULL;
2408 }
2409 }
2410 _arg1 = (bool ) tempbool1;
2411 {
2412 PyThreadState* __tstate = wxPyBeginAllowThreads();
2413 wxSplitterWindow_SetNeedUpdating(_arg0,_arg1);
2414
2415 wxPyEndAllowThreads(__tstate);
2416 if (PyErr_Occurred()) return NULL;
2417 } Py_INCREF(Py_None);
2418 _resultobj = Py_None;
2419 return _resultobj;
2420 }
2421
2422 #define wxSplitterWindow_GetNeedUpdating(_swigobj) (_swigobj->GetNeedUpdating())
2423 static PyObject *_wrap_wxSplitterWindow_GetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) {
2424 PyObject * _resultobj;
2425 bool _result;
2426 wxSplitterWindow * _arg0;
2427 PyObject * _argo0 = 0;
2428 char *_kwnames[] = { "self", NULL };
2429
2430 self = self;
2431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetNeedUpdating",_kwnames,&_argo0))
2432 return NULL;
2433 if (_argo0) {
2434 if (_argo0 == Py_None) { _arg0 = NULL; }
2435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetNeedUpdating. Expected _wxSplitterWindow_p.");
2437 return NULL;
2438 }
2439 }
2440 {
2441 PyThreadState* __tstate = wxPyBeginAllowThreads();
2442 _result = (bool )wxSplitterWindow_GetNeedUpdating(_arg0);
2443
2444 wxPyEndAllowThreads(__tstate);
2445 if (PyErr_Occurred()) return NULL;
2446 } _resultobj = Py_BuildValue("i",_result);
2447 return _resultobj;
2448 }
2449
2450 static void *SwigwxPyWindowTowxWindow(void *ptr) {
2451 wxPyWindow *src;
2452 wxWindow *dest;
2453 src = (wxPyWindow *) ptr;
2454 dest = (wxWindow *) src;
2455 return (void *) dest;
2456 }
2457
2458 static void *SwigwxPyWindowTowxEvtHandler(void *ptr) {
2459 wxPyWindow *src;
2460 wxEvtHandler *dest;
2461 src = (wxPyWindow *) ptr;
2462 dest = (wxEvtHandler *) src;
2463 return (void *) dest;
2464 }
2465
2466 static void *SwigwxPyWindowTowxObject(void *ptr) {
2467 wxPyWindow *src;
2468 wxObject *dest;
2469 src = (wxPyWindow *) ptr;
2470 dest = (wxObject *) src;
2471 return (void *) dest;
2472 }
2473
2474 #define new_wxPyWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPyWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2475 static PyObject *_wrap_new_wxPyWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
2476 PyObject * _resultobj;
2477 wxPyWindow * _result;
2478 wxWindow * _arg0;
2479 wxWindowID _arg1;
2480 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
2481 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
2482 long _arg4 = (long ) 0;
2483 wxString * _arg5 = (wxString *) &wxPyPanelNameStr;
2484 PyObject * _argo0 = 0;
2485 wxPoint temp;
2486 PyObject * _obj2 = 0;
2487 wxSize temp0;
2488 PyObject * _obj3 = 0;
2489 PyObject * _obj5 = 0;
2490 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
2491 char _ptemp[128];
2492
2493 self = self;
2494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPyWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5))
2495 return NULL;
2496 if (_argo0) {
2497 if (_argo0 == Py_None) { _arg0 = NULL; }
2498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyWindow. Expected _wxWindow_p.");
2500 return NULL;
2501 }
2502 }
2503 if (_obj2)
2504 {
2505 _arg2 = &temp;
2506 if (! wxPoint_helper(_obj2, &_arg2))
2507 return NULL;
2508 }
2509 if (_obj3)
2510 {
2511 _arg3 = &temp0;
2512 if (! wxSize_helper(_obj3, &_arg3))
2513 return NULL;
2514 }
2515 if (_obj5)
2516 {
2517 _arg5 = wxString_in_helper(_obj5);
2518 if (_arg5 == NULL)
2519 return NULL;
2520 }
2521 {
2522 PyThreadState* __tstate = wxPyBeginAllowThreads();
2523 _result = (wxPyWindow *)new_wxPyWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5);
2524
2525 wxPyEndAllowThreads(__tstate);
2526 if (PyErr_Occurred()) return NULL;
2527 } if (_result) {
2528 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyWindow_p");
2529 _resultobj = Py_BuildValue("s",_ptemp);
2530 } else {
2531 Py_INCREF(Py_None);
2532 _resultobj = Py_None;
2533 }
2534 {
2535 if (_obj5)
2536 delete _arg5;
2537 }
2538 return _resultobj;
2539 }
2540
2541 #define wxPyWindow__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2542 static PyObject *_wrap_wxPyWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2543 PyObject * _resultobj;
2544 wxPyWindow * _arg0;
2545 PyObject * _arg1;
2546 PyObject * _arg2;
2547 PyObject * _argo0 = 0;
2548 PyObject * _obj1 = 0;
2549 PyObject * _obj2 = 0;
2550 char *_kwnames[] = { "self","self","_class", NULL };
2551
2552 self = self;
2553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyWindow__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
2554 return NULL;
2555 if (_argo0) {
2556 if (_argo0 == Py_None) { _arg0 = NULL; }
2557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
2558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow__setCallbackInfo. Expected _wxPyWindow_p.");
2559 return NULL;
2560 }
2561 }
2562 {
2563 _arg1 = _obj1;
2564 }
2565 {
2566 _arg2 = _obj2;
2567 }
2568 {
2569 PyThreadState* __tstate = wxPyBeginAllowThreads();
2570 wxPyWindow__setCallbackInfo(_arg0,_arg1,_arg2);
2571
2572 wxPyEndAllowThreads(__tstate);
2573 if (PyErr_Occurred()) return NULL;
2574 } Py_INCREF(Py_None);
2575 _resultobj = Py_None;
2576 return _resultobj;
2577 }
2578
2579 #define wxPyWindow_base_DoMoveWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_DoMoveWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2580 static PyObject *_wrap_wxPyWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
2581 PyObject * _resultobj;
2582 wxPyWindow * _arg0;
2583 int _arg1;
2584 int _arg2;
2585 int _arg3;
2586 int _arg4;
2587 PyObject * _argo0 = 0;
2588 char *_kwnames[] = { "self","x","y","width","height", NULL };
2589
2590 self = self;
2591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxPyWindow_base_DoMoveWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
2592 return NULL;
2593 if (_argo0) {
2594 if (_argo0 == Py_None) { _arg0 = NULL; }
2595 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
2596 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoMoveWindow. Expected _wxPyWindow_p.");
2597 return NULL;
2598 }
2599 }
2600 {
2601 PyThreadState* __tstate = wxPyBeginAllowThreads();
2602 wxPyWindow_base_DoMoveWindow(_arg0,_arg1,_arg2,_arg3,_arg4);
2603
2604 wxPyEndAllowThreads(__tstate);
2605 if (PyErr_Occurred()) return NULL;
2606 } Py_INCREF(Py_None);
2607 _resultobj = Py_None;
2608 return _resultobj;
2609 }
2610
2611 #define wxPyWindow_base_DoSetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_DoSetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
2612 static PyObject *_wrap_wxPyWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2613 PyObject * _resultobj;
2614 wxPyWindow * _arg0;
2615 int _arg1;
2616 int _arg2;
2617 int _arg3;
2618 int _arg4;
2619 int _arg5 = (int ) wxSIZE_AUTO;
2620 PyObject * _argo0 = 0;
2621 char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL };
2622
2623 self = self;
2624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxPyWindow_base_DoSetSize",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
2625 return NULL;
2626 if (_argo0) {
2627 if (_argo0 == Py_None) { _arg0 = NULL; }
2628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
2629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoSetSize. Expected _wxPyWindow_p.");
2630 return NULL;
2631 }
2632 }
2633 {
2634 PyThreadState* __tstate = wxPyBeginAllowThreads();
2635 wxPyWindow_base_DoSetSize(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
2636
2637 wxPyEndAllowThreads(__tstate);
2638 if (PyErr_Occurred()) return NULL;
2639 } Py_INCREF(Py_None);
2640 _resultobj = Py_None;
2641 return _resultobj;
2642 }
2643
2644 #define wxPyWindow_base_DoSetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoSetClientSize(_swigarg0,_swigarg1))
2645 static PyObject *_wrap_wxPyWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2646 PyObject * _resultobj;
2647 wxPyWindow * _arg0;
2648 int _arg1;
2649 int _arg2;
2650 PyObject * _argo0 = 0;
2651 char *_kwnames[] = { "self","width","height", NULL };
2652
2653 self = self;
2654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyWindow_base_DoSetClientSize",_kwnames,&_argo0,&_arg1,&_arg2))
2655 return NULL;
2656 if (_argo0) {
2657 if (_argo0 == Py_None) { _arg0 = NULL; }
2658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
2659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoSetClientSize. Expected _wxPyWindow_p.");
2660 return NULL;
2661 }
2662 }
2663 {
2664 PyThreadState* __tstate = wxPyBeginAllowThreads();
2665 wxPyWindow_base_DoSetClientSize(_arg0,_arg1,_arg2);
2666
2667 wxPyEndAllowThreads(__tstate);
2668 if (PyErr_Occurred()) return NULL;
2669 } Py_INCREF(Py_None);
2670 _resultobj = Py_None;
2671 return _resultobj;
2672 }
2673
2674 #define wxPyWindow_base_DoSetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoSetVirtualSize(_swigarg0,_swigarg1))
2675 static PyObject *_wrap_wxPyWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2676 PyObject * _resultobj;
2677 wxPyWindow * _arg0;
2678 int _arg1;
2679 int _arg2;
2680 PyObject * _argo0 = 0;
2681 char *_kwnames[] = { "self","x","y", NULL };
2682
2683 self = self;
2684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyWindow_base_DoSetVirtualSize",_kwnames,&_argo0,&_arg1,&_arg2))
2685 return NULL;
2686 if (_argo0) {
2687 if (_argo0 == Py_None) { _arg0 = NULL; }
2688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
2689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoSetVirtualSize. Expected _wxPyWindow_p.");
2690 return NULL;
2691 }
2692 }
2693 {
2694 PyThreadState* __tstate = wxPyBeginAllowThreads();
2695 wxPyWindow_base_DoSetVirtualSize(_arg0,_arg1,_arg2);
2696
2697 wxPyEndAllowThreads(__tstate);
2698 if (PyErr_Occurred()) return NULL;
2699 } Py_INCREF(Py_None);
2700 _resultobj = Py_None;
2701 return _resultobj;
2702 }
2703
2704 #define wxPyWindow_base_DoGetSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetSize(_swigarg0,_swigarg1))
2705 static PyObject *_wrap_wxPyWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2706 PyObject * _resultobj;
2707 wxPyWindow * _arg0;
2708 int * _arg1;
2709 int temp;
2710 int * _arg2;
2711 int temp0;
2712 PyObject * _argo0 = 0;
2713 char *_kwnames[] = { "self", NULL };
2714
2715 self = self;
2716 {
2717 _arg1 = &temp;
2718 }
2719 {
2720 _arg2 = &temp0;
2721 }
2722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_DoGetSize",_kwnames,&_argo0))
2723 return NULL;
2724 if (_argo0) {
2725 if (_argo0 == Py_None) { _arg0 = NULL; }
2726 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
2727 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoGetSize. Expected _wxPyWindow_p.");
2728 return NULL;
2729 }
2730 }
2731 {
2732 PyThreadState* __tstate = wxPyBeginAllowThreads();
2733 wxPyWindow_base_DoGetSize(_arg0,_arg1,_arg2);
2734
2735 wxPyEndAllowThreads(__tstate);
2736 if (PyErr_Occurred()) return NULL;
2737 } Py_INCREF(Py_None);
2738 _resultobj = Py_None;
2739 {
2740 PyObject *o;
2741 o = PyInt_FromLong((long) (*_arg1));
2742 _resultobj = t_output_helper(_resultobj, o);
2743 }
2744 {
2745 PyObject *o;
2746 o = PyInt_FromLong((long) (*_arg2));
2747 _resultobj = t_output_helper(_resultobj, o);
2748 }
2749 return _resultobj;
2750 }
2751
2752 #define wxPyWindow_base_DoGetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetClientSize(_swigarg0,_swigarg1))
2753 static PyObject *_wrap_wxPyWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2754 PyObject * _resultobj;
2755 wxPyWindow * _arg0;
2756 int * _arg1;
2757 int temp;
2758 int * _arg2;
2759 int temp0;
2760 PyObject * _argo0 = 0;
2761 char *_kwnames[] = { "self", NULL };
2762
2763 self = self;
2764 {
2765 _arg1 = &temp;
2766 }
2767 {
2768 _arg2 = &temp0;
2769 }
2770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_DoGetClientSize",_kwnames,&_argo0))
2771 return NULL;
2772 if (_argo0) {
2773 if (_argo0 == Py_None) { _arg0 = NULL; }
2774 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
2775 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoGetClientSize. Expected _wxPyWindow_p.");
2776 return NULL;
2777 }
2778 }
2779 {
2780 PyThreadState* __tstate = wxPyBeginAllowThreads();
2781 wxPyWindow_base_DoGetClientSize(_arg0,_arg1,_arg2);
2782
2783 wxPyEndAllowThreads(__tstate);
2784 if (PyErr_Occurred()) return NULL;
2785 } Py_INCREF(Py_None);
2786 _resultobj = Py_None;
2787 {
2788 PyObject *o;
2789 o = PyInt_FromLong((long) (*_arg1));
2790 _resultobj = t_output_helper(_resultobj, o);
2791 }
2792 {
2793 PyObject *o;
2794 o = PyInt_FromLong((long) (*_arg2));
2795 _resultobj = t_output_helper(_resultobj, o);
2796 }
2797 return _resultobj;
2798 }
2799
2800 #define wxPyWindow_base_DoGetPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetPosition(_swigarg0,_swigarg1))
2801 static PyObject *_wrap_wxPyWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2802 PyObject * _resultobj;
2803 wxPyWindow * _arg0;
2804 int * _arg1;
2805 int temp;
2806 int * _arg2;
2807 int temp0;
2808 PyObject * _argo0 = 0;
2809 char *_kwnames[] = { "self", NULL };
2810
2811 self = self;
2812 {
2813 _arg1 = &temp;
2814 }
2815 {
2816 _arg2 = &temp0;
2817 }
2818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_DoGetPosition",_kwnames,&_argo0))
2819 return NULL;
2820 if (_argo0) {
2821 if (_argo0 == Py_None) { _arg0 = NULL; }
2822 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
2823 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoGetPosition. Expected _wxPyWindow_p.");
2824 return NULL;
2825 }
2826 }
2827 {
2828 PyThreadState* __tstate = wxPyBeginAllowThreads();
2829 wxPyWindow_base_DoGetPosition(_arg0,_arg1,_arg2);
2830
2831 wxPyEndAllowThreads(__tstate);
2832 if (PyErr_Occurred()) return NULL;
2833 } Py_INCREF(Py_None);
2834 _resultobj = Py_None;
2835 {
2836 PyObject *o;
2837 o = PyInt_FromLong((long) (*_arg1));
2838 _resultobj = t_output_helper(_resultobj, o);
2839 }
2840 {
2841 PyObject *o;
2842 o = PyInt_FromLong((long) (*_arg2));
2843 _resultobj = t_output_helper(_resultobj, o);
2844 }
2845 return _resultobj;
2846 }
2847
2848 #define wxPyWindow_base_DoGetVirtualSize(_swigobj) (_swigobj->base_DoGetVirtualSize())
2849 static PyObject *_wrap_wxPyWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2850 PyObject * _resultobj;
2851 wxSize * _result;
2852 wxPyWindow * _arg0;
2853 PyObject * _argo0 = 0;
2854 char *_kwnames[] = { "self", NULL };
2855 char _ptemp[128];
2856
2857 self = self;
2858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_DoGetVirtualSize",_kwnames,&_argo0))
2859 return NULL;
2860 if (_argo0) {
2861 if (_argo0 == Py_None) { _arg0 = NULL; }
2862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
2863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoGetVirtualSize. Expected _wxPyWindow_p.");
2864 return NULL;
2865 }
2866 }
2867 {
2868 PyThreadState* __tstate = wxPyBeginAllowThreads();
2869 _result = new wxSize (wxPyWindow_base_DoGetVirtualSize(_arg0));
2870
2871 wxPyEndAllowThreads(__tstate);
2872 if (PyErr_Occurred()) return NULL;
2873 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2874 _resultobj = Py_BuildValue("s",_ptemp);
2875 return _resultobj;
2876 }
2877
2878 #define wxPyWindow_base_DoGetBestSize(_swigobj) (_swigobj->base_DoGetBestSize())
2879 static PyObject *_wrap_wxPyWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2880 PyObject * _resultobj;
2881 wxSize * _result;
2882 wxPyWindow * _arg0;
2883 PyObject * _argo0 = 0;
2884 char *_kwnames[] = { "self", NULL };
2885 char _ptemp[128];
2886
2887 self = self;
2888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_DoGetBestSize",_kwnames,&_argo0))
2889 return NULL;
2890 if (_argo0) {
2891 if (_argo0 == Py_None) { _arg0 = NULL; }
2892 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
2893 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_DoGetBestSize. Expected _wxPyWindow_p.");
2894 return NULL;
2895 }
2896 }
2897 {
2898 PyThreadState* __tstate = wxPyBeginAllowThreads();
2899 _result = new wxSize (wxPyWindow_base_DoGetBestSize(_arg0));
2900
2901 wxPyEndAllowThreads(__tstate);
2902 if (PyErr_Occurred()) return NULL;
2903 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2904 _resultobj = Py_BuildValue("s",_ptemp);
2905 return _resultobj;
2906 }
2907
2908 #define wxPyWindow_base_InitDialog(_swigobj) (_swigobj->base_InitDialog())
2909 static PyObject *_wrap_wxPyWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
2910 PyObject * _resultobj;
2911 wxPyWindow * _arg0;
2912 PyObject * _argo0 = 0;
2913 char *_kwnames[] = { "self", NULL };
2914
2915 self = self;
2916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_InitDialog",_kwnames,&_argo0))
2917 return NULL;
2918 if (_argo0) {
2919 if (_argo0 == Py_None) { _arg0 = NULL; }
2920 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
2921 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_InitDialog. Expected _wxPyWindow_p.");
2922 return NULL;
2923 }
2924 }
2925 {
2926 PyThreadState* __tstate = wxPyBeginAllowThreads();
2927 wxPyWindow_base_InitDialog(_arg0);
2928
2929 wxPyEndAllowThreads(__tstate);
2930 if (PyErr_Occurred()) return NULL;
2931 } Py_INCREF(Py_None);
2932 _resultobj = Py_None;
2933 return _resultobj;
2934 }
2935
2936 #define wxPyWindow_base_TransferDataToWindow(_swigobj) (_swigobj->base_TransferDataToWindow())
2937 static PyObject *_wrap_wxPyWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
2938 PyObject * _resultobj;
2939 bool _result;
2940 wxPyWindow * _arg0;
2941 PyObject * _argo0 = 0;
2942 char *_kwnames[] = { "self", NULL };
2943
2944 self = self;
2945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_TransferDataToWindow",_kwnames,&_argo0))
2946 return NULL;
2947 if (_argo0) {
2948 if (_argo0 == Py_None) { _arg0 = NULL; }
2949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
2950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_TransferDataToWindow. Expected _wxPyWindow_p.");
2951 return NULL;
2952 }
2953 }
2954 {
2955 PyThreadState* __tstate = wxPyBeginAllowThreads();
2956 _result = (bool )wxPyWindow_base_TransferDataToWindow(_arg0);
2957
2958 wxPyEndAllowThreads(__tstate);
2959 if (PyErr_Occurred()) return NULL;
2960 } _resultobj = Py_BuildValue("i",_result);
2961 return _resultobj;
2962 }
2963
2964 #define wxPyWindow_base_TransferDataFromWindow(_swigobj) (_swigobj->base_TransferDataFromWindow())
2965 static PyObject *_wrap_wxPyWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
2966 PyObject * _resultobj;
2967 bool _result;
2968 wxPyWindow * _arg0;
2969 PyObject * _argo0 = 0;
2970 char *_kwnames[] = { "self", NULL };
2971
2972 self = self;
2973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_TransferDataFromWindow",_kwnames,&_argo0))
2974 return NULL;
2975 if (_argo0) {
2976 if (_argo0 == Py_None) { _arg0 = NULL; }
2977 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
2978 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_TransferDataFromWindow. Expected _wxPyWindow_p.");
2979 return NULL;
2980 }
2981 }
2982 {
2983 PyThreadState* __tstate = wxPyBeginAllowThreads();
2984 _result = (bool )wxPyWindow_base_TransferDataFromWindow(_arg0);
2985
2986 wxPyEndAllowThreads(__tstate);
2987 if (PyErr_Occurred()) return NULL;
2988 } _resultobj = Py_BuildValue("i",_result);
2989 return _resultobj;
2990 }
2991
2992 #define wxPyWindow_base_Validate(_swigobj) (_swigobj->base_Validate())
2993 static PyObject *_wrap_wxPyWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
2994 PyObject * _resultobj;
2995 bool _result;
2996 wxPyWindow * _arg0;
2997 PyObject * _argo0 = 0;
2998 char *_kwnames[] = { "self", NULL };
2999
3000 self = self;
3001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_Validate",_kwnames,&_argo0))
3002 return NULL;
3003 if (_argo0) {
3004 if (_argo0 == Py_None) { _arg0 = NULL; }
3005 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
3006 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_Validate. Expected _wxPyWindow_p.");
3007 return NULL;
3008 }
3009 }
3010 {
3011 PyThreadState* __tstate = wxPyBeginAllowThreads();
3012 _result = (bool )wxPyWindow_base_Validate(_arg0);
3013
3014 wxPyEndAllowThreads(__tstate);
3015 if (PyErr_Occurred()) return NULL;
3016 } _resultobj = Py_BuildValue("i",_result);
3017 return _resultobj;
3018 }
3019
3020 #define wxPyWindow_base_AcceptsFocus(_swigobj) (_swigobj->base_AcceptsFocus())
3021 static PyObject *_wrap_wxPyWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
3022 PyObject * _resultobj;
3023 bool _result;
3024 wxPyWindow * _arg0;
3025 PyObject * _argo0 = 0;
3026 char *_kwnames[] = { "self", NULL };
3027
3028 self = self;
3029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_AcceptsFocus",_kwnames,&_argo0))
3030 return NULL;
3031 if (_argo0) {
3032 if (_argo0 == Py_None) { _arg0 = NULL; }
3033 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
3034 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_AcceptsFocus. Expected _wxPyWindow_p.");
3035 return NULL;
3036 }
3037 }
3038 {
3039 PyThreadState* __tstate = wxPyBeginAllowThreads();
3040 _result = (bool )wxPyWindow_base_AcceptsFocus(_arg0);
3041
3042 wxPyEndAllowThreads(__tstate);
3043 if (PyErr_Occurred()) return NULL;
3044 } _resultobj = Py_BuildValue("i",_result);
3045 return _resultobj;
3046 }
3047
3048 #define wxPyWindow_base_AcceptsFocusFromKeyboard(_swigobj) (_swigobj->base_AcceptsFocusFromKeyboard())
3049 static PyObject *_wrap_wxPyWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
3050 PyObject * _resultobj;
3051 bool _result;
3052 wxPyWindow * _arg0;
3053 PyObject * _argo0 = 0;
3054 char *_kwnames[] = { "self", NULL };
3055
3056 self = self;
3057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_AcceptsFocusFromKeyboard",_kwnames,&_argo0))
3058 return NULL;
3059 if (_argo0) {
3060 if (_argo0 == Py_None) { _arg0 = NULL; }
3061 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
3062 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_AcceptsFocusFromKeyboard. Expected _wxPyWindow_p.");
3063 return NULL;
3064 }
3065 }
3066 {
3067 PyThreadState* __tstate = wxPyBeginAllowThreads();
3068 _result = (bool )wxPyWindow_base_AcceptsFocusFromKeyboard(_arg0);
3069
3070 wxPyEndAllowThreads(__tstate);
3071 if (PyErr_Occurred()) return NULL;
3072 } _resultobj = Py_BuildValue("i",_result);
3073 return _resultobj;
3074 }
3075
3076 #define wxPyWindow_base_GetMaxSize(_swigobj) (_swigobj->base_GetMaxSize())
3077 static PyObject *_wrap_wxPyWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3078 PyObject * _resultobj;
3079 wxSize * _result;
3080 wxPyWindow * _arg0;
3081 PyObject * _argo0 = 0;
3082 char *_kwnames[] = { "self", NULL };
3083 char _ptemp[128];
3084
3085 self = self;
3086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyWindow_base_GetMaxSize",_kwnames,&_argo0))
3087 return NULL;
3088 if (_argo0) {
3089 if (_argo0 == Py_None) { _arg0 = NULL; }
3090 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
3091 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_GetMaxSize. Expected _wxPyWindow_p.");
3092 return NULL;
3093 }
3094 }
3095 {
3096 PyThreadState* __tstate = wxPyBeginAllowThreads();
3097 _result = new wxSize (wxPyWindow_base_GetMaxSize(_arg0));
3098
3099 wxPyEndAllowThreads(__tstate);
3100 if (PyErr_Occurred()) return NULL;
3101 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
3102 _resultobj = Py_BuildValue("s",_ptemp);
3103 return _resultobj;
3104 }
3105
3106 #define wxPyWindow_base_AddChild(_swigobj,_swigarg0) (_swigobj->base_AddChild(_swigarg0))
3107 static PyObject *_wrap_wxPyWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
3108 PyObject * _resultobj;
3109 wxPyWindow * _arg0;
3110 wxWindow * _arg1;
3111 PyObject * _argo0 = 0;
3112 PyObject * _argo1 = 0;
3113 char *_kwnames[] = { "self","child", NULL };
3114
3115 self = self;
3116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyWindow_base_AddChild",_kwnames,&_argo0,&_argo1))
3117 return NULL;
3118 if (_argo0) {
3119 if (_argo0 == Py_None) { _arg0 = NULL; }
3120 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
3121 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_AddChild. Expected _wxPyWindow_p.");
3122 return NULL;
3123 }
3124 }
3125 if (_argo1) {
3126 if (_argo1 == Py_None) { _arg1 = NULL; }
3127 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3128 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyWindow_base_AddChild. Expected _wxWindow_p.");
3129 return NULL;
3130 }
3131 }
3132 {
3133 PyThreadState* __tstate = wxPyBeginAllowThreads();
3134 wxPyWindow_base_AddChild(_arg0,_arg1);
3135
3136 wxPyEndAllowThreads(__tstate);
3137 if (PyErr_Occurred()) return NULL;
3138 } Py_INCREF(Py_None);
3139 _resultobj = Py_None;
3140 return _resultobj;
3141 }
3142
3143 #define wxPyWindow_base_RemoveChild(_swigobj,_swigarg0) (_swigobj->base_RemoveChild(_swigarg0))
3144 static PyObject *_wrap_wxPyWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
3145 PyObject * _resultobj;
3146 wxPyWindow * _arg0;
3147 wxWindow * _arg1;
3148 PyObject * _argo0 = 0;
3149 PyObject * _argo1 = 0;
3150 char *_kwnames[] = { "self","child", NULL };
3151
3152 self = self;
3153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyWindow_base_RemoveChild",_kwnames,&_argo0,&_argo1))
3154 return NULL;
3155 if (_argo0) {
3156 if (_argo0 == Py_None) { _arg0 = NULL; }
3157 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
3158 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_RemoveChild. Expected _wxPyWindow_p.");
3159 return NULL;
3160 }
3161 }
3162 if (_argo1) {
3163 if (_argo1 == Py_None) { _arg1 = NULL; }
3164 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3165 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyWindow_base_RemoveChild. Expected _wxWindow_p.");
3166 return NULL;
3167 }
3168 }
3169 {
3170 PyThreadState* __tstate = wxPyBeginAllowThreads();
3171 wxPyWindow_base_RemoveChild(_arg0,_arg1);
3172
3173 wxPyEndAllowThreads(__tstate);
3174 if (PyErr_Occurred()) return NULL;
3175 } Py_INCREF(Py_None);
3176 _resultobj = Py_None;
3177 return _resultobj;
3178 }
3179
3180 static void *SwigwxPyControlTowxControl(void *ptr) {
3181 wxPyControl *src;
3182 wxControl *dest;
3183 src = (wxPyControl *) ptr;
3184 dest = (wxControl *) src;
3185 return (void *) dest;
3186 }
3187
3188 static void *SwigwxPyControlTowxWindow(void *ptr) {
3189 wxPyControl *src;
3190 wxWindow *dest;
3191 src = (wxPyControl *) ptr;
3192 dest = (wxWindow *) src;
3193 return (void *) dest;
3194 }
3195
3196 static void *SwigwxPyControlTowxEvtHandler(void *ptr) {
3197 wxPyControl *src;
3198 wxEvtHandler *dest;
3199 src = (wxPyControl *) ptr;
3200 dest = (wxEvtHandler *) src;
3201 return (void *) dest;
3202 }
3203
3204 static void *SwigwxPyControlTowxObject(void *ptr) {
3205 wxPyControl *src;
3206 wxObject *dest;
3207 src = (wxPyControl *) ptr;
3208 dest = (wxObject *) src;
3209 return (void *) dest;
3210 }
3211
3212 #define new_wxPyControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3213 static PyObject *_wrap_new_wxPyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
3214 PyObject * _resultobj;
3215 wxPyControl * _result;
3216 wxWindow * _arg0;
3217 wxWindowID _arg1;
3218 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
3219 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
3220 long _arg4 = (long ) 0;
3221 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
3222 wxString * _arg6 = (wxString *) &wxPyControlNameStr;
3223 PyObject * _argo0 = 0;
3224 wxPoint temp;
3225 PyObject * _obj2 = 0;
3226 wxSize temp0;
3227 PyObject * _obj3 = 0;
3228 PyObject * _argo5 = 0;
3229 PyObject * _obj6 = 0;
3230 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
3231 char _ptemp[128];
3232
3233 self = self;
3234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOO:new_wxPyControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6))
3235 return NULL;
3236 if (_argo0) {
3237 if (_argo0 == Py_None) { _arg0 = NULL; }
3238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyControl. Expected _wxWindow_p.");
3240 return NULL;
3241 }
3242 }
3243 if (_obj2)
3244 {
3245 _arg2 = &temp;
3246 if (! wxPoint_helper(_obj2, &_arg2))
3247 return NULL;
3248 }
3249 if (_obj3)
3250 {
3251 _arg3 = &temp0;
3252 if (! wxSize_helper(_obj3, &_arg3))
3253 return NULL;
3254 }
3255 if (_argo5) {
3256 if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
3257 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxPyControl. Expected _wxValidator_p.");
3258 return NULL;
3259 }
3260 }
3261 if (_obj6)
3262 {
3263 _arg6 = wxString_in_helper(_obj6);
3264 if (_arg6 == NULL)
3265 return NULL;
3266 }
3267 {
3268 PyThreadState* __tstate = wxPyBeginAllowThreads();
3269 _result = (wxPyControl *)new_wxPyControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6);
3270
3271 wxPyEndAllowThreads(__tstate);
3272 if (PyErr_Occurred()) return NULL;
3273 } if (_result) {
3274 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyControl_p");
3275 _resultobj = Py_BuildValue("s",_ptemp);
3276 } else {
3277 Py_INCREF(Py_None);
3278 _resultobj = Py_None;
3279 }
3280 {
3281 if (_obj6)
3282 delete _arg6;
3283 }
3284 return _resultobj;
3285 }
3286
3287 #define wxPyControl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3288 static PyObject *_wrap_wxPyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3289 PyObject * _resultobj;
3290 wxPyControl * _arg0;
3291 PyObject * _arg1;
3292 PyObject * _arg2;
3293 PyObject * _argo0 = 0;
3294 PyObject * _obj1 = 0;
3295 PyObject * _obj2 = 0;
3296 char *_kwnames[] = { "self","self","_class", NULL };
3297
3298 self = self;
3299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyControl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
3300 return NULL;
3301 if (_argo0) {
3302 if (_argo0 == Py_None) { _arg0 = NULL; }
3303 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3304 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl__setCallbackInfo. Expected _wxPyControl_p.");
3305 return NULL;
3306 }
3307 }
3308 {
3309 _arg1 = _obj1;
3310 }
3311 {
3312 _arg2 = _obj2;
3313 }
3314 {
3315 PyThreadState* __tstate = wxPyBeginAllowThreads();
3316 wxPyControl__setCallbackInfo(_arg0,_arg1,_arg2);
3317
3318 wxPyEndAllowThreads(__tstate);
3319 if (PyErr_Occurred()) return NULL;
3320 } Py_INCREF(Py_None);
3321 _resultobj = Py_None;
3322 return _resultobj;
3323 }
3324
3325 #define wxPyControl_base_DoMoveWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_DoMoveWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3326 static PyObject *_wrap_wxPyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3327 PyObject * _resultobj;
3328 wxPyControl * _arg0;
3329 int _arg1;
3330 int _arg2;
3331 int _arg3;
3332 int _arg4;
3333 PyObject * _argo0 = 0;
3334 char *_kwnames[] = { "self","x","y","width","height", NULL };
3335
3336 self = self;
3337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxPyControl_base_DoMoveWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
3338 return NULL;
3339 if (_argo0) {
3340 if (_argo0 == Py_None) { _arg0 = NULL; }
3341 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3342 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoMoveWindow. Expected _wxPyControl_p.");
3343 return NULL;
3344 }
3345 }
3346 {
3347 PyThreadState* __tstate = wxPyBeginAllowThreads();
3348 wxPyControl_base_DoMoveWindow(_arg0,_arg1,_arg2,_arg3,_arg4);
3349
3350 wxPyEndAllowThreads(__tstate);
3351 if (PyErr_Occurred()) return NULL;
3352 } Py_INCREF(Py_None);
3353 _resultobj = Py_None;
3354 return _resultobj;
3355 }
3356
3357 #define wxPyControl_base_DoSetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_DoSetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
3358 static PyObject *_wrap_wxPyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3359 PyObject * _resultobj;
3360 wxPyControl * _arg0;
3361 int _arg1;
3362 int _arg2;
3363 int _arg3;
3364 int _arg4;
3365 int _arg5 = (int ) wxSIZE_AUTO;
3366 PyObject * _argo0 = 0;
3367 char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL };
3368
3369 self = self;
3370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxPyControl_base_DoSetSize",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
3371 return NULL;
3372 if (_argo0) {
3373 if (_argo0 == Py_None) { _arg0 = NULL; }
3374 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3375 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoSetSize. Expected _wxPyControl_p.");
3376 return NULL;
3377 }
3378 }
3379 {
3380 PyThreadState* __tstate = wxPyBeginAllowThreads();
3381 wxPyControl_base_DoSetSize(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
3382
3383 wxPyEndAllowThreads(__tstate);
3384 if (PyErr_Occurred()) return NULL;
3385 } Py_INCREF(Py_None);
3386 _resultobj = Py_None;
3387 return _resultobj;
3388 }
3389
3390 #define wxPyControl_base_DoSetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoSetClientSize(_swigarg0,_swigarg1))
3391 static PyObject *_wrap_wxPyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3392 PyObject * _resultobj;
3393 wxPyControl * _arg0;
3394 int _arg1;
3395 int _arg2;
3396 PyObject * _argo0 = 0;
3397 char *_kwnames[] = { "self","width","height", NULL };
3398
3399 self = self;
3400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyControl_base_DoSetClientSize",_kwnames,&_argo0,&_arg1,&_arg2))
3401 return NULL;
3402 if (_argo0) {
3403 if (_argo0 == Py_None) { _arg0 = NULL; }
3404 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3405 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoSetClientSize. Expected _wxPyControl_p.");
3406 return NULL;
3407 }
3408 }
3409 {
3410 PyThreadState* __tstate = wxPyBeginAllowThreads();
3411 wxPyControl_base_DoSetClientSize(_arg0,_arg1,_arg2);
3412
3413 wxPyEndAllowThreads(__tstate);
3414 if (PyErr_Occurred()) return NULL;
3415 } Py_INCREF(Py_None);
3416 _resultobj = Py_None;
3417 return _resultobj;
3418 }
3419
3420 #define wxPyControl_base_DoSetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoSetVirtualSize(_swigarg0,_swigarg1))
3421 static PyObject *_wrap_wxPyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3422 PyObject * _resultobj;
3423 wxPyControl * _arg0;
3424 int _arg1;
3425 int _arg2;
3426 PyObject * _argo0 = 0;
3427 char *_kwnames[] = { "self","x","y", NULL };
3428
3429 self = self;
3430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyControl_base_DoSetVirtualSize",_kwnames,&_argo0,&_arg1,&_arg2))
3431 return NULL;
3432 if (_argo0) {
3433 if (_argo0 == Py_None) { _arg0 = NULL; }
3434 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3435 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoSetVirtualSize. Expected _wxPyControl_p.");
3436 return NULL;
3437 }
3438 }
3439 {
3440 PyThreadState* __tstate = wxPyBeginAllowThreads();
3441 wxPyControl_base_DoSetVirtualSize(_arg0,_arg1,_arg2);
3442
3443 wxPyEndAllowThreads(__tstate);
3444 if (PyErr_Occurred()) return NULL;
3445 } Py_INCREF(Py_None);
3446 _resultobj = Py_None;
3447 return _resultobj;
3448 }
3449
3450 #define wxPyControl_base_DoGetSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetSize(_swigarg0,_swigarg1))
3451 static PyObject *_wrap_wxPyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3452 PyObject * _resultobj;
3453 wxPyControl * _arg0;
3454 int * _arg1;
3455 int temp;
3456 int * _arg2;
3457 int temp0;
3458 PyObject * _argo0 = 0;
3459 char *_kwnames[] = { "self", NULL };
3460
3461 self = self;
3462 {
3463 _arg1 = &temp;
3464 }
3465 {
3466 _arg2 = &temp0;
3467 }
3468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_DoGetSize",_kwnames,&_argo0))
3469 return NULL;
3470 if (_argo0) {
3471 if (_argo0 == Py_None) { _arg0 = NULL; }
3472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoGetSize. Expected _wxPyControl_p.");
3474 return NULL;
3475 }
3476 }
3477 {
3478 PyThreadState* __tstate = wxPyBeginAllowThreads();
3479 wxPyControl_base_DoGetSize(_arg0,_arg1,_arg2);
3480
3481 wxPyEndAllowThreads(__tstate);
3482 if (PyErr_Occurred()) return NULL;
3483 } Py_INCREF(Py_None);
3484 _resultobj = Py_None;
3485 {
3486 PyObject *o;
3487 o = PyInt_FromLong((long) (*_arg1));
3488 _resultobj = t_output_helper(_resultobj, o);
3489 }
3490 {
3491 PyObject *o;
3492 o = PyInt_FromLong((long) (*_arg2));
3493 _resultobj = t_output_helper(_resultobj, o);
3494 }
3495 return _resultobj;
3496 }
3497
3498 #define wxPyControl_base_DoGetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetClientSize(_swigarg0,_swigarg1))
3499 static PyObject *_wrap_wxPyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3500 PyObject * _resultobj;
3501 wxPyControl * _arg0;
3502 int * _arg1;
3503 int temp;
3504 int * _arg2;
3505 int temp0;
3506 PyObject * _argo0 = 0;
3507 char *_kwnames[] = { "self", NULL };
3508
3509 self = self;
3510 {
3511 _arg1 = &temp;
3512 }
3513 {
3514 _arg2 = &temp0;
3515 }
3516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_DoGetClientSize",_kwnames,&_argo0))
3517 return NULL;
3518 if (_argo0) {
3519 if (_argo0 == Py_None) { _arg0 = NULL; }
3520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoGetClientSize. Expected _wxPyControl_p.");
3522 return NULL;
3523 }
3524 }
3525 {
3526 PyThreadState* __tstate = wxPyBeginAllowThreads();
3527 wxPyControl_base_DoGetClientSize(_arg0,_arg1,_arg2);
3528
3529 wxPyEndAllowThreads(__tstate);
3530 if (PyErr_Occurred()) return NULL;
3531 } Py_INCREF(Py_None);
3532 _resultobj = Py_None;
3533 {
3534 PyObject *o;
3535 o = PyInt_FromLong((long) (*_arg1));
3536 _resultobj = t_output_helper(_resultobj, o);
3537 }
3538 {
3539 PyObject *o;
3540 o = PyInt_FromLong((long) (*_arg2));
3541 _resultobj = t_output_helper(_resultobj, o);
3542 }
3543 return _resultobj;
3544 }
3545
3546 #define wxPyControl_base_DoGetPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetPosition(_swigarg0,_swigarg1))
3547 static PyObject *_wrap_wxPyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3548 PyObject * _resultobj;
3549 wxPyControl * _arg0;
3550 int * _arg1;
3551 int temp;
3552 int * _arg2;
3553 int temp0;
3554 PyObject * _argo0 = 0;
3555 char *_kwnames[] = { "self", NULL };
3556
3557 self = self;
3558 {
3559 _arg1 = &temp;
3560 }
3561 {
3562 _arg2 = &temp0;
3563 }
3564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_DoGetPosition",_kwnames,&_argo0))
3565 return NULL;
3566 if (_argo0) {
3567 if (_argo0 == Py_None) { _arg0 = NULL; }
3568 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3569 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoGetPosition. Expected _wxPyControl_p.");
3570 return NULL;
3571 }
3572 }
3573 {
3574 PyThreadState* __tstate = wxPyBeginAllowThreads();
3575 wxPyControl_base_DoGetPosition(_arg0,_arg1,_arg2);
3576
3577 wxPyEndAllowThreads(__tstate);
3578 if (PyErr_Occurred()) return NULL;
3579 } Py_INCREF(Py_None);
3580 _resultobj = Py_None;
3581 {
3582 PyObject *o;
3583 o = PyInt_FromLong((long) (*_arg1));
3584 _resultobj = t_output_helper(_resultobj, o);
3585 }
3586 {
3587 PyObject *o;
3588 o = PyInt_FromLong((long) (*_arg2));
3589 _resultobj = t_output_helper(_resultobj, o);
3590 }
3591 return _resultobj;
3592 }
3593
3594 #define wxPyControl_base_DoGetVirtualSize(_swigobj) (_swigobj->base_DoGetVirtualSize())
3595 static PyObject *_wrap_wxPyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3596 PyObject * _resultobj;
3597 wxSize * _result;
3598 wxPyControl * _arg0;
3599 PyObject * _argo0 = 0;
3600 char *_kwnames[] = { "self", NULL };
3601 char _ptemp[128];
3602
3603 self = self;
3604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_DoGetVirtualSize",_kwnames,&_argo0))
3605 return NULL;
3606 if (_argo0) {
3607 if (_argo0 == Py_None) { _arg0 = NULL; }
3608 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3609 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoGetVirtualSize. Expected _wxPyControl_p.");
3610 return NULL;
3611 }
3612 }
3613 {
3614 PyThreadState* __tstate = wxPyBeginAllowThreads();
3615 _result = new wxSize (wxPyControl_base_DoGetVirtualSize(_arg0));
3616
3617 wxPyEndAllowThreads(__tstate);
3618 if (PyErr_Occurred()) return NULL;
3619 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
3620 _resultobj = Py_BuildValue("s",_ptemp);
3621 return _resultobj;
3622 }
3623
3624 #define wxPyControl_base_DoGetBestSize(_swigobj) (_swigobj->base_DoGetBestSize())
3625 static PyObject *_wrap_wxPyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3626 PyObject * _resultobj;
3627 wxSize * _result;
3628 wxPyControl * _arg0;
3629 PyObject * _argo0 = 0;
3630 char *_kwnames[] = { "self", NULL };
3631 char _ptemp[128];
3632
3633 self = self;
3634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_DoGetBestSize",_kwnames,&_argo0))
3635 return NULL;
3636 if (_argo0) {
3637 if (_argo0 == Py_None) { _arg0 = NULL; }
3638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_DoGetBestSize. Expected _wxPyControl_p.");
3640 return NULL;
3641 }
3642 }
3643 {
3644 PyThreadState* __tstate = wxPyBeginAllowThreads();
3645 _result = new wxSize (wxPyControl_base_DoGetBestSize(_arg0));
3646
3647 wxPyEndAllowThreads(__tstate);
3648 if (PyErr_Occurred()) return NULL;
3649 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
3650 _resultobj = Py_BuildValue("s",_ptemp);
3651 return _resultobj;
3652 }
3653
3654 #define wxPyControl_base_InitDialog(_swigobj) (_swigobj->base_InitDialog())
3655 static PyObject *_wrap_wxPyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
3656 PyObject * _resultobj;
3657 wxPyControl * _arg0;
3658 PyObject * _argo0 = 0;
3659 char *_kwnames[] = { "self", NULL };
3660
3661 self = self;
3662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_InitDialog",_kwnames,&_argo0))
3663 return NULL;
3664 if (_argo0) {
3665 if (_argo0 == Py_None) { _arg0 = NULL; }
3666 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3667 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_InitDialog. Expected _wxPyControl_p.");
3668 return NULL;
3669 }
3670 }
3671 {
3672 PyThreadState* __tstate = wxPyBeginAllowThreads();
3673 wxPyControl_base_InitDialog(_arg0);
3674
3675 wxPyEndAllowThreads(__tstate);
3676 if (PyErr_Occurred()) return NULL;
3677 } Py_INCREF(Py_None);
3678 _resultobj = Py_None;
3679 return _resultobj;
3680 }
3681
3682 #define wxPyControl_base_TransferDataToWindow(_swigobj) (_swigobj->base_TransferDataToWindow())
3683 static PyObject *_wrap_wxPyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3684 PyObject * _resultobj;
3685 bool _result;
3686 wxPyControl * _arg0;
3687 PyObject * _argo0 = 0;
3688 char *_kwnames[] = { "self", NULL };
3689
3690 self = self;
3691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_TransferDataToWindow",_kwnames,&_argo0))
3692 return NULL;
3693 if (_argo0) {
3694 if (_argo0 == Py_None) { _arg0 = NULL; }
3695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_TransferDataToWindow. Expected _wxPyControl_p.");
3697 return NULL;
3698 }
3699 }
3700 {
3701 PyThreadState* __tstate = wxPyBeginAllowThreads();
3702 _result = (bool )wxPyControl_base_TransferDataToWindow(_arg0);
3703
3704 wxPyEndAllowThreads(__tstate);
3705 if (PyErr_Occurred()) return NULL;
3706 } _resultobj = Py_BuildValue("i",_result);
3707 return _resultobj;
3708 }
3709
3710 #define wxPyControl_base_TransferDataFromWindow(_swigobj) (_swigobj->base_TransferDataFromWindow())
3711 static PyObject *_wrap_wxPyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3712 PyObject * _resultobj;
3713 bool _result;
3714 wxPyControl * _arg0;
3715 PyObject * _argo0 = 0;
3716 char *_kwnames[] = { "self", NULL };
3717
3718 self = self;
3719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_TransferDataFromWindow",_kwnames,&_argo0))
3720 return NULL;
3721 if (_argo0) {
3722 if (_argo0 == Py_None) { _arg0 = NULL; }
3723 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3724 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_TransferDataFromWindow. Expected _wxPyControl_p.");
3725 return NULL;
3726 }
3727 }
3728 {
3729 PyThreadState* __tstate = wxPyBeginAllowThreads();
3730 _result = (bool )wxPyControl_base_TransferDataFromWindow(_arg0);
3731
3732 wxPyEndAllowThreads(__tstate);
3733 if (PyErr_Occurred()) return NULL;
3734 } _resultobj = Py_BuildValue("i",_result);
3735 return _resultobj;
3736 }
3737
3738 #define wxPyControl_base_Validate(_swigobj) (_swigobj->base_Validate())
3739 static PyObject *_wrap_wxPyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
3740 PyObject * _resultobj;
3741 bool _result;
3742 wxPyControl * _arg0;
3743 PyObject * _argo0 = 0;
3744 char *_kwnames[] = { "self", NULL };
3745
3746 self = self;
3747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_Validate",_kwnames,&_argo0))
3748 return NULL;
3749 if (_argo0) {
3750 if (_argo0 == Py_None) { _arg0 = NULL; }
3751 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3752 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_Validate. Expected _wxPyControl_p.");
3753 return NULL;
3754 }
3755 }
3756 {
3757 PyThreadState* __tstate = wxPyBeginAllowThreads();
3758 _result = (bool )wxPyControl_base_Validate(_arg0);
3759
3760 wxPyEndAllowThreads(__tstate);
3761 if (PyErr_Occurred()) return NULL;
3762 } _resultobj = Py_BuildValue("i",_result);
3763 return _resultobj;
3764 }
3765
3766 #define wxPyControl_base_AcceptsFocus(_swigobj) (_swigobj->base_AcceptsFocus())
3767 static PyObject *_wrap_wxPyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
3768 PyObject * _resultobj;
3769 bool _result;
3770 wxPyControl * _arg0;
3771 PyObject * _argo0 = 0;
3772 char *_kwnames[] = { "self", NULL };
3773
3774 self = self;
3775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_AcceptsFocus",_kwnames,&_argo0))
3776 return NULL;
3777 if (_argo0) {
3778 if (_argo0 == Py_None) { _arg0 = NULL; }
3779 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3780 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_AcceptsFocus. Expected _wxPyControl_p.");
3781 return NULL;
3782 }
3783 }
3784 {
3785 PyThreadState* __tstate = wxPyBeginAllowThreads();
3786 _result = (bool )wxPyControl_base_AcceptsFocus(_arg0);
3787
3788 wxPyEndAllowThreads(__tstate);
3789 if (PyErr_Occurred()) return NULL;
3790 } _resultobj = Py_BuildValue("i",_result);
3791 return _resultobj;
3792 }
3793
3794 #define wxPyControl_base_AcceptsFocusFromKeyboard(_swigobj) (_swigobj->base_AcceptsFocusFromKeyboard())
3795 static PyObject *_wrap_wxPyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
3796 PyObject * _resultobj;
3797 bool _result;
3798 wxPyControl * _arg0;
3799 PyObject * _argo0 = 0;
3800 char *_kwnames[] = { "self", NULL };
3801
3802 self = self;
3803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_AcceptsFocusFromKeyboard",_kwnames,&_argo0))
3804 return NULL;
3805 if (_argo0) {
3806 if (_argo0 == Py_None) { _arg0 = NULL; }
3807 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3808 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_AcceptsFocusFromKeyboard. Expected _wxPyControl_p.");
3809 return NULL;
3810 }
3811 }
3812 {
3813 PyThreadState* __tstate = wxPyBeginAllowThreads();
3814 _result = (bool )wxPyControl_base_AcceptsFocusFromKeyboard(_arg0);
3815
3816 wxPyEndAllowThreads(__tstate);
3817 if (PyErr_Occurred()) return NULL;
3818 } _resultobj = Py_BuildValue("i",_result);
3819 return _resultobj;
3820 }
3821
3822 #define wxPyControl_base_GetMaxSize(_swigobj) (_swigobj->base_GetMaxSize())
3823 static PyObject *_wrap_wxPyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3824 PyObject * _resultobj;
3825 wxSize * _result;
3826 wxPyControl * _arg0;
3827 PyObject * _argo0 = 0;
3828 char *_kwnames[] = { "self", NULL };
3829 char _ptemp[128];
3830
3831 self = self;
3832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyControl_base_GetMaxSize",_kwnames,&_argo0))
3833 return NULL;
3834 if (_argo0) {
3835 if (_argo0 == Py_None) { _arg0 = NULL; }
3836 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3837 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_GetMaxSize. Expected _wxPyControl_p.");
3838 return NULL;
3839 }
3840 }
3841 {
3842 PyThreadState* __tstate = wxPyBeginAllowThreads();
3843 _result = new wxSize (wxPyControl_base_GetMaxSize(_arg0));
3844
3845 wxPyEndAllowThreads(__tstate);
3846 if (PyErr_Occurred()) return NULL;
3847 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
3848 _resultobj = Py_BuildValue("s",_ptemp);
3849 return _resultobj;
3850 }
3851
3852 #define wxPyControl_base_AddChild(_swigobj,_swigarg0) (_swigobj->base_AddChild(_swigarg0))
3853 static PyObject *_wrap_wxPyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
3854 PyObject * _resultobj;
3855 wxPyControl * _arg0;
3856 wxWindow * _arg1;
3857 PyObject * _argo0 = 0;
3858 PyObject * _argo1 = 0;
3859 char *_kwnames[] = { "self","child", NULL };
3860
3861 self = self;
3862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyControl_base_AddChild",_kwnames,&_argo0,&_argo1))
3863 return NULL;
3864 if (_argo0) {
3865 if (_argo0 == Py_None) { _arg0 = NULL; }
3866 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3867 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_AddChild. Expected _wxPyControl_p.");
3868 return NULL;
3869 }
3870 }
3871 if (_argo1) {
3872 if (_argo1 == Py_None) { _arg1 = NULL; }
3873 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3874 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyControl_base_AddChild. Expected _wxWindow_p.");
3875 return NULL;
3876 }
3877 }
3878 {
3879 PyThreadState* __tstate = wxPyBeginAllowThreads();
3880 wxPyControl_base_AddChild(_arg0,_arg1);
3881
3882 wxPyEndAllowThreads(__tstate);
3883 if (PyErr_Occurred()) return NULL;
3884 } Py_INCREF(Py_None);
3885 _resultobj = Py_None;
3886 return _resultobj;
3887 }
3888
3889 #define wxPyControl_base_RemoveChild(_swigobj,_swigarg0) (_swigobj->base_RemoveChild(_swigarg0))
3890 static PyObject *_wrap_wxPyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
3891 PyObject * _resultobj;
3892 wxPyControl * _arg0;
3893 wxWindow * _arg1;
3894 PyObject * _argo0 = 0;
3895 PyObject * _argo1 = 0;
3896 char *_kwnames[] = { "self","child", NULL };
3897
3898 self = self;
3899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyControl_base_RemoveChild",_kwnames,&_argo0,&_argo1))
3900 return NULL;
3901 if (_argo0) {
3902 if (_argo0 == Py_None) { _arg0 = NULL; }
3903 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
3904 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_RemoveChild. Expected _wxPyControl_p.");
3905 return NULL;
3906 }
3907 }
3908 if (_argo1) {
3909 if (_argo1 == Py_None) { _arg1 = NULL; }
3910 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3911 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyControl_base_RemoveChild. Expected _wxWindow_p.");
3912 return NULL;
3913 }
3914 }
3915 {
3916 PyThreadState* __tstate = wxPyBeginAllowThreads();
3917 wxPyControl_base_RemoveChild(_arg0,_arg1);
3918
3919 wxPyEndAllowThreads(__tstate);
3920 if (PyErr_Occurred()) return NULL;
3921 } Py_INCREF(Py_None);
3922 _resultobj = Py_None;
3923 return _resultobj;
3924 }
3925
3926 static void *SwigwxPyPanelTowxPanel(void *ptr) {
3927 wxPyPanel *src;
3928 wxPanel *dest;
3929 src = (wxPyPanel *) ptr;
3930 dest = (wxPanel *) src;
3931 return (void *) dest;
3932 }
3933
3934 static void *SwigwxPyPanelTowxWindow(void *ptr) {
3935 wxPyPanel *src;
3936 wxWindow *dest;
3937 src = (wxPyPanel *) ptr;
3938 dest = (wxWindow *) src;
3939 return (void *) dest;
3940 }
3941
3942 static void *SwigwxPyPanelTowxEvtHandler(void *ptr) {
3943 wxPyPanel *src;
3944 wxEvtHandler *dest;
3945 src = (wxPyPanel *) ptr;
3946 dest = (wxEvtHandler *) src;
3947 return (void *) dest;
3948 }
3949
3950 static void *SwigwxPyPanelTowxObject(void *ptr) {
3951 wxPyPanel *src;
3952 wxObject *dest;
3953 src = (wxPyPanel *) ptr;
3954 dest = (wxObject *) src;
3955 return (void *) dest;
3956 }
3957
3958 #define new_wxPyPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPyPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3959 static PyObject *_wrap_new_wxPyPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
3960 PyObject * _resultobj;
3961 wxPyPanel * _result;
3962 wxWindow * _arg0;
3963 wxWindowID _arg1;
3964 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
3965 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
3966 long _arg4 = (long ) 0;
3967 wxString * _arg5 = (wxString *) &wxPyPanelNameStr;
3968 PyObject * _argo0 = 0;
3969 wxPoint temp;
3970 PyObject * _obj2 = 0;
3971 wxSize temp0;
3972 PyObject * _obj3 = 0;
3973 PyObject * _obj5 = 0;
3974 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
3975 char _ptemp[128];
3976
3977 self = self;
3978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPyPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5))
3979 return NULL;
3980 if (_argo0) {
3981 if (_argo0 == Py_None) { _arg0 = NULL; }
3982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyPanel. Expected _wxWindow_p.");
3984 return NULL;
3985 }
3986 }
3987 if (_obj2)
3988 {
3989 _arg2 = &temp;
3990 if (! wxPoint_helper(_obj2, &_arg2))
3991 return NULL;
3992 }
3993 if (_obj3)
3994 {
3995 _arg3 = &temp0;
3996 if (! wxSize_helper(_obj3, &_arg3))
3997 return NULL;
3998 }
3999 if (_obj5)
4000 {
4001 _arg5 = wxString_in_helper(_obj5);
4002 if (_arg5 == NULL)
4003 return NULL;
4004 }
4005 {
4006 PyThreadState* __tstate = wxPyBeginAllowThreads();
4007 _result = (wxPyPanel *)new_wxPyPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5);
4008
4009 wxPyEndAllowThreads(__tstate);
4010 if (PyErr_Occurred()) return NULL;
4011 } if (_result) {
4012 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPanel_p");
4013 _resultobj = Py_BuildValue("s",_ptemp);
4014 } else {
4015 Py_INCREF(Py_None);
4016 _resultobj = Py_None;
4017 }
4018 {
4019 if (_obj5)
4020 delete _arg5;
4021 }
4022 return _resultobj;
4023 }
4024
4025 #define wxPyPanel__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
4026 static PyObject *_wrap_wxPyPanel__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4027 PyObject * _resultobj;
4028 wxPyPanel * _arg0;
4029 PyObject * _arg1;
4030 PyObject * _arg2;
4031 PyObject * _argo0 = 0;
4032 PyObject * _obj1 = 0;
4033 PyObject * _obj2 = 0;
4034 char *_kwnames[] = { "self","self","_class", NULL };
4035
4036 self = self;
4037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyPanel__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
4038 return NULL;
4039 if (_argo0) {
4040 if (_argo0 == Py_None) { _arg0 = NULL; }
4041 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel__setCallbackInfo. Expected _wxPyPanel_p.");
4043 return NULL;
4044 }
4045 }
4046 {
4047 _arg1 = _obj1;
4048 }
4049 {
4050 _arg2 = _obj2;
4051 }
4052 {
4053 PyThreadState* __tstate = wxPyBeginAllowThreads();
4054 wxPyPanel__setCallbackInfo(_arg0,_arg1,_arg2);
4055
4056 wxPyEndAllowThreads(__tstate);
4057 if (PyErr_Occurred()) return NULL;
4058 } Py_INCREF(Py_None);
4059 _resultobj = Py_None;
4060 return _resultobj;
4061 }
4062
4063 #define wxPyPanel_base_DoMoveWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_DoMoveWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4064 static PyObject *_wrap_wxPyPanel_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4065 PyObject * _resultobj;
4066 wxPyPanel * _arg0;
4067 int _arg1;
4068 int _arg2;
4069 int _arg3;
4070 int _arg4;
4071 PyObject * _argo0 = 0;
4072 char *_kwnames[] = { "self","x","y","width","height", NULL };
4073
4074 self = self;
4075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxPyPanel_base_DoMoveWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
4076 return NULL;
4077 if (_argo0) {
4078 if (_argo0 == Py_None) { _arg0 = NULL; }
4079 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4080 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_DoMoveWindow. Expected _wxPyPanel_p.");
4081 return NULL;
4082 }
4083 }
4084 {
4085 PyThreadState* __tstate = wxPyBeginAllowThreads();
4086 wxPyPanel_base_DoMoveWindow(_arg0,_arg1,_arg2,_arg3,_arg4);
4087
4088 wxPyEndAllowThreads(__tstate);
4089 if (PyErr_Occurred()) return NULL;
4090 } Py_INCREF(Py_None);
4091 _resultobj = Py_None;
4092 return _resultobj;
4093 }
4094
4095 #define wxPyPanel_base_DoSetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_DoSetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4096 static PyObject *_wrap_wxPyPanel_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4097 PyObject * _resultobj;
4098 wxPyPanel * _arg0;
4099 int _arg1;
4100 int _arg2;
4101 int _arg3;
4102 int _arg4;
4103 int _arg5 = (int ) wxSIZE_AUTO;
4104 PyObject * _argo0 = 0;
4105 char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL };
4106
4107 self = self;
4108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxPyPanel_base_DoSetSize",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
4109 return NULL;
4110 if (_argo0) {
4111 if (_argo0 == Py_None) { _arg0 = NULL; }
4112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_DoSetSize. Expected _wxPyPanel_p.");
4114 return NULL;
4115 }
4116 }
4117 {
4118 PyThreadState* __tstate = wxPyBeginAllowThreads();
4119 wxPyPanel_base_DoSetSize(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
4120
4121 wxPyEndAllowThreads(__tstate);
4122 if (PyErr_Occurred()) return NULL;
4123 } Py_INCREF(Py_None);
4124 _resultobj = Py_None;
4125 return _resultobj;
4126 }
4127
4128 #define wxPyPanel_base_DoSetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoSetClientSize(_swigarg0,_swigarg1))
4129 static PyObject *_wrap_wxPyPanel_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4130 PyObject * _resultobj;
4131 wxPyPanel * _arg0;
4132 int _arg1;
4133 int _arg2;
4134 PyObject * _argo0 = 0;
4135 char *_kwnames[] = { "self","width","height", NULL };
4136
4137 self = self;
4138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyPanel_base_DoSetClientSize",_kwnames,&_argo0,&_arg1,&_arg2))
4139 return NULL;
4140 if (_argo0) {
4141 if (_argo0 == Py_None) { _arg0 = NULL; }
4142 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_DoSetClientSize. Expected _wxPyPanel_p.");
4144 return NULL;
4145 }
4146 }
4147 {
4148 PyThreadState* __tstate = wxPyBeginAllowThreads();
4149 wxPyPanel_base_DoSetClientSize(_arg0,_arg1,_arg2);
4150
4151 wxPyEndAllowThreads(__tstate);
4152 if (PyErr_Occurred()) return NULL;
4153 } Py_INCREF(Py_None);
4154 _resultobj = Py_None;
4155 return _resultobj;
4156 }
4157
4158 #define wxPyPanel_base_DoSetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoSetVirtualSize(_swigarg0,_swigarg1))
4159 static PyObject *_wrap_wxPyPanel_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4160 PyObject * _resultobj;
4161 wxPyPanel * _arg0;
4162 int _arg1;
4163 int _arg2;
4164 PyObject * _argo0 = 0;
4165 char *_kwnames[] = { "self","x","y", NULL };
4166
4167 self = self;
4168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyPanel_base_DoSetVirtualSize",_kwnames,&_argo0,&_arg1,&_arg2))
4169 return NULL;
4170 if (_argo0) {
4171 if (_argo0 == Py_None) { _arg0 = NULL; }
4172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_DoSetVirtualSize. Expected _wxPyPanel_p.");
4174 return NULL;
4175 }
4176 }
4177 {
4178 PyThreadState* __tstate = wxPyBeginAllowThreads();
4179 wxPyPanel_base_DoSetVirtualSize(_arg0,_arg1,_arg2);
4180
4181 wxPyEndAllowThreads(__tstate);
4182 if (PyErr_Occurred()) return NULL;
4183 } Py_INCREF(Py_None);
4184 _resultobj = Py_None;
4185 return _resultobj;
4186 }
4187
4188 #define wxPyPanel_base_DoGetSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetSize(_swigarg0,_swigarg1))
4189 static PyObject *_wrap_wxPyPanel_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4190 PyObject * _resultobj;
4191 wxPyPanel * _arg0;
4192 int * _arg1;
4193 int temp;
4194 int * _arg2;
4195 int temp0;
4196 PyObject * _argo0 = 0;
4197 char *_kwnames[] = { "self", NULL };
4198
4199 self = self;
4200 {
4201 _arg1 = &temp;
4202 }
4203 {
4204 _arg2 = &temp0;
4205 }
4206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPanel_base_DoGetSize",_kwnames,&_argo0))
4207 return NULL;
4208 if (_argo0) {
4209 if (_argo0 == Py_None) { _arg0 = NULL; }
4210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_DoGetSize. Expected _wxPyPanel_p.");
4212 return NULL;
4213 }
4214 }
4215 {
4216 PyThreadState* __tstate = wxPyBeginAllowThreads();
4217 wxPyPanel_base_DoGetSize(_arg0,_arg1,_arg2);
4218
4219 wxPyEndAllowThreads(__tstate);
4220 if (PyErr_Occurred()) return NULL;
4221 } Py_INCREF(Py_None);
4222 _resultobj = Py_None;
4223 {
4224 PyObject *o;
4225 o = PyInt_FromLong((long) (*_arg1));
4226 _resultobj = t_output_helper(_resultobj, o);
4227 }
4228 {
4229 PyObject *o;
4230 o = PyInt_FromLong((long) (*_arg2));
4231 _resultobj = t_output_helper(_resultobj, o);
4232 }
4233 return _resultobj;
4234 }
4235
4236 #define wxPyPanel_base_DoGetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetClientSize(_swigarg0,_swigarg1))
4237 static PyObject *_wrap_wxPyPanel_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4238 PyObject * _resultobj;
4239 wxPyPanel * _arg0;
4240 int * _arg1;
4241 int temp;
4242 int * _arg2;
4243 int temp0;
4244 PyObject * _argo0 = 0;
4245 char *_kwnames[] = { "self", NULL };
4246
4247 self = self;
4248 {
4249 _arg1 = &temp;
4250 }
4251 {
4252 _arg2 = &temp0;
4253 }
4254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPanel_base_DoGetClientSize",_kwnames,&_argo0))
4255 return NULL;
4256 if (_argo0) {
4257 if (_argo0 == Py_None) { _arg0 = NULL; }
4258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_DoGetClientSize. Expected _wxPyPanel_p.");
4260 return NULL;
4261 }
4262 }
4263 {
4264 PyThreadState* __tstate = wxPyBeginAllowThreads();
4265 wxPyPanel_base_DoGetClientSize(_arg0,_arg1,_arg2);
4266
4267 wxPyEndAllowThreads(__tstate);
4268 if (PyErr_Occurred()) return NULL;
4269 } Py_INCREF(Py_None);
4270 _resultobj = Py_None;
4271 {
4272 PyObject *o;
4273 o = PyInt_FromLong((long) (*_arg1));
4274 _resultobj = t_output_helper(_resultobj, o);
4275 }
4276 {
4277 PyObject *o;
4278 o = PyInt_FromLong((long) (*_arg2));
4279 _resultobj = t_output_helper(_resultobj, o);
4280 }
4281 return _resultobj;
4282 }
4283
4284 #define wxPyPanel_base_DoGetPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DoGetPosition(_swigarg0,_swigarg1))
4285 static PyObject *_wrap_wxPyPanel_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4286 PyObject * _resultobj;
4287 wxPyPanel * _arg0;
4288 int * _arg1;
4289 int temp;
4290 int * _arg2;
4291 int temp0;
4292 PyObject * _argo0 = 0;
4293 char *_kwnames[] = { "self", NULL };
4294
4295 self = self;
4296 {
4297 _arg1 = &temp;
4298 }
4299 {
4300 _arg2 = &temp0;
4301 }
4302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPanel_base_DoGetPosition",_kwnames,&_argo0))
4303 return NULL;
4304 if (_argo0) {
4305 if (_argo0 == Py_None) { _arg0 = NULL; }
4306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_DoGetPosition. Expected _wxPyPanel_p.");
4308 return NULL;
4309 }
4310 }
4311 {
4312 PyThreadState* __tstate = wxPyBeginAllowThreads();
4313 wxPyPanel_base_DoGetPosition(_arg0,_arg1,_arg2);
4314
4315 wxPyEndAllowThreads(__tstate);
4316 if (PyErr_Occurred()) return NULL;
4317 } Py_INCREF(Py_None);
4318 _resultobj = Py_None;
4319 {
4320 PyObject *o;
4321 o = PyInt_FromLong((long) (*_arg1));
4322 _resultobj = t_output_helper(_resultobj, o);
4323 }
4324 {
4325 PyObject *o;
4326 o = PyInt_FromLong((long) (*_arg2));
4327 _resultobj = t_output_helper(_resultobj, o);
4328 }
4329 return _resultobj;
4330 }
4331
4332 #define wxPyPanel_base_DoGetVirtualSize(_swigobj) (_swigobj->base_DoGetVirtualSize())
4333 static PyObject *_wrap_wxPyPanel_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4334 PyObject * _resultobj;
4335 wxSize * _result;
4336 wxPyPanel * _arg0;
4337 PyObject * _argo0 = 0;
4338 char *_kwnames[] = { "self", NULL };
4339 char _ptemp[128];
4340
4341 self = self;
4342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPanel_base_DoGetVirtualSize",_kwnames,&_argo0))
4343 return NULL;
4344 if (_argo0) {
4345 if (_argo0 == Py_None) { _arg0 = NULL; }
4346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_DoGetVirtualSize. Expected _wxPyPanel_p.");
4348 return NULL;
4349 }
4350 }
4351 {
4352 PyThreadState* __tstate = wxPyBeginAllowThreads();
4353 _result = new wxSize (wxPyPanel_base_DoGetVirtualSize(_arg0));
4354
4355 wxPyEndAllowThreads(__tstate);
4356 if (PyErr_Occurred()) return NULL;
4357 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4358 _resultobj = Py_BuildValue("s",_ptemp);
4359 return _resultobj;
4360 }
4361
4362 #define wxPyPanel_base_DoGetBestSize(_swigobj) (_swigobj->base_DoGetBestSize())
4363 static PyObject *_wrap_wxPyPanel_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4364 PyObject * _resultobj;
4365 wxSize * _result;
4366 wxPyPanel * _arg0;
4367 PyObject * _argo0 = 0;
4368 char *_kwnames[] = { "self", NULL };
4369 char _ptemp[128];
4370
4371 self = self;
4372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPanel_base_DoGetBestSize",_kwnames,&_argo0))
4373 return NULL;
4374 if (_argo0) {
4375 if (_argo0 == Py_None) { _arg0 = NULL; }
4376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_DoGetBestSize. Expected _wxPyPanel_p.");
4378 return NULL;
4379 }
4380 }
4381 {
4382 PyThreadState* __tstate = wxPyBeginAllowThreads();
4383 _result = new wxSize (wxPyPanel_base_DoGetBestSize(_arg0));
4384
4385 wxPyEndAllowThreads(__tstate);
4386 if (PyErr_Occurred()) return NULL;
4387 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4388 _resultobj = Py_BuildValue("s",_ptemp);
4389 return _resultobj;
4390 }
4391
4392 #define wxPyPanel_base_InitDialog(_swigobj) (_swigobj->base_InitDialog())
4393 static PyObject *_wrap_wxPyPanel_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4394 PyObject * _resultobj;
4395 wxPyPanel * _arg0;
4396 PyObject * _argo0 = 0;
4397 char *_kwnames[] = { "self", NULL };
4398
4399 self = self;
4400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPanel_base_InitDialog",_kwnames,&_argo0))
4401 return NULL;
4402 if (_argo0) {
4403 if (_argo0 == Py_None) { _arg0 = NULL; }
4404 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4405 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_InitDialog. Expected _wxPyPanel_p.");
4406 return NULL;
4407 }
4408 }
4409 {
4410 PyThreadState* __tstate = wxPyBeginAllowThreads();
4411 wxPyPanel_base_InitDialog(_arg0);
4412
4413 wxPyEndAllowThreads(__tstate);
4414 if (PyErr_Occurred()) return NULL;
4415 } Py_INCREF(Py_None);
4416 _resultobj = Py_None;
4417 return _resultobj;
4418 }
4419
4420 #define wxPyPanel_base_TransferDataToWindow(_swigobj) (_swigobj->base_TransferDataToWindow())
4421 static PyObject *_wrap_wxPyPanel_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4422 PyObject * _resultobj;
4423 bool _result;
4424 wxPyPanel * _arg0;
4425 PyObject * _argo0 = 0;
4426 char *_kwnames[] = { "self", NULL };
4427
4428 self = self;
4429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPanel_base_TransferDataToWindow",_kwnames,&_argo0))
4430 return NULL;
4431 if (_argo0) {
4432 if (_argo0 == Py_None) { _arg0 = NULL; }
4433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_TransferDataToWindow. Expected _wxPyPanel_p.");
4435 return NULL;
4436 }
4437 }
4438 {
4439 PyThreadState* __tstate = wxPyBeginAllowThreads();
4440 _result = (bool )wxPyPanel_base_TransferDataToWindow(_arg0);
4441
4442 wxPyEndAllowThreads(__tstate);
4443 if (PyErr_Occurred()) return NULL;
4444 } _resultobj = Py_BuildValue("i",_result);
4445 return _resultobj;
4446 }
4447
4448 #define wxPyPanel_base_TransferDataFromWindow(_swigobj) (_swigobj->base_TransferDataFromWindow())
4449 static PyObject *_wrap_wxPyPanel_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4450 PyObject * _resultobj;
4451 bool _result;
4452 wxPyPanel * _arg0;
4453 PyObject * _argo0 = 0;
4454 char *_kwnames[] = { "self", NULL };
4455
4456 self = self;
4457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPanel_base_TransferDataFromWindow",_kwnames,&_argo0))
4458 return NULL;
4459 if (_argo0) {
4460 if (_argo0 == Py_None) { _arg0 = NULL; }
4461 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4462 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_TransferDataFromWindow. Expected _wxPyPanel_p.");
4463 return NULL;
4464 }
4465 }
4466 {
4467 PyThreadState* __tstate = wxPyBeginAllowThreads();
4468 _result = (bool )wxPyPanel_base_TransferDataFromWindow(_arg0);
4469
4470 wxPyEndAllowThreads(__tstate);
4471 if (PyErr_Occurred()) return NULL;
4472 } _resultobj = Py_BuildValue("i",_result);
4473 return _resultobj;
4474 }
4475
4476 #define wxPyPanel_base_Validate(_swigobj) (_swigobj->base_Validate())
4477 static PyObject *_wrap_wxPyPanel_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
4478 PyObject * _resultobj;
4479 bool _result;
4480 wxPyPanel * _arg0;
4481 PyObject * _argo0 = 0;
4482 char *_kwnames[] = { "self", NULL };
4483
4484 self = self;
4485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPanel_base_Validate",_kwnames,&_argo0))
4486 return NULL;
4487 if (_argo0) {
4488 if (_argo0 == Py_None) { _arg0 = NULL; }
4489 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4490 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_Validate. Expected _wxPyPanel_p.");
4491 return NULL;
4492 }
4493 }
4494 {
4495 PyThreadState* __tstate = wxPyBeginAllowThreads();
4496 _result = (bool )wxPyPanel_base_Validate(_arg0);
4497
4498 wxPyEndAllowThreads(__tstate);
4499 if (PyErr_Occurred()) return NULL;
4500 } _resultobj = Py_BuildValue("i",_result);
4501 return _resultobj;
4502 }
4503
4504 #define wxPyPanel_base_AcceptsFocus(_swigobj) (_swigobj->base_AcceptsFocus())
4505 static PyObject *_wrap_wxPyPanel_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
4506 PyObject * _resultobj;
4507 bool _result;
4508 wxPyPanel * _arg0;
4509 PyObject * _argo0 = 0;
4510 char *_kwnames[] = { "self", NULL };
4511
4512 self = self;
4513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPanel_base_AcceptsFocus",_kwnames,&_argo0))
4514 return NULL;
4515 if (_argo0) {
4516 if (_argo0 == Py_None) { _arg0 = NULL; }
4517 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4518 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_AcceptsFocus. Expected _wxPyPanel_p.");
4519 return NULL;
4520 }
4521 }
4522 {
4523 PyThreadState* __tstate = wxPyBeginAllowThreads();
4524 _result = (bool )wxPyPanel_base_AcceptsFocus(_arg0);
4525
4526 wxPyEndAllowThreads(__tstate);
4527 if (PyErr_Occurred()) return NULL;
4528 } _resultobj = Py_BuildValue("i",_result);
4529 return _resultobj;
4530 }
4531
4532 #define wxPyPanel_base_AcceptsFocusFromKeyboard(_swigobj) (_swigobj->base_AcceptsFocusFromKeyboard())
4533 static PyObject *_wrap_wxPyPanel_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
4534 PyObject * _resultobj;
4535 bool _result;
4536 wxPyPanel * _arg0;
4537 PyObject * _argo0 = 0;
4538 char *_kwnames[] = { "self", NULL };
4539
4540 self = self;
4541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPanel_base_AcceptsFocusFromKeyboard",_kwnames,&_argo0))
4542 return NULL;
4543 if (_argo0) {
4544 if (_argo0 == Py_None) { _arg0 = NULL; }
4545 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4546 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_AcceptsFocusFromKeyboard. Expected _wxPyPanel_p.");
4547 return NULL;
4548 }
4549 }
4550 {
4551 PyThreadState* __tstate = wxPyBeginAllowThreads();
4552 _result = (bool )wxPyPanel_base_AcceptsFocusFromKeyboard(_arg0);
4553
4554 wxPyEndAllowThreads(__tstate);
4555 if (PyErr_Occurred()) return NULL;
4556 } _resultobj = Py_BuildValue("i",_result);
4557 return _resultobj;
4558 }
4559
4560 #define wxPyPanel_base_GetMaxSize(_swigobj) (_swigobj->base_GetMaxSize())
4561 static PyObject *_wrap_wxPyPanel_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4562 PyObject * _resultobj;
4563 wxSize * _result;
4564 wxPyPanel * _arg0;
4565 PyObject * _argo0 = 0;
4566 char *_kwnames[] = { "self", NULL };
4567 char _ptemp[128];
4568
4569 self = self;
4570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPanel_base_GetMaxSize",_kwnames,&_argo0))
4571 return NULL;
4572 if (_argo0) {
4573 if (_argo0 == Py_None) { _arg0 = NULL; }
4574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_GetMaxSize. Expected _wxPyPanel_p.");
4576 return NULL;
4577 }
4578 }
4579 {
4580 PyThreadState* __tstate = wxPyBeginAllowThreads();
4581 _result = new wxSize (wxPyPanel_base_GetMaxSize(_arg0));
4582
4583 wxPyEndAllowThreads(__tstate);
4584 if (PyErr_Occurred()) return NULL;
4585 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4586 _resultobj = Py_BuildValue("s",_ptemp);
4587 return _resultobj;
4588 }
4589
4590 #define wxPyPanel_base_AddChild(_swigobj,_swigarg0) (_swigobj->base_AddChild(_swigarg0))
4591 static PyObject *_wrap_wxPyPanel_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
4592 PyObject * _resultobj;
4593 wxPyPanel * _arg0;
4594 wxWindow * _arg1;
4595 PyObject * _argo0 = 0;
4596 PyObject * _argo1 = 0;
4597 char *_kwnames[] = { "self","child", NULL };
4598
4599 self = self;
4600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPanel_base_AddChild",_kwnames,&_argo0,&_argo1))
4601 return NULL;
4602 if (_argo0) {
4603 if (_argo0 == Py_None) { _arg0 = NULL; }
4604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_AddChild. Expected _wxPyPanel_p.");
4606 return NULL;
4607 }
4608 }
4609 if (_argo1) {
4610 if (_argo1 == Py_None) { _arg1 = NULL; }
4611 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4612 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyPanel_base_AddChild. Expected _wxWindow_p.");
4613 return NULL;
4614 }
4615 }
4616 {
4617 PyThreadState* __tstate = wxPyBeginAllowThreads();
4618 wxPyPanel_base_AddChild(_arg0,_arg1);
4619
4620 wxPyEndAllowThreads(__tstate);
4621 if (PyErr_Occurred()) return NULL;
4622 } Py_INCREF(Py_None);
4623 _resultobj = Py_None;
4624 return _resultobj;
4625 }
4626
4627 #define wxPyPanel_base_RemoveChild(_swigobj,_swigarg0) (_swigobj->base_RemoveChild(_swigarg0))
4628 static PyObject *_wrap_wxPyPanel_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
4629 PyObject * _resultobj;
4630 wxPyPanel * _arg0;
4631 wxWindow * _arg1;
4632 PyObject * _argo0 = 0;
4633 PyObject * _argo1 = 0;
4634 char *_kwnames[] = { "self","child", NULL };
4635
4636 self = self;
4637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPanel_base_RemoveChild",_kwnames,&_argo0,&_argo1))
4638 return NULL;
4639 if (_argo0) {
4640 if (_argo0 == Py_None) { _arg0 = NULL; }
4641 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
4642 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_RemoveChild. Expected _wxPyPanel_p.");
4643 return NULL;
4644 }
4645 }
4646 if (_argo1) {
4647 if (_argo1 == Py_None) { _arg1 = NULL; }
4648 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4649 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyPanel_base_RemoveChild. Expected _wxWindow_p.");
4650 return NULL;
4651 }
4652 }
4653 {
4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
4655 wxPyPanel_base_RemoveChild(_arg0,_arg1);
4656
4657 wxPyEndAllowThreads(__tstate);
4658 if (PyErr_Occurred()) return NULL;
4659 } Py_INCREF(Py_None);
4660 _resultobj = Py_None;
4661 return _resultobj;
4662 }
4663
4664 static PyMethodDef windows2cMethods[] = {
4665 { "wxPyPanel_base_RemoveChild", (PyCFunction) _wrap_wxPyPanel_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
4666 { "wxPyPanel_base_AddChild", (PyCFunction) _wrap_wxPyPanel_base_AddChild, METH_VARARGS | METH_KEYWORDS },
4667 { "wxPyPanel_base_GetMaxSize", (PyCFunction) _wrap_wxPyPanel_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
4668 { "wxPyPanel_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_wxPyPanel_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
4669 { "wxPyPanel_base_AcceptsFocus", (PyCFunction) _wrap_wxPyPanel_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
4670 { "wxPyPanel_base_Validate", (PyCFunction) _wrap_wxPyPanel_base_Validate, METH_VARARGS | METH_KEYWORDS },
4671 { "wxPyPanel_base_TransferDataFromWindow", (PyCFunction) _wrap_wxPyPanel_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
4672 { "wxPyPanel_base_TransferDataToWindow", (PyCFunction) _wrap_wxPyPanel_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
4673 { "wxPyPanel_base_InitDialog", (PyCFunction) _wrap_wxPyPanel_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
4674 { "wxPyPanel_base_DoGetBestSize", (PyCFunction) _wrap_wxPyPanel_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
4675 { "wxPyPanel_base_DoGetVirtualSize", (PyCFunction) _wrap_wxPyPanel_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
4676 { "wxPyPanel_base_DoGetPosition", (PyCFunction) _wrap_wxPyPanel_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
4677 { "wxPyPanel_base_DoGetClientSize", (PyCFunction) _wrap_wxPyPanel_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
4678 { "wxPyPanel_base_DoGetSize", (PyCFunction) _wrap_wxPyPanel_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
4679 { "wxPyPanel_base_DoSetVirtualSize", (PyCFunction) _wrap_wxPyPanel_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
4680 { "wxPyPanel_base_DoSetClientSize", (PyCFunction) _wrap_wxPyPanel_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
4681 { "wxPyPanel_base_DoSetSize", (PyCFunction) _wrap_wxPyPanel_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
4682 { "wxPyPanel_base_DoMoveWindow", (PyCFunction) _wrap_wxPyPanel_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
4683 { "wxPyPanel__setCallbackInfo", (PyCFunction) _wrap_wxPyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
4684 { "new_wxPyPanel", (PyCFunction) _wrap_new_wxPyPanel, METH_VARARGS | METH_KEYWORDS },
4685 { "wxPyControl_base_RemoveChild", (PyCFunction) _wrap_wxPyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
4686 { "wxPyControl_base_AddChild", (PyCFunction) _wrap_wxPyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS },
4687 { "wxPyControl_base_GetMaxSize", (PyCFunction) _wrap_wxPyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
4688 { "wxPyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_wxPyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
4689 { "wxPyControl_base_AcceptsFocus", (PyCFunction) _wrap_wxPyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
4690 { "wxPyControl_base_Validate", (PyCFunction) _wrap_wxPyControl_base_Validate, METH_VARARGS | METH_KEYWORDS },
4691 { "wxPyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_wxPyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
4692 { "wxPyControl_base_TransferDataToWindow", (PyCFunction) _wrap_wxPyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
4693 { "wxPyControl_base_InitDialog", (PyCFunction) _wrap_wxPyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
4694 { "wxPyControl_base_DoGetBestSize", (PyCFunction) _wrap_wxPyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
4695 { "wxPyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_wxPyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
4696 { "wxPyControl_base_DoGetPosition", (PyCFunction) _wrap_wxPyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
4697 { "wxPyControl_base_DoGetClientSize", (PyCFunction) _wrap_wxPyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
4698 { "wxPyControl_base_DoGetSize", (PyCFunction) _wrap_wxPyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
4699 { "wxPyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_wxPyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
4700 { "wxPyControl_base_DoSetClientSize", (PyCFunction) _wrap_wxPyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
4701 { "wxPyControl_base_DoSetSize", (PyCFunction) _wrap_wxPyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
4702 { "wxPyControl_base_DoMoveWindow", (PyCFunction) _wrap_wxPyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
4703 { "wxPyControl__setCallbackInfo", (PyCFunction) _wrap_wxPyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
4704 { "new_wxPyControl", (PyCFunction) _wrap_new_wxPyControl, METH_VARARGS | METH_KEYWORDS },
4705 { "wxPyWindow_base_RemoveChild", (PyCFunction) _wrap_wxPyWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
4706 { "wxPyWindow_base_AddChild", (PyCFunction) _wrap_wxPyWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS },
4707 { "wxPyWindow_base_GetMaxSize", (PyCFunction) _wrap_wxPyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
4708 { "wxPyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_wxPyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
4709 { "wxPyWindow_base_AcceptsFocus", (PyCFunction) _wrap_wxPyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
4710 { "wxPyWindow_base_Validate", (PyCFunction) _wrap_wxPyWindow_base_Validate, METH_VARARGS | METH_KEYWORDS },
4711 { "wxPyWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_wxPyWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
4712 { "wxPyWindow_base_TransferDataToWindow", (PyCFunction) _wrap_wxPyWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
4713 { "wxPyWindow_base_InitDialog", (PyCFunction) _wrap_wxPyWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
4714 { "wxPyWindow_base_DoGetBestSize", (PyCFunction) _wrap_wxPyWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
4715 { "wxPyWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_wxPyWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
4716 { "wxPyWindow_base_DoGetPosition", (PyCFunction) _wrap_wxPyWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
4717 { "wxPyWindow_base_DoGetClientSize", (PyCFunction) _wrap_wxPyWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
4718 { "wxPyWindow_base_DoGetSize", (PyCFunction) _wrap_wxPyWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
4719 { "wxPyWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_wxPyWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
4720 { "wxPyWindow_base_DoSetClientSize", (PyCFunction) _wrap_wxPyWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
4721 { "wxPyWindow_base_DoSetSize", (PyCFunction) _wrap_wxPyWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
4722 { "wxPyWindow_base_DoMoveWindow", (PyCFunction) _wrap_wxPyWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
4723 { "wxPyWindow__setCallbackInfo", (PyCFunction) _wrap_wxPyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
4724 { "new_wxPyWindow", (PyCFunction) _wrap_new_wxPyWindow, METH_VARARGS | METH_KEYWORDS },
4725 { "wxSplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_wxSplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS },
4726 { "wxSplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_wxSplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS },
4727 { "wxSplitterWindow_SizeWindows", (PyCFunction) _wrap_wxSplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS },
4728 { "wxSplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_wxSplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS },
4729 { "wxSplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_wxSplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS },
4730 { "wxSplitterWindow_GetSashPosition", (PyCFunction) _wrap_wxSplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS },
4731 { "wxSplitterWindow_SetSashPosition", (PyCFunction) _wrap_wxSplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS },
4732 { "wxSplitterWindow_GetBorderSize", (PyCFunction) _wrap_wxSplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS },
4733 { "wxSplitterWindow_GetSashSize", (PyCFunction) _wrap_wxSplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS },
4734 { "wxSplitterWindow_SetBorderSize", (PyCFunction) _wrap_wxSplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS },
4735 { "wxSplitterWindow_SetSashSize", (PyCFunction) _wrap_wxSplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS },
4736 { "wxSplitterWindow_IsSplit", (PyCFunction) _wrap_wxSplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS },
4737 { "wxSplitterWindow_ReplaceWindow", (PyCFunction) _wrap_wxSplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS },
4738 { "wxSplitterWindow_Unsplit", (PyCFunction) _wrap_wxSplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS },
4739 { "wxSplitterWindow_SplitHorizontally", (PyCFunction) _wrap_wxSplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS },
4740 { "wxSplitterWindow_SplitVertically", (PyCFunction) _wrap_wxSplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS },
4741 { "wxSplitterWindow_Initialize", (PyCFunction) _wrap_wxSplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS },
4742 { "wxSplitterWindow_GetSplitMode", (PyCFunction) _wrap_wxSplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS },
4743 { "wxSplitterWindow_SetSplitMode", (PyCFunction) _wrap_wxSplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS },
4744 { "wxSplitterWindow_GetWindow2", (PyCFunction) _wrap_wxSplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS },
4745 { "wxSplitterWindow_GetWindow1", (PyCFunction) _wrap_wxSplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS },
4746 { "wxSplitterWindow_Create", (PyCFunction) _wrap_wxSplitterWindow_Create, METH_VARARGS | METH_KEYWORDS },
4747 { "new_wxPreSplitterWindow", (PyCFunction) _wrap_new_wxPreSplitterWindow, METH_VARARGS | METH_KEYWORDS },
4748 { "new_wxSplitterWindow", (PyCFunction) _wrap_new_wxSplitterWindow, METH_VARARGS | METH_KEYWORDS },
4749 { "wxSplitterEvent_SetSashPosition", (PyCFunction) _wrap_wxSplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS },
4750 { "wxSplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_wxSplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS },
4751 { "wxSplitterEvent_GetY", (PyCFunction) _wrap_wxSplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS },
4752 { "wxSplitterEvent_GetX", (PyCFunction) _wrap_wxSplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS },
4753 { "wxSplitterEvent_GetSashPosition", (PyCFunction) _wrap_wxSplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS },
4754 { "new_wxSplitterEvent", (PyCFunction) _wrap_new_wxSplitterEvent, METH_VARARGS | METH_KEYWORDS },
4755 { "wxNotebook_ResizeChildren", (PyCFunction) _wrap_wxNotebook_ResizeChildren, METH_VARARGS | METH_KEYWORDS },
4756 { "wxNotebook_GetPage", (PyCFunction) _wrap_wxNotebook_GetPage, METH_VARARGS | METH_KEYWORDS },
4757 { "wxNotebook_InsertPage", (PyCFunction) _wrap_wxNotebook_InsertPage, METH_VARARGS | METH_KEYWORDS },
4758 { "wxNotebook_AddPage", (PyCFunction) _wrap_wxNotebook_AddPage, METH_VARARGS | METH_KEYWORDS },
4759 { "wxNotebook_DeleteAllPages", (PyCFunction) _wrap_wxNotebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS },
4760 { "wxNotebook_RemovePage", (PyCFunction) _wrap_wxNotebook_RemovePage, METH_VARARGS | METH_KEYWORDS },
4761 { "wxNotebook_DeletePage", (PyCFunction) _wrap_wxNotebook_DeletePage, METH_VARARGS | METH_KEYWORDS },
4762 { "wxNotebook_SetPadding", (PyCFunction) _wrap_wxNotebook_SetPadding, METH_VARARGS | METH_KEYWORDS },
4763 { "wxNotebook_SetPageSize", (PyCFunction) _wrap_wxNotebook_SetPageSize, METH_VARARGS | METH_KEYWORDS },
4764 { "wxNotebook_GetRowCount", (PyCFunction) _wrap_wxNotebook_GetRowCount, METH_VARARGS | METH_KEYWORDS },
4765 { "wxNotebook_SetPageImage", (PyCFunction) _wrap_wxNotebook_SetPageImage, METH_VARARGS | METH_KEYWORDS },
4766 { "wxNotebook_GetPageImage", (PyCFunction) _wrap_wxNotebook_GetPageImage, METH_VARARGS | METH_KEYWORDS },
4767 { "wxNotebook_GetImageList", (PyCFunction) _wrap_wxNotebook_GetImageList, METH_VARARGS | METH_KEYWORDS },
4768 { "wxNotebook_AssignImageList", (PyCFunction) _wrap_wxNotebook_AssignImageList, METH_VARARGS | METH_KEYWORDS },
4769 { "wxNotebook_SetImageList", (PyCFunction) _wrap_wxNotebook_SetImageList, METH_VARARGS | METH_KEYWORDS },
4770 { "wxNotebook_GetPageText", (PyCFunction) _wrap_wxNotebook_GetPageText, METH_VARARGS | METH_KEYWORDS },
4771 { "wxNotebook_SetPageText", (PyCFunction) _wrap_wxNotebook_SetPageText, METH_VARARGS | METH_KEYWORDS },
4772 { "wxNotebook_GetSelection", (PyCFunction) _wrap_wxNotebook_GetSelection, METH_VARARGS | METH_KEYWORDS },
4773 { "wxNotebook_AdvanceSelection", (PyCFunction) _wrap_wxNotebook_AdvanceSelection, METH_VARARGS | METH_KEYWORDS },
4774 { "wxNotebook_SetSelection", (PyCFunction) _wrap_wxNotebook_SetSelection, METH_VARARGS | METH_KEYWORDS },
4775 { "wxNotebook_GetPageCount", (PyCFunction) _wrap_wxNotebook_GetPageCount, METH_VARARGS | METH_KEYWORDS },
4776 { "wxNotebook_Create", (PyCFunction) _wrap_wxNotebook_Create, METH_VARARGS | METH_KEYWORDS },
4777 { "new_wxPreNotebook", (PyCFunction) _wrap_new_wxPreNotebook, METH_VARARGS | METH_KEYWORDS },
4778 { "new_wxNotebook", (PyCFunction) _wrap_new_wxNotebook, METH_VARARGS | METH_KEYWORDS },
4779 { "wxNotebookEvent_SetSelection", (PyCFunction) _wrap_wxNotebookEvent_SetSelection, METH_VARARGS | METH_KEYWORDS },
4780 { "wxNotebookEvent_SetOldSelection", (PyCFunction) _wrap_wxNotebookEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS },
4781 { "wxNotebookEvent_GetOldSelection", (PyCFunction) _wrap_wxNotebookEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS },
4782 { "wxNotebookEvent_GetSelection", (PyCFunction) _wrap_wxNotebookEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
4783 { "new_wxNotebookEvent", (PyCFunction) _wrap_new_wxNotebookEvent, METH_VARARGS | METH_KEYWORDS },
4784 { NULL, NULL }
4785 };
4786 #ifdef __cplusplus
4787 }
4788 #endif
4789 /*
4790 * This table is used by the pointer type-checker
4791 */
4792 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
4793 { "_wxEvent","_wxSplitterEvent",SwigwxSplitterEventTowxEvent},
4794 { "_wxEvent","_wxNotebookEvent",SwigwxNotebookEventTowxEvent},
4795 { "_signed_long","_long",0},
4796 { "_wxPrintQuality","_wxCoord",0},
4797 { "_wxPrintQuality","_int",0},
4798 { "_wxPrintQuality","_signed_int",0},
4799 { "_wxPrintQuality","_unsigned_int",0},
4800 { "_wxPrintQuality","_wxWindowID",0},
4801 { "_wxPrintQuality","_uint",0},
4802 { "_wxPrintQuality","_EBool",0},
4803 { "_wxPrintQuality","_size_t",0},
4804 { "_wxPrintQuality","_time_t",0},
4805 { "_wxNotifyEvent","_wxSplitterEvent",SwigwxSplitterEventTowxNotifyEvent},
4806 { "_wxNotifyEvent","_wxNotebookEvent",SwigwxNotebookEventTowxNotifyEvent},
4807 { "_byte","_unsigned_char",0},
4808 { "_long","_unsigned_long",0},
4809 { "_long","_signed_long",0},
4810 { "_size_t","_wxCoord",0},
4811 { "_size_t","_wxPrintQuality",0},
4812 { "_size_t","_time_t",0},
4813 { "_size_t","_unsigned_int",0},
4814 { "_size_t","_int",0},
4815 { "_size_t","_wxWindowID",0},
4816 { "_size_t","_uint",0},
4817 { "_wxPanel","_wxPyPanel",SwigwxPyPanelTowxPanel},
4818 { "_uint","_wxCoord",0},
4819 { "_uint","_wxPrintQuality",0},
4820 { "_uint","_time_t",0},
4821 { "_uint","_size_t",0},
4822 { "_uint","_unsigned_int",0},
4823 { "_uint","_int",0},
4824 { "_uint","_wxWindowID",0},
4825 { "_wxChar","_char",0},
4826 { "_wxCommandEvent","_wxSplitterEvent",SwigwxSplitterEventTowxCommandEvent},
4827 { "_wxCommandEvent","_wxNotebookEvent",SwigwxNotebookEventTowxCommandEvent},
4828 { "_char","_wxChar",0},
4829 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
4830 { "_EBool","_wxCoord",0},
4831 { "_EBool","_wxPrintQuality",0},
4832 { "_EBool","_signed_int",0},
4833 { "_EBool","_int",0},
4834 { "_EBool","_wxWindowID",0},
4835 { "_unsigned_long","_long",0},
4836 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
4837 { "_signed_int","_wxCoord",0},
4838 { "_signed_int","_wxPrintQuality",0},
4839 { "_signed_int","_EBool",0},
4840 { "_signed_int","_wxWindowID",0},
4841 { "_signed_int","_int",0},
4842 { "_WXTYPE","_short",0},
4843 { "_WXTYPE","_signed_short",0},
4844 { "_WXTYPE","_unsigned_short",0},
4845 { "_unsigned_short","_WXTYPE",0},
4846 { "_unsigned_short","_short",0},
4847 { "_wxObject","_wxPyPanel",SwigwxPyPanelTowxObject},
4848 { "_wxObject","_wxPyControl",SwigwxPyControlTowxObject},
4849 { "_wxObject","_wxPyWindow",SwigwxPyWindowTowxObject},
4850 { "_wxObject","_wxSplitterWindow",SwigwxSplitterWindowTowxObject},
4851 { "_wxObject","_wxSplitterEvent",SwigwxSplitterEventTowxObject},
4852 { "_wxObject","_wxNotebook",SwigwxNotebookTowxObject},
4853 { "_wxObject","_wxNotebookEvent",SwigwxNotebookEventTowxObject},
4854 { "_signed_short","_WXTYPE",0},
4855 { "_signed_short","_short",0},
4856 { "_unsigned_char","_byte",0},
4857 { "_wxControl","_wxPyControl",SwigwxPyControlTowxControl},
4858 { "_wxControl","_wxNotebook",SwigwxNotebookTowxControl},
4859 { "_unsigned_int","_wxCoord",0},
4860 { "_unsigned_int","_wxPrintQuality",0},
4861 { "_unsigned_int","_time_t",0},
4862 { "_unsigned_int","_size_t",0},
4863 { "_unsigned_int","_uint",0},
4864 { "_unsigned_int","_wxWindowID",0},
4865 { "_unsigned_int","_int",0},
4866 { "_short","_WXTYPE",0},
4867 { "_short","_unsigned_short",0},
4868 { "_short","_signed_short",0},
4869 { "_wxWindowID","_wxCoord",0},
4870 { "_wxWindowID","_wxPrintQuality",0},
4871 { "_wxWindowID","_time_t",0},
4872 { "_wxWindowID","_size_t",0},
4873 { "_wxWindowID","_EBool",0},
4874 { "_wxWindowID","_uint",0},
4875 { "_wxWindowID","_int",0},
4876 { "_wxWindowID","_signed_int",0},
4877 { "_wxWindowID","_unsigned_int",0},
4878 { "_int","_wxCoord",0},
4879 { "_int","_wxPrintQuality",0},
4880 { "_int","_time_t",0},
4881 { "_int","_size_t",0},
4882 { "_int","_EBool",0},
4883 { "_int","_uint",0},
4884 { "_int","_wxWindowID",0},
4885 { "_int","_unsigned_int",0},
4886 { "_int","_signed_int",0},
4887 { "_time_t","_wxCoord",0},
4888 { "_time_t","_wxPrintQuality",0},
4889 { "_time_t","_unsigned_int",0},
4890 { "_time_t","_int",0},
4891 { "_time_t","_wxWindowID",0},
4892 { "_time_t","_uint",0},
4893 { "_time_t","_size_t",0},
4894 { "_wxCoord","_int",0},
4895 { "_wxCoord","_signed_int",0},
4896 { "_wxCoord","_unsigned_int",0},
4897 { "_wxCoord","_wxWindowID",0},
4898 { "_wxCoord","_uint",0},
4899 { "_wxCoord","_EBool",0},
4900 { "_wxCoord","_size_t",0},
4901 { "_wxCoord","_time_t",0},
4902 { "_wxCoord","_wxPrintQuality",0},
4903 { "_wxEvtHandler","_wxPyPanel",SwigwxPyPanelTowxEvtHandler},
4904 { "_wxEvtHandler","_wxPyControl",SwigwxPyControlTowxEvtHandler},
4905 { "_wxEvtHandler","_wxPyWindow",SwigwxPyWindowTowxEvtHandler},
4906 { "_wxEvtHandler","_wxSplitterWindow",SwigwxSplitterWindowTowxEvtHandler},
4907 { "_wxEvtHandler","_wxNotebook",SwigwxNotebookTowxEvtHandler},
4908 { "_wxWindow","_wxPyPanel",SwigwxPyPanelTowxWindow},
4909 { "_wxWindow","_wxPyControl",SwigwxPyControlTowxWindow},
4910 { "_wxWindow","_wxPyWindow",SwigwxPyWindowTowxWindow},
4911 { "_wxWindow","_wxSplitterWindow",SwigwxSplitterWindowTowxWindow},
4912 { "_wxWindow","_wxNotebook",SwigwxNotebookTowxWindow},
4913 {0,0,0}};
4914
4915 static PyObject *SWIG_globals;
4916 #ifdef __cplusplus
4917 extern "C"
4918 #endif
4919 SWIGEXPORT(void) initwindows2c() {
4920 PyObject *m, *d;
4921 SWIG_globals = SWIG_newvarlink();
4922 m = Py_InitModule("windows2c", windows2cMethods);
4923 d = PyModule_GetDict(m);
4924 PyDict_SetItemString(d,"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
4925 PyDict_SetItemString(d,"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
4926 PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING));
4927 PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED));
4928 PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_UNSPLIT));
4929 PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_DOUBLECLICKED));
4930 PyDict_SetItemString(d,"wxSPLIT_HORIZONTAL", PyInt_FromLong((long) wxSPLIT_HORIZONTAL));
4931 PyDict_SetItemString(d,"wxSPLIT_VERTICAL", PyInt_FromLong((long) wxSPLIT_VERTICAL));
4932 PyDict_SetItemString(d,"wxSPLIT_DRAG_NONE", PyInt_FromLong((long) wxSPLIT_DRAG_NONE));
4933 PyDict_SetItemString(d,"wxSPLIT_DRAG_DRAGGING", PyInt_FromLong((long) wxSPLIT_DRAG_DRAGGING));
4934 PyDict_SetItemString(d,"wxSPLIT_DRAG_LEFT_DOWN", PyInt_FromLong((long) wxSPLIT_DRAG_LEFT_DOWN));
4935 {
4936 int i;
4937 for (i = 0; _swig_mapping[i].n1; i++)
4938 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
4939 }
4940 }