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