]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/windows2.cpp
Applied and merged patch 486364, which enables wxPython to be built in
[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
70 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
71 PyObject* o2;
72 PyObject* o3;
73
74 if (!target) {
75 target = o;
76 } else if (target == Py_None) {
77 Py_DECREF(Py_None);
78 target = o;
79 } else {
80 if (!PyTuple_Check(target)) {
81 o2 = target;
82 target = PyTuple_New(1);
83 PyTuple_SetItem(target, 0, o2);
84 }
85 o3 = PyTuple_New(1);
86 PyTuple_SetItem(o3, 0, o);
87
88 o2 = target;
89 target = PySequence_Concat(o2, o3);
90 Py_DECREF(o2);
91 Py_DECREF(o3);
92 }
93 return target;
94 }
95 #ifdef __cplusplus
96 extern "C" {
97 #endif
98 static void *SwigwxNotebookEventTowxNotifyEvent(void *ptr) {
99 wxNotebookEvent *src;
100 wxNotifyEvent *dest;
101 src = (wxNotebookEvent *) ptr;
102 dest = (wxNotifyEvent *) src;
103 return (void *) dest;
104 }
105
106 static void *SwigwxNotebookEventTowxCommandEvent(void *ptr) {
107 wxNotebookEvent *src;
108 wxCommandEvent *dest;
109 src = (wxNotebookEvent *) ptr;
110 dest = (wxCommandEvent *) src;
111 return (void *) dest;
112 }
113
114 static void *SwigwxNotebookEventTowxEvent(void *ptr) {
115 wxNotebookEvent *src;
116 wxEvent *dest;
117 src = (wxNotebookEvent *) ptr;
118 dest = (wxEvent *) src;
119 return (void *) dest;
120 }
121
122 static void *SwigwxNotebookEventTowxObject(void *ptr) {
123 wxNotebookEvent *src;
124 wxObject *dest;
125 src = (wxNotebookEvent *) ptr;
126 dest = (wxObject *) src;
127 return (void *) dest;
128 }
129
130 #define new_wxNotebookEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxNotebookEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
131 static PyObject *_wrap_new_wxNotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
132 PyObject * _resultobj;
133 wxNotebookEvent * _result;
134 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
135 int _arg1 = (int ) 0;
136 int _arg2 = (int ) -1;
137 int _arg3 = (int ) -1;
138 char *_kwnames[] = { "commandType","id","nSel","nOldSel", NULL };
139 char _ptemp[128];
140
141 self = self;
142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxNotebookEvent",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
143 return NULL;
144 {
145 PyThreadState* __tstate = wxPyBeginAllowThreads();
146 _result = (wxNotebookEvent *)new_wxNotebookEvent(_arg0,_arg1,_arg2,_arg3);
147
148 wxPyEndAllowThreads(__tstate);
149 if (PyErr_Occurred()) return NULL;
150 } if (_result) {
151 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebookEvent_p");
152 _resultobj = Py_BuildValue("s",_ptemp);
153 } else {
154 Py_INCREF(Py_None);
155 _resultobj = Py_None;
156 }
157 return _resultobj;
158 }
159
160 #define wxNotebookEvent_GetSelection(_swigobj) (_swigobj->GetSelection())
161 static PyObject *_wrap_wxNotebookEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
162 PyObject * _resultobj;
163 int _result;
164 wxNotebookEvent * _arg0;
165 PyObject * _argo0 = 0;
166 char *_kwnames[] = { "self", NULL };
167
168 self = self;
169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookEvent_GetSelection",_kwnames,&_argo0))
170 return NULL;
171 if (_argo0) {
172 if (_argo0 == Py_None) { _arg0 = NULL; }
173 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) {
174 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_GetSelection. Expected _wxNotebookEvent_p.");
175 return NULL;
176 }
177 }
178 {
179 PyThreadState* __tstate = wxPyBeginAllowThreads();
180 _result = (int )wxNotebookEvent_GetSelection(_arg0);
181
182 wxPyEndAllowThreads(__tstate);
183 if (PyErr_Occurred()) return NULL;
184 } _resultobj = Py_BuildValue("i",_result);
185 return _resultobj;
186 }
187
188 #define wxNotebookEvent_GetOldSelection(_swigobj) (_swigobj->GetOldSelection())
189 static PyObject *_wrap_wxNotebookEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
190 PyObject * _resultobj;
191 int _result;
192 wxNotebookEvent * _arg0;
193 PyObject * _argo0 = 0;
194 char *_kwnames[] = { "self", NULL };
195
196 self = self;
197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookEvent_GetOldSelection",_kwnames,&_argo0))
198 return NULL;
199 if (_argo0) {
200 if (_argo0 == Py_None) { _arg0 = NULL; }
201 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) {
202 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_GetOldSelection. Expected _wxNotebookEvent_p.");
203 return NULL;
204 }
205 }
206 {
207 PyThreadState* __tstate = wxPyBeginAllowThreads();
208 _result = (int )wxNotebookEvent_GetOldSelection(_arg0);
209
210 wxPyEndAllowThreads(__tstate);
211 if (PyErr_Occurred()) return NULL;
212 } _resultobj = Py_BuildValue("i",_result);
213 return _resultobj;
214 }
215
216 #define wxNotebookEvent_SetOldSelection(_swigobj,_swigarg0) (_swigobj->SetOldSelection(_swigarg0))
217 static PyObject *_wrap_wxNotebookEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
218 PyObject * _resultobj;
219 wxNotebookEvent * _arg0;
220 int _arg1;
221 PyObject * _argo0 = 0;
222 char *_kwnames[] = { "self","page", NULL };
223
224 self = self;
225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebookEvent_SetOldSelection",_kwnames,&_argo0,&_arg1))
226 return NULL;
227 if (_argo0) {
228 if (_argo0 == Py_None) { _arg0 = NULL; }
229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) {
230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_SetOldSelection. Expected _wxNotebookEvent_p.");
231 return NULL;
232 }
233 }
234 {
235 PyThreadState* __tstate = wxPyBeginAllowThreads();
236 wxNotebookEvent_SetOldSelection(_arg0,_arg1);
237
238 wxPyEndAllowThreads(__tstate);
239 if (PyErr_Occurred()) return NULL;
240 } Py_INCREF(Py_None);
241 _resultobj = Py_None;
242 return _resultobj;
243 }
244
245 #define wxNotebookEvent_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
246 static PyObject *_wrap_wxNotebookEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
247 PyObject * _resultobj;
248 wxNotebookEvent * _arg0;
249 int _arg1;
250 PyObject * _argo0 = 0;
251 char *_kwnames[] = { "self","page", NULL };
252
253 self = self;
254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebookEvent_SetSelection",_kwnames,&_argo0,&_arg1))
255 return NULL;
256 if (_argo0) {
257 if (_argo0 == Py_None) { _arg0 = NULL; }
258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookEvent_p")) {
259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookEvent_SetSelection. Expected _wxNotebookEvent_p.");
260 return NULL;
261 }
262 }
263 {
264 PyThreadState* __tstate = wxPyBeginAllowThreads();
265 wxNotebookEvent_SetSelection(_arg0,_arg1);
266
267 wxPyEndAllowThreads(__tstate);
268 if (PyErr_Occurred()) return NULL;
269 } Py_INCREF(Py_None);
270 _resultobj = Py_None;
271 return _resultobj;
272 }
273
274 static void *SwigwxNotebookTowxControl(void *ptr) {
275 wxNotebook *src;
276 wxControl *dest;
277 src = (wxNotebook *) ptr;
278 dest = (wxControl *) src;
279 return (void *) dest;
280 }
281
282 static void *SwigwxNotebookTowxWindow(void *ptr) {
283 wxNotebook *src;
284 wxWindow *dest;
285 src = (wxNotebook *) ptr;
286 dest = (wxWindow *) src;
287 return (void *) dest;
288 }
289
290 static void *SwigwxNotebookTowxEvtHandler(void *ptr) {
291 wxNotebook *src;
292 wxEvtHandler *dest;
293 src = (wxNotebook *) ptr;
294 dest = (wxEvtHandler *) src;
295 return (void *) dest;
296 }
297
298 static void *SwigwxNotebookTowxObject(void *ptr) {
299 wxNotebook *src;
300 wxObject *dest;
301 src = (wxNotebook *) ptr;
302 dest = (wxObject *) src;
303 return (void *) dest;
304 }
305
306 #define new_wxNotebook(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxNotebook(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
307 static PyObject *_wrap_new_wxNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
308 PyObject * _resultobj;
309 wxNotebook * _result;
310 wxWindow * _arg0;
311 wxWindowID _arg1;
312 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
313 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
314 long _arg4 = (long ) 0;
315 char * _arg5 = (char *) "notebook";
316 PyObject * _argo0 = 0;
317 wxPoint temp;
318 PyObject * _obj2 = 0;
319 wxSize temp0;
320 PyObject * _obj3 = 0;
321 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
322 char _ptemp[128];
323
324 self = self;
325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxNotebook",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
326 return NULL;
327 if (_argo0) {
328 if (_argo0 == Py_None) { _arg0 = NULL; }
329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxNotebook. Expected _wxWindow_p.");
331 return NULL;
332 }
333 }
334 if (_obj2)
335 {
336 _arg2 = &temp;
337 if (! wxPoint_helper(_obj2, &_arg2))
338 return NULL;
339 }
340 if (_obj3)
341 {
342 _arg3 = &temp0;
343 if (! wxSize_helper(_obj3, &_arg3))
344 return NULL;
345 }
346 {
347 PyThreadState* __tstate = wxPyBeginAllowThreads();
348 _result = (wxNotebook *)new_wxNotebook(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
349
350 wxPyEndAllowThreads(__tstate);
351 if (PyErr_Occurred()) return NULL;
352 } if (_result) {
353 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebook_p");
354 _resultobj = Py_BuildValue("s",_ptemp);
355 } else {
356 Py_INCREF(Py_None);
357 _resultobj = Py_None;
358 }
359 return _resultobj;
360 }
361
362 #define new_wxPreNotebook() (new wxNotebook())
363 static PyObject *_wrap_new_wxPreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
364 PyObject * _resultobj;
365 wxNotebook * _result;
366 char *_kwnames[] = { NULL };
367 char _ptemp[128];
368
369 self = self;
370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreNotebook",_kwnames))
371 return NULL;
372 {
373 PyThreadState* __tstate = wxPyBeginAllowThreads();
374 _result = (wxNotebook *)new_wxPreNotebook();
375
376 wxPyEndAllowThreads(__tstate);
377 if (PyErr_Occurred()) return NULL;
378 } if (_result) {
379 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebook_p");
380 _resultobj = Py_BuildValue("s",_ptemp);
381 } else {
382 Py_INCREF(Py_None);
383 _resultobj = Py_None;
384 }
385 return _resultobj;
386 }
387
388 #define wxNotebook_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
389 static PyObject *_wrap_wxNotebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
390 PyObject * _resultobj;
391 bool _result;
392 wxNotebook * _arg0;
393 wxWindow * _arg1;
394 wxWindowID _arg2;
395 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
396 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
397 long _arg5 = (long ) 0;
398 char * _arg6 = (char *) "notebook";
399 PyObject * _argo0 = 0;
400 PyObject * _argo1 = 0;
401 wxPoint temp;
402 PyObject * _obj3 = 0;
403 wxSize temp0;
404 PyObject * _obj4 = 0;
405 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
406
407 self = self;
408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxNotebook_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
409 return NULL;
410 if (_argo0) {
411 if (_argo0 == Py_None) { _arg0 = NULL; }
412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_Create. Expected _wxNotebook_p.");
414 return NULL;
415 }
416 }
417 if (_argo1) {
418 if (_argo1 == Py_None) { _arg1 = NULL; }
419 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
420 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_Create. Expected _wxWindow_p.");
421 return NULL;
422 }
423 }
424 if (_obj3)
425 {
426 _arg3 = &temp;
427 if (! wxPoint_helper(_obj3, &_arg3))
428 return NULL;
429 }
430 if (_obj4)
431 {
432 _arg4 = &temp0;
433 if (! wxSize_helper(_obj4, &_arg4))
434 return NULL;
435 }
436 {
437 PyThreadState* __tstate = wxPyBeginAllowThreads();
438 _result = (bool )wxNotebook_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
439
440 wxPyEndAllowThreads(__tstate);
441 if (PyErr_Occurred()) return NULL;
442 } _resultobj = Py_BuildValue("i",_result);
443 return _resultobj;
444 }
445
446 #define wxNotebook_GetPageCount(_swigobj) (_swigobj->GetPageCount())
447 static PyObject *_wrap_wxNotebook_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
448 PyObject * _resultobj;
449 int _result;
450 wxNotebook * _arg0;
451 PyObject * _argo0 = 0;
452 char *_kwnames[] = { "self", NULL };
453
454 self = self;
455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetPageCount",_kwnames,&_argo0))
456 return NULL;
457 if (_argo0) {
458 if (_argo0 == Py_None) { _arg0 = NULL; }
459 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
460 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPageCount. Expected _wxNotebook_p.");
461 return NULL;
462 }
463 }
464 {
465 PyThreadState* __tstate = wxPyBeginAllowThreads();
466 _result = (int )wxNotebook_GetPageCount(_arg0);
467
468 wxPyEndAllowThreads(__tstate);
469 if (PyErr_Occurred()) return NULL;
470 } _resultobj = Py_BuildValue("i",_result);
471 return _resultobj;
472 }
473
474 #define wxNotebook_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
475 static PyObject *_wrap_wxNotebook_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
476 PyObject * _resultobj;
477 int _result;
478 wxNotebook * _arg0;
479 int _arg1;
480 PyObject * _argo0 = 0;
481 char *_kwnames[] = { "self","nPage", NULL };
482
483 self = self;
484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_SetSelection",_kwnames,&_argo0,&_arg1))
485 return NULL;
486 if (_argo0) {
487 if (_argo0 == Py_None) { _arg0 = NULL; }
488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetSelection. Expected _wxNotebook_p.");
490 return NULL;
491 }
492 }
493 {
494 PyThreadState* __tstate = wxPyBeginAllowThreads();
495 _result = (int )wxNotebook_SetSelection(_arg0,_arg1);
496
497 wxPyEndAllowThreads(__tstate);
498 if (PyErr_Occurred()) return NULL;
499 } _resultobj = Py_BuildValue("i",_result);
500 return _resultobj;
501 }
502
503 #define wxNotebook_AdvanceSelection(_swigobj,_swigarg0) (_swigobj->AdvanceSelection(_swigarg0))
504 static PyObject *_wrap_wxNotebook_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
505 PyObject * _resultobj;
506 wxNotebook * _arg0;
507 bool _arg1 = (bool ) TRUE;
508 PyObject * _argo0 = 0;
509 int tempbool1 = (int) TRUE;
510 char *_kwnames[] = { "self","bForward", NULL };
511
512 self = self;
513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxNotebook_AdvanceSelection",_kwnames,&_argo0,&tempbool1))
514 return NULL;
515 if (_argo0) {
516 if (_argo0 == Py_None) { _arg0 = NULL; }
517 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
518 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_AdvanceSelection. Expected _wxNotebook_p.");
519 return NULL;
520 }
521 }
522 _arg1 = (bool ) tempbool1;
523 {
524 PyThreadState* __tstate = wxPyBeginAllowThreads();
525 wxNotebook_AdvanceSelection(_arg0,_arg1);
526
527 wxPyEndAllowThreads(__tstate);
528 if (PyErr_Occurred()) return NULL;
529 } Py_INCREF(Py_None);
530 _resultobj = Py_None;
531 return _resultobj;
532 }
533
534 #define wxNotebook_GetSelection(_swigobj) (_swigobj->GetSelection())
535 static PyObject *_wrap_wxNotebook_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
536 PyObject * _resultobj;
537 int _result;
538 wxNotebook * _arg0;
539 PyObject * _argo0 = 0;
540 char *_kwnames[] = { "self", NULL };
541
542 self = self;
543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetSelection",_kwnames,&_argo0))
544 return NULL;
545 if (_argo0) {
546 if (_argo0 == Py_None) { _arg0 = NULL; }
547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetSelection. Expected _wxNotebook_p.");
549 return NULL;
550 }
551 }
552 {
553 PyThreadState* __tstate = wxPyBeginAllowThreads();
554 _result = (int )wxNotebook_GetSelection(_arg0);
555
556 wxPyEndAllowThreads(__tstate);
557 if (PyErr_Occurred()) return NULL;
558 } _resultobj = Py_BuildValue("i",_result);
559 return _resultobj;
560 }
561
562 #define wxNotebook_SetPageText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPageText(_swigarg0,_swigarg1))
563 static PyObject *_wrap_wxNotebook_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
564 PyObject * _resultobj;
565 bool _result;
566 wxNotebook * _arg0;
567 int _arg1;
568 wxString * _arg2;
569 PyObject * _argo0 = 0;
570 PyObject * _obj2 = 0;
571 char *_kwnames[] = { "self","nPage","strText", NULL };
572
573 self = self;
574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxNotebook_SetPageText",_kwnames,&_argo0,&_arg1,&_obj2))
575 return NULL;
576 if (_argo0) {
577 if (_argo0 == Py_None) { _arg0 = NULL; }
578 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
579 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPageText. Expected _wxNotebook_p.");
580 return NULL;
581 }
582 }
583 {
584 _arg2 = wxString_in_helper(_obj2);
585 if (_arg2 == NULL)
586 return NULL;
587 }
588 {
589 PyThreadState* __tstate = wxPyBeginAllowThreads();
590 _result = (bool )wxNotebook_SetPageText(_arg0,_arg1,*_arg2);
591
592 wxPyEndAllowThreads(__tstate);
593 if (PyErr_Occurred()) return NULL;
594 } _resultobj = Py_BuildValue("i",_result);
595 {
596 if (_obj2)
597 delete _arg2;
598 }
599 return _resultobj;
600 }
601
602 #define wxNotebook_GetPageText(_swigobj,_swigarg0) (_swigobj->GetPageText(_swigarg0))
603 static PyObject *_wrap_wxNotebook_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
604 PyObject * _resultobj;
605 wxString * _result;
606 wxNotebook * _arg0;
607 int _arg1;
608 PyObject * _argo0 = 0;
609 char *_kwnames[] = { "self","nPage", NULL };
610
611 self = self;
612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_GetPageText",_kwnames,&_argo0,&_arg1))
613 return NULL;
614 if (_argo0) {
615 if (_argo0 == Py_None) { _arg0 = NULL; }
616 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
617 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPageText. Expected _wxNotebook_p.");
618 return NULL;
619 }
620 }
621 {
622 PyThreadState* __tstate = wxPyBeginAllowThreads();
623 _result = new wxString (wxNotebook_GetPageText(_arg0,_arg1));
624
625 wxPyEndAllowThreads(__tstate);
626 if (PyErr_Occurred()) return NULL;
627 }{
628 #if wxUSE_UNICODE
629 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
630 #else
631 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
632 #endif
633 }
634 {
635 delete _result;
636 }
637 return _resultobj;
638 }
639
640 #define wxNotebook_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0))
641 static PyObject *_wrap_wxNotebook_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
642 PyObject * _resultobj;
643 wxNotebook * _arg0;
644 wxImageList * _arg1;
645 PyObject * _argo0 = 0;
646 PyObject * _argo1 = 0;
647 char *_kwnames[] = { "self","imageList", NULL };
648
649 self = self;
650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_SetImageList",_kwnames,&_argo0,&_argo1))
651 return NULL;
652 if (_argo0) {
653 if (_argo0 == Py_None) { _arg0 = NULL; }
654 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
655 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetImageList. Expected _wxNotebook_p.");
656 return NULL;
657 }
658 }
659 if (_argo1) {
660 if (_argo1 == Py_None) { _arg1 = NULL; }
661 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
662 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_SetImageList. Expected _wxImageList_p.");
663 return NULL;
664 }
665 }
666 {
667 PyThreadState* __tstate = wxPyBeginAllowThreads();
668 wxNotebook_SetImageList(_arg0,_arg1);
669
670 wxPyEndAllowThreads(__tstate);
671 if (PyErr_Occurred()) return NULL;
672 } Py_INCREF(Py_None);
673 _resultobj = Py_None;
674 return _resultobj;
675 }
676
677 #define wxNotebook_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0))
678 static PyObject *_wrap_wxNotebook_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
679 PyObject * _resultobj;
680 wxNotebook * _arg0;
681 wxImageList * _arg1;
682 PyObject * _argo0 = 0;
683 PyObject * _argo1 = 0;
684 char *_kwnames[] = { "self","imageList", NULL };
685
686 self = self;
687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_AssignImageList",_kwnames,&_argo0,&_argo1))
688 return NULL;
689 if (_argo0) {
690 if (_argo0 == Py_None) { _arg0 = NULL; }
691 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
692 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_AssignImageList. Expected _wxNotebook_p.");
693 return NULL;
694 }
695 }
696 if (_argo1) {
697 if (_argo1 == Py_None) { _arg1 = NULL; }
698 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
699 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_AssignImageList. Expected _wxImageList_p.");
700 return NULL;
701 }
702 }
703 {
704 PyThreadState* __tstate = wxPyBeginAllowThreads();
705 wxNotebook_AssignImageList(_arg0,_arg1);
706
707 wxPyEndAllowThreads(__tstate);
708 if (PyErr_Occurred()) return NULL;
709 } Py_INCREF(Py_None);
710 _resultobj = Py_None;
711 return _resultobj;
712 }
713
714 #define wxNotebook_GetImageList(_swigobj) (_swigobj->GetImageList())
715 static PyObject *_wrap_wxNotebook_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
716 PyObject * _resultobj;
717 wxImageList * _result;
718 wxNotebook * _arg0;
719 PyObject * _argo0 = 0;
720 char *_kwnames[] = { "self", NULL };
721
722 self = self;
723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetImageList",_kwnames,&_argo0))
724 return NULL;
725 if (_argo0) {
726 if (_argo0 == Py_None) { _arg0 = NULL; }
727 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
728 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetImageList. Expected _wxNotebook_p.");
729 return NULL;
730 }
731 }
732 {
733 PyThreadState* __tstate = wxPyBeginAllowThreads();
734 _result = (wxImageList *)wxNotebook_GetImageList(_arg0);
735
736 wxPyEndAllowThreads(__tstate);
737 if (PyErr_Occurred()) return NULL;
738 }{ _resultobj = wxPyMake_wxObject(_result); }
739 return _resultobj;
740 }
741
742 #define wxNotebook_GetPageImage(_swigobj,_swigarg0) (_swigobj->GetPageImage(_swigarg0))
743 static PyObject *_wrap_wxNotebook_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
744 PyObject * _resultobj;
745 int _result;
746 wxNotebook * _arg0;
747 int _arg1;
748 PyObject * _argo0 = 0;
749 char *_kwnames[] = { "self","nPage", NULL };
750
751 self = self;
752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_GetPageImage",_kwnames,&_argo0,&_arg1))
753 return NULL;
754 if (_argo0) {
755 if (_argo0 == Py_None) { _arg0 = NULL; }
756 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
757 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPageImage. Expected _wxNotebook_p.");
758 return NULL;
759 }
760 }
761 {
762 PyThreadState* __tstate = wxPyBeginAllowThreads();
763 _result = (int )wxNotebook_GetPageImage(_arg0,_arg1);
764
765 wxPyEndAllowThreads(__tstate);
766 if (PyErr_Occurred()) return NULL;
767 } _resultobj = Py_BuildValue("i",_result);
768 return _resultobj;
769 }
770
771 #define wxNotebook_SetPageImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPageImage(_swigarg0,_swigarg1))
772 static PyObject *_wrap_wxNotebook_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
773 PyObject * _resultobj;
774 bool _result;
775 wxNotebook * _arg0;
776 int _arg1;
777 int _arg2;
778 PyObject * _argo0 = 0;
779 char *_kwnames[] = { "self","nPage","nImage", NULL };
780
781 self = self;
782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxNotebook_SetPageImage",_kwnames,&_argo0,&_arg1,&_arg2))
783 return NULL;
784 if (_argo0) {
785 if (_argo0 == Py_None) { _arg0 = NULL; }
786 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
787 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPageImage. Expected _wxNotebook_p.");
788 return NULL;
789 }
790 }
791 {
792 PyThreadState* __tstate = wxPyBeginAllowThreads();
793 _result = (bool )wxNotebook_SetPageImage(_arg0,_arg1,_arg2);
794
795 wxPyEndAllowThreads(__tstate);
796 if (PyErr_Occurred()) return NULL;
797 } _resultobj = Py_BuildValue("i",_result);
798 return _resultobj;
799 }
800
801 #define wxNotebook_GetRowCount(_swigobj) (_swigobj->GetRowCount())
802 static PyObject *_wrap_wxNotebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
803 PyObject * _resultobj;
804 int _result;
805 wxNotebook * _arg0;
806 PyObject * _argo0 = 0;
807 char *_kwnames[] = { "self", NULL };
808
809 self = self;
810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetRowCount",_kwnames,&_argo0))
811 return NULL;
812 if (_argo0) {
813 if (_argo0 == Py_None) { _arg0 = NULL; }
814 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
815 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetRowCount. Expected _wxNotebook_p.");
816 return NULL;
817 }
818 }
819 {
820 PyThreadState* __tstate = wxPyBeginAllowThreads();
821 _result = (int )wxNotebook_GetRowCount(_arg0);
822
823 wxPyEndAllowThreads(__tstate);
824 if (PyErr_Occurred()) return NULL;
825 } _resultobj = Py_BuildValue("i",_result);
826 return _resultobj;
827 }
828
829 #define wxNotebook_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0))
830 static PyObject *_wrap_wxNotebook_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
831 PyObject * _resultobj;
832 wxNotebook * _arg0;
833 wxSize * _arg1;
834 PyObject * _argo0 = 0;
835 wxSize temp;
836 PyObject * _obj1 = 0;
837 char *_kwnames[] = { "self","size", NULL };
838
839 self = self;
840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_SetPageSize",_kwnames,&_argo0,&_obj1))
841 return NULL;
842 if (_argo0) {
843 if (_argo0 == Py_None) { _arg0 = NULL; }
844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPageSize. Expected _wxNotebook_p.");
846 return NULL;
847 }
848 }
849 {
850 _arg1 = &temp;
851 if (! wxSize_helper(_obj1, &_arg1))
852 return NULL;
853 }
854 {
855 PyThreadState* __tstate = wxPyBeginAllowThreads();
856 wxNotebook_SetPageSize(_arg0,*_arg1);
857
858 wxPyEndAllowThreads(__tstate);
859 if (PyErr_Occurred()) return NULL;
860 } Py_INCREF(Py_None);
861 _resultobj = Py_None;
862 return _resultobj;
863 }
864
865 #define wxNotebook_SetPadding(_swigobj,_swigarg0) (_swigobj->SetPadding(_swigarg0))
866 static PyObject *_wrap_wxNotebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) {
867 PyObject * _resultobj;
868 wxNotebook * _arg0;
869 wxSize * _arg1;
870 PyObject * _argo0 = 0;
871 wxSize temp;
872 PyObject * _obj1 = 0;
873 char *_kwnames[] = { "self","padding", NULL };
874
875 self = self;
876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_SetPadding",_kwnames,&_argo0,&_obj1))
877 return NULL;
878 if (_argo0) {
879 if (_argo0 == Py_None) { _arg0 = NULL; }
880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_SetPadding. Expected _wxNotebook_p.");
882 return NULL;
883 }
884 }
885 {
886 _arg1 = &temp;
887 if (! wxSize_helper(_obj1, &_arg1))
888 return NULL;
889 }
890 {
891 PyThreadState* __tstate = wxPyBeginAllowThreads();
892 wxNotebook_SetPadding(_arg0,*_arg1);
893
894 wxPyEndAllowThreads(__tstate);
895 if (PyErr_Occurred()) return NULL;
896 } Py_INCREF(Py_None);
897 _resultobj = Py_None;
898 return _resultobj;
899 }
900
901 #define wxNotebook_DeletePage(_swigobj,_swigarg0) (_swigobj->DeletePage(_swigarg0))
902 static PyObject *_wrap_wxNotebook_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) {
903 PyObject * _resultobj;
904 bool _result;
905 wxNotebook * _arg0;
906 int _arg1;
907 PyObject * _argo0 = 0;
908 char *_kwnames[] = { "self","nPage", NULL };
909
910 self = self;
911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_DeletePage",_kwnames,&_argo0,&_arg1))
912 return NULL;
913 if (_argo0) {
914 if (_argo0 == Py_None) { _arg0 = NULL; }
915 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
916 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_DeletePage. Expected _wxNotebook_p.");
917 return NULL;
918 }
919 }
920 {
921 PyThreadState* __tstate = wxPyBeginAllowThreads();
922 _result = (bool )wxNotebook_DeletePage(_arg0,_arg1);
923
924 wxPyEndAllowThreads(__tstate);
925 if (PyErr_Occurred()) return NULL;
926 } _resultobj = Py_BuildValue("i",_result);
927 return _resultobj;
928 }
929
930 #define wxNotebook_RemovePage(_swigobj,_swigarg0) (_swigobj->RemovePage(_swigarg0))
931 static PyObject *_wrap_wxNotebook_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) {
932 PyObject * _resultobj;
933 bool _result;
934 wxNotebook * _arg0;
935 int _arg1;
936 PyObject * _argo0 = 0;
937 char *_kwnames[] = { "self","nPage", NULL };
938
939 self = self;
940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_RemovePage",_kwnames,&_argo0,&_arg1))
941 return NULL;
942 if (_argo0) {
943 if (_argo0 == Py_None) { _arg0 = NULL; }
944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_RemovePage. Expected _wxNotebook_p.");
946 return NULL;
947 }
948 }
949 {
950 PyThreadState* __tstate = wxPyBeginAllowThreads();
951 _result = (bool )wxNotebook_RemovePage(_arg0,_arg1);
952
953 wxPyEndAllowThreads(__tstate);
954 if (PyErr_Occurred()) return NULL;
955 } _resultobj = Py_BuildValue("i",_result);
956 return _resultobj;
957 }
958
959 #define wxNotebook_DeleteAllPages(_swigobj) (_swigobj->DeleteAllPages())
960 static PyObject *_wrap_wxNotebook_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
961 PyObject * _resultobj;
962 bool _result;
963 wxNotebook * _arg0;
964 PyObject * _argo0 = 0;
965 char *_kwnames[] = { "self", NULL };
966
967 self = self;
968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_DeleteAllPages",_kwnames,&_argo0))
969 return NULL;
970 if (_argo0) {
971 if (_argo0 == Py_None) { _arg0 = NULL; }
972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_DeleteAllPages. Expected _wxNotebook_p.");
974 return NULL;
975 }
976 }
977 {
978 PyThreadState* __tstate = wxPyBeginAllowThreads();
979 _result = (bool )wxNotebook_DeleteAllPages(_arg0);
980
981 wxPyEndAllowThreads(__tstate);
982 if (PyErr_Occurred()) return NULL;
983 } _resultobj = Py_BuildValue("i",_result);
984 return _resultobj;
985 }
986
987 #define wxNotebook_AddPage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddPage(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
988 static PyObject *_wrap_wxNotebook_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) {
989 PyObject * _resultobj;
990 bool _result;
991 wxNotebook * _arg0;
992 wxWindow * _arg1;
993 wxString * _arg2;
994 int _arg3 = (int ) FALSE;
995 int _arg4 = (int ) -1;
996 PyObject * _argo0 = 0;
997 PyObject * _argo1 = 0;
998 PyObject * _obj2 = 0;
999 char *_kwnames[] = { "self","pPage","strText","bSelect","imageId", NULL };
1000
1001 self = self;
1002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxNotebook_AddPage",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4))
1003 return NULL;
1004 if (_argo0) {
1005 if (_argo0 == Py_None) { _arg0 = NULL; }
1006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_AddPage. Expected _wxNotebook_p.");
1008 return NULL;
1009 }
1010 }
1011 if (_argo1) {
1012 if (_argo1 == Py_None) { _arg1 = NULL; }
1013 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1014 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_AddPage. Expected _wxWindow_p.");
1015 return NULL;
1016 }
1017 }
1018 {
1019 _arg2 = wxString_in_helper(_obj2);
1020 if (_arg2 == NULL)
1021 return NULL;
1022 }
1023 {
1024 PyThreadState* __tstate = wxPyBeginAllowThreads();
1025 _result = (bool )wxNotebook_AddPage(_arg0,_arg1,*_arg2,_arg3,_arg4);
1026
1027 wxPyEndAllowThreads(__tstate);
1028 if (PyErr_Occurred()) return NULL;
1029 } _resultobj = Py_BuildValue("i",_result);
1030 {
1031 if (_obj2)
1032 delete _arg2;
1033 }
1034 return _resultobj;
1035 }
1036
1037 #define wxNotebook_InsertPage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->InsertPage(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1038 static PyObject *_wrap_wxNotebook_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) {
1039 PyObject * _resultobj;
1040 bool _result;
1041 wxNotebook * _arg0;
1042 int _arg1;
1043 wxWindow * _arg2;
1044 wxString * _arg3;
1045 bool _arg4 = (bool ) FALSE;
1046 int _arg5 = (int ) -1;
1047 PyObject * _argo0 = 0;
1048 PyObject * _argo2 = 0;
1049 PyObject * _obj3 = 0;
1050 int tempbool4 = (int) FALSE;
1051 char *_kwnames[] = { "self","nPage","pPage","strText","bSelect","imageId", NULL };
1052
1053 self = self;
1054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|ii:wxNotebook_InsertPage",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&tempbool4,&_arg5))
1055 return NULL;
1056 if (_argo0) {
1057 if (_argo0 == Py_None) { _arg0 = NULL; }
1058 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1059 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_InsertPage. Expected _wxNotebook_p.");
1060 return NULL;
1061 }
1062 }
1063 if (_argo2) {
1064 if (_argo2 == Py_None) { _arg2 = NULL; }
1065 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
1066 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxNotebook_InsertPage. Expected _wxWindow_p.");
1067 return NULL;
1068 }
1069 }
1070 {
1071 _arg3 = wxString_in_helper(_obj3);
1072 if (_arg3 == NULL)
1073 return NULL;
1074 }
1075 _arg4 = (bool ) tempbool4;
1076 {
1077 PyThreadState* __tstate = wxPyBeginAllowThreads();
1078 _result = (bool )wxNotebook_InsertPage(_arg0,_arg1,_arg2,*_arg3,_arg4,_arg5);
1079
1080 wxPyEndAllowThreads(__tstate);
1081 if (PyErr_Occurred()) return NULL;
1082 } _resultobj = Py_BuildValue("i",_result);
1083 {
1084 if (_obj3)
1085 delete _arg3;
1086 }
1087 return _resultobj;
1088 }
1089
1090 #define wxNotebook_GetPage(_swigobj,_swigarg0) (_swigobj->GetPage(_swigarg0))
1091 static PyObject *_wrap_wxNotebook_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
1092 PyObject * _resultobj;
1093 wxWindow * _result;
1094 wxNotebook * _arg0;
1095 int _arg1;
1096 PyObject * _argo0 = 0;
1097 char *_kwnames[] = { "self","nPage", NULL };
1098
1099 self = self;
1100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_GetPage",_kwnames,&_argo0,&_arg1))
1101 return NULL;
1102 if (_argo0) {
1103 if (_argo0 == Py_None) { _arg0 = NULL; }
1104 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1105 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_GetPage. Expected _wxNotebook_p.");
1106 return NULL;
1107 }
1108 }
1109 {
1110 PyThreadState* __tstate = wxPyBeginAllowThreads();
1111 _result = (wxWindow *)wxNotebook_GetPage(_arg0,_arg1);
1112
1113 wxPyEndAllowThreads(__tstate);
1114 if (PyErr_Occurred()) return NULL;
1115 }{ _resultobj = wxPyMake_wxObject(_result); }
1116 return _resultobj;
1117 }
1118
1119 static void wxNotebook_ResizeChildren(wxNotebook *self) {
1120 wxSizeEvent evt(self->GetClientSize());
1121 self->GetEventHandler()->ProcessEvent(evt);
1122 }
1123 static PyObject *_wrap_wxNotebook_ResizeChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
1124 PyObject * _resultobj;
1125 wxNotebook * _arg0;
1126 PyObject * _argo0 = 0;
1127 char *_kwnames[] = { "self", NULL };
1128
1129 self = self;
1130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_ResizeChildren",_kwnames,&_argo0))
1131 return NULL;
1132 if (_argo0) {
1133 if (_argo0 == Py_None) { _arg0 = NULL; }
1134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
1135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_ResizeChildren. Expected _wxNotebook_p.");
1136 return NULL;
1137 }
1138 }
1139 {
1140 PyThreadState* __tstate = wxPyBeginAllowThreads();
1141 wxNotebook_ResizeChildren(_arg0);
1142
1143 wxPyEndAllowThreads(__tstate);
1144 if (PyErr_Occurred()) return NULL;
1145 } Py_INCREF(Py_None);
1146 _resultobj = Py_None;
1147 return _resultobj;
1148 }
1149
1150 static void *SwigwxSplitterEventTowxCommandEvent(void *ptr) {
1151 wxSplitterEvent *src;
1152 wxCommandEvent *dest;
1153 src = (wxSplitterEvent *) ptr;
1154 dest = (wxCommandEvent *) src;
1155 return (void *) dest;
1156 }
1157
1158 static void *SwigwxSplitterEventTowxEvent(void *ptr) {
1159 wxSplitterEvent *src;
1160 wxEvent *dest;
1161 src = (wxSplitterEvent *) ptr;
1162 dest = (wxEvent *) src;
1163 return (void *) dest;
1164 }
1165
1166 static void *SwigwxSplitterEventTowxObject(void *ptr) {
1167 wxSplitterEvent *src;
1168 wxObject *dest;
1169 src = (wxSplitterEvent *) ptr;
1170 dest = (wxObject *) src;
1171 return (void *) dest;
1172 }
1173
1174 #define new_wxSplitterEvent(_swigarg0,_swigarg1) (new wxSplitterEvent(_swigarg0,_swigarg1))
1175 static PyObject *_wrap_new_wxSplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
1176 PyObject * _resultobj;
1177 wxSplitterEvent * _result;
1178 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
1179 wxSplitterWindow * _arg1 = (wxSplitterWindow *) NULL;
1180 PyObject * _argo1 = 0;
1181 char *_kwnames[] = { "type","splitter", NULL };
1182 char _ptemp[128];
1183
1184 self = self;
1185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iO:new_wxSplitterEvent",_kwnames,&_arg0,&_argo1))
1186 return NULL;
1187 if (_argo1) {
1188 if (_argo1 == Py_None) { _arg1 = NULL; }
1189 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSplitterWindow_p")) {
1190 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxSplitterEvent. Expected _wxSplitterWindow_p.");
1191 return NULL;
1192 }
1193 }
1194 {
1195 PyThreadState* __tstate = wxPyBeginAllowThreads();
1196 _result = (wxSplitterEvent *)new_wxSplitterEvent(_arg0,_arg1);
1197
1198 wxPyEndAllowThreads(__tstate);
1199 if (PyErr_Occurred()) return NULL;
1200 } if (_result) {
1201 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterEvent_p");
1202 _resultobj = Py_BuildValue("s",_ptemp);
1203 } else {
1204 Py_INCREF(Py_None);
1205 _resultobj = Py_None;
1206 }
1207 return _resultobj;
1208 }
1209
1210 #define wxSplitterEvent_GetSashPosition(_swigobj) (_swigobj->GetSashPosition())
1211 static PyObject *_wrap_wxSplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
1212 PyObject * _resultobj;
1213 int _result;
1214 wxSplitterEvent * _arg0;
1215 PyObject * _argo0 = 0;
1216 char *_kwnames[] = { "self", NULL };
1217
1218 self = self;
1219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetSashPosition",_kwnames,&_argo0))
1220 return NULL;
1221 if (_argo0) {
1222 if (_argo0 == Py_None) { _arg0 = NULL; }
1223 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) {
1224 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetSashPosition. Expected _wxSplitterEvent_p.");
1225 return NULL;
1226 }
1227 }
1228 {
1229 PyThreadState* __tstate = wxPyBeginAllowThreads();
1230 _result = (int )wxSplitterEvent_GetSashPosition(_arg0);
1231
1232 wxPyEndAllowThreads(__tstate);
1233 if (PyErr_Occurred()) return NULL;
1234 } _resultobj = Py_BuildValue("i",_result);
1235 return _resultobj;
1236 }
1237
1238 #define wxSplitterEvent_GetX(_swigobj) (_swigobj->GetX())
1239 static PyObject *_wrap_wxSplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
1240 PyObject * _resultobj;
1241 int _result;
1242 wxSplitterEvent * _arg0;
1243 PyObject * _argo0 = 0;
1244 char *_kwnames[] = { "self", NULL };
1245
1246 self = self;
1247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetX",_kwnames,&_argo0))
1248 return NULL;
1249 if (_argo0) {
1250 if (_argo0 == Py_None) { _arg0 = NULL; }
1251 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) {
1252 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetX. Expected _wxSplitterEvent_p.");
1253 return NULL;
1254 }
1255 }
1256 {
1257 PyThreadState* __tstate = wxPyBeginAllowThreads();
1258 _result = (int )wxSplitterEvent_GetX(_arg0);
1259
1260 wxPyEndAllowThreads(__tstate);
1261 if (PyErr_Occurred()) return NULL;
1262 } _resultobj = Py_BuildValue("i",_result);
1263 return _resultobj;
1264 }
1265
1266 #define wxSplitterEvent_GetY(_swigobj) (_swigobj->GetY())
1267 static PyObject *_wrap_wxSplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
1268 PyObject * _resultobj;
1269 int _result;
1270 wxSplitterEvent * _arg0;
1271 PyObject * _argo0 = 0;
1272 char *_kwnames[] = { "self", NULL };
1273
1274 self = self;
1275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetY",_kwnames,&_argo0))
1276 return NULL;
1277 if (_argo0) {
1278 if (_argo0 == Py_None) { _arg0 = NULL; }
1279 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) {
1280 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetY. Expected _wxSplitterEvent_p.");
1281 return NULL;
1282 }
1283 }
1284 {
1285 PyThreadState* __tstate = wxPyBeginAllowThreads();
1286 _result = (int )wxSplitterEvent_GetY(_arg0);
1287
1288 wxPyEndAllowThreads(__tstate);
1289 if (PyErr_Occurred()) return NULL;
1290 } _resultobj = Py_BuildValue("i",_result);
1291 return _resultobj;
1292 }
1293
1294 #define wxSplitterEvent_GetWindowBeingRemoved(_swigobj) (_swigobj->GetWindowBeingRemoved())
1295 static PyObject *_wrap_wxSplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) {
1296 PyObject * _resultobj;
1297 wxWindow * _result;
1298 wxSplitterEvent * _arg0;
1299 PyObject * _argo0 = 0;
1300 char *_kwnames[] = { "self", NULL };
1301
1302 self = self;
1303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetWindowBeingRemoved",_kwnames,&_argo0))
1304 return NULL;
1305 if (_argo0) {
1306 if (_argo0 == Py_None) { _arg0 = NULL; }
1307 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) {
1308 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_GetWindowBeingRemoved. Expected _wxSplitterEvent_p.");
1309 return NULL;
1310 }
1311 }
1312 {
1313 PyThreadState* __tstate = wxPyBeginAllowThreads();
1314 _result = (wxWindow *)wxSplitterEvent_GetWindowBeingRemoved(_arg0);
1315
1316 wxPyEndAllowThreads(__tstate);
1317 if (PyErr_Occurred()) return NULL;
1318 }{ _resultobj = wxPyMake_wxObject(_result); }
1319 return _resultobj;
1320 }
1321
1322 #define wxSplitterEvent_SetSashPosition(_swigobj,_swigarg0) (_swigobj->SetSashPosition(_swigarg0))
1323 static PyObject *_wrap_wxSplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
1324 PyObject * _resultobj;
1325 wxSplitterEvent * _arg0;
1326 int _arg1;
1327 PyObject * _argo0 = 0;
1328 char *_kwnames[] = { "self","pos", NULL };
1329
1330 self = self;
1331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterEvent_SetSashPosition",_kwnames,&_argo0,&_arg1))
1332 return NULL;
1333 if (_argo0) {
1334 if (_argo0 == Py_None) { _arg0 = NULL; }
1335 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterEvent_p")) {
1336 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterEvent_SetSashPosition. Expected _wxSplitterEvent_p.");
1337 return NULL;
1338 }
1339 }
1340 {
1341 PyThreadState* __tstate = wxPyBeginAllowThreads();
1342 wxSplitterEvent_SetSashPosition(_arg0,_arg1);
1343
1344 wxPyEndAllowThreads(__tstate);
1345 if (PyErr_Occurred()) return NULL;
1346 } Py_INCREF(Py_None);
1347 _resultobj = Py_None;
1348 return _resultobj;
1349 }
1350
1351 static void *SwigwxSplitterWindowTowxWindow(void *ptr) {
1352 wxSplitterWindow *src;
1353 wxWindow *dest;
1354 src = (wxSplitterWindow *) ptr;
1355 dest = (wxWindow *) src;
1356 return (void *) dest;
1357 }
1358
1359 static void *SwigwxSplitterWindowTowxEvtHandler(void *ptr) {
1360 wxSplitterWindow *src;
1361 wxEvtHandler *dest;
1362 src = (wxSplitterWindow *) ptr;
1363 dest = (wxEvtHandler *) src;
1364 return (void *) dest;
1365 }
1366
1367 static void *SwigwxSplitterWindowTowxObject(void *ptr) {
1368 wxSplitterWindow *src;
1369 wxObject *dest;
1370 src = (wxSplitterWindow *) ptr;
1371 dest = (wxObject *) src;
1372 return (void *) dest;
1373 }
1374
1375 #define new_wxSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1376 static PyObject *_wrap_new_wxSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1377 PyObject * _resultobj;
1378 wxSplitterWindow * _result;
1379 wxWindow * _arg0;
1380 wxWindowID _arg1;
1381 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
1382 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
1383 long _arg4 = (long ) wxSP_3D|wxCLIP_CHILDREN;
1384 char * _arg5 = (char *) "splitterWindow";
1385 PyObject * _argo0 = 0;
1386 wxPoint temp;
1387 PyObject * _obj2 = 0;
1388 wxSize temp0;
1389 PyObject * _obj3 = 0;
1390 char *_kwnames[] = { "parent","id","point","size","style","name", NULL };
1391 char _ptemp[128];
1392
1393 self = self;
1394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxSplitterWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
1395 return NULL;
1396 if (_argo0) {
1397 if (_argo0 == Py_None) { _arg0 = NULL; }
1398 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSplitterWindow. Expected _wxWindow_p.");
1400 return NULL;
1401 }
1402 }
1403 if (_obj2)
1404 {
1405 _arg2 = &temp;
1406 if (! wxPoint_helper(_obj2, &_arg2))
1407 return NULL;
1408 }
1409 if (_obj3)
1410 {
1411 _arg3 = &temp0;
1412 if (! wxSize_helper(_obj3, &_arg3))
1413 return NULL;
1414 }
1415 {
1416 PyThreadState* __tstate = wxPyBeginAllowThreads();
1417 _result = (wxSplitterWindow *)new_wxSplitterWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
1418
1419 wxPyEndAllowThreads(__tstate);
1420 if (PyErr_Occurred()) return NULL;
1421 } if (_result) {
1422 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterWindow_p");
1423 _resultobj = Py_BuildValue("s",_ptemp);
1424 } else {
1425 Py_INCREF(Py_None);
1426 _resultobj = Py_None;
1427 }
1428 return _resultobj;
1429 }
1430
1431 #define new_wxPreSplitterWindow() (new wxSplitterWindow())
1432 static PyObject *_wrap_new_wxPreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1433 PyObject * _resultobj;
1434 wxSplitterWindow * _result;
1435 char *_kwnames[] = { NULL };
1436 char _ptemp[128];
1437
1438 self = self;
1439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSplitterWindow",_kwnames))
1440 return NULL;
1441 {
1442 PyThreadState* __tstate = wxPyBeginAllowThreads();
1443 _result = (wxSplitterWindow *)new_wxPreSplitterWindow();
1444
1445 wxPyEndAllowThreads(__tstate);
1446 if (PyErr_Occurred()) return NULL;
1447 } if (_result) {
1448 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterWindow_p");
1449 _resultobj = Py_BuildValue("s",_ptemp);
1450 } else {
1451 Py_INCREF(Py_None);
1452 _resultobj = Py_None;
1453 }
1454 return _resultobj;
1455 }
1456
1457 #define wxSplitterWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1458 static PyObject *_wrap_wxSplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1459 PyObject * _resultobj;
1460 bool _result;
1461 wxSplitterWindow * _arg0;
1462 wxWindow * _arg1;
1463 wxWindowID _arg2;
1464 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1465 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1466 long _arg5 = (long ) wxSP_3D|wxCLIP_CHILDREN;
1467 char * _arg6 = (char *) "splitterWindow";
1468 PyObject * _argo0 = 0;
1469 PyObject * _argo1 = 0;
1470 wxPoint temp;
1471 PyObject * _obj3 = 0;
1472 wxSize temp0;
1473 PyObject * _obj4 = 0;
1474 char *_kwnames[] = { "self","parent","id","point","size","style","name", NULL };
1475
1476 self = self;
1477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxSplitterWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
1478 return NULL;
1479 if (_argo0) {
1480 if (_argo0 == Py_None) { _arg0 = NULL; }
1481 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1482 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_Create. Expected _wxSplitterWindow_p.");
1483 return NULL;
1484 }
1485 }
1486 if (_argo1) {
1487 if (_argo1 == Py_None) { _arg1 = NULL; }
1488 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1489 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_Create. Expected _wxWindow_p.");
1490 return NULL;
1491 }
1492 }
1493 if (_obj3)
1494 {
1495 _arg3 = &temp;
1496 if (! wxPoint_helper(_obj3, &_arg3))
1497 return NULL;
1498 }
1499 if (_obj4)
1500 {
1501 _arg4 = &temp0;
1502 if (! wxSize_helper(_obj4, &_arg4))
1503 return NULL;
1504 }
1505 {
1506 PyThreadState* __tstate = wxPyBeginAllowThreads();
1507 _result = (bool )wxSplitterWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
1508
1509 wxPyEndAllowThreads(__tstate);
1510 if (PyErr_Occurred()) return NULL;
1511 } _resultobj = Py_BuildValue("i",_result);
1512 return _resultobj;
1513 }
1514
1515 #define wxSplitterWindow_GetWindow1(_swigobj) (_swigobj->GetWindow1())
1516 static PyObject *_wrap_wxSplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) {
1517 PyObject * _resultobj;
1518 wxWindow * _result;
1519 wxSplitterWindow * _arg0;
1520 PyObject * _argo0 = 0;
1521 char *_kwnames[] = { "self", NULL };
1522
1523 self = self;
1524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetWindow1",_kwnames,&_argo0))
1525 return NULL;
1526 if (_argo0) {
1527 if (_argo0 == Py_None) { _arg0 = NULL; }
1528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetWindow1. Expected _wxSplitterWindow_p.");
1530 return NULL;
1531 }
1532 }
1533 {
1534 PyThreadState* __tstate = wxPyBeginAllowThreads();
1535 _result = (wxWindow *)wxSplitterWindow_GetWindow1(_arg0);
1536
1537 wxPyEndAllowThreads(__tstate);
1538 if (PyErr_Occurred()) return NULL;
1539 }{ _resultobj = wxPyMake_wxObject(_result); }
1540 return _resultobj;
1541 }
1542
1543 #define wxSplitterWindow_GetWindow2(_swigobj) (_swigobj->GetWindow2())
1544 static PyObject *_wrap_wxSplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) {
1545 PyObject * _resultobj;
1546 wxWindow * _result;
1547 wxSplitterWindow * _arg0;
1548 PyObject * _argo0 = 0;
1549 char *_kwnames[] = { "self", NULL };
1550
1551 self = self;
1552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetWindow2",_kwnames,&_argo0))
1553 return NULL;
1554 if (_argo0) {
1555 if (_argo0 == Py_None) { _arg0 = NULL; }
1556 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1557 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetWindow2. Expected _wxSplitterWindow_p.");
1558 return NULL;
1559 }
1560 }
1561 {
1562 PyThreadState* __tstate = wxPyBeginAllowThreads();
1563 _result = (wxWindow *)wxSplitterWindow_GetWindow2(_arg0);
1564
1565 wxPyEndAllowThreads(__tstate);
1566 if (PyErr_Occurred()) return NULL;
1567 }{ _resultobj = wxPyMake_wxObject(_result); }
1568 return _resultobj;
1569 }
1570
1571 #define wxSplitterWindow_SetSplitMode(_swigobj,_swigarg0) (_swigobj->SetSplitMode(_swigarg0))
1572 static PyObject *_wrap_wxSplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1573 PyObject * _resultobj;
1574 wxSplitterWindow * _arg0;
1575 int _arg1;
1576 PyObject * _argo0 = 0;
1577 char *_kwnames[] = { "self","mode", NULL };
1578
1579 self = self;
1580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetSplitMode",_kwnames,&_argo0,&_arg1))
1581 return NULL;
1582 if (_argo0) {
1583 if (_argo0 == Py_None) { _arg0 = NULL; }
1584 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1585 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetSplitMode. Expected _wxSplitterWindow_p.");
1586 return NULL;
1587 }
1588 }
1589 {
1590 PyThreadState* __tstate = wxPyBeginAllowThreads();
1591 wxSplitterWindow_SetSplitMode(_arg0,_arg1);
1592
1593 wxPyEndAllowThreads(__tstate);
1594 if (PyErr_Occurred()) return NULL;
1595 } Py_INCREF(Py_None);
1596 _resultobj = Py_None;
1597 return _resultobj;
1598 }
1599
1600 #define wxSplitterWindow_GetSplitMode(_swigobj) (_swigobj->GetSplitMode())
1601 static PyObject *_wrap_wxSplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1602 PyObject * _resultobj;
1603 int _result;
1604 wxSplitterWindow * _arg0;
1605 PyObject * _argo0 = 0;
1606 char *_kwnames[] = { "self", NULL };
1607
1608 self = self;
1609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetSplitMode",_kwnames,&_argo0))
1610 return NULL;
1611 if (_argo0) {
1612 if (_argo0 == Py_None) { _arg0 = NULL; }
1613 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1614 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetSplitMode. Expected _wxSplitterWindow_p.");
1615 return NULL;
1616 }
1617 }
1618 {
1619 PyThreadState* __tstate = wxPyBeginAllowThreads();
1620 _result = (int )wxSplitterWindow_GetSplitMode(_arg0);
1621
1622 wxPyEndAllowThreads(__tstate);
1623 if (PyErr_Occurred()) return NULL;
1624 } _resultobj = Py_BuildValue("i",_result);
1625 return _resultobj;
1626 }
1627
1628 #define wxSplitterWindow_Initialize(_swigobj,_swigarg0) (_swigobj->Initialize(_swigarg0))
1629 static PyObject *_wrap_wxSplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
1630 PyObject * _resultobj;
1631 wxSplitterWindow * _arg0;
1632 wxWindow * _arg1;
1633 PyObject * _argo0 = 0;
1634 PyObject * _argo1 = 0;
1635 char *_kwnames[] = { "self","window", NULL };
1636
1637 self = self;
1638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSplitterWindow_Initialize",_kwnames,&_argo0,&_argo1))
1639 return NULL;
1640 if (_argo0) {
1641 if (_argo0 == Py_None) { _arg0 = NULL; }
1642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_Initialize. Expected _wxSplitterWindow_p.");
1644 return NULL;
1645 }
1646 }
1647 if (_argo1) {
1648 if (_argo1 == Py_None) { _arg1 = NULL; }
1649 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1650 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_Initialize. Expected _wxWindow_p.");
1651 return NULL;
1652 }
1653 }
1654 {
1655 PyThreadState* __tstate = wxPyBeginAllowThreads();
1656 wxSplitterWindow_Initialize(_arg0,_arg1);
1657
1658 wxPyEndAllowThreads(__tstate);
1659 if (PyErr_Occurred()) return NULL;
1660 } Py_INCREF(Py_None);
1661 _resultobj = Py_None;
1662 return _resultobj;
1663 }
1664
1665 #define wxSplitterWindow_SplitVertically(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SplitVertically(_swigarg0,_swigarg1,_swigarg2))
1666 static PyObject *_wrap_wxSplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) {
1667 PyObject * _resultobj;
1668 bool _result;
1669 wxSplitterWindow * _arg0;
1670 wxWindow * _arg1;
1671 wxWindow * _arg2;
1672 int _arg3 = (int ) 0;
1673 PyObject * _argo0 = 0;
1674 PyObject * _argo1 = 0;
1675 PyObject * _argo2 = 0;
1676 char *_kwnames[] = { "self","window1","window2","sashPosition", NULL };
1677
1678 self = self;
1679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxSplitterWindow_SplitVertically",_kwnames,&_argo0,&_argo1,&_argo2,&_arg3))
1680 return NULL;
1681 if (_argo0) {
1682 if (_argo0 == Py_None) { _arg0 = NULL; }
1683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SplitVertically. Expected _wxSplitterWindow_p.");
1685 return NULL;
1686 }
1687 }
1688 if (_argo1) {
1689 if (_argo1 == Py_None) { _arg1 = NULL; }
1690 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1691 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_SplitVertically. Expected _wxWindow_p.");
1692 return NULL;
1693 }
1694 }
1695 if (_argo2) {
1696 if (_argo2 == Py_None) { _arg2 = NULL; }
1697 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
1698 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxSplitterWindow_SplitVertically. Expected _wxWindow_p.");
1699 return NULL;
1700 }
1701 }
1702 {
1703 PyThreadState* __tstate = wxPyBeginAllowThreads();
1704 _result = (bool )wxSplitterWindow_SplitVertically(_arg0,_arg1,_arg2,_arg3);
1705
1706 wxPyEndAllowThreads(__tstate);
1707 if (PyErr_Occurred()) return NULL;
1708 } _resultobj = Py_BuildValue("i",_result);
1709 return _resultobj;
1710 }
1711
1712 #define wxSplitterWindow_SplitHorizontally(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SplitHorizontally(_swigarg0,_swigarg1,_swigarg2))
1713 static PyObject *_wrap_wxSplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) {
1714 PyObject * _resultobj;
1715 bool _result;
1716 wxSplitterWindow * _arg0;
1717 wxWindow * _arg1;
1718 wxWindow * _arg2;
1719 int _arg3 = (int ) 0;
1720 PyObject * _argo0 = 0;
1721 PyObject * _argo1 = 0;
1722 PyObject * _argo2 = 0;
1723 char *_kwnames[] = { "self","window1","window2","sashPosition", NULL };
1724
1725 self = self;
1726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxSplitterWindow_SplitHorizontally",_kwnames,&_argo0,&_argo1,&_argo2,&_arg3))
1727 return NULL;
1728 if (_argo0) {
1729 if (_argo0 == Py_None) { _arg0 = NULL; }
1730 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1731 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SplitHorizontally. Expected _wxSplitterWindow_p.");
1732 return NULL;
1733 }
1734 }
1735 if (_argo1) {
1736 if (_argo1 == Py_None) { _arg1 = NULL; }
1737 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1738 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_SplitHorizontally. Expected _wxWindow_p.");
1739 return NULL;
1740 }
1741 }
1742 if (_argo2) {
1743 if (_argo2 == Py_None) { _arg2 = NULL; }
1744 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
1745 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxSplitterWindow_SplitHorizontally. Expected _wxWindow_p.");
1746 return NULL;
1747 }
1748 }
1749 {
1750 PyThreadState* __tstate = wxPyBeginAllowThreads();
1751 _result = (bool )wxSplitterWindow_SplitHorizontally(_arg0,_arg1,_arg2,_arg3);
1752
1753 wxPyEndAllowThreads(__tstate);
1754 if (PyErr_Occurred()) return NULL;
1755 } _resultobj = Py_BuildValue("i",_result);
1756 return _resultobj;
1757 }
1758
1759 #define wxSplitterWindow_Unsplit(_swigobj,_swigarg0) (_swigobj->Unsplit(_swigarg0))
1760 static PyObject *_wrap_wxSplitterWindow_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) {
1761 PyObject * _resultobj;
1762 bool _result;
1763 wxSplitterWindow * _arg0;
1764 wxWindow * _arg1 = (wxWindow *) NULL;
1765 PyObject * _argo0 = 0;
1766 PyObject * _argo1 = 0;
1767 char *_kwnames[] = { "self","toRemove", NULL };
1768
1769 self = self;
1770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxSplitterWindow_Unsplit",_kwnames,&_argo0,&_argo1))
1771 return NULL;
1772 if (_argo0) {
1773 if (_argo0 == Py_None) { _arg0 = NULL; }
1774 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1775 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_Unsplit. Expected _wxSplitterWindow_p.");
1776 return NULL;
1777 }
1778 }
1779 if (_argo1) {
1780 if (_argo1 == Py_None) { _arg1 = NULL; }
1781 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1782 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_Unsplit. Expected _wxWindow_p.");
1783 return NULL;
1784 }
1785 }
1786 {
1787 PyThreadState* __tstate = wxPyBeginAllowThreads();
1788 _result = (bool )wxSplitterWindow_Unsplit(_arg0,_arg1);
1789
1790 wxPyEndAllowThreads(__tstate);
1791 if (PyErr_Occurred()) return NULL;
1792 } _resultobj = Py_BuildValue("i",_result);
1793 return _resultobj;
1794 }
1795
1796 #define wxSplitterWindow_ReplaceWindow(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReplaceWindow(_swigarg0,_swigarg1))
1797 static PyObject *_wrap_wxSplitterWindow_ReplaceWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1798 PyObject * _resultobj;
1799 bool _result;
1800 wxSplitterWindow * _arg0;
1801 wxWindow * _arg1;
1802 wxWindow * _arg2;
1803 PyObject * _argo0 = 0;
1804 PyObject * _argo1 = 0;
1805 PyObject * _argo2 = 0;
1806 char *_kwnames[] = { "self","winOld","winNew", NULL };
1807
1808 self = self;
1809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxSplitterWindow_ReplaceWindow",_kwnames,&_argo0,&_argo1,&_argo2))
1810 return NULL;
1811 if (_argo0) {
1812 if (_argo0 == Py_None) { _arg0 = NULL; }
1813 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1814 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_ReplaceWindow. Expected _wxSplitterWindow_p.");
1815 return NULL;
1816 }
1817 }
1818 if (_argo1) {
1819 if (_argo1 == Py_None) { _arg1 = NULL; }
1820 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1821 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSplitterWindow_ReplaceWindow. Expected _wxWindow_p.");
1822 return NULL;
1823 }
1824 }
1825 if (_argo2) {
1826 if (_argo2 == Py_None) { _arg2 = NULL; }
1827 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
1828 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxSplitterWindow_ReplaceWindow. Expected _wxWindow_p.");
1829 return NULL;
1830 }
1831 }
1832 {
1833 PyThreadState* __tstate = wxPyBeginAllowThreads();
1834 _result = (bool )wxSplitterWindow_ReplaceWindow(_arg0,_arg1,_arg2);
1835
1836 wxPyEndAllowThreads(__tstate);
1837 if (PyErr_Occurred()) return NULL;
1838 } _resultobj = Py_BuildValue("i",_result);
1839 return _resultobj;
1840 }
1841
1842 #define wxSplitterWindow_IsSplit(_swigobj) (_swigobj->IsSplit())
1843 static PyObject *_wrap_wxSplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) {
1844 PyObject * _resultobj;
1845 bool _result;
1846 wxSplitterWindow * _arg0;
1847 PyObject * _argo0 = 0;
1848 char *_kwnames[] = { "self", NULL };
1849
1850 self = self;
1851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_IsSplit",_kwnames,&_argo0))
1852 return NULL;
1853 if (_argo0) {
1854 if (_argo0 == Py_None) { _arg0 = NULL; }
1855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_IsSplit. Expected _wxSplitterWindow_p.");
1857 return NULL;
1858 }
1859 }
1860 {
1861 PyThreadState* __tstate = wxPyBeginAllowThreads();
1862 _result = (bool )wxSplitterWindow_IsSplit(_arg0);
1863
1864 wxPyEndAllowThreads(__tstate);
1865 if (PyErr_Occurred()) return NULL;
1866 } _resultobj = Py_BuildValue("i",_result);
1867 return _resultobj;
1868 }
1869
1870 #define wxSplitterWindow_SetSashSize(_swigobj,_swigarg0) (_swigobj->SetSashSize(_swigarg0))
1871 static PyObject *_wrap_wxSplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1872 PyObject * _resultobj;
1873 wxSplitterWindow * _arg0;
1874 int _arg1;
1875 PyObject * _argo0 = 0;
1876 char *_kwnames[] = { "self","width", NULL };
1877
1878 self = self;
1879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetSashSize",_kwnames,&_argo0,&_arg1))
1880 return NULL;
1881 if (_argo0) {
1882 if (_argo0 == Py_None) { _arg0 = NULL; }
1883 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1884 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetSashSize. Expected _wxSplitterWindow_p.");
1885 return NULL;
1886 }
1887 }
1888 {
1889 PyThreadState* __tstate = wxPyBeginAllowThreads();
1890 wxSplitterWindow_SetSashSize(_arg0,_arg1);
1891
1892 wxPyEndAllowThreads(__tstate);
1893 if (PyErr_Occurred()) return NULL;
1894 } Py_INCREF(Py_None);
1895 _resultobj = Py_None;
1896 return _resultobj;
1897 }
1898
1899 #define wxSplitterWindow_SetBorderSize(_swigobj,_swigarg0) (_swigobj->SetBorderSize(_swigarg0))
1900 static PyObject *_wrap_wxSplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1901 PyObject * _resultobj;
1902 wxSplitterWindow * _arg0;
1903 int _arg1;
1904 PyObject * _argo0 = 0;
1905 char *_kwnames[] = { "self","width", NULL };
1906
1907 self = self;
1908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetBorderSize",_kwnames,&_argo0,&_arg1))
1909 return NULL;
1910 if (_argo0) {
1911 if (_argo0 == Py_None) { _arg0 = NULL; }
1912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetBorderSize. Expected _wxSplitterWindow_p.");
1914 return NULL;
1915 }
1916 }
1917 {
1918 PyThreadState* __tstate = wxPyBeginAllowThreads();
1919 wxSplitterWindow_SetBorderSize(_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_GetSashSize(_swigobj) (_swigobj->GetSashSize())
1929 static PyObject *_wrap_wxSplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1930 PyObject * _resultobj;
1931 int _result;
1932 wxSplitterWindow * _arg0;
1933 PyObject * _argo0 = 0;
1934 char *_kwnames[] = { "self", NULL };
1935
1936 self = self;
1937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetSashSize",_kwnames,&_argo0))
1938 return NULL;
1939 if (_argo0) {
1940 if (_argo0 == Py_None) { _arg0 = NULL; }
1941 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1942 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetSashSize. Expected _wxSplitterWindow_p.");
1943 return NULL;
1944 }
1945 }
1946 {
1947 PyThreadState* __tstate = wxPyBeginAllowThreads();
1948 _result = (int )wxSplitterWindow_GetSashSize(_arg0);
1949
1950 wxPyEndAllowThreads(__tstate);
1951 if (PyErr_Occurred()) return NULL;
1952 } _resultobj = Py_BuildValue("i",_result);
1953 return _resultobj;
1954 }
1955
1956 #define wxSplitterWindow_GetBorderSize(_swigobj) (_swigobj->GetBorderSize())
1957 static PyObject *_wrap_wxSplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1958 PyObject * _resultobj;
1959 int _result;
1960 wxSplitterWindow * _arg0;
1961 PyObject * _argo0 = 0;
1962 char *_kwnames[] = { "self", NULL };
1963
1964 self = self;
1965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetBorderSize",_kwnames,&_argo0))
1966 return NULL;
1967 if (_argo0) {
1968 if (_argo0 == Py_None) { _arg0 = NULL; }
1969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
1970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetBorderSize. Expected _wxSplitterWindow_p.");
1971 return NULL;
1972 }
1973 }
1974 {
1975 PyThreadState* __tstate = wxPyBeginAllowThreads();
1976 _result = (int )wxSplitterWindow_GetBorderSize(_arg0);
1977
1978 wxPyEndAllowThreads(__tstate);
1979 if (PyErr_Occurred()) return NULL;
1980 } _resultobj = Py_BuildValue("i",_result);
1981 return _resultobj;
1982 }
1983
1984 #define wxSplitterWindow_SetSashPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSashPosition(_swigarg0,_swigarg1))
1985 static PyObject *_wrap_wxSplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
1986 PyObject * _resultobj;
1987 wxSplitterWindow * _arg0;
1988 int _arg1;
1989 bool _arg2 = (bool ) TRUE;
1990 PyObject * _argo0 = 0;
1991 int tempbool2 = (int) TRUE;
1992 char *_kwnames[] = { "self","position","redraw", NULL };
1993
1994 self = self;
1995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxSplitterWindow_SetSashPosition",_kwnames,&_argo0,&_arg1,&tempbool2))
1996 return NULL;
1997 if (_argo0) {
1998 if (_argo0 == Py_None) { _arg0 = NULL; }
1999 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2000 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetSashPosition. Expected _wxSplitterWindow_p.");
2001 return NULL;
2002 }
2003 }
2004 _arg2 = (bool ) tempbool2;
2005 {
2006 PyThreadState* __tstate = wxPyBeginAllowThreads();
2007 wxSplitterWindow_SetSashPosition(_arg0,_arg1,_arg2);
2008
2009 wxPyEndAllowThreads(__tstate);
2010 if (PyErr_Occurred()) return NULL;
2011 } Py_INCREF(Py_None);
2012 _resultobj = Py_None;
2013 return _resultobj;
2014 }
2015
2016 #define wxSplitterWindow_GetSashPosition(_swigobj) (_swigobj->GetSashPosition())
2017 static PyObject *_wrap_wxSplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2018 PyObject * _resultobj;
2019 int _result;
2020 wxSplitterWindow * _arg0;
2021 PyObject * _argo0 = 0;
2022 char *_kwnames[] = { "self", NULL };
2023
2024 self = self;
2025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetSashPosition",_kwnames,&_argo0))
2026 return NULL;
2027 if (_argo0) {
2028 if (_argo0 == Py_None) { _arg0 = NULL; }
2029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetSashPosition. Expected _wxSplitterWindow_p.");
2031 return NULL;
2032 }
2033 }
2034 {
2035 PyThreadState* __tstate = wxPyBeginAllowThreads();
2036 _result = (int )wxSplitterWindow_GetSashPosition(_arg0);
2037
2038 wxPyEndAllowThreads(__tstate);
2039 if (PyErr_Occurred()) return NULL;
2040 } _resultobj = Py_BuildValue("i",_result);
2041 return _resultobj;
2042 }
2043
2044 #define wxSplitterWindow_SetMinimumPaneSize(_swigobj,_swigarg0) (_swigobj->SetMinimumPaneSize(_swigarg0))
2045 static PyObject *_wrap_wxSplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2046 PyObject * _resultobj;
2047 wxSplitterWindow * _arg0;
2048 int _arg1;
2049 PyObject * _argo0 = 0;
2050 char *_kwnames[] = { "self","min", NULL };
2051
2052 self = self;
2053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSplitterWindow_SetMinimumPaneSize",_kwnames,&_argo0,&_arg1))
2054 return NULL;
2055 if (_argo0) {
2056 if (_argo0 == Py_None) { _arg0 = NULL; }
2057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_SetMinimumPaneSize. Expected _wxSplitterWindow_p.");
2059 return NULL;
2060 }
2061 }
2062 {
2063 PyThreadState* __tstate = wxPyBeginAllowThreads();
2064 wxSplitterWindow_SetMinimumPaneSize(_arg0,_arg1);
2065
2066 wxPyEndAllowThreads(__tstate);
2067 if (PyErr_Occurred()) return NULL;
2068 } Py_INCREF(Py_None);
2069 _resultobj = Py_None;
2070 return _resultobj;
2071 }
2072
2073 #define wxSplitterWindow_GetMinimumPaneSize(_swigobj) (_swigobj->GetMinimumPaneSize())
2074 static PyObject *_wrap_wxSplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2075 PyObject * _resultobj;
2076 int _result;
2077 wxSplitterWindow * _arg0;
2078 PyObject * _argo0 = 0;
2079 char *_kwnames[] = { "self", NULL };
2080
2081 self = self;
2082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetMinimumPaneSize",_kwnames,&_argo0))
2083 return NULL;
2084 if (_argo0) {
2085 if (_argo0 == Py_None) { _arg0 = NULL; }
2086 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSplitterWindow_p")) {
2087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSplitterWindow_GetMinimumPaneSize. Expected _wxSplitterWindow_p.");
2088 return NULL;
2089 }
2090 }
2091 {
2092 PyThreadState* __tstate = wxPyBeginAllowThreads();
2093 _result = (int )wxSplitterWindow_GetMinimumPaneSize(_arg0);
2094
2095 wxPyEndAllowThreads(__tstate);
2096 if (PyErr_Occurred()) return NULL;
2097 } _resultobj = Py_BuildValue("i",_result);
2098 return _resultobj;
2099 }
2100
2101 static PyMethodDef windows2cMethods[] = {
2102 { "wxSplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_wxSplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS },
2103 { "wxSplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_wxSplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS },
2104 { "wxSplitterWindow_GetSashPosition", (PyCFunction) _wrap_wxSplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS },
2105 { "wxSplitterWindow_SetSashPosition", (PyCFunction) _wrap_wxSplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS },
2106 { "wxSplitterWindow_GetBorderSize", (PyCFunction) _wrap_wxSplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS },
2107 { "wxSplitterWindow_GetSashSize", (PyCFunction) _wrap_wxSplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS },
2108 { "wxSplitterWindow_SetBorderSize", (PyCFunction) _wrap_wxSplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS },
2109 { "wxSplitterWindow_SetSashSize", (PyCFunction) _wrap_wxSplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS },
2110 { "wxSplitterWindow_IsSplit", (PyCFunction) _wrap_wxSplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS },
2111 { "wxSplitterWindow_ReplaceWindow", (PyCFunction) _wrap_wxSplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS },
2112 { "wxSplitterWindow_Unsplit", (PyCFunction) _wrap_wxSplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS },
2113 { "wxSplitterWindow_SplitHorizontally", (PyCFunction) _wrap_wxSplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS },
2114 { "wxSplitterWindow_SplitVertically", (PyCFunction) _wrap_wxSplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS },
2115 { "wxSplitterWindow_Initialize", (PyCFunction) _wrap_wxSplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS },
2116 { "wxSplitterWindow_GetSplitMode", (PyCFunction) _wrap_wxSplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS },
2117 { "wxSplitterWindow_SetSplitMode", (PyCFunction) _wrap_wxSplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS },
2118 { "wxSplitterWindow_GetWindow2", (PyCFunction) _wrap_wxSplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS },
2119 { "wxSplitterWindow_GetWindow1", (PyCFunction) _wrap_wxSplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS },
2120 { "wxSplitterWindow_Create", (PyCFunction) _wrap_wxSplitterWindow_Create, METH_VARARGS | METH_KEYWORDS },
2121 { "new_wxPreSplitterWindow", (PyCFunction) _wrap_new_wxPreSplitterWindow, METH_VARARGS | METH_KEYWORDS },
2122 { "new_wxSplitterWindow", (PyCFunction) _wrap_new_wxSplitterWindow, METH_VARARGS | METH_KEYWORDS },
2123 { "wxSplitterEvent_SetSashPosition", (PyCFunction) _wrap_wxSplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS },
2124 { "wxSplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_wxSplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS },
2125 { "wxSplitterEvent_GetY", (PyCFunction) _wrap_wxSplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS },
2126 { "wxSplitterEvent_GetX", (PyCFunction) _wrap_wxSplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS },
2127 { "wxSplitterEvent_GetSashPosition", (PyCFunction) _wrap_wxSplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS },
2128 { "new_wxSplitterEvent", (PyCFunction) _wrap_new_wxSplitterEvent, METH_VARARGS | METH_KEYWORDS },
2129 { "wxNotebook_ResizeChildren", (PyCFunction) _wrap_wxNotebook_ResizeChildren, METH_VARARGS | METH_KEYWORDS },
2130 { "wxNotebook_GetPage", (PyCFunction) _wrap_wxNotebook_GetPage, METH_VARARGS | METH_KEYWORDS },
2131 { "wxNotebook_InsertPage", (PyCFunction) _wrap_wxNotebook_InsertPage, METH_VARARGS | METH_KEYWORDS },
2132 { "wxNotebook_AddPage", (PyCFunction) _wrap_wxNotebook_AddPage, METH_VARARGS | METH_KEYWORDS },
2133 { "wxNotebook_DeleteAllPages", (PyCFunction) _wrap_wxNotebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS },
2134 { "wxNotebook_RemovePage", (PyCFunction) _wrap_wxNotebook_RemovePage, METH_VARARGS | METH_KEYWORDS },
2135 { "wxNotebook_DeletePage", (PyCFunction) _wrap_wxNotebook_DeletePage, METH_VARARGS | METH_KEYWORDS },
2136 { "wxNotebook_SetPadding", (PyCFunction) _wrap_wxNotebook_SetPadding, METH_VARARGS | METH_KEYWORDS },
2137 { "wxNotebook_SetPageSize", (PyCFunction) _wrap_wxNotebook_SetPageSize, METH_VARARGS | METH_KEYWORDS },
2138 { "wxNotebook_GetRowCount", (PyCFunction) _wrap_wxNotebook_GetRowCount, METH_VARARGS | METH_KEYWORDS },
2139 { "wxNotebook_SetPageImage", (PyCFunction) _wrap_wxNotebook_SetPageImage, METH_VARARGS | METH_KEYWORDS },
2140 { "wxNotebook_GetPageImage", (PyCFunction) _wrap_wxNotebook_GetPageImage, METH_VARARGS | METH_KEYWORDS },
2141 { "wxNotebook_GetImageList", (PyCFunction) _wrap_wxNotebook_GetImageList, METH_VARARGS | METH_KEYWORDS },
2142 { "wxNotebook_AssignImageList", (PyCFunction) _wrap_wxNotebook_AssignImageList, METH_VARARGS | METH_KEYWORDS },
2143 { "wxNotebook_SetImageList", (PyCFunction) _wrap_wxNotebook_SetImageList, METH_VARARGS | METH_KEYWORDS },
2144 { "wxNotebook_GetPageText", (PyCFunction) _wrap_wxNotebook_GetPageText, METH_VARARGS | METH_KEYWORDS },
2145 { "wxNotebook_SetPageText", (PyCFunction) _wrap_wxNotebook_SetPageText, METH_VARARGS | METH_KEYWORDS },
2146 { "wxNotebook_GetSelection", (PyCFunction) _wrap_wxNotebook_GetSelection, METH_VARARGS | METH_KEYWORDS },
2147 { "wxNotebook_AdvanceSelection", (PyCFunction) _wrap_wxNotebook_AdvanceSelection, METH_VARARGS | METH_KEYWORDS },
2148 { "wxNotebook_SetSelection", (PyCFunction) _wrap_wxNotebook_SetSelection, METH_VARARGS | METH_KEYWORDS },
2149 { "wxNotebook_GetPageCount", (PyCFunction) _wrap_wxNotebook_GetPageCount, METH_VARARGS | METH_KEYWORDS },
2150 { "wxNotebook_Create", (PyCFunction) _wrap_wxNotebook_Create, METH_VARARGS | METH_KEYWORDS },
2151 { "new_wxPreNotebook", (PyCFunction) _wrap_new_wxPreNotebook, METH_VARARGS | METH_KEYWORDS },
2152 { "new_wxNotebook", (PyCFunction) _wrap_new_wxNotebook, METH_VARARGS | METH_KEYWORDS },
2153 { "wxNotebookEvent_SetSelection", (PyCFunction) _wrap_wxNotebookEvent_SetSelection, METH_VARARGS | METH_KEYWORDS },
2154 { "wxNotebookEvent_SetOldSelection", (PyCFunction) _wrap_wxNotebookEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS },
2155 { "wxNotebookEvent_GetOldSelection", (PyCFunction) _wrap_wxNotebookEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS },
2156 { "wxNotebookEvent_GetSelection", (PyCFunction) _wrap_wxNotebookEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
2157 { "new_wxNotebookEvent", (PyCFunction) _wrap_new_wxNotebookEvent, METH_VARARGS | METH_KEYWORDS },
2158 { NULL, NULL }
2159 };
2160 #ifdef __cplusplus
2161 }
2162 #endif
2163 /*
2164 * This table is used by the pointer type-checker
2165 */
2166 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2167 { "_wxEvent","_wxSplitterEvent",SwigwxSplitterEventTowxEvent},
2168 { "_wxEvent","_wxNotebookEvent",SwigwxNotebookEventTowxEvent},
2169 { "_signed_long","_long",0},
2170 { "_wxPrintQuality","_wxCoord",0},
2171 { "_wxPrintQuality","_int",0},
2172 { "_wxPrintQuality","_signed_int",0},
2173 { "_wxPrintQuality","_unsigned_int",0},
2174 { "_wxPrintQuality","_wxWindowID",0},
2175 { "_wxPrintQuality","_uint",0},
2176 { "_wxPrintQuality","_EBool",0},
2177 { "_wxPrintQuality","_size_t",0},
2178 { "_wxPrintQuality","_time_t",0},
2179 { "_wxNotifyEvent","_wxNotebookEvent",SwigwxNotebookEventTowxNotifyEvent},
2180 { "_byte","_unsigned_char",0},
2181 { "_long","_unsigned_long",0},
2182 { "_long","_signed_long",0},
2183 { "_size_t","_wxCoord",0},
2184 { "_size_t","_wxPrintQuality",0},
2185 { "_size_t","_time_t",0},
2186 { "_size_t","_unsigned_int",0},
2187 { "_size_t","_int",0},
2188 { "_size_t","_wxWindowID",0},
2189 { "_size_t","_uint",0},
2190 { "_uint","_wxCoord",0},
2191 { "_uint","_wxPrintQuality",0},
2192 { "_uint","_time_t",0},
2193 { "_uint","_size_t",0},
2194 { "_uint","_unsigned_int",0},
2195 { "_uint","_int",0},
2196 { "_uint","_wxWindowID",0},
2197 { "_wxChar","_char",0},
2198 { "_wxCommandEvent","_wxSplitterEvent",SwigwxSplitterEventTowxCommandEvent},
2199 { "_wxCommandEvent","_wxNotebookEvent",SwigwxNotebookEventTowxCommandEvent},
2200 { "_char","_wxChar",0},
2201 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
2202 { "_EBool","_wxCoord",0},
2203 { "_EBool","_wxPrintQuality",0},
2204 { "_EBool","_signed_int",0},
2205 { "_EBool","_int",0},
2206 { "_EBool","_wxWindowID",0},
2207 { "_unsigned_long","_long",0},
2208 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
2209 { "_signed_int","_wxCoord",0},
2210 { "_signed_int","_wxPrintQuality",0},
2211 { "_signed_int","_EBool",0},
2212 { "_signed_int","_wxWindowID",0},
2213 { "_signed_int","_int",0},
2214 { "_WXTYPE","_short",0},
2215 { "_WXTYPE","_signed_short",0},
2216 { "_WXTYPE","_unsigned_short",0},
2217 { "_unsigned_short","_WXTYPE",0},
2218 { "_unsigned_short","_short",0},
2219 { "_wxObject","_wxSplitterWindow",SwigwxSplitterWindowTowxObject},
2220 { "_wxObject","_wxSplitterEvent",SwigwxSplitterEventTowxObject},
2221 { "_wxObject","_wxNotebook",SwigwxNotebookTowxObject},
2222 { "_wxObject","_wxNotebookEvent",SwigwxNotebookEventTowxObject},
2223 { "_signed_short","_WXTYPE",0},
2224 { "_signed_short","_short",0},
2225 { "_unsigned_char","_byte",0},
2226 { "_wxControl","_wxNotebook",SwigwxNotebookTowxControl},
2227 { "_unsigned_int","_wxCoord",0},
2228 { "_unsigned_int","_wxPrintQuality",0},
2229 { "_unsigned_int","_time_t",0},
2230 { "_unsigned_int","_size_t",0},
2231 { "_unsigned_int","_uint",0},
2232 { "_unsigned_int","_wxWindowID",0},
2233 { "_unsigned_int","_int",0},
2234 { "_short","_WXTYPE",0},
2235 { "_short","_unsigned_short",0},
2236 { "_short","_signed_short",0},
2237 { "_wxWindowID","_wxCoord",0},
2238 { "_wxWindowID","_wxPrintQuality",0},
2239 { "_wxWindowID","_time_t",0},
2240 { "_wxWindowID","_size_t",0},
2241 { "_wxWindowID","_EBool",0},
2242 { "_wxWindowID","_uint",0},
2243 { "_wxWindowID","_int",0},
2244 { "_wxWindowID","_signed_int",0},
2245 { "_wxWindowID","_unsigned_int",0},
2246 { "_int","_wxCoord",0},
2247 { "_int","_wxPrintQuality",0},
2248 { "_int","_time_t",0},
2249 { "_int","_size_t",0},
2250 { "_int","_EBool",0},
2251 { "_int","_uint",0},
2252 { "_int","_wxWindowID",0},
2253 { "_int","_unsigned_int",0},
2254 { "_int","_signed_int",0},
2255 { "_time_t","_wxCoord",0},
2256 { "_time_t","_wxPrintQuality",0},
2257 { "_time_t","_unsigned_int",0},
2258 { "_time_t","_int",0},
2259 { "_time_t","_wxWindowID",0},
2260 { "_time_t","_uint",0},
2261 { "_time_t","_size_t",0},
2262 { "_wxCoord","_int",0},
2263 { "_wxCoord","_signed_int",0},
2264 { "_wxCoord","_unsigned_int",0},
2265 { "_wxCoord","_wxWindowID",0},
2266 { "_wxCoord","_uint",0},
2267 { "_wxCoord","_EBool",0},
2268 { "_wxCoord","_size_t",0},
2269 { "_wxCoord","_time_t",0},
2270 { "_wxCoord","_wxPrintQuality",0},
2271 { "_wxEvtHandler","_wxSplitterWindow",SwigwxSplitterWindowTowxEvtHandler},
2272 { "_wxEvtHandler","_wxNotebook",SwigwxNotebookTowxEvtHandler},
2273 { "_wxWindow","_wxSplitterWindow",SwigwxSplitterWindowTowxWindow},
2274 { "_wxWindow","_wxNotebook",SwigwxNotebookTowxWindow},
2275 {0,0,0}};
2276
2277 static PyObject *SWIG_globals;
2278 #ifdef __cplusplus
2279 extern "C"
2280 #endif
2281 SWIGEXPORT(void) initwindows2c() {
2282 PyObject *m, *d;
2283 SWIG_globals = SWIG_newvarlink();
2284 m = Py_InitModule("windows2c", windows2cMethods);
2285 d = PyModule_GetDict(m);
2286 PyDict_SetItemString(d,"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
2287 PyDict_SetItemString(d,"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
2288 PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING));
2289 PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED));
2290 PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_UNSPLIT));
2291 PyDict_SetItemString(d,"wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong((long) wxEVT_COMMAND_SPLITTER_DOUBLECLICKED));
2292 PyDict_SetItemString(d,"wxSPLIT_HORIZONTAL", PyInt_FromLong((long) wxSPLIT_HORIZONTAL));
2293 PyDict_SetItemString(d,"wxSPLIT_VERTICAL", PyInt_FromLong((long) wxSPLIT_VERTICAL));
2294 PyDict_SetItemString(d,"wxSPLIT_DRAG_NONE", PyInt_FromLong((long) wxSPLIT_DRAG_NONE));
2295 PyDict_SetItemString(d,"wxSPLIT_DRAG_DRAGGING", PyInt_FromLong((long) wxSPLIT_DRAG_DRAGGING));
2296 PyDict_SetItemString(d,"wxSPLIT_DRAG_LEFT_DOWN", PyInt_FromLong((long) wxSPLIT_DRAG_LEFT_DOWN));
2297 {
2298 int i;
2299 for (i = 0; _swig_mapping[i].n1; i++)
2300 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
2301 }
2302 }