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