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