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