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