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