]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/windows.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
dbbb98cd | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
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) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
dbbb98cd | 44 | |
8ab979d7 RD |
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 *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initwindowsc |
55 | ||
56 | #define SWIG_name "windowsc" | |
57 | ||
58 | #include "helpers.h" | |
8ab979d7 | 59 | #include <wx/menuitem.h> |
9416aa89 | 60 | #include <wx/tooltip.h> |
8ab979d7 | 61 | |
8ab979d7 RD |
62 | |
63 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
65 | PyObject* o3; | |
66 | ||
f3d9dc1d | 67 | if (!target) { |
8ab979d7 | 68 | target = o; |
f3d9dc1d | 69 | } else if (target == Py_None) { |
8ab979d7 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
f3d9dc1d | 72 | } else { |
8ab979d7 RD |
73 | if (!PyTuple_Check(target)) { |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
f3d9dc1d RD |
78 | o3 = PyTuple_New(1); |
79 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
80 | |
81 | o2 = target; | |
f3d9dc1d RD |
82 | target = PySequence_Concat(o2, o3); |
83 | Py_DECREF(o2); | |
8ab979d7 RD |
84 | Py_DECREF(o3); |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
794c5cb1 RD |
89 | #if PYTHON_API_VERSION >= 1009 |
90 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
91 | #else | |
92 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
93 | #endif | |
2f90df85 | 94 | |
e508a2b6 RD |
95 | static wxString wxPyEmptyStr(""); |
96 | ||
2f90df85 RD |
97 | class wxPyValidator : public wxValidator { |
98 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
99 | public: | |
100 | wxPyValidator() { | |
101 | } | |
2f90df85 RD |
102 | |
103 | ~wxPyValidator() { | |
104 | } | |
105 | ||
106 | wxObject* wxPyValidator::Clone() const { | |
694759cf RD |
107 | wxPyValidator* ptr = NULL; |
108 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 109 | |
694759cf RD |
110 | bool doSave = wxPyRestoreThread(); |
111 | if (self->m_myInst.findCallback("Clone")) { | |
112 | PyObject* ro; | |
113 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
114 | if (ro) { |
115 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
116 | Py_DECREF(ro); | |
117 | } | |
694759cf RD |
118 | } |
119 | // This is very dangerous!!! But is the only way I could find | |
120 | // to squash a memory leak. Currently it is okay, but if the | |
121 | // validator architecture in wxWindows ever changes, problems | |
122 | // could arise. | |
123 | delete self; | |
2f90df85 | 124 | |
694759cf RD |
125 | wxPySaveThread(doSave); |
126 | return ptr; | |
127 | } | |
2f90df85 | 128 | |
9416aa89 | 129 | |
2f90df85 RD |
130 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); |
131 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
132 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
133 | ||
134 | PYPRIVATE; | |
2f90df85 RD |
135 | }; |
136 | ||
137 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
138 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
139 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
140 | ||
141 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 142 | |
8ab979d7 RD |
143 | |
144 | wxWindow* wxWindow_FindFocus() { | |
145 | return wxWindow::FindFocus(); | |
146 | } | |
2f90df85 RD |
147 | |
148 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
149 | wxWindow* win = new wxWindow; | |
150 | win->SetHWND(hWnd); | |
151 | win->SubclassWin(hWnd); | |
152 | return win; | |
153 | } | |
a1df7a95 RD |
154 | |
155 | int wxWindow_NewControlId() { | |
156 | return wxWindow::NewControlId(); | |
157 | } | |
158 | int wxWindow_NextControlId(int id) { | |
159 | return wxWindow::NextControlId(id); | |
160 | } | |
161 | int wxWindow_PrevControlId(int id) { | |
162 | return wxWindow::PrevControlId(id); | |
163 | } | |
2f90df85 RD |
164 | #ifdef __cplusplus |
165 | extern "C" { | |
166 | #endif | |
2f90df85 RD |
167 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
168 | PyObject * _resultobj; | |
169 | wxWindow * _result; | |
170 | char *_kwnames[] = { NULL }; | |
2f90df85 RD |
171 | |
172 | self = self; | |
173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
174 | return NULL; | |
175 | { | |
176 | wxPy_BEGIN_ALLOW_THREADS; | |
177 | _result = (wxWindow *)wxWindow_FindFocus(); | |
178 | ||
179 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 180 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 181 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
182 | return _resultobj; |
183 | } | |
184 | ||
185 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
186 | PyObject * _resultobj; | |
187 | wxWindow * _result; | |
188 | unsigned long _arg0; | |
189 | char *_kwnames[] = { "hWnd", NULL }; | |
2f90df85 RD |
190 | |
191 | self = self; | |
192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
193 | return NULL; | |
194 | { | |
195 | wxPy_BEGIN_ALLOW_THREADS; | |
196 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); | |
197 | ||
198 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 199 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 200 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
201 | return _resultobj; |
202 | } | |
203 | ||
a1df7a95 RD |
204 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { |
205 | PyObject * _resultobj; | |
206 | int _result; | |
207 | char *_kwnames[] = { NULL }; | |
208 | ||
209 | self = self; | |
210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
211 | return NULL; | |
212 | { | |
213 | wxPy_BEGIN_ALLOW_THREADS; | |
214 | _result = (int )wxWindow_NewControlId(); | |
215 | ||
216 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 217 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
218 | } _resultobj = Py_BuildValue("i",_result); |
219 | return _resultobj; | |
220 | } | |
221 | ||
222 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
223 | PyObject * _resultobj; | |
224 | int _result; | |
225 | int _arg0; | |
226 | char *_kwnames[] = { "id", NULL }; | |
227 | ||
228 | self = self; | |
229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
230 | return NULL; | |
231 | { | |
232 | wxPy_BEGIN_ALLOW_THREADS; | |
233 | _result = (int )wxWindow_NextControlId(_arg0); | |
234 | ||
235 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 236 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
237 | } _resultobj = Py_BuildValue("i",_result); |
238 | return _resultobj; | |
239 | } | |
240 | ||
241 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
242 | PyObject * _resultobj; | |
243 | int _result; | |
244 | int _arg0; | |
245 | char *_kwnames[] = { "id", NULL }; | |
246 | ||
247 | self = self; | |
248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
249 | return NULL; | |
250 | { | |
251 | wxPy_BEGIN_ALLOW_THREADS; | |
252 | _result = (int )wxWindow_PrevControlId(_arg0); | |
253 | ||
254 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 255 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
256 | } _resultobj = Py_BuildValue("i",_result); |
257 | return _resultobj; | |
258 | } | |
259 | ||
9416aa89 RD |
260 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
261 | wxEvtHandler *src; | |
262 | wxObject *dest; | |
263 | src = (wxEvtHandler *) ptr; | |
264 | dest = (wxObject *) src; | |
265 | return (void *) dest; | |
266 | } | |
267 | ||
c368d904 RD |
268 | #define new_wxEvtHandler() (new wxEvtHandler()) |
269 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
270 | PyObject * _resultobj; | |
271 | wxEvtHandler * _result; | |
272 | char *_kwnames[] = { NULL }; | |
273 | char _ptemp[128]; | |
274 | ||
275 | self = self; | |
276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
277 | return NULL; | |
278 | { | |
279 | wxPy_BEGIN_ALLOW_THREADS; | |
280 | _result = (wxEvtHandler *)new_wxEvtHandler(); | |
281 | ||
282 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 283 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
284 | } if (_result) { |
285 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
286 | _resultobj = Py_BuildValue("s",_ptemp); | |
287 | } else { | |
288 | Py_INCREF(Py_None); | |
289 | _resultobj = Py_None; | |
290 | } | |
291 | return _resultobj; | |
292 | } | |
293 | ||
2f90df85 RD |
294 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
295 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
296 | PyObject * _resultobj; | |
297 | bool _result; | |
298 | wxEvtHandler * _arg0; | |
299 | wxEvent * _arg1; | |
300 | PyObject * _argo0 = 0; | |
301 | PyObject * _argo1 = 0; | |
302 | char *_kwnames[] = { "self","event", NULL }; | |
303 | ||
304 | self = self; | |
305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
306 | return NULL; | |
307 | if (_argo0) { | |
308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
311 | return NULL; | |
312 | } | |
313 | } | |
314 | if (_argo1) { | |
315 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
316 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
318 | return NULL; | |
319 | } | |
320 | } | |
321 | { | |
322 | wxPy_BEGIN_ALLOW_THREADS; | |
323 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
324 | ||
325 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 326 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
327 | } _resultobj = Py_BuildValue("i",_result); |
328 | return _resultobj; | |
329 | } | |
330 | ||
f6bcfd97 BP |
331 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
332 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
333 | PyObject * _resultobj; | |
334 | wxEvtHandler * _arg0; | |
335 | wxEvent * _arg1; | |
336 | PyObject * _argo0 = 0; | |
337 | PyObject * _argo1 = 0; | |
338 | char *_kwnames[] = { "self","event", NULL }; | |
339 | ||
340 | self = self; | |
341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
342 | return NULL; | |
343 | if (_argo0) { | |
344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
347 | return NULL; | |
348 | } | |
349 | } | |
350 | if (_argo1) { | |
351 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
352 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
354 | return NULL; | |
355 | } | |
356 | } | |
357 | { | |
358 | wxPy_BEGIN_ALLOW_THREADS; | |
359 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); | |
360 | ||
361 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 362 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
363 | } Py_INCREF(Py_None); |
364 | _resultobj = Py_None; | |
365 | return _resultobj; | |
366 | } | |
367 | ||
2f90df85 RD |
368 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
369 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
370 | PyObject * _resultobj; | |
371 | bool _result; | |
372 | wxEvtHandler * _arg0; | |
373 | PyObject * _argo0 = 0; | |
374 | char *_kwnames[] = { "self", NULL }; | |
375 | ||
376 | self = self; | |
377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
378 | return NULL; | |
379 | if (_argo0) { | |
380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
383 | return NULL; | |
384 | } | |
385 | } | |
386 | { | |
387 | wxPy_BEGIN_ALLOW_THREADS; | |
388 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
389 | ||
390 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 391 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
392 | } _resultobj = Py_BuildValue("i",_result); |
393 | return _resultobj; | |
394 | } | |
395 | ||
396 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
397 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
398 | PyObject * _resultobj; | |
399 | wxEvtHandler * _arg0; | |
400 | bool _arg1; | |
401 | PyObject * _argo0 = 0; | |
402 | int tempbool1; | |
403 | char *_kwnames[] = { "self","enabled", NULL }; | |
404 | ||
405 | self = self; | |
406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
407 | return NULL; | |
408 | if (_argo0) { | |
409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
412 | return NULL; | |
413 | } | |
414 | } | |
415 | _arg1 = (bool ) tempbool1; | |
416 | { | |
417 | wxPy_BEGIN_ALLOW_THREADS; | |
418 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
419 | ||
420 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 421 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
422 | } Py_INCREF(Py_None); |
423 | _resultobj = Py_None; | |
424 | return _resultobj; | |
425 | } | |
426 | ||
427 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
428 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
429 | PyObject * _resultobj; | |
430 | wxEvtHandler * _result; | |
431 | wxEvtHandler * _arg0; | |
432 | PyObject * _argo0 = 0; | |
433 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
434 | |
435 | self = self; | |
436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
437 | return NULL; | |
438 | if (_argo0) { | |
439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
442 | return NULL; | |
443 | } | |
444 | } | |
445 | { | |
446 | wxPy_BEGIN_ALLOW_THREADS; | |
447 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
448 | ||
449 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 450 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 451 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
452 | return _resultobj; |
453 | } | |
454 | ||
455 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
456 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
457 | PyObject * _resultobj; | |
458 | wxEvtHandler * _result; | |
459 | wxEvtHandler * _arg0; | |
460 | PyObject * _argo0 = 0; | |
461 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
462 | |
463 | self = self; | |
464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
465 | return NULL; | |
466 | if (_argo0) { | |
467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
470 | return NULL; | |
471 | } | |
472 | } | |
473 | { | |
474 | wxPy_BEGIN_ALLOW_THREADS; | |
475 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
476 | ||
477 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 478 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 479 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
480 | return _resultobj; |
481 | } | |
482 | ||
483 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
484 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
485 | PyObject * _resultobj; | |
486 | wxEvtHandler * _arg0; | |
487 | wxEvtHandler * _arg1; | |
488 | PyObject * _argo0 = 0; | |
489 | PyObject * _argo1 = 0; | |
490 | char *_kwnames[] = { "self","handler", NULL }; | |
491 | ||
492 | self = self; | |
493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
494 | return NULL; | |
495 | if (_argo0) { | |
496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
499 | return NULL; | |
500 | } | |
501 | } | |
502 | if (_argo1) { | |
503 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
504 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
506 | return NULL; | |
507 | } | |
508 | } | |
509 | { | |
510 | wxPy_BEGIN_ALLOW_THREADS; | |
511 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
512 | ||
513 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 514 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
515 | } Py_INCREF(Py_None); |
516 | _resultobj = Py_None; | |
517 | return _resultobj; | |
518 | } | |
519 | ||
520 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
521 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
522 | PyObject * _resultobj; | |
523 | wxEvtHandler * _arg0; | |
524 | wxEvtHandler * _arg1; | |
525 | PyObject * _argo0 = 0; | |
526 | PyObject * _argo1 = 0; | |
527 | char *_kwnames[] = { "self","handler", NULL }; | |
528 | ||
529 | self = self; | |
530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
531 | return NULL; | |
532 | if (_argo0) { | |
533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
536 | return NULL; | |
537 | } | |
538 | } | |
539 | if (_argo1) { | |
540 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
541 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
543 | return NULL; | |
544 | } | |
545 | } | |
546 | { | |
547 | wxPy_BEGIN_ALLOW_THREADS; | |
548 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
549 | ||
550 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 551 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
552 | } Py_INCREF(Py_None); |
553 | _resultobj = Py_None; | |
554 | return _resultobj; | |
555 | } | |
556 | ||
557 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
558 | if (PyCallable_Check(func)) { | |
559 | self->Connect(id, lastId, eventType, | |
560 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
561 | new wxPyCallback(func)); | |
562 | } | |
563 | } | |
564 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
565 | PyObject * _resultobj; | |
566 | wxEvtHandler * _arg0; | |
567 | int _arg1; | |
568 | int _arg2; | |
569 | int _arg3; | |
570 | PyObject * _arg4; | |
571 | PyObject * _argo0 = 0; | |
572 | PyObject * _obj4 = 0; | |
573 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
574 | ||
575 | self = self; | |
576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
577 | return NULL; | |
578 | if (_argo0) { | |
579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
582 | return NULL; | |
583 | } | |
584 | } | |
585 | { | |
586 | _arg4 = _obj4; | |
587 | } | |
588 | { | |
589 | wxPy_BEGIN_ALLOW_THREADS; | |
590 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
591 | ||
592 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 593 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
594 | } Py_INCREF(Py_None); |
595 | _resultobj = Py_None; | |
596 | return _resultobj; | |
597 | } | |
598 | ||
6999b0d8 RD |
599 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
600 | return self->Disconnect(id, lastId, eventType, | |
601 | (wxObjectEventFunction) | |
602 | &wxPyCallback::EventThunker); | |
603 | } | |
604 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
605 | PyObject * _resultobj; | |
606 | bool _result; | |
607 | wxEvtHandler * _arg0; | |
608 | int _arg1; | |
609 | int _arg2 = (int ) -1; | |
610 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
611 | PyObject * _argo0 = 0; | |
612 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
613 | ||
614 | self = self; | |
615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
616 | return NULL; | |
617 | if (_argo0) { | |
618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
621 | return NULL; | |
622 | } | |
623 | } | |
624 | { | |
625 | wxPy_BEGIN_ALLOW_THREADS; | |
626 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
627 | ||
628 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 629 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
630 | } _resultobj = Py_BuildValue("i",_result); |
631 | return _resultobj; | |
632 | } | |
633 | ||
2f90df85 RD |
634 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
635 | wxValidator *src; | |
636 | wxEvtHandler *dest; | |
637 | src = (wxValidator *) ptr; | |
638 | dest = (wxEvtHandler *) src; | |
639 | return (void *) dest; | |
640 | } | |
641 | ||
9416aa89 RD |
642 | static void *SwigwxValidatorTowxObject(void *ptr) { |
643 | wxValidator *src; | |
644 | wxObject *dest; | |
645 | src = (wxValidator *) ptr; | |
646 | dest = (wxObject *) src; | |
647 | return (void *) dest; | |
648 | } | |
649 | ||
2f90df85 RD |
650 | #define new_wxValidator() (new wxValidator()) |
651 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
652 | PyObject * _resultobj; | |
653 | wxValidator * _result; | |
654 | char *_kwnames[] = { NULL }; | |
655 | char _ptemp[128]; | |
656 | ||
657 | self = self; | |
658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
659 | return NULL; | |
660 | { | |
661 | wxPy_BEGIN_ALLOW_THREADS; | |
662 | _result = (wxValidator *)new_wxValidator(); | |
663 | ||
664 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 665 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
666 | } if (_result) { |
667 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
668 | _resultobj = Py_BuildValue("s",_ptemp); | |
669 | } else { | |
670 | Py_INCREF(Py_None); | |
671 | _resultobj = Py_None; | |
672 | } | |
673 | return _resultobj; | |
af309447 | 674 | } |
2f90df85 RD |
675 | |
676 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
677 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 678 | PyObject * _resultobj; |
2f90df85 RD |
679 | wxValidator * _result; |
680 | wxValidator * _arg0; | |
681 | PyObject * _argo0 = 0; | |
682 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
683 | |
684 | self = self; | |
2f90df85 RD |
685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
686 | return NULL; | |
687 | if (_argo0) { | |
688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 691 | return NULL; |
2f90df85 RD |
692 | } |
693 | } | |
cf694132 RD |
694 | { |
695 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 696 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 RD |
697 | |
698 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 699 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 700 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
701 | return _resultobj; |
702 | } | |
703 | ||
2f90df85 RD |
704 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
705 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
706 | PyObject * _resultobj; |
707 | wxWindow * _result; | |
2f90df85 RD |
708 | wxValidator * _arg0; |
709 | PyObject * _argo0 = 0; | |
710 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
711 | |
712 | self = self; | |
2f90df85 RD |
713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
714 | return NULL; | |
715 | if (_argo0) { | |
716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 719 | return NULL; |
2f90df85 RD |
720 | } |
721 | } | |
cf694132 RD |
722 | { |
723 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 724 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 RD |
725 | |
726 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 727 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 728 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
729 | return _resultobj; |
730 | } | |
731 | ||
2f90df85 RD |
732 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
733 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 734 | PyObject * _resultobj; |
2f90df85 RD |
735 | wxValidator * _arg0; |
736 | wxWindow * _arg1; | |
1d99702e RD |
737 | PyObject * _argo0 = 0; |
738 | PyObject * _argo1 = 0; | |
2f90df85 | 739 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
740 | |
741 | self = self; | |
2f90df85 | 742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 743 | return NULL; |
1d99702e RD |
744 | if (_argo0) { |
745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
748 | return NULL; |
749 | } | |
750 | } | |
1d99702e RD |
751 | if (_argo1) { |
752 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
753 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
755 | return NULL; |
756 | } | |
757 | } | |
758 | { | |
759 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 760 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 RD |
761 | |
762 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 763 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
764 | } Py_INCREF(Py_None); |
765 | _resultobj = Py_None; | |
cf694132 RD |
766 | return _resultobj; |
767 | } | |
768 | ||
9416aa89 RD |
769 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
770 | PyObject * _resultobj; | |
771 | bool _result; | |
772 | char *_kwnames[] = { NULL }; | |
773 | ||
774 | self = self; | |
775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
776 | return NULL; | |
777 | { | |
778 | wxPy_BEGIN_ALLOW_THREADS; | |
779 | _result = (bool )wxValidator::IsSilent(); | |
780 | ||
781 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 782 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
783 | } _resultobj = Py_BuildValue("i",_result); |
784 | return _resultobj; | |
785 | } | |
786 | ||
787 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
788 | PyObject * _resultobj; | |
789 | int _arg0 = (int ) TRUE; | |
790 | char *_kwnames[] = { "doIt", NULL }; | |
791 | ||
792 | self = self; | |
793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
794 | return NULL; | |
795 | { | |
796 | wxPy_BEGIN_ALLOW_THREADS; | |
797 | wxValidator::SetBellOnError(_arg0); | |
798 | ||
799 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 800 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
801 | } Py_INCREF(Py_None); |
802 | _resultobj = Py_None; | |
803 | return _resultobj; | |
804 | } | |
805 | ||
2f90df85 RD |
806 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
807 | wxPyValidator *src; | |
808 | wxValidator *dest; | |
809 | src = (wxPyValidator *) ptr; | |
810 | dest = (wxValidator *) src; | |
811 | return (void *) dest; | |
812 | } | |
813 | ||
814 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
815 | wxPyValidator *src; | |
816 | wxEvtHandler *dest; | |
817 | src = (wxPyValidator *) ptr; | |
818 | dest = (wxEvtHandler *) src; | |
819 | return (void *) dest; | |
820 | } | |
821 | ||
9416aa89 RD |
822 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
823 | wxPyValidator *src; | |
824 | wxObject *dest; | |
825 | src = (wxPyValidator *) ptr; | |
826 | dest = (wxObject *) src; | |
827 | return (void *) dest; | |
828 | } | |
829 | ||
2f90df85 RD |
830 | #define new_wxPyValidator() (new wxPyValidator()) |
831 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
832 | PyObject * _resultobj; | |
833 | wxPyValidator * _result; | |
834 | char *_kwnames[] = { NULL }; | |
835 | char _ptemp[128]; | |
836 | ||
837 | self = self; | |
838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
839 | return NULL; | |
840 | { | |
841 | wxPy_BEGIN_ALLOW_THREADS; | |
842 | _result = (wxPyValidator *)new_wxPyValidator(); | |
843 | ||
844 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 845 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
846 | } if (_result) { |
847 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
848 | _resultobj = Py_BuildValue("s",_ptemp); | |
849 | } else { | |
850 | Py_INCREF(Py_None); | |
851 | _resultobj = Py_None; | |
852 | } | |
853 | return _resultobj; | |
854 | } | |
855 | ||
f6bcfd97 | 856 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2)) |
2f90df85 | 857 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 858 | PyObject * _resultobj; |
2f90df85 RD |
859 | wxPyValidator * _arg0; |
860 | PyObject * _arg1; | |
f6bcfd97 BP |
861 | PyObject * _arg2; |
862 | int _arg3 = (int ) TRUE; | |
1d99702e | 863 | PyObject * _argo0 = 0; |
2f90df85 | 864 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
865 | PyObject * _obj2 = 0; |
866 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
867 | |
868 | self = self; | |
f6bcfd97 | 869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 870 | return NULL; |
1d99702e RD |
871 | if (_argo0) { |
872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
8ab979d7 RD |
875 | return NULL; |
876 | } | |
877 | } | |
878 | { | |
2f90df85 | 879 | _arg1 = _obj1; |
8ab979d7 | 880 | } |
f6bcfd97 BP |
881 | { |
882 | _arg2 = _obj2; | |
883 | } | |
cf694132 RD |
884 | { |
885 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 886 | wxPyValidator__setSelf(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
887 | |
888 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 889 | if (PyErr_Occurred()) return NULL; |
cf694132 | 890 | } Py_INCREF(Py_None); |
8ab979d7 RD |
891 | _resultobj = Py_None; |
892 | return _resultobj; | |
893 | } | |
894 | ||
895 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
896 | wxWindow *src; | |
897 | wxEvtHandler *dest; | |
898 | src = (wxWindow *) ptr; | |
899 | dest = (wxEvtHandler *) src; | |
900 | return (void *) dest; | |
901 | } | |
902 | ||
9416aa89 RD |
903 | static void *SwigwxWindowTowxObject(void *ptr) { |
904 | wxWindow *src; | |
905 | wxObject *dest; | |
906 | src = (wxWindow *) ptr; | |
907 | dest = (wxObject *) src; | |
908 | return (void *) dest; | |
909 | } | |
910 | ||
8ab979d7 | 911 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 912 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
913 | PyObject * _resultobj; |
914 | wxWindow * _result; | |
915 | wxWindow * _arg0; | |
916 | wxWindowID _arg1; | |
e508a2b6 RD |
917 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
918 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
919 | long _arg4 = (long ) 0; |
920 | char * _arg5 = (char *) "panel"; | |
921 | PyObject * _argo0 = 0; | |
2f90df85 RD |
922 | wxPoint temp; |
923 | PyObject * _obj2 = 0; | |
924 | wxSize temp0; | |
925 | PyObject * _obj3 = 0; | |
efc5f224 | 926 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
927 | char _ptemp[128]; |
928 | ||
929 | self = self; | |
2f90df85 | 930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 931 | return NULL; |
1d99702e RD |
932 | if (_argo0) { |
933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
936 | return NULL; | |
937 | } | |
938 | } | |
2f90df85 RD |
939 | if (_obj2) |
940 | { | |
941 | _arg2 = &temp; | |
942 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 943 | return NULL; |
2f90df85 RD |
944 | } |
945 | if (_obj3) | |
946 | { | |
947 | _arg3 = &temp0; | |
948 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 949 | return NULL; |
2f90df85 | 950 | } |
cf694132 RD |
951 | { |
952 | wxPy_BEGIN_ALLOW_THREADS; | |
953 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
954 | ||
955 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 956 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
957 | } if (_result) { |
958 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
959 | _resultobj = Py_BuildValue("s",_ptemp); | |
960 | } else { | |
961 | Py_INCREF(Py_None); | |
962 | _resultobj = Py_None; | |
963 | } | |
8ab979d7 RD |
964 | return _resultobj; |
965 | } | |
966 | ||
967 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
efc5f224 | 968 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
969 | PyObject * _resultobj; |
970 | wxWindow * _arg0; | |
1d99702e | 971 | PyObject * _argo0 = 0; |
efc5f224 | 972 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
973 | |
974 | self = self; | |
efc5f224 | 975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
8ab979d7 | 976 | return NULL; |
1d99702e RD |
977 | if (_argo0) { |
978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
981 | return NULL; | |
982 | } | |
983 | } | |
cf694132 RD |
984 | { |
985 | wxPy_BEGIN_ALLOW_THREADS; | |
986 | wxWindow_CaptureMouse(_arg0); | |
987 | ||
988 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 989 | if (PyErr_Occurred()) return NULL; |
cf694132 | 990 | } Py_INCREF(Py_None); |
8ab979d7 RD |
991 | _resultobj = Py_None; |
992 | return _resultobj; | |
993 | } | |
994 | ||
995 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 996 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
997 | PyObject * _resultobj; |
998 | wxWindow * _arg0; | |
1d99702e RD |
999 | int _arg1 = (int ) wxBOTH; |
1000 | PyObject * _argo0 = 0; | |
efc5f224 | 1001 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1002 | |
1003 | self = self; | |
efc5f224 | 1004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1005 | return NULL; |
1d99702e RD |
1006 | if (_argo0) { |
1007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1010 | return NULL; | |
1011 | } | |
1012 | } | |
cf694132 RD |
1013 | { |
1014 | wxPy_BEGIN_ALLOW_THREADS; | |
1015 | wxWindow_Center(_arg0,_arg1); | |
1016 | ||
1017 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1018 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1019 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1020 | _resultobj = Py_None; |
1021 | return _resultobj; | |
1022 | } | |
1023 | ||
1024 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1025 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1026 | PyObject * _resultobj; |
1027 | wxWindow * _arg0; | |
1d99702e RD |
1028 | int _arg1 = (int ) wxBOTH; |
1029 | PyObject * _argo0 = 0; | |
efc5f224 | 1030 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1031 | |
1032 | self = self; | |
efc5f224 | 1033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1034 | return NULL; |
1d99702e RD |
1035 | if (_argo0) { |
1036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1039 | return NULL; | |
1040 | } | |
1041 | } | |
cf694132 RD |
1042 | { |
1043 | wxPy_BEGIN_ALLOW_THREADS; | |
1044 | wxWindow_Centre(_arg0,_arg1); | |
1045 | ||
1046 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1047 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1048 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1049 | _resultobj = Py_None; |
1050 | return _resultobj; | |
1051 | } | |
1052 | ||
bb0054cd | 1053 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1054 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1055 | PyObject * _resultobj; |
1056 | wxWindow * _arg0; | |
1d99702e RD |
1057 | int _arg1 = (int ) wxBOTH; |
1058 | PyObject * _argo0 = 0; | |
efc5f224 | 1059 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1060 | |
1061 | self = self; | |
efc5f224 | 1062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1063 | return NULL; |
1d99702e RD |
1064 | if (_argo0) { |
1065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1068 | return NULL; | |
1069 | } | |
1070 | } | |
1071 | { | |
1072 | wxPy_BEGIN_ALLOW_THREADS; | |
1073 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1074 | ||
1075 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1076 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1077 | } Py_INCREF(Py_None); |
1078 | _resultobj = Py_None; | |
1079 | return _resultobj; | |
1080 | } | |
1081 | ||
1082 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1083 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1084 | PyObject * _resultobj; |
1085 | wxWindow * _arg0; | |
1d99702e RD |
1086 | int _arg1 = (int ) wxBOTH; |
1087 | PyObject * _argo0 = 0; | |
efc5f224 | 1088 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1089 | |
1090 | self = self; | |
efc5f224 | 1091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1092 | return NULL; |
1d99702e RD |
1093 | if (_argo0) { |
1094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1097 | return NULL; | |
1098 | } | |
1099 | } | |
1100 | { | |
1101 | wxPy_BEGIN_ALLOW_THREADS; | |
1102 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1103 | ||
1104 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1105 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1106 | } Py_INCREF(Py_None); |
1107 | _resultobj = Py_None; | |
1108 | return _resultobj; | |
1109 | } | |
1110 | ||
3ca6a5f0 BP |
1111 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1112 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1113 | PyObject * _resultobj; | |
1114 | wxWindow * _arg0; | |
1115 | int _arg1 = (int ) wxBOTH; | |
1116 | PyObject * _argo0 = 0; | |
1117 | char *_kwnames[] = { "self","direction", NULL }; | |
1118 | ||
1119 | self = self; | |
1120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1121 | return NULL; | |
1122 | if (_argo0) { | |
1123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1126 | return NULL; | |
1127 | } | |
1128 | } | |
1129 | { | |
1130 | wxPy_BEGIN_ALLOW_THREADS; | |
1131 | wxWindow_CentreOnScreen(_arg0,_arg1); | |
1132 | ||
1133 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1134 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1135 | } Py_INCREF(Py_None); |
1136 | _resultobj = Py_None; | |
1137 | return _resultobj; | |
1138 | } | |
1139 | ||
1140 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1141 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1142 | PyObject * _resultobj; | |
1143 | wxWindow * _arg0; | |
1144 | int _arg1 = (int ) wxBOTH; | |
1145 | PyObject * _argo0 = 0; | |
1146 | char *_kwnames[] = { "self","direction", NULL }; | |
1147 | ||
1148 | self = self; | |
1149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1150 | return NULL; | |
1151 | if (_argo0) { | |
1152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1155 | return NULL; | |
1156 | } | |
1157 | } | |
1158 | { | |
1159 | wxPy_BEGIN_ALLOW_THREADS; | |
1160 | wxWindow_CenterOnScreen(_arg0,_arg1); | |
1161 | ||
1162 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1163 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1164 | } Py_INCREF(Py_None); |
1165 | _resultobj = Py_None; | |
1166 | return _resultobj; | |
1167 | } | |
1168 | ||
d56cebe7 RD |
1169 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) |
1170 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1171 | PyObject * _resultobj; | |
1172 | wxWindow * _arg0; | |
1173 | PyObject * _argo0 = 0; | |
1174 | char *_kwnames[] = { "self", NULL }; | |
1175 | ||
1176 | self = self; | |
1177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1178 | return NULL; | |
1179 | if (_argo0) { | |
1180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1183 | return NULL; | |
1184 | } | |
1185 | } | |
1186 | { | |
1187 | wxPy_BEGIN_ALLOW_THREADS; | |
1188 | wxWindow_Clear(_arg0); | |
1189 | ||
1190 | wxPy_END_ALLOW_THREADS; | |
1191 | if (PyErr_Occurred()) return NULL; | |
1192 | } Py_INCREF(Py_None); | |
1193 | _resultobj = Py_None; | |
1194 | return _resultobj; | |
1195 | } | |
1196 | ||
af309447 | 1197 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1198 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1199 | PyObject * _resultobj; |
1200 | wxWindow * _arg0; | |
1201 | int * _arg1; | |
1202 | int * _arg2; | |
1d99702e | 1203 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1204 | int temp; |
1205 | PyObject * _obj1 = 0; | |
1206 | int temp0; | |
1207 | PyObject * _obj2 = 0; | |
efc5f224 | 1208 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1209 | |
1210 | self = self; | |
efc5f224 | 1211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1212 | return NULL; |
1d99702e RD |
1213 | if (_argo0) { |
1214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1217 | return NULL; |
1218 | } | |
1219 | } | |
1220 | { | |
1221 | temp = (int) PyInt_AsLong(_obj1); | |
1222 | _arg1 = &temp; | |
1223 | } | |
1224 | { | |
1225 | temp0 = (int) PyInt_AsLong(_obj2); | |
1226 | _arg2 = &temp0; | |
1227 | } | |
cf694132 RD |
1228 | { |
1229 | wxPy_BEGIN_ALLOW_THREADS; | |
1230 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1231 | ||
1232 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1233 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1234 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1235 | _resultobj = Py_None; |
1236 | { | |
1237 | PyObject *o; | |
1238 | o = PyInt_FromLong((long) (*_arg1)); | |
1239 | _resultobj = t_output_helper(_resultobj, o); | |
1240 | } | |
1241 | { | |
1242 | PyObject *o; | |
1243 | o = PyInt_FromLong((long) (*_arg2)); | |
1244 | _resultobj = t_output_helper(_resultobj, o); | |
1245 | } | |
1246 | return _resultobj; | |
1247 | } | |
1248 | ||
af309447 | 1249 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1250 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1251 | PyObject * _resultobj; |
1252 | wxPoint * _result; | |
1253 | wxWindow * _arg0; | |
1254 | wxPoint * _arg1; | |
1d99702e | 1255 | PyObject * _argo0 = 0; |
2f90df85 RD |
1256 | wxPoint temp; |
1257 | PyObject * _obj1 = 0; | |
efc5f224 | 1258 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1259 | char _ptemp[128]; |
1260 | ||
1261 | self = self; | |
2f90df85 | 1262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1263 | return NULL; |
1d99702e RD |
1264 | if (_argo0) { |
1265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1268 | return NULL; | |
1269 | } | |
1270 | } | |
2f90df85 RD |
1271 | { |
1272 | _arg1 = &temp; | |
1273 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1274 | return NULL; |
2f90df85 | 1275 | } |
cf694132 RD |
1276 | { |
1277 | wxPy_BEGIN_ALLOW_THREADS; | |
1278 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1279 | ||
1280 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1281 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1282 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1283 | _resultobj = Py_BuildValue("s",_ptemp); |
1284 | return _resultobj; | |
1285 | } | |
1286 | ||
8ab979d7 | 1287 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1288 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1289 | PyObject * _resultobj; |
1290 | bool _result; | |
1291 | wxWindow * _arg0; | |
1d99702e RD |
1292 | int _arg1 = (int ) FALSE; |
1293 | PyObject * _argo0 = 0; | |
efc5f224 | 1294 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1295 | |
1296 | self = self; | |
efc5f224 | 1297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1298 | return NULL; |
1d99702e RD |
1299 | if (_argo0) { |
1300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1303 | return NULL; | |
1304 | } | |
1305 | } | |
cf694132 RD |
1306 | { |
1307 | wxPy_BEGIN_ALLOW_THREADS; | |
1308 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1309 | ||
1310 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1311 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1312 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1313 | return _resultobj; |
1314 | } | |
1315 | ||
1316 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1317 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1318 | PyObject * _resultobj; |
1319 | bool _result; | |
1320 | wxWindow * _arg0; | |
1d99702e | 1321 | PyObject * _argo0 = 0; |
efc5f224 | 1322 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1323 | |
1324 | self = self; | |
efc5f224 | 1325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1326 | return NULL; |
1d99702e RD |
1327 | if (_argo0) { |
1328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1331 | return NULL; | |
1332 | } | |
1333 | } | |
cf694132 RD |
1334 | { |
1335 | wxPy_BEGIN_ALLOW_THREADS; | |
1336 | _result = (bool )wxWindow_Destroy(_arg0); | |
1337 | ||
1338 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1339 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1340 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1341 | return _resultobj; |
1342 | } | |
1343 | ||
1344 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1345 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1346 | PyObject * _resultobj; |
1347 | wxWindow * _arg0; | |
1d99702e | 1348 | PyObject * _argo0 = 0; |
efc5f224 | 1349 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1350 | |
1351 | self = self; | |
efc5f224 | 1352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1353 | return NULL; |
1d99702e RD |
1354 | if (_argo0) { |
1355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1358 | return NULL; | |
1359 | } | |
1360 | } | |
cf694132 RD |
1361 | { |
1362 | wxPy_BEGIN_ALLOW_THREADS; | |
1363 | wxWindow_DestroyChildren(_arg0); | |
1364 | ||
1365 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1366 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1367 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1368 | _resultobj = Py_None; |
1369 | return _resultobj; | |
1370 | } | |
1371 | ||
ac346f50 RD |
1372 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1373 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1374 | PyObject * _resultobj; | |
1375 | bool _result; | |
1376 | wxWindow * _arg0; | |
1377 | PyObject * _argo0 = 0; | |
1378 | char *_kwnames[] = { "self", NULL }; | |
1379 | ||
1380 | self = self; | |
1381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1382 | return NULL; | |
1383 | if (_argo0) { | |
1384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1387 | return NULL; | |
1388 | } | |
1389 | } | |
1390 | { | |
1391 | wxPy_BEGIN_ALLOW_THREADS; | |
1392 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); | |
1393 | ||
1394 | wxPy_END_ALLOW_THREADS; | |
1395 | if (PyErr_Occurred()) return NULL; | |
1396 | } _resultobj = Py_BuildValue("i",_result); | |
1397 | return _resultobj; | |
1398 | } | |
1399 | ||
8ab979d7 | 1400 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) |
efc5f224 | 1401 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1402 | PyObject * _resultobj; |
1403 | wxWindow * _arg0; | |
1404 | bool _arg1; | |
1d99702e | 1405 | PyObject * _argo0 = 0; |
8ab979d7 | 1406 | int tempbool1; |
efc5f224 | 1407 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1408 | |
1409 | self = self; | |
efc5f224 | 1410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1411 | return NULL; |
1d99702e RD |
1412 | if (_argo0) { |
1413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1416 | return NULL; | |
1417 | } | |
1418 | } | |
1419 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1420 | { |
1421 | wxPy_BEGIN_ALLOW_THREADS; | |
1422 | wxWindow_DragAcceptFiles(_arg0,_arg1); | |
1423 | ||
1424 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1425 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1426 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1427 | _resultobj = Py_None; |
1428 | return _resultobj; | |
1429 | } | |
1430 | ||
1431 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1432 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1433 | PyObject * _resultobj; |
1434 | wxWindow * _arg0; | |
1435 | bool _arg1; | |
1d99702e | 1436 | PyObject * _argo0 = 0; |
8ab979d7 | 1437 | int tempbool1; |
efc5f224 | 1438 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1439 | |
1440 | self = self; | |
efc5f224 | 1441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1442 | return NULL; |
1d99702e RD |
1443 | if (_argo0) { |
1444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1447 | return NULL; | |
1448 | } | |
1449 | } | |
1450 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1451 | { |
1452 | wxPy_BEGIN_ALLOW_THREADS; | |
1453 | wxWindow_Enable(_arg0,_arg1); | |
1454 | ||
1455 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1456 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1457 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1458 | _resultobj = Py_None; |
1459 | return _resultobj; | |
1460 | } | |
1461 | ||
af309447 | 1462 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1463 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1464 | PyObject * _resultobj; |
1465 | wxWindow * _result; | |
1466 | wxWindow * _arg0; | |
1467 | long _arg1; | |
1d99702e | 1468 | PyObject * _argo0 = 0; |
efc5f224 | 1469 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1470 | |
1471 | self = self; | |
efc5f224 | 1472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1473 | return NULL; |
1d99702e RD |
1474 | if (_argo0) { |
1475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1478 | return NULL; |
1479 | } | |
1480 | } | |
cf694132 RD |
1481 | { |
1482 | wxPy_BEGIN_ALLOW_THREADS; | |
1483 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1484 | ||
1485 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1486 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1487 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1488 | return _resultobj; |
1489 | } | |
1490 | ||
1491 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1492 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1493 | PyObject * _resultobj; |
1494 | wxWindow * _result; | |
1495 | wxWindow * _arg0; | |
1496 | wxString * _arg1; | |
1d99702e | 1497 | PyObject * _argo0 = 0; |
8ab979d7 | 1498 | PyObject * _obj1 = 0; |
efc5f224 | 1499 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1500 | |
1501 | self = self; | |
efc5f224 | 1502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1503 | return NULL; |
1d99702e RD |
1504 | if (_argo0) { |
1505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1508 | return NULL; | |
1509 | } | |
1510 | } | |
1511 | { | |
185d7c3e RD |
1512 | #if PYTHON_API_VERSION >= 1009 |
1513 | char* tmpPtr; int tmpSize; | |
1514 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1515 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1516 | return NULL; |
1517 | } | |
1518 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1519 | return NULL; | |
1520 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1521 | #else | |
8ab979d7 RD |
1522 | if (!PyString_Check(_obj1)) { |
1523 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1524 | return NULL; | |
1525 | } | |
185d7c3e RD |
1526 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1527 | #endif | |
8ab979d7 | 1528 | } |
cf694132 RD |
1529 | { |
1530 | wxPy_BEGIN_ALLOW_THREADS; | |
1531 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1532 | ||
1533 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1534 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1535 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1536 | { |
1537 | if (_obj1) | |
1538 | delete _arg1; | |
1539 | } | |
1540 | return _resultobj; | |
1541 | } | |
1542 | ||
1543 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1544 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1545 | PyObject * _resultobj; |
1546 | wxWindow * _arg0; | |
1d99702e | 1547 | PyObject * _argo0 = 0; |
efc5f224 | 1548 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1549 | |
1550 | self = self; | |
efc5f224 | 1551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1552 | return NULL; |
1d99702e RD |
1553 | if (_argo0) { |
1554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1557 | return NULL; | |
1558 | } | |
1559 | } | |
cf694132 RD |
1560 | { |
1561 | wxPy_BEGIN_ALLOW_THREADS; | |
1562 | wxWindow_Fit(_arg0); | |
1563 | ||
1564 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1565 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1566 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1567 | _resultobj = Py_None; |
1568 | return _resultobj; | |
1569 | } | |
1570 | ||
1571 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1572 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1573 | PyObject * _resultobj; |
1574 | wxColour * _result; | |
1575 | wxWindow * _arg0; | |
1d99702e | 1576 | PyObject * _argo0 = 0; |
efc5f224 | 1577 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1578 | char _ptemp[128]; |
1579 | ||
1580 | self = self; | |
efc5f224 | 1581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1582 | return NULL; |
1d99702e RD |
1583 | if (_argo0) { |
1584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1587 | return NULL; | |
1588 | } | |
1589 | } | |
cf694132 RD |
1590 | { |
1591 | wxPy_BEGIN_ALLOW_THREADS; | |
1592 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1593 | ||
1594 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1595 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1596 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1597 | _resultobj = Py_BuildValue("s",_ptemp); |
1598 | return _resultobj; | |
1599 | } | |
1600 | ||
d426c97e RD |
1601 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1602 | wxWindowList& list = self->GetChildren(); | |
1603 | return wxPy_ConvertList(&list, "wxWindow"); | |
1604 | } | |
1605 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1606 | PyObject * _resultobj; | |
1607 | PyObject * _result; | |
1608 | wxWindow * _arg0; | |
1609 | PyObject * _argo0 = 0; | |
1610 | char *_kwnames[] = { "self", NULL }; | |
1611 | ||
1612 | self = self; | |
1613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1614 | return NULL; | |
1615 | if (_argo0) { | |
1616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1619 | return NULL; | |
1620 | } | |
1621 | } | |
1622 | { | |
1623 | wxPy_BEGIN_ALLOW_THREADS; | |
1624 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1625 | ||
1626 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1627 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1628 | }{ |
1629 | _resultobj = _result; | |
1630 | } | |
1631 | return _resultobj; | |
1632 | } | |
1633 | ||
8ab979d7 | 1634 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1635 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1636 | PyObject * _resultobj; |
1637 | int _result; | |
1638 | wxWindow * _arg0; | |
1d99702e | 1639 | PyObject * _argo0 = 0; |
efc5f224 | 1640 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1641 | |
1642 | self = self; | |
efc5f224 | 1643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1644 | return NULL; |
1d99702e RD |
1645 | if (_argo0) { |
1646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1649 | return NULL; | |
1650 | } | |
1651 | } | |
cf694132 RD |
1652 | { |
1653 | wxPy_BEGIN_ALLOW_THREADS; | |
1654 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1655 | ||
1656 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1657 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1658 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1659 | return _resultobj; |
1660 | } | |
1661 | ||
1662 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1663 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1664 | PyObject * _resultobj; |
1665 | int _result; | |
1666 | wxWindow * _arg0; | |
1d99702e | 1667 | PyObject * _argo0 = 0; |
efc5f224 | 1668 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1669 | |
1670 | self = self; | |
efc5f224 | 1671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1672 | return NULL; |
1d99702e RD |
1673 | if (_argo0) { |
1674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1677 | return NULL; | |
1678 | } | |
1679 | } | |
cf694132 RD |
1680 | { |
1681 | wxPy_BEGIN_ALLOW_THREADS; | |
1682 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1683 | ||
1684 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1685 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1686 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1687 | return _resultobj; |
1688 | } | |
1689 | ||
b8b8dda7 | 1690 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1691 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1692 | PyObject * _resultobj; |
1693 | wxWindow * _arg0; | |
1694 | int * _arg1; | |
1695 | int temp; | |
1696 | int * _arg2; | |
1697 | int temp0; | |
1d99702e | 1698 | PyObject * _argo0 = 0; |
efc5f224 | 1699 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1700 | |
1701 | self = self; | |
1702 | { | |
1703 | _arg1 = &temp; | |
1704 | } | |
1705 | { | |
1706 | _arg2 = &temp0; | |
1707 | } | |
efc5f224 | 1708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1709 | return NULL; |
1d99702e RD |
1710 | if (_argo0) { |
1711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1714 | return NULL; |
1715 | } | |
1716 | } | |
cf694132 RD |
1717 | { |
1718 | wxPy_BEGIN_ALLOW_THREADS; | |
1719 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1720 | ||
1721 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1722 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1723 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1724 | _resultobj = Py_None; |
1725 | { | |
1726 | PyObject *o; | |
1727 | o = PyInt_FromLong((long) (*_arg1)); | |
1728 | _resultobj = t_output_helper(_resultobj, o); | |
1729 | } | |
1730 | { | |
1731 | PyObject *o; | |
1732 | o = PyInt_FromLong((long) (*_arg2)); | |
1733 | _resultobj = t_output_helper(_resultobj, o); | |
1734 | } | |
1735 | return _resultobj; | |
1736 | } | |
1737 | ||
b8b8dda7 | 1738 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1739 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1740 | PyObject * _resultobj; |
1741 | wxSize * _result; | |
1742 | wxWindow * _arg0; | |
1d99702e | 1743 | PyObject * _argo0 = 0; |
efc5f224 | 1744 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1745 | char _ptemp[128]; |
1746 | ||
1747 | self = self; | |
efc5f224 | 1748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1749 | return NULL; |
1d99702e RD |
1750 | if (_argo0) { |
1751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1754 | return NULL; | |
1755 | } | |
1756 | } | |
cf694132 RD |
1757 | { |
1758 | wxPy_BEGIN_ALLOW_THREADS; | |
1759 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1760 | ||
1761 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1762 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1763 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1764 | _resultobj = Py_BuildValue("s",_ptemp); |
1765 | return _resultobj; | |
1766 | } | |
1767 | ||
8ab979d7 | 1768 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1769 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1770 | PyObject * _resultobj; |
1771 | wxLayoutConstraints * _result; | |
1772 | wxWindow * _arg0; | |
1d99702e | 1773 | PyObject * _argo0 = 0; |
efc5f224 | 1774 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1775 | char _ptemp[128]; |
1776 | ||
1777 | self = self; | |
efc5f224 | 1778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1779 | return NULL; |
1d99702e RD |
1780 | if (_argo0) { |
1781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1784 | return NULL; | |
1785 | } | |
1786 | } | |
cf694132 RD |
1787 | { |
1788 | wxPy_BEGIN_ALLOW_THREADS; | |
1789 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1790 | ||
1791 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1792 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1793 | } if (_result) { |
1794 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1795 | _resultobj = Py_BuildValue("s",_ptemp); | |
1796 | } else { | |
1797 | Py_INCREF(Py_None); | |
1798 | _resultobj = Py_None; | |
1799 | } | |
8ab979d7 RD |
1800 | return _resultobj; |
1801 | } | |
1802 | ||
1afc06c2 RD |
1803 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1804 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1805 | PyObject * _resultobj; | |
1806 | wxEvtHandler * _result; | |
1807 | wxWindow * _arg0; | |
1808 | PyObject * _argo0 = 0; | |
1809 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
1810 | |
1811 | self = self; | |
1812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1813 | return NULL; | |
1814 | if (_argo0) { | |
1815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1818 | return NULL; | |
1819 | } | |
1820 | } | |
1821 | { | |
1822 | wxPy_BEGIN_ALLOW_THREADS; | |
1823 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1824 | ||
1825 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1826 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1827 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
1828 | return _resultobj; |
1829 | } | |
1830 | ||
8ab979d7 | 1831 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1832 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1833 | PyObject * _resultobj; |
1834 | wxFont * _result; | |
1835 | wxWindow * _arg0; | |
1d99702e | 1836 | PyObject * _argo0 = 0; |
efc5f224 | 1837 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1838 | char _ptemp[128]; |
1839 | ||
1840 | self = self; | |
efc5f224 | 1841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1842 | return NULL; |
1d99702e RD |
1843 | if (_argo0) { |
1844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1847 | return NULL; | |
1848 | } | |
1849 | } | |
cf694132 RD |
1850 | { |
1851 | wxPy_BEGIN_ALLOW_THREADS; | |
1852 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
b8b8dda7 | 1853 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
1854 | |
1855 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1856 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1857 | } if (_result) { |
1858 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1859 | _resultobj = Py_BuildValue("s",_ptemp); | |
1860 | } else { | |
1861 | Py_INCREF(Py_None); | |
1862 | _resultobj = Py_None; | |
1863 | } | |
8ab979d7 RD |
1864 | return _resultobj; |
1865 | } | |
1866 | ||
1867 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1868 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1869 | PyObject * _resultobj; |
1870 | wxColour * _result; | |
1871 | wxWindow * _arg0; | |
1d99702e | 1872 | PyObject * _argo0 = 0; |
efc5f224 | 1873 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1874 | char _ptemp[128]; |
1875 | ||
1876 | self = self; | |
efc5f224 | 1877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1878 | return NULL; |
1d99702e RD |
1879 | if (_argo0) { |
1880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1883 | return NULL; | |
1884 | } | |
1885 | } | |
cf694132 RD |
1886 | { |
1887 | wxPy_BEGIN_ALLOW_THREADS; | |
1888 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1889 | ||
1890 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1891 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1892 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1893 | _resultobj = Py_BuildValue("s",_ptemp); |
1894 | return _resultobj; | |
1895 | } | |
1896 | ||
1897 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1898 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1899 | PyObject * _resultobj; |
1900 | wxWindow * _result; | |
1901 | wxWindow * _arg0; | |
1d99702e | 1902 | PyObject * _argo0 = 0; |
efc5f224 | 1903 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1904 | |
1905 | self = self; | |
efc5f224 | 1906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1907 | return NULL; |
1d99702e RD |
1908 | if (_argo0) { |
1909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1912 | return NULL; | |
1913 | } | |
1914 | } | |
cf694132 RD |
1915 | { |
1916 | wxPy_BEGIN_ALLOW_THREADS; | |
1917 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1918 | ||
1919 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1920 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1921 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1922 | return _resultobj; |
1923 | } | |
1924 | ||
2abc0a0f | 1925 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1926 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1927 | } |
1928 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1929 | PyObject * _resultobj; | |
1930 | long _result; | |
1931 | wxWindow * _arg0; | |
1932 | PyObject * _argo0 = 0; | |
1933 | char *_kwnames[] = { "self", NULL }; | |
1934 | ||
1935 | self = self; | |
1936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1937 | return NULL; | |
1938 | if (_argo0) { | |
1939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1942 | return NULL; | |
1943 | } | |
1944 | } | |
1945 | { | |
1946 | wxPy_BEGIN_ALLOW_THREADS; | |
1947 | _result = (long )wxWindow_GetHandle(_arg0); | |
1948 | ||
1949 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1950 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
1951 | } _resultobj = Py_BuildValue("l",_result); |
1952 | return _resultobj; | |
1953 | } | |
1954 | ||
8ab979d7 | 1955 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 1956 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1957 | PyObject * _resultobj; |
1958 | int _result; | |
1959 | wxWindow * _arg0; | |
1d99702e | 1960 | PyObject * _argo0 = 0; |
efc5f224 | 1961 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1962 | |
1963 | self = self; | |
efc5f224 | 1964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 1965 | return NULL; |
1d99702e RD |
1966 | if (_argo0) { |
1967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
1970 | return NULL; | |
1971 | } | |
1972 | } | |
cf694132 RD |
1973 | { |
1974 | wxPy_BEGIN_ALLOW_THREADS; | |
1975 | _result = (int )wxWindow_GetId(_arg0); | |
1976 | ||
1977 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1978 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1979 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1980 | return _resultobj; |
1981 | } | |
1982 | ||
8ab979d7 | 1983 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 1984 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1985 | PyObject * _resultobj; |
1986 | wxString * _result; | |
1987 | wxWindow * _arg0; | |
1d99702e | 1988 | PyObject * _argo0 = 0; |
efc5f224 | 1989 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1990 | |
1991 | self = self; | |
efc5f224 | 1992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 1993 | return NULL; |
1d99702e RD |
1994 | if (_argo0) { |
1995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
1998 | return NULL; | |
1999 | } | |
2000 | } | |
8ab979d7 | 2001 | { |
cf694132 RD |
2002 | wxPy_BEGIN_ALLOW_THREADS; |
2003 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
2004 | ||
2005 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2006 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2007 | }{ |
eec92d76 | 2008 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2009 | } |
2010 | { | |
2011 | delete _result; | |
2012 | } | |
2013 | return _resultobj; | |
2014 | } | |
2015 | ||
bb0054cd | 2016 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 2017 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2018 | PyObject * _resultobj; |
2019 | wxWindow * _arg0; | |
2020 | wxString * _arg1; | |
1d99702e | 2021 | PyObject * _argo0 = 0; |
bb0054cd | 2022 | PyObject * _obj1 = 0; |
efc5f224 | 2023 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2024 | |
2025 | self = self; | |
efc5f224 | 2026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2027 | return NULL; |
1d99702e RD |
2028 | if (_argo0) { |
2029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2032 | return NULL; | |
2033 | } | |
2034 | } | |
2035 | { | |
185d7c3e RD |
2036 | #if PYTHON_API_VERSION >= 1009 |
2037 | char* tmpPtr; int tmpSize; | |
2038 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2039 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2040 | return NULL; |
2041 | } | |
2042 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2043 | return NULL; | |
2044 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2045 | #else | |
bb0054cd RD |
2046 | if (!PyString_Check(_obj1)) { |
2047 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2048 | return NULL; | |
2049 | } | |
185d7c3e RD |
2050 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2051 | #endif | |
bb0054cd RD |
2052 | } |
2053 | { | |
2054 | wxPy_BEGIN_ALLOW_THREADS; | |
2055 | wxWindow_SetLabel(_arg0,*_arg1); | |
2056 | ||
2057 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2058 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2059 | } Py_INCREF(Py_None); |
2060 | _resultobj = Py_None; | |
2061 | { | |
2062 | if (_obj1) | |
2063 | delete _arg1; | |
2064 | } | |
2065 | return _resultobj; | |
2066 | } | |
2067 | ||
8ab979d7 | 2068 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2069 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2070 | PyObject * _resultobj; |
2071 | wxString * _result; | |
2072 | wxWindow * _arg0; | |
1d99702e | 2073 | PyObject * _argo0 = 0; |
efc5f224 | 2074 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2075 | |
2076 | self = self; | |
efc5f224 | 2077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2078 | return NULL; |
1d99702e RD |
2079 | if (_argo0) { |
2080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2083 | return NULL; | |
2084 | } | |
2085 | } | |
8ab979d7 | 2086 | { |
cf694132 RD |
2087 | wxPy_BEGIN_ALLOW_THREADS; |
2088 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2089 | ||
2090 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2091 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2092 | }{ |
eec92d76 | 2093 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2094 | } |
2095 | { | |
2096 | delete _result; | |
2097 | } | |
2098 | return _resultobj; | |
2099 | } | |
2100 | ||
2101 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2102 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2103 | PyObject * _resultobj; |
2104 | wxWindow * _result; | |
2105 | wxWindow * _arg0; | |
1d99702e | 2106 | PyObject * _argo0 = 0; |
efc5f224 | 2107 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2108 | |
2109 | self = self; | |
efc5f224 | 2110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2111 | return NULL; |
1d99702e RD |
2112 | if (_argo0) { |
2113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2116 | return NULL; | |
2117 | } | |
2118 | } | |
cf694132 RD |
2119 | { |
2120 | wxPy_BEGIN_ALLOW_THREADS; | |
2121 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2122 | ||
2123 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2124 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2125 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2126 | return _resultobj; |
2127 | } | |
2128 | ||
b8b8dda7 | 2129 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2130 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2131 | PyObject * _resultobj; |
2132 | wxWindow * _arg0; | |
2133 | int * _arg1; | |
2134 | int temp; | |
2135 | int * _arg2; | |
2136 | int temp0; | |
1d99702e | 2137 | PyObject * _argo0 = 0; |
efc5f224 | 2138 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2139 | |
2140 | self = self; | |
2141 | { | |
2142 | _arg1 = &temp; | |
2143 | } | |
2144 | { | |
2145 | _arg2 = &temp0; | |
2146 | } | |
efc5f224 | 2147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2148 | return NULL; |
1d99702e RD |
2149 | if (_argo0) { |
2150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2153 | return NULL; | |
2154 | } | |
2155 | } | |
cf694132 RD |
2156 | { |
2157 | wxPy_BEGIN_ALLOW_THREADS; | |
2158 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2159 | ||
2160 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2161 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2162 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2163 | _resultobj = Py_None; |
2164 | { | |
2165 | PyObject *o; | |
2166 | o = PyInt_FromLong((long) (*_arg1)); | |
2167 | _resultobj = t_output_helper(_resultobj, o); | |
2168 | } | |
2169 | { | |
2170 | PyObject *o; | |
2171 | o = PyInt_FromLong((long) (*_arg2)); | |
2172 | _resultobj = t_output_helper(_resultobj, o); | |
2173 | } | |
2174 | return _resultobj; | |
2175 | } | |
2176 | ||
2177 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2178 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2179 | PyObject * _resultobj; |
2180 | wxPoint * _result; | |
2181 | wxWindow * _arg0; | |
1d99702e | 2182 | PyObject * _argo0 = 0; |
efc5f224 | 2183 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2184 | char _ptemp[128]; |
2185 | ||
2186 | self = self; | |
efc5f224 | 2187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2188 | return NULL; |
1d99702e RD |
2189 | if (_argo0) { |
2190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2193 | return NULL; | |
2194 | } | |
2195 | } | |
cf694132 RD |
2196 | { |
2197 | wxPy_BEGIN_ALLOW_THREADS; | |
2198 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2199 | ||
2200 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2201 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2202 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2203 | _resultobj = Py_BuildValue("s",_ptemp); |
2204 | return _resultobj; | |
2205 | } | |
2206 | ||
2207 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2208 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2209 | PyObject * _resultobj; |
2210 | wxRect * _result; | |
2211 | wxWindow * _arg0; | |
1d99702e | 2212 | PyObject * _argo0 = 0; |
efc5f224 | 2213 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2214 | char _ptemp[128]; |
2215 | ||
2216 | self = self; | |
efc5f224 | 2217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2218 | return NULL; |
1d99702e RD |
2219 | if (_argo0) { |
2220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2223 | return NULL; | |
2224 | } | |
2225 | } | |
cf694132 RD |
2226 | { |
2227 | wxPy_BEGIN_ALLOW_THREADS; | |
2228 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2229 | ||
2230 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2231 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2232 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2233 | _resultobj = Py_BuildValue("s",_ptemp); |
2234 | return _resultobj; | |
2235 | } | |
2236 | ||
8ab979d7 | 2237 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2238 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2239 | PyObject * _resultobj; |
2240 | int _result; | |
2241 | wxWindow * _arg0; | |
2242 | int _arg1; | |
1d99702e | 2243 | PyObject * _argo0 = 0; |
efc5f224 | 2244 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2245 | |
2246 | self = self; | |
efc5f224 | 2247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2248 | return NULL; |
1d99702e RD |
2249 | if (_argo0) { |
2250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2253 | return NULL; | |
2254 | } | |
2255 | } | |
cf694132 RD |
2256 | { |
2257 | wxPy_BEGIN_ALLOW_THREADS; | |
2258 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2259 | ||
2260 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2261 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2262 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2263 | return _resultobj; |
2264 | } | |
2265 | ||
2266 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2267 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2268 | PyObject * _resultobj; |
2269 | int _result; | |
2270 | wxWindow * _arg0; | |
2271 | int _arg1; | |
1d99702e | 2272 | PyObject * _argo0 = 0; |
efc5f224 | 2273 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2274 | |
2275 | self = self; | |
efc5f224 | 2276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2277 | return NULL; |
1d99702e RD |
2278 | if (_argo0) { |
2279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2282 | return NULL; | |
2283 | } | |
2284 | } | |
cf694132 RD |
2285 | { |
2286 | wxPy_BEGIN_ALLOW_THREADS; | |
2287 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2288 | ||
2289 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2290 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2291 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2292 | return _resultobj; |
2293 | } | |
2294 | ||
2295 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2296 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2297 | PyObject * _resultobj; |
2298 | int _result; | |
2299 | wxWindow * _arg0; | |
2300 | int _arg1; | |
1d99702e | 2301 | PyObject * _argo0 = 0; |
efc5f224 | 2302 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2303 | |
2304 | self = self; | |
efc5f224 | 2305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2306 | return NULL; |
1d99702e RD |
2307 | if (_argo0) { |
2308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2311 | return NULL; | |
2312 | } | |
2313 | } | |
cf694132 RD |
2314 | { |
2315 | wxPy_BEGIN_ALLOW_THREADS; | |
2316 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2317 | ||
2318 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2319 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2320 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2321 | return _resultobj; |
2322 | } | |
2323 | ||
b8b8dda7 | 2324 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2325 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2326 | PyObject * _resultobj; |
2327 | wxWindow * _arg0; | |
2328 | int * _arg1; | |
2329 | int temp; | |
2330 | int * _arg2; | |
2331 | int temp0; | |
1d99702e | 2332 | PyObject * _argo0 = 0; |
efc5f224 | 2333 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2334 | |
2335 | self = self; | |
2336 | { | |
2337 | _arg1 = &temp; | |
2338 | } | |
2339 | { | |
2340 | _arg2 = &temp0; | |
2341 | } | |
efc5f224 | 2342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2343 | return NULL; |
1d99702e RD |
2344 | if (_argo0) { |
2345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2348 | return NULL; |
2349 | } | |
2350 | } | |
cf694132 RD |
2351 | { |
2352 | wxPy_BEGIN_ALLOW_THREADS; | |
2353 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2354 | ||
2355 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2356 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2357 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2358 | _resultobj = Py_None; |
2359 | { | |
2360 | PyObject *o; | |
2361 | o = PyInt_FromLong((long) (*_arg1)); | |
2362 | _resultobj = t_output_helper(_resultobj, o); | |
2363 | } | |
2364 | { | |
2365 | PyObject *o; | |
2366 | o = PyInt_FromLong((long) (*_arg2)); | |
2367 | _resultobj = t_output_helper(_resultobj, o); | |
2368 | } | |
2369 | return _resultobj; | |
2370 | } | |
2371 | ||
b8b8dda7 | 2372 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2373 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2374 | PyObject * _resultobj; |
2375 | wxSize * _result; | |
2376 | wxWindow * _arg0; | |
1d99702e | 2377 | PyObject * _argo0 = 0; |
efc5f224 | 2378 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2379 | char _ptemp[128]; |
2380 | ||
2381 | self = self; | |
efc5f224 | 2382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2383 | return NULL; |
1d99702e RD |
2384 | if (_argo0) { |
2385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2388 | return NULL; | |
2389 | } | |
2390 | } | |
cf694132 RD |
2391 | { |
2392 | wxPy_BEGIN_ALLOW_THREADS; | |
2393 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2394 | ||
2395 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2396 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2397 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2398 | _resultobj = Py_BuildValue("s",_ptemp); |
2399 | return _resultobj; | |
2400 | } | |
2401 | ||
8ab979d7 | 2402 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2403 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2404 | PyObject * _resultobj; |
2405 | wxWindow * _arg0; | |
2406 | wxString * _arg1; | |
2407 | int * _arg2; | |
2408 | int temp; | |
2409 | int * _arg3; | |
2410 | int temp0; | |
1d99702e | 2411 | PyObject * _argo0 = 0; |
8ab979d7 | 2412 | PyObject * _obj1 = 0; |
efc5f224 | 2413 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2414 | |
2415 | self = self; | |
2416 | { | |
2417 | _arg2 = &temp; | |
2418 | } | |
2419 | { | |
2420 | _arg3 = &temp0; | |
2421 | } | |
efc5f224 | 2422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2423 | return NULL; |
1d99702e RD |
2424 | if (_argo0) { |
2425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2428 | return NULL; | |
2429 | } | |
2430 | } | |
2431 | { | |
185d7c3e RD |
2432 | #if PYTHON_API_VERSION >= 1009 |
2433 | char* tmpPtr; int tmpSize; | |
2434 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2435 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2436 | return NULL; |
2437 | } | |
2438 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2439 | return NULL; | |
2440 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2441 | #else | |
8ab979d7 RD |
2442 | if (!PyString_Check(_obj1)) { |
2443 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2444 | return NULL; | |
2445 | } | |
185d7c3e RD |
2446 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2447 | #endif | |
8ab979d7 | 2448 | } |
cf694132 RD |
2449 | { |
2450 | wxPy_BEGIN_ALLOW_THREADS; | |
2451 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2452 | ||
2453 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2454 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2455 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2456 | _resultobj = Py_None; |
2457 | { | |
2458 | PyObject *o; | |
2459 | o = PyInt_FromLong((long) (*_arg2)); | |
2460 | _resultobj = t_output_helper(_resultobj, o); | |
2461 | } | |
2462 | { | |
2463 | PyObject *o; | |
2464 | o = PyInt_FromLong((long) (*_arg3)); | |
2465 | _resultobj = t_output_helper(_resultobj, o); | |
2466 | } | |
2467 | { | |
2468 | if (_obj1) | |
2469 | delete _arg1; | |
2470 | } | |
2471 | return _resultobj; | |
2472 | } | |
2473 | ||
af309447 | 2474 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2475 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2476 | PyObject * _resultobj; |
2477 | wxWindow * _arg0; | |
2478 | wxString * _arg1; | |
2479 | int * _arg2; | |
2480 | int temp; | |
2481 | int * _arg3; | |
2482 | int temp0; | |
2483 | int * _arg4; | |
2484 | int temp1; | |
2485 | int * _arg5; | |
2486 | int temp2; | |
1d99702e RD |
2487 | wxFont * _arg6 = (wxFont *) NULL; |
2488 | PyObject * _argo0 = 0; | |
af309447 | 2489 | PyObject * _obj1 = 0; |
1d99702e | 2490 | PyObject * _argo6 = 0; |
efc5f224 | 2491 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2492 | |
2493 | self = self; | |
2494 | { | |
2495 | _arg2 = &temp; | |
2496 | } | |
2497 | { | |
2498 | _arg3 = &temp0; | |
2499 | } | |
2500 | { | |
2501 | _arg4 = &temp1; | |
2502 | } | |
2503 | { | |
2504 | _arg5 = &temp2; | |
2505 | } | |
efc5f224 | 2506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2507 | return NULL; |
1d99702e RD |
2508 | if (_argo0) { |
2509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2512 | return NULL; | |
2513 | } | |
2514 | } | |
2515 | { | |
185d7c3e RD |
2516 | #if PYTHON_API_VERSION >= 1009 |
2517 | char* tmpPtr; int tmpSize; | |
2518 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2519 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2520 | return NULL; |
2521 | } | |
2522 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2523 | return NULL; | |
2524 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2525 | #else | |
af309447 RD |
2526 | if (!PyString_Check(_obj1)) { |
2527 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2528 | return NULL; | |
2529 | } | |
185d7c3e RD |
2530 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2531 | #endif | |
af309447 | 2532 | } |
1d99702e RD |
2533 | if (_argo6) { |
2534 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2535 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2537 | return NULL; | |
2538 | } | |
2539 | } | |
cf694132 RD |
2540 | { |
2541 | wxPy_BEGIN_ALLOW_THREADS; | |
2542 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2543 | ||
2544 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2545 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2546 | } Py_INCREF(Py_None); |
af309447 RD |
2547 | _resultobj = Py_None; |
2548 | { | |
2549 | PyObject *o; | |
2550 | o = PyInt_FromLong((long) (*_arg2)); | |
2551 | _resultobj = t_output_helper(_resultobj, o); | |
2552 | } | |
2553 | { | |
2554 | PyObject *o; | |
2555 | o = PyInt_FromLong((long) (*_arg3)); | |
2556 | _resultobj = t_output_helper(_resultobj, o); | |
2557 | } | |
2558 | { | |
2559 | PyObject *o; | |
2560 | o = PyInt_FromLong((long) (*_arg4)); | |
2561 | _resultobj = t_output_helper(_resultobj, o); | |
2562 | } | |
2563 | { | |
2564 | PyObject *o; | |
2565 | o = PyInt_FromLong((long) (*_arg5)); | |
2566 | _resultobj = t_output_helper(_resultobj, o); | |
2567 | } | |
2568 | { | |
2569 | if (_obj1) | |
2570 | delete _arg1; | |
2571 | } | |
2572 | return _resultobj; | |
2573 | } | |
2574 | ||
8ab979d7 | 2575 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2576 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2577 | PyObject * _resultobj; |
2578 | wxString * _result; | |
2579 | wxWindow * _arg0; | |
1d99702e | 2580 | PyObject * _argo0 = 0; |
efc5f224 | 2581 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2582 | |
2583 | self = self; | |
efc5f224 | 2584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2585 | return NULL; |
1d99702e RD |
2586 | if (_argo0) { |
2587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2590 | return NULL; | |
2591 | } | |
2592 | } | |
8ab979d7 | 2593 | { |
cf694132 RD |
2594 | wxPy_BEGIN_ALLOW_THREADS; |
2595 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2596 | ||
2597 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2598 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2599 | }{ |
eec92d76 | 2600 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2601 | } |
2602 | { | |
2603 | delete _result; | |
2604 | } | |
2605 | return _resultobj; | |
2606 | } | |
2607 | ||
8bf5d46e | 2608 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2609 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2610 | PyObject * _resultobj; |
2611 | wxRegion * _result; | |
2612 | wxWindow * _arg0; | |
1d99702e | 2613 | PyObject * _argo0 = 0; |
efc5f224 | 2614 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2615 | char _ptemp[128]; |
2616 | ||
2617 | self = self; | |
efc5f224 | 2618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2619 | return NULL; |
1d99702e RD |
2620 | if (_argo0) { |
2621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2624 | return NULL; | |
2625 | } | |
2626 | } | |
2627 | { | |
2628 | wxPy_BEGIN_ALLOW_THREADS; | |
2629 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2630 | ||
2631 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2632 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2633 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2634 | _resultobj = Py_BuildValue("s",_ptemp); | |
2635 | return _resultobj; | |
2636 | } | |
2637 | ||
8ab979d7 | 2638 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2639 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2640 | PyObject * _resultobj; |
2641 | long _result; | |
2642 | wxWindow * _arg0; | |
1d99702e | 2643 | PyObject * _argo0 = 0; |
efc5f224 | 2644 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2645 | |
2646 | self = self; | |
efc5f224 | 2647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2648 | return NULL; |
1d99702e RD |
2649 | if (_argo0) { |
2650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2653 | return NULL; | |
2654 | } | |
2655 | } | |
cf694132 RD |
2656 | { |
2657 | wxPy_BEGIN_ALLOW_THREADS; | |
2658 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2659 | ||
2660 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2661 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2662 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2663 | return _resultobj; |
2664 | } | |
2665 | ||
f6bcfd97 BP |
2666 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2667 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2668 | PyObject * _resultobj; | |
2669 | wxWindow * _arg0; | |
2670 | long _arg1; | |
2671 | PyObject * _argo0 = 0; | |
2672 | char *_kwnames[] = { "self","style", NULL }; | |
2673 | ||
2674 | self = self; | |
2675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2676 | return NULL; | |
2677 | if (_argo0) { | |
2678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2681 | return NULL; | |
2682 | } | |
2683 | } | |
2684 | { | |
2685 | wxPy_BEGIN_ALLOW_THREADS; | |
2686 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2687 | ||
2688 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2689 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2690 | } Py_INCREF(Py_None); |
2691 | _resultobj = Py_None; | |
2692 | return _resultobj; | |
2693 | } | |
2694 | ||
2695 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2696 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2697 | PyObject * _resultobj; | |
2698 | wxWindow * _arg0; | |
2699 | long _arg1; | |
2700 | PyObject * _argo0 = 0; | |
2701 | char *_kwnames[] = { "self","style", NULL }; | |
2702 | ||
2703 | self = self; | |
2704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2705 | return NULL; | |
2706 | if (_argo0) { | |
2707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2710 | return NULL; | |
2711 | } | |
2712 | } | |
2713 | { | |
2714 | wxPy_BEGIN_ALLOW_THREADS; | |
2715 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2716 | ||
2717 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2718 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2719 | } Py_INCREF(Py_None); |
2720 | _resultobj = Py_None; | |
2721 | return _resultobj; | |
2722 | } | |
2723 | ||
bb0054cd | 2724 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2725 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2726 | PyObject * _resultobj; |
2727 | bool _result; | |
2728 | wxWindow * _arg0; | |
1d99702e | 2729 | PyObject * _argo0 = 0; |
efc5f224 | 2730 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2731 | |
2732 | self = self; | |
efc5f224 | 2733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2734 | return NULL; |
1d99702e RD |
2735 | if (_argo0) { |
2736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2739 | return NULL; | |
2740 | } | |
2741 | } | |
2742 | { | |
2743 | wxPy_BEGIN_ALLOW_THREADS; | |
2744 | _result = (bool )wxWindow_Hide(_arg0); | |
2745 | ||
2746 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2747 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2748 | } _resultobj = Py_BuildValue("i",_result); |
2749 | return _resultobj; | |
2750 | } | |
2751 | ||
8ab979d7 | 2752 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2753 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2754 | PyObject * _resultobj; |
2755 | wxWindow * _arg0; | |
1d99702e | 2756 | PyObject * _argo0 = 0; |
efc5f224 | 2757 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2758 | |
2759 | self = self; | |
efc5f224 | 2760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2761 | return NULL; |
1d99702e RD |
2762 | if (_argo0) { |
2763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2766 | return NULL; | |
2767 | } | |
2768 | } | |
cf694132 RD |
2769 | { |
2770 | wxPy_BEGIN_ALLOW_THREADS; | |
2771 | wxWindow_InitDialog(_arg0); | |
2772 | ||
2773 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2774 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2775 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2776 | _resultobj = Py_None; |
2777 | return _resultobj; | |
2778 | } | |
2779 | ||
2780 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2781 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2782 | PyObject * _resultobj; |
2783 | bool _result; | |
2784 | wxWindow * _arg0; | |
1d99702e | 2785 | PyObject * _argo0 = 0; |
efc5f224 | 2786 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2787 | |
2788 | self = self; | |
efc5f224 | 2789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2790 | return NULL; |
1d99702e RD |
2791 | if (_argo0) { |
2792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2795 | return NULL; | |
2796 | } | |
2797 | } | |
cf694132 RD |
2798 | { |
2799 | wxPy_BEGIN_ALLOW_THREADS; | |
2800 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2801 | ||
2802 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2803 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2804 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2805 | return _resultobj; |
2806 | } | |
2807 | ||
1b55cabf RD |
2808 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2809 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2810 | PyObject * _resultobj; | |
2811 | bool _result; | |
2812 | wxWindow * _arg0; | |
2813 | int _arg1; | |
2814 | int _arg2; | |
2815 | int _arg3 = (int ) 0; | |
2816 | int _arg4 = (int ) 0; | |
2817 | PyObject * _argo0 = 0; | |
2818 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2819 | ||
2820 | self = self; | |
2821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2822 | return NULL; | |
2823 | if (_argo0) { | |
2824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2827 | return NULL; | |
2828 | } | |
2829 | } | |
2830 | { | |
2831 | wxPy_BEGIN_ALLOW_THREADS; | |
2832 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2833 | ||
2834 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2835 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2836 | } _resultobj = Py_BuildValue("i",_result); |
2837 | return _resultobj; | |
2838 | } | |
2839 | ||
2840 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2841 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2842 | PyObject * _resultobj; | |
2843 | bool _result; | |
2844 | wxWindow * _arg0; | |
2845 | wxPoint * _arg1; | |
2846 | PyObject * _argo0 = 0; | |
2847 | wxPoint temp; | |
2848 | PyObject * _obj1 = 0; | |
2849 | char *_kwnames[] = { "self","pt", NULL }; | |
2850 | ||
2851 | self = self; | |
2852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2853 | return NULL; | |
2854 | if (_argo0) { | |
2855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2858 | return NULL; | |
2859 | } | |
2860 | } | |
2861 | { | |
2862 | _arg1 = &temp; | |
2863 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2864 | return NULL; | |
2865 | } | |
2866 | { | |
2867 | wxPy_BEGIN_ALLOW_THREADS; | |
2868 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2869 | ||
2870 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2871 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2872 | } _resultobj = Py_BuildValue("i",_result); |
2873 | return _resultobj; | |
2874 | } | |
2875 | ||
2876 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2877 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2878 | PyObject * _resultobj; | |
2879 | bool _result; | |
2880 | wxWindow * _arg0; | |
2881 | wxRect * _arg1; | |
2882 | PyObject * _argo0 = 0; | |
2883 | wxRect temp; | |
2884 | PyObject * _obj1 = 0; | |
2885 | char *_kwnames[] = { "self","rect", NULL }; | |
2886 | ||
2887 | self = self; | |
2888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2889 | return NULL; | |
2890 | if (_argo0) { | |
2891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2894 | return NULL; | |
2895 | } | |
2896 | } | |
2897 | { | |
2898 | _arg1 = &temp; | |
2899 | if (! wxRect_helper(_obj1, &_arg1)) | |
2900 | return NULL; | |
2901 | } | |
2902 | { | |
2903 | wxPy_BEGIN_ALLOW_THREADS; | |
2904 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2905 | ||
2906 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2907 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2908 | } _resultobj = Py_BuildValue("i",_result); |
2909 | return _resultobj; | |
2910 | } | |
2911 | ||
8ab979d7 | 2912 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 2913 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2914 | PyObject * _resultobj; |
2915 | bool _result; | |
2916 | wxWindow * _arg0; | |
1d99702e | 2917 | PyObject * _argo0 = 0; |
efc5f224 | 2918 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2919 | |
2920 | self = self; | |
efc5f224 | 2921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 2922 | return NULL; |
1d99702e RD |
2923 | if (_argo0) { |
2924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
2927 | return NULL; | |
2928 | } | |
2929 | } | |
cf694132 RD |
2930 | { |
2931 | wxPy_BEGIN_ALLOW_THREADS; | |
2932 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2933 | ||
2934 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2935 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2936 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2937 | return _resultobj; |
2938 | } | |
2939 | ||
2940 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 2941 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2942 | PyObject * _resultobj; |
2943 | bool _result; | |
2944 | wxWindow * _arg0; | |
1d99702e | 2945 | PyObject * _argo0 = 0; |
efc5f224 | 2946 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2947 | |
2948 | self = self; | |
efc5f224 | 2949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 2950 | return NULL; |
1d99702e RD |
2951 | if (_argo0) { |
2952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
2955 | return NULL; | |
2956 | } | |
2957 | } | |
cf694132 RD |
2958 | { |
2959 | wxPy_BEGIN_ALLOW_THREADS; | |
2960 | _result = (bool )wxWindow_IsShown(_arg0); | |
2961 | ||
2962 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2963 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2964 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2965 | return _resultobj; |
2966 | } | |
2967 | ||
bb0054cd | 2968 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 2969 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2970 | PyObject * _resultobj; |
2971 | bool _result; | |
2972 | wxWindow * _arg0; | |
1d99702e | 2973 | PyObject * _argo0 = 0; |
efc5f224 | 2974 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2975 | |
2976 | self = self; | |
efc5f224 | 2977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 2978 | return NULL; |
1d99702e RD |
2979 | if (_argo0) { |
2980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
2983 | return NULL; | |
2984 | } | |
2985 | } | |
2986 | { | |
2987 | wxPy_BEGIN_ALLOW_THREADS; | |
2988 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2989 | ||
2990 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2991 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2992 | } _resultobj = Py_BuildValue("i",_result); |
2993 | return _resultobj; | |
2994 | } | |
2995 | ||
8ab979d7 | 2996 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 2997 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2998 | PyObject * _resultobj; |
2999 | wxWindow * _arg0; | |
1d99702e | 3000 | PyObject * _argo0 = 0; |
efc5f224 | 3001 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3002 | |
3003 | self = self; | |
efc5f224 | 3004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 3005 | return NULL; |
1d99702e RD |
3006 | if (_argo0) { |
3007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
3010 | return NULL; | |
3011 | } | |
3012 | } | |
cf694132 RD |
3013 | { |
3014 | wxPy_BEGIN_ALLOW_THREADS; | |
3015 | wxWindow_Layout(_arg0); | |
3016 | ||
3017 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3018 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3019 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3020 | _resultobj = Py_None; |
3021 | return _resultobj; | |
3022 | } | |
3023 | ||
3024 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3025 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3026 | PyObject * _resultobj; |
3027 | bool _result; | |
3028 | wxWindow * _arg0; | |
3029 | wxWindow * _arg1; | |
3030 | wxString * _arg2; | |
1d99702e RD |
3031 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
3032 | PyObject * _argo0 = 0; | |
3033 | PyObject * _argo1 = 0; | |
8ab979d7 | 3034 | PyObject * _obj2 = 0; |
1d99702e | 3035 | PyObject * _argo3 = 0; |
efc5f224 | 3036 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
3037 | |
3038 | self = self; | |
efc5f224 | 3039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 3040 | return NULL; |
1d99702e RD |
3041 | if (_argo0) { |
3042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3045 | return NULL; | |
3046 | } | |
3047 | } | |
1d99702e RD |
3048 | if (_argo1) { |
3049 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3050 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3052 | return NULL; | |
3053 | } | |
3054 | } | |
3055 | { | |
185d7c3e RD |
3056 | #if PYTHON_API_VERSION >= 1009 |
3057 | char* tmpPtr; int tmpSize; | |
3058 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 3059 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3060 | return NULL; |
3061 | } | |
3062 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3063 | return NULL; | |
3064 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3065 | #else | |
8ab979d7 RD |
3066 | if (!PyString_Check(_obj2)) { |
3067 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3068 | return NULL; | |
3069 | } | |
185d7c3e RD |
3070 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3071 | #endif | |
8ab979d7 | 3072 | } |
1d99702e RD |
3073 | if (_argo3) { |
3074 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3075 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3077 | return NULL; | |
3078 | } | |
3079 | } | |
cf694132 RD |
3080 | { |
3081 | wxPy_BEGIN_ALLOW_THREADS; | |
3082 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
3083 | ||
3084 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3085 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3086 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3087 | { |
3088 | if (_obj2) | |
3089 | delete _arg2; | |
3090 | } | |
3091 | return _resultobj; | |
3092 | } | |
3093 | ||
3094 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3095 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3096 | PyObject * _resultobj; |
3097 | wxWindow * _arg0; | |
1d99702e | 3098 | PyObject * _argo0 = 0; |
efc5f224 | 3099 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3100 | |
3101 | self = self; | |
efc5f224 | 3102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3103 | return NULL; |
1d99702e RD |
3104 | if (_argo0) { |
3105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3108 | return NULL; | |
3109 | } | |
3110 | } | |
cf694132 RD |
3111 | { |
3112 | wxPy_BEGIN_ALLOW_THREADS; | |
3113 | wxWindow_Lower(_arg0); | |
3114 | ||
3115 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3116 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3117 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3118 | _resultobj = Py_None; |
3119 | return _resultobj; | |
3120 | } | |
3121 | ||
3122 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3123 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3124 | PyObject * _resultobj; |
3125 | wxWindow * _arg0; | |
3126 | bool _arg1; | |
1d99702e | 3127 | PyObject * _argo0 = 0; |
8ab979d7 | 3128 | int tempbool1; |
efc5f224 | 3129 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3130 | |
3131 | self = self; | |
efc5f224 | 3132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3133 | return NULL; |
1d99702e RD |
3134 | if (_argo0) { |
3135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3138 | return NULL; | |
3139 | } | |
3140 | } | |
3141 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3142 | { |
3143 | wxPy_BEGIN_ALLOW_THREADS; | |
3144 | wxWindow_MakeModal(_arg0,_arg1); | |
3145 | ||
3146 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3147 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3148 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3149 | _resultobj = Py_None; |
3150 | return _resultobj; | |
3151 | } | |
3152 | ||
af309447 | 3153 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3154 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3155 | PyObject * _resultobj; |
3156 | wxWindow * _arg0; | |
3157 | int _arg1; | |
3158 | int _arg2; | |
1d99702e | 3159 | PyObject * _argo0 = 0; |
efc5f224 | 3160 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3161 | |
3162 | self = self; | |
efc5f224 | 3163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 3164 | return NULL; |
1d99702e RD |
3165 | if (_argo0) { |
3166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3169 | return NULL; | |
3170 | } | |
3171 | } | |
cf694132 RD |
3172 | { |
3173 | wxPy_BEGIN_ALLOW_THREADS; | |
3174 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
3175 | ||
3176 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3177 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3178 | } Py_INCREF(Py_None); |
af309447 RD |
3179 | _resultobj = Py_None; |
3180 | return _resultobj; | |
3181 | } | |
3182 | ||
3183 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
efc5f224 | 3184 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3185 | PyObject * _resultobj; |
3186 | wxWindow * _arg0; | |
3187 | wxPoint * _arg1; | |
1d99702e | 3188 | PyObject * _argo0 = 0; |
2f90df85 RD |
3189 | wxPoint temp; |
3190 | PyObject * _obj1 = 0; | |
efc5f224 | 3191 | char *_kwnames[] = { "self","point", NULL }; |
af309447 RD |
3192 | |
3193 | self = self; | |
2f90df85 | 3194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3195 | return NULL; |
1d99702e RD |
3196 | if (_argo0) { |
3197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3200 | return NULL; | |
3201 | } | |
3202 | } | |
2f90df85 RD |
3203 | { |
3204 | _arg1 = &temp; | |
3205 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3206 | return NULL; |
2f90df85 | 3207 | } |
cf694132 RD |
3208 | { |
3209 | wxPy_BEGIN_ALLOW_THREADS; | |
3210 | wxWindow_Move(_arg0,*_arg1); | |
3211 | ||
3212 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3213 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3214 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3215 | _resultobj = Py_None; |
3216 | return _resultobj; | |
3217 | } | |
3218 | ||
1afc06c2 RD |
3219 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3220 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3221 | PyObject * _resultobj; | |
3222 | wxEvtHandler * _result; | |
3223 | wxWindow * _arg0; | |
3224 | bool _arg1 = (bool ) FALSE; | |
3225 | PyObject * _argo0 = 0; | |
3226 | int tempbool1 = (int) FALSE; | |
3227 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3228 | |
3229 | self = self; | |
3230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3231 | return NULL; | |
3232 | if (_argo0) { | |
3233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3236 | return NULL; | |
3237 | } | |
3238 | } | |
3239 | _arg1 = (bool ) tempbool1; | |
3240 | { | |
3241 | wxPy_BEGIN_ALLOW_THREADS; | |
3242 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3243 | ||
3244 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3245 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3246 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3247 | return _resultobj; |
3248 | } | |
3249 | ||
3250 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3251 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3252 | PyObject * _resultobj; | |
3253 | wxWindow * _arg0; | |
3254 | wxEvtHandler * _arg1; | |
3255 | PyObject * _argo0 = 0; | |
3256 | PyObject * _argo1 = 0; | |
3257 | char *_kwnames[] = { "self","handler", NULL }; | |
3258 | ||
3259 | self = self; | |
3260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3261 | return NULL; | |
3262 | if (_argo0) { | |
3263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3266 | return NULL; | |
3267 | } | |
3268 | } | |
3269 | if (_argo1) { | |
3270 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3271 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3273 | return NULL; | |
3274 | } | |
3275 | } | |
3276 | { | |
3277 | wxPy_BEGIN_ALLOW_THREADS; | |
3278 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3279 | ||
3280 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3281 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3282 | } Py_INCREF(Py_None); |
3283 | _resultobj = Py_None; | |
3284 | return _resultobj; | |
3285 | } | |
3286 | ||
8bf5d46e | 3287 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3288 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3289 | PyObject * _resultobj; |
3290 | bool _result; | |
3291 | wxWindow * _arg0; | |
3292 | wxMenu * _arg1; | |
3293 | int _arg2; | |
3294 | int _arg3; | |
1d99702e RD |
3295 | PyObject * _argo0 = 0; |
3296 | PyObject * _argo1 = 0; | |
efc5f224 | 3297 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3298 | |
3299 | self = self; | |
efc5f224 | 3300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3301 | return NULL; |
1d99702e RD |
3302 | if (_argo0) { |
3303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3306 | return NULL; | |
3307 | } | |
3308 | } | |
1d99702e RD |
3309 | if (_argo1) { |
3310 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3311 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3313 | return NULL; | |
3314 | } | |
3315 | } | |
3316 | { | |
3317 | wxPy_BEGIN_ALLOW_THREADS; | |
3318 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3319 | ||
3320 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3321 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3322 | } _resultobj = Py_BuildValue("i",_result); |
3323 | return _resultobj; | |
3324 | } | |
3325 | ||
3326 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3327 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3328 | PyObject * _resultobj; |
3329 | bool _result; | |
3330 | wxWindow * _arg0; | |
3331 | wxMenu * _arg1; | |
3332 | wxPoint * _arg2; | |
1d99702e RD |
3333 | PyObject * _argo0 = 0; |
3334 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3335 | wxPoint temp; |
3336 | PyObject * _obj2 = 0; | |
efc5f224 | 3337 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3338 | |
3339 | self = self; | |
2f90df85 | 3340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3341 | return NULL; |
1d99702e RD |
3342 | if (_argo0) { |
3343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3346 | return NULL; | |
3347 | } | |
3348 | } | |
1d99702e RD |
3349 | if (_argo1) { |
3350 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3351 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3353 | return NULL; | |
3354 | } | |
3355 | } | |
2f90df85 RD |
3356 | { |
3357 | _arg2 = &temp; | |
3358 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3359 | return NULL; |
2f90df85 | 3360 | } |
cf694132 RD |
3361 | { |
3362 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 3363 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 RD |
3364 | |
3365 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3366 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3367 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3368 | return _resultobj; |
3369 | } | |
3370 | ||
3371 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3372 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3373 | PyObject * _resultobj; |
3374 | wxWindow * _arg0; | |
1d99702e | 3375 | PyObject * _argo0 = 0; |
efc5f224 | 3376 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3377 | |
3378 | self = self; | |
efc5f224 | 3379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3380 | return NULL; |
1d99702e RD |
3381 | if (_argo0) { |
3382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3385 | return NULL; | |
3386 | } | |
3387 | } | |
cf694132 RD |
3388 | { |
3389 | wxPy_BEGIN_ALLOW_THREADS; | |
3390 | wxWindow_Raise(_arg0); | |
3391 | ||
3392 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3393 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3394 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3395 | _resultobj = Py_None; |
3396 | return _resultobj; | |
3397 | } | |
3398 | ||
3399 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3400 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3401 | PyObject * _resultobj; |
3402 | wxWindow * _arg0; | |
1d99702e RD |
3403 | bool _arg1 = (bool ) TRUE; |
3404 | wxRect * _arg2 = (wxRect *) NULL; | |
3405 | PyObject * _argo0 = 0; | |
3406 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3407 | wxRect temp; |
3408 | PyObject * _obj2 = 0; | |
efc5f224 | 3409 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3410 | |
3411 | self = self; | |
2f90df85 | 3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3413 | return NULL; |
1d99702e RD |
3414 | if (_argo0) { |
3415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3418 | return NULL; | |
3419 | } | |
3420 | } | |
3421 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3422 | if (_obj2) |
3423 | { | |
3424 | _arg2 = &temp; | |
3425 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3426 | return NULL; |
2f90df85 | 3427 | } |
cf694132 RD |
3428 | { |
3429 | wxPy_BEGIN_ALLOW_THREADS; | |
3430 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3431 | ||
3432 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3433 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3434 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3435 | _resultobj = Py_None; |
3436 | return _resultobj; | |
3437 | } | |
3438 | ||
3439 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
efc5f224 | 3440 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3441 | PyObject * _resultobj; |
3442 | wxWindow * _arg0; | |
1d99702e | 3443 | PyObject * _argo0 = 0; |
efc5f224 | 3444 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3445 | |
3446 | self = self; | |
efc5f224 | 3447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3448 | return NULL; |
1d99702e RD |
3449 | if (_argo0) { |
3450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3453 | return NULL; | |
3454 | } | |
3455 | } | |
cf694132 RD |
3456 | { |
3457 | wxPy_BEGIN_ALLOW_THREADS; | |
3458 | wxWindow_ReleaseMouse(_arg0); | |
3459 | ||
3460 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3461 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3462 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3463 | _resultobj = Py_None; |
3464 | return _resultobj; | |
3465 | } | |
3466 | ||
b7e72427 RD |
3467 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3468 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3469 | PyObject * _resultobj; | |
3470 | wxWindow * _arg0; | |
3471 | wxWindow * _arg1; | |
3472 | PyObject * _argo0 = 0; | |
3473 | PyObject * _argo1 = 0; | |
3474 | char *_kwnames[] = { "self","child", NULL }; | |
3475 | ||
3476 | self = self; | |
3477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3478 | return NULL; | |
3479 | if (_argo0) { | |
3480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3483 | return NULL; | |
3484 | } | |
3485 | } | |
3486 | if (_argo1) { | |
3487 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3488 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3490 | return NULL; | |
3491 | } | |
3492 | } | |
3493 | { | |
3494 | wxPy_BEGIN_ALLOW_THREADS; | |
3495 | wxWindow_RemoveChild(_arg0,_arg1); | |
3496 | ||
3497 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3498 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3499 | } Py_INCREF(Py_None); |
3500 | _resultobj = Py_None; | |
3501 | return _resultobj; | |
3502 | } | |
3503 | ||
bb0054cd | 3504 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3505 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3506 | PyObject * _resultobj; |
3507 | bool _result; | |
3508 | wxWindow * _arg0; | |
3509 | wxWindow * _arg1; | |
1d99702e RD |
3510 | PyObject * _argo0 = 0; |
3511 | PyObject * _argo1 = 0; | |
efc5f224 | 3512 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3513 | |
3514 | self = self; | |
efc5f224 | 3515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3516 | return NULL; |
1d99702e RD |
3517 | if (_argo0) { |
3518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3521 | return NULL; | |
3522 | } | |
3523 | } | |
1d99702e RD |
3524 | if (_argo1) { |
3525 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3526 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3528 | return NULL; | |
3529 | } | |
3530 | } | |
3531 | { | |
3532 | wxPy_BEGIN_ALLOW_THREADS; | |
3533 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3534 | ||
3535 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3536 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3537 | } _resultobj = Py_BuildValue("i",_result); |
3538 | return _resultobj; | |
3539 | } | |
3540 | ||
af309447 | 3541 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3542 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3543 | PyObject * _resultobj; |
3544 | wxWindow * _arg0; | |
3545 | int * _arg1; | |
3546 | int * _arg2; | |
1d99702e | 3547 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3548 | int temp; |
3549 | PyObject * _obj1 = 0; | |
3550 | int temp0; | |
3551 | PyObject * _obj2 = 0; | |
efc5f224 | 3552 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3553 | |
3554 | self = self; | |
efc5f224 | 3555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3556 | return NULL; |
1d99702e RD |
3557 | if (_argo0) { |
3558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3561 | return NULL; |
3562 | } | |
3563 | } | |
3564 | { | |
3565 | temp = (int) PyInt_AsLong(_obj1); | |
3566 | _arg1 = &temp; | |
3567 | } | |
3568 | { | |
3569 | temp0 = (int) PyInt_AsLong(_obj2); | |
3570 | _arg2 = &temp0; | |
3571 | } | |
cf694132 RD |
3572 | { |
3573 | wxPy_BEGIN_ALLOW_THREADS; | |
3574 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3575 | ||
3576 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3577 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3578 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3579 | _resultobj = Py_None; |
3580 | { | |
3581 | PyObject *o; | |
3582 | o = PyInt_FromLong((long) (*_arg1)); | |
3583 | _resultobj = t_output_helper(_resultobj, o); | |
3584 | } | |
3585 | { | |
3586 | PyObject *o; | |
3587 | o = PyInt_FromLong((long) (*_arg2)); | |
3588 | _resultobj = t_output_helper(_resultobj, o); | |
3589 | } | |
3590 | return _resultobj; | |
3591 | } | |
3592 | ||
af309447 | 3593 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3594 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3595 | PyObject * _resultobj; |
3596 | wxPoint * _result; | |
3597 | wxWindow * _arg0; | |
3598 | wxPoint * _arg1; | |
1d99702e | 3599 | PyObject * _argo0 = 0; |
2f90df85 RD |
3600 | wxPoint temp; |
3601 | PyObject * _obj1 = 0; | |
efc5f224 | 3602 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3603 | char _ptemp[128]; |
3604 | ||
3605 | self = self; | |
2f90df85 | 3606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3607 | return NULL; |
1d99702e RD |
3608 | if (_argo0) { |
3609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3612 | return NULL; | |
3613 | } | |
3614 | } | |
2f90df85 RD |
3615 | { |
3616 | _arg1 = &temp; | |
3617 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3618 | return NULL; |
2f90df85 | 3619 | } |
cf694132 RD |
3620 | { |
3621 | wxPy_BEGIN_ALLOW_THREADS; | |
3622 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3623 | ||
3624 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3625 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3626 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3627 | _resultobj = Py_BuildValue("s",_ptemp); |
3628 | return _resultobj; | |
3629 | } | |
3630 | ||
8ab979d7 | 3631 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3632 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3633 | PyObject * _resultobj; |
3634 | wxWindow * _arg0; | |
3635 | int _arg1; | |
3636 | int _arg2; | |
1d99702e RD |
3637 | wxRect * _arg3 = (wxRect *) NULL; |
3638 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3639 | wxRect temp; |
3640 | PyObject * _obj3 = 0; | |
efc5f224 | 3641 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3642 | |
3643 | self = self; | |
2f90df85 | 3644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3645 | return NULL; |
1d99702e RD |
3646 | if (_argo0) { |
3647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3650 | return NULL; | |
3651 | } | |
3652 | } | |
2f90df85 RD |
3653 | if (_obj3) |
3654 | { | |
3655 | _arg3 = &temp; | |
3656 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3657 | return NULL; |
2f90df85 | 3658 | } |
cf694132 RD |
3659 | { |
3660 | wxPy_BEGIN_ALLOW_THREADS; | |
3661 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3662 | ||
3663 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3664 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3665 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3666 | _resultobj = Py_None; |
3667 | return _resultobj; | |
3668 | } | |
3669 | ||
b8b8dda7 | 3670 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
efc5f224 | 3671 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
3672 | PyObject * _resultobj; |
3673 | wxWindow * _arg0; | |
3674 | wxAcceleratorTable * _arg1; | |
1d99702e RD |
3675 | PyObject * _argo0 = 0; |
3676 | PyObject * _argo1 = 0; | |
efc5f224 | 3677 | char *_kwnames[] = { "self","accel", NULL }; |
b8b8dda7 RD |
3678 | |
3679 | self = self; | |
efc5f224 | 3680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 3681 | return NULL; |
1d99702e RD |
3682 | if (_argo0) { |
3683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
3685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); |
3686 | return NULL; | |
3687 | } | |
3688 | } | |
1d99702e RD |
3689 | if (_argo1) { |
3690 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3691 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
b8b8dda7 RD |
3692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
3693 | return NULL; | |
3694 | } | |
3695 | } | |
cf694132 RD |
3696 | { |
3697 | wxPy_BEGIN_ALLOW_THREADS; | |
3698 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
3699 | ||
3700 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3701 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3702 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
3703 | _resultobj = Py_None; |
3704 | return _resultobj; | |
3705 | } | |
3706 | ||
8ab979d7 | 3707 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) |
efc5f224 | 3708 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3709 | PyObject * _resultobj; |
3710 | wxWindow * _arg0; | |
3711 | bool _arg1; | |
1d99702e | 3712 | PyObject * _argo0 = 0; |
8ab979d7 | 3713 | int tempbool1; |
efc5f224 | 3714 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3715 | |
3716 | self = self; | |
efc5f224 | 3717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3718 | return NULL; |
1d99702e RD |
3719 | if (_argo0) { |
3720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3723 | return NULL; | |
3724 | } | |
3725 | } | |
3726 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3727 | { |
3728 | wxPy_BEGIN_ALLOW_THREADS; | |
3729 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3730 | ||
3731 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3732 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3733 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3734 | _resultobj = Py_None; |
3735 | return _resultobj; | |
3736 | } | |
3737 | ||
9d8bd15f RD |
3738 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3739 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3740 | PyObject * _resultobj; | |
3741 | bool _result; | |
3742 | wxWindow * _arg0; | |
3743 | PyObject * _argo0 = 0; | |
3744 | char *_kwnames[] = { "self", NULL }; | |
3745 | ||
3746 | self = self; | |
3747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3748 | return NULL; | |
3749 | if (_argo0) { | |
3750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3753 | return NULL; | |
3754 | } | |
3755 | } | |
3756 | { | |
3757 | wxPy_BEGIN_ALLOW_THREADS; | |
3758 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3759 | ||
3760 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3761 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3762 | } _resultobj = Py_BuildValue("i",_result); |
3763 | return _resultobj; | |
3764 | } | |
3765 | ||
8ab979d7 | 3766 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3767 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3768 | PyObject * _resultobj; |
3769 | wxWindow * _arg0; | |
3770 | wxColour * _arg1; | |
1d99702e | 3771 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3772 | wxColour temp; |
3773 | PyObject * _obj1 = 0; | |
efc5f224 | 3774 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3775 | |
3776 | self = self; | |
f6bcfd97 | 3777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3778 | return NULL; |
1d99702e RD |
3779 | if (_argo0) { |
3780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3783 | return NULL; | |
3784 | } | |
3785 | } | |
f6bcfd97 BP |
3786 | { |
3787 | _arg1 = &temp; | |
3788 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3789 | return NULL; |
f6bcfd97 | 3790 | } |
cf694132 RD |
3791 | { |
3792 | wxPy_BEGIN_ALLOW_THREADS; | |
3793 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3794 | ||
3795 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3796 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3797 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3798 | _resultobj = Py_None; |
3799 | return _resultobj; | |
3800 | } | |
3801 | ||
3802 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3803 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3804 | PyObject * _resultobj; |
3805 | wxWindow * _arg0; | |
3806 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3807 | PyObject * _argo0 = 0; |
3808 | PyObject * _argo1 = 0; | |
efc5f224 | 3809 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3810 | |
3811 | self = self; | |
efc5f224 | 3812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3813 | return NULL; |
1d99702e RD |
3814 | if (_argo0) { |
3815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3818 | return NULL; | |
3819 | } | |
3820 | } | |
1d99702e RD |
3821 | if (_argo1) { |
3822 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3823 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3825 | return NULL; | |
3826 | } | |
3827 | } | |
cf694132 RD |
3828 | { |
3829 | wxPy_BEGIN_ALLOW_THREADS; | |
3830 | wxWindow_SetConstraints(_arg0,_arg1); | |
3831 | ||
3832 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3833 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3834 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3835 | _resultobj = Py_None; |
3836 | return _resultobj; | |
3837 | } | |
3838 | ||
2f90df85 RD |
3839 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3840 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3841 | PyObject * _resultobj; | |
3842 | wxWindow * _arg0; | |
3843 | wxLayoutConstraints * _arg1; | |
3844 | PyObject * _argo0 = 0; | |
3845 | PyObject * _argo1 = 0; | |
3846 | char *_kwnames[] = { "self","constraints", NULL }; | |
3847 | ||
3848 | self = self; | |
3849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3850 | return NULL; | |
3851 | if (_argo0) { | |
3852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3855 | return NULL; | |
3856 | } | |
3857 | } | |
3858 | if (_argo1) { | |
3859 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3860 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3862 | return NULL; | |
3863 | } | |
3864 | } | |
3865 | { | |
3866 | wxPy_BEGIN_ALLOW_THREADS; | |
3867 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3868 | ||
3869 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3870 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3871 | } Py_INCREF(Py_None); |
3872 | _resultobj = Py_None; | |
3873 | return _resultobj; | |
3874 | } | |
3875 | ||
8ab979d7 | 3876 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3877 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3878 | PyObject * _resultobj; |
3879 | wxWindow * _arg0; | |
1d99702e | 3880 | PyObject * _argo0 = 0; |
efc5f224 | 3881 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3882 | |
3883 | self = self; | |
efc5f224 | 3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3885 | return NULL; |
1d99702e RD |
3886 | if (_argo0) { |
3887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3890 | return NULL; | |
3891 | } | |
3892 | } | |
cf694132 RD |
3893 | { |
3894 | wxPy_BEGIN_ALLOW_THREADS; | |
3895 | wxWindow_SetFocus(_arg0); | |
3896 | ||
3897 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3898 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3899 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3900 | _resultobj = Py_None; |
3901 | return _resultobj; | |
3902 | } | |
3903 | ||
2f90df85 RD |
3904 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3905 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3906 | PyObject * _resultobj; | |
3907 | bool _result; | |
3908 | wxWindow * _arg0; | |
3909 | PyObject * _argo0 = 0; | |
3910 | char *_kwnames[] = { "self", NULL }; | |
3911 | ||
3912 | self = self; | |
3913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3914 | return NULL; | |
3915 | if (_argo0) { | |
3916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3919 | return NULL; | |
3920 | } | |
3921 | } | |
3922 | { | |
3923 | wxPy_BEGIN_ALLOW_THREADS; | |
3924 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3925 | ||
3926 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3927 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3928 | } _resultobj = Py_BuildValue("i",_result); |
3929 | return _resultobj; | |
3930 | } | |
3931 | ||
8ab979d7 | 3932 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 3933 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3934 | PyObject * _resultobj; |
3935 | wxWindow * _arg0; | |
3936 | wxFont * _arg1; | |
1d99702e RD |
3937 | PyObject * _argo0 = 0; |
3938 | PyObject * _argo1 = 0; | |
efc5f224 | 3939 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
3940 | |
3941 | self = self; | |
efc5f224 | 3942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3943 | return NULL; |
1d99702e RD |
3944 | if (_argo0) { |
3945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3948 | return NULL; | |
3949 | } | |
3950 | } | |
1d99702e RD |
3951 | if (_argo1) { |
3952 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3953 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
3954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3955 | return NULL; | |
3956 | } | |
3957 | } | |
cf694132 RD |
3958 | { |
3959 | wxPy_BEGIN_ALLOW_THREADS; | |
3960 | wxWindow_SetFont(_arg0,*_arg1); | |
3961 | ||
3962 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3963 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3964 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3965 | _resultobj = Py_None; |
3966 | return _resultobj; | |
3967 | } | |
3968 | ||
3969 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 3970 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3971 | PyObject * _resultobj; |
3972 | wxWindow * _arg0; | |
3973 | wxColour * _arg1; | |
1d99702e | 3974 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3975 | wxColour temp; |
3976 | PyObject * _obj1 = 0; | |
efc5f224 | 3977 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3978 | |
3979 | self = self; | |
f6bcfd97 | 3980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3981 | return NULL; |
1d99702e RD |
3982 | if (_argo0) { |
3983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
3986 | return NULL; | |
3987 | } | |
3988 | } | |
f6bcfd97 BP |
3989 | { |
3990 | _arg1 = &temp; | |
3991 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3992 | return NULL; |
f6bcfd97 | 3993 | } |
cf694132 RD |
3994 | { |
3995 | wxPy_BEGIN_ALLOW_THREADS; | |
3996 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3997 | ||
3998 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3999 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4000 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4001 | _resultobj = Py_None; |
4002 | return _resultobj; | |
4003 | } | |
4004 | ||
4005 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 4006 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4007 | PyObject * _resultobj; |
4008 | wxWindow * _arg0; | |
4009 | int _arg1; | |
1d99702e | 4010 | PyObject * _argo0 = 0; |
efc5f224 | 4011 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
4012 | |
4013 | self = self; | |
efc5f224 | 4014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4015 | return NULL; |
1d99702e RD |
4016 | if (_argo0) { |
4017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
4020 | return NULL; | |
4021 | } | |
4022 | } | |
cf694132 RD |
4023 | { |
4024 | wxPy_BEGIN_ALLOW_THREADS; | |
4025 | wxWindow_SetId(_arg0,_arg1); | |
4026 | ||
4027 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4028 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4029 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4030 | _resultobj = Py_None; |
4031 | return _resultobj; | |
4032 | } | |
4033 | ||
4034 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4035 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4036 | PyObject * _resultobj; |
4037 | wxWindow * _arg0; | |
4038 | wxString * _arg1; | |
1d99702e | 4039 | PyObject * _argo0 = 0; |
8ab979d7 | 4040 | PyObject * _obj1 = 0; |
efc5f224 | 4041 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4042 | |
4043 | self = self; | |
efc5f224 | 4044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4045 | return NULL; |
1d99702e RD |
4046 | if (_argo0) { |
4047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4050 | return NULL; | |
4051 | } | |
4052 | } | |
4053 | { | |
185d7c3e RD |
4054 | #if PYTHON_API_VERSION >= 1009 |
4055 | char* tmpPtr; int tmpSize; | |
4056 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4057 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4058 | return NULL; |
4059 | } | |
4060 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4061 | return NULL; | |
4062 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4063 | #else | |
8ab979d7 RD |
4064 | if (!PyString_Check(_obj1)) { |
4065 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4066 | return NULL; | |
4067 | } | |
185d7c3e RD |
4068 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4069 | #endif | |
8ab979d7 | 4070 | } |
cf694132 RD |
4071 | { |
4072 | wxPy_BEGIN_ALLOW_THREADS; | |
4073 | wxWindow_SetName(_arg0,*_arg1); | |
4074 | ||
4075 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4076 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4077 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4078 | _resultobj = Py_None; |
4079 | { | |
4080 | if (_obj1) | |
4081 | delete _arg1; | |
4082 | } | |
4083 | return _resultobj; | |
4084 | } | |
4085 | ||
8ab979d7 | 4086 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4087 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4088 | PyObject * _resultobj; |
4089 | wxWindow * _arg0; | |
4090 | int _arg1; | |
4091 | int _arg2; | |
4092 | int _arg3; | |
4093 | int _arg4; | |
eb715945 | 4094 | int _arg5 = (int ) TRUE; |
1d99702e | 4095 | PyObject * _argo0 = 0; |
efc5f224 | 4096 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4097 | |
4098 | self = self; | |
eb715945 | 4099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4100 | return NULL; |
1d99702e RD |
4101 | if (_argo0) { |
4102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4105 | return NULL; | |
4106 | } | |
4107 | } | |
cf694132 RD |
4108 | { |
4109 | wxPy_BEGIN_ALLOW_THREADS; | |
4110 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4111 | ||
4112 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4113 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4114 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4115 | _resultobj = Py_None; |
4116 | return _resultobj; | |
4117 | } | |
4118 | ||
4119 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4120 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4121 | PyObject * _resultobj; |
4122 | wxWindow * _arg0; | |
4123 | int _arg1; | |
4124 | int _arg2; | |
1d99702e RD |
4125 | bool _arg3 = (bool ) TRUE; |
4126 | PyObject * _argo0 = 0; | |
4127 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4128 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4129 | |
4130 | self = self; | |
efc5f224 | 4131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4132 | return NULL; |
1d99702e RD |
4133 | if (_argo0) { |
4134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4137 | return NULL; | |
4138 | } | |
4139 | } | |
4140 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
4141 | { |
4142 | wxPy_BEGIN_ALLOW_THREADS; | |
4143 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4144 | ||
4145 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4146 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4147 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4148 | _resultobj = Py_None; |
4149 | return _resultobj; | |
4150 | } | |
4151 | ||
4152 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4153 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4154 | PyObject * _resultobj; |
4155 | wxWindow * _arg0; | |
4156 | int _arg1; | |
4157 | int _arg2; | |
4158 | int _arg3; | |
4159 | int _arg4; | |
1d99702e RD |
4160 | int _arg5 = (int ) wxSIZE_AUTO; |
4161 | PyObject * _argo0 = 0; | |
efc5f224 | 4162 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4163 | |
4164 | self = self; | |
efc5f224 | 4165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4166 | return NULL; |
1d99702e RD |
4167 | if (_argo0) { |
4168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4171 | return NULL; | |
4172 | } | |
4173 | } | |
cf694132 RD |
4174 | { |
4175 | wxPy_BEGIN_ALLOW_THREADS; | |
4176 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4177 | ||
4178 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4179 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4180 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4181 | _resultobj = Py_None; |
4182 | return _resultobj; | |
4183 | } | |
4184 | ||
4185 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4186 | self->SetSize(size); |
8ab979d7 | 4187 | } |
efc5f224 | 4188 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4189 | PyObject * _resultobj; |
4190 | wxWindow * _arg0; | |
4191 | wxSize * _arg1; | |
1d99702e | 4192 | PyObject * _argo0 = 0; |
2f90df85 RD |
4193 | wxSize temp; |
4194 | PyObject * _obj1 = 0; | |
efc5f224 | 4195 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4196 | |
4197 | self = self; | |
2f90df85 | 4198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4199 | return NULL; |
1d99702e RD |
4200 | if (_argo0) { |
4201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4204 | return NULL; | |
4205 | } | |
4206 | } | |
2f90df85 RD |
4207 | { |
4208 | _arg1 = &temp; | |
4209 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4210 | return NULL; |
2f90df85 | 4211 | } |
cf694132 RD |
4212 | { |
4213 | wxPy_BEGIN_ALLOW_THREADS; | |
4214 | wxWindow_SetSize(_arg0,*_arg1); | |
4215 | ||
4216 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4217 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4218 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4219 | _resultobj = Py_None; |
4220 | return _resultobj; | |
4221 | } | |
4222 | ||
4223 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
b7e72427 | 4224 | self->Move(pos); |
8ab979d7 | 4225 | } |
efc5f224 | 4226 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4227 | PyObject * _resultobj; |
4228 | wxWindow * _arg0; | |
4229 | wxPoint * _arg1; | |
1d99702e | 4230 | PyObject * _argo0 = 0; |
2f90df85 RD |
4231 | wxPoint temp; |
4232 | PyObject * _obj1 = 0; | |
efc5f224 | 4233 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4234 | |
4235 | self = self; | |
2f90df85 | 4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4237 | return NULL; |
1d99702e RD |
4238 | if (_argo0) { |
4239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4242 | return NULL; | |
4243 | } | |
4244 | } | |
2f90df85 RD |
4245 | { |
4246 | _arg1 = &temp; | |
4247 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4248 | return NULL; |
2f90df85 | 4249 | } |
cf694132 RD |
4250 | { |
4251 | wxPy_BEGIN_ALLOW_THREADS; | |
4252 | wxWindow_SetPosition(_arg0,*_arg1); | |
4253 | ||
4254 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4255 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4256 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4257 | _resultobj = Py_None; |
4258 | return _resultobj; | |
4259 | } | |
4260 | ||
dbbb98cd RD |
4261 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4262 | self->SetSize(rect, sizeFlags); | |
4263 | } | |
4264 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4265 | PyObject * _resultobj; | |
4266 | wxWindow * _arg0; | |
4267 | wxRect * _arg1; | |
4268 | int _arg2 = (int ) wxSIZE_AUTO; | |
4269 | PyObject * _argo0 = 0; | |
4270 | wxRect temp; | |
4271 | PyObject * _obj1 = 0; | |
4272 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4273 | ||
4274 | self = self; | |
4275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4276 | return NULL; | |
4277 | if (_argo0) { | |
4278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4281 | return NULL; | |
4282 | } | |
4283 | } | |
4284 | { | |
4285 | _arg1 = &temp; | |
4286 | if (! wxRect_helper(_obj1, &_arg1)) | |
4287 | return NULL; | |
4288 | } | |
4289 | { | |
4290 | wxPy_BEGIN_ALLOW_THREADS; | |
4291 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4292 | ||
4293 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4294 | if (PyErr_Occurred()) return NULL; |
dbbb98cd RD |
4295 | } Py_INCREF(Py_None); |
4296 | _resultobj = Py_None; | |
4297 | return _resultobj; | |
4298 | } | |
4299 | ||
8ab979d7 | 4300 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4301 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4302 | PyObject * _resultobj; |
4303 | wxWindow * _arg0; | |
1d99702e RD |
4304 | int _arg1 = (int ) -1; |
4305 | int _arg2 = (int ) -1; | |
4306 | int _arg3 = (int ) -1; | |
4307 | int _arg4 = (int ) -1; | |
4308 | int _arg5 = (int ) -1; | |
4309 | int _arg6 = (int ) -1; | |
4310 | PyObject * _argo0 = 0; | |
efc5f224 | 4311 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4312 | |
4313 | self = self; | |
efc5f224 | 4314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4315 | return NULL; |
1d99702e RD |
4316 | if (_argo0) { |
4317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4320 | return NULL; | |
4321 | } | |
4322 | } | |
cf694132 RD |
4323 | { |
4324 | wxPy_BEGIN_ALLOW_THREADS; | |
4325 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4326 | ||
4327 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4328 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4329 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4330 | _resultobj = Py_None; |
4331 | return _resultobj; | |
4332 | } | |
4333 | ||
af309447 | 4334 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4335 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4336 | PyObject * _resultobj; |
4337 | wxWindow * _arg0; | |
4338 | int _arg1; | |
4339 | int _arg2; | |
1d99702e | 4340 | PyObject * _argo0 = 0; |
efc5f224 | 4341 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4342 | |
4343 | self = self; | |
efc5f224 | 4344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4345 | return NULL; |
1d99702e RD |
4346 | if (_argo0) { |
4347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4350 | return NULL; | |
4351 | } | |
4352 | } | |
cf694132 RD |
4353 | { |
4354 | wxPy_BEGIN_ALLOW_THREADS; | |
4355 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4356 | ||
4357 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4358 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4359 | } Py_INCREF(Py_None); |
af309447 RD |
4360 | _resultobj = Py_None; |
4361 | return _resultobj; | |
4362 | } | |
4363 | ||
4364 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4365 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4366 | PyObject * _resultobj; |
4367 | wxWindow * _arg0; | |
4368 | wxSize * _arg1; | |
1d99702e | 4369 | PyObject * _argo0 = 0; |
2f90df85 RD |
4370 | wxSize temp; |
4371 | PyObject * _obj1 = 0; | |
efc5f224 | 4372 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4373 | |
4374 | self = self; | |
2f90df85 | 4375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4376 | return NULL; |
1d99702e RD |
4377 | if (_argo0) { |
4378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4381 | return NULL; | |
4382 | } | |
4383 | } | |
2f90df85 RD |
4384 | { |
4385 | _arg1 = &temp; | |
4386 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4387 | return NULL; |
2f90df85 | 4388 | } |
cf694132 RD |
4389 | { |
4390 | wxPy_BEGIN_ALLOW_THREADS; | |
4391 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4392 | ||
4393 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4394 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4395 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4396 | _resultobj = Py_None; |
4397 | return _resultobj; | |
4398 | } | |
4399 | ||
4400 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4401 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4402 | PyObject * _resultobj; |
4403 | wxWindow * _arg0; | |
4404 | wxCursor * _arg1; | |
1d99702e RD |
4405 | PyObject * _argo0 = 0; |
4406 | PyObject * _argo1 = 0; | |
efc5f224 | 4407 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4408 | |
4409 | self = self; | |
efc5f224 | 4410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4411 | return NULL; |
1d99702e RD |
4412 | if (_argo0) { |
4413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4416 | return NULL; | |
4417 | } | |
4418 | } | |
1d99702e RD |
4419 | if (_argo1) { |
4420 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4421 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4423 | return NULL; | |
4424 | } | |
4425 | } | |
cf694132 RD |
4426 | { |
4427 | wxPy_BEGIN_ALLOW_THREADS; | |
4428 | wxWindow_SetCursor(_arg0,*_arg1); | |
4429 | ||
4430 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4431 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4432 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4433 | _resultobj = Py_None; |
4434 | return _resultobj; | |
4435 | } | |
4436 | ||
1afc06c2 RD |
4437 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4438 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4439 | PyObject * _resultobj; | |
4440 | wxWindow * _arg0; | |
4441 | wxEvtHandler * _arg1; | |
4442 | PyObject * _argo0 = 0; | |
4443 | PyObject * _argo1 = 0; | |
4444 | char *_kwnames[] = { "self","handler", NULL }; | |
4445 | ||
4446 | self = self; | |
4447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4448 | return NULL; | |
4449 | if (_argo0) { | |
4450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4453 | return NULL; | |
4454 | } | |
4455 | } | |
4456 | if (_argo1) { | |
4457 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4458 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4460 | return NULL; | |
4461 | } | |
4462 | } | |
4463 | { | |
4464 | wxPy_BEGIN_ALLOW_THREADS; | |
4465 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4466 | ||
4467 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4468 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4469 | } Py_INCREF(Py_None); |
4470 | _resultobj = Py_None; | |
4471 | return _resultobj; | |
4472 | } | |
4473 | ||
83b18bab RD |
4474 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4475 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4476 | PyObject * _resultobj; | |
4477 | wxWindow * _arg0; | |
4478 | long _arg1; | |
4479 | PyObject * _argo0 = 0; | |
4480 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4481 | ||
4482 | self = self; | |
4483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4484 | return NULL; | |
4485 | if (_argo0) { | |
4486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4489 | return NULL; | |
4490 | } | |
4491 | } | |
4492 | { | |
4493 | wxPy_BEGIN_ALLOW_THREADS; | |
4494 | wxWindow_SetExtraStyle(_arg0,_arg1); | |
4495 | ||
4496 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4497 | if (PyErr_Occurred()) return NULL; |
83b18bab RD |
4498 | } Py_INCREF(Py_None); |
4499 | _resultobj = Py_None; | |
4500 | return _resultobj; | |
4501 | } | |
4502 | ||
8ab979d7 | 4503 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4504 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4505 | PyObject * _resultobj; |
4506 | wxWindow * _arg0; | |
4507 | wxString * _arg1; | |
1d99702e | 4508 | PyObject * _argo0 = 0; |
8ab979d7 | 4509 | PyObject * _obj1 = 0; |
efc5f224 | 4510 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4511 | |
4512 | self = self; | |
efc5f224 | 4513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4514 | return NULL; |
1d99702e RD |
4515 | if (_argo0) { |
4516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4519 | return NULL; | |
4520 | } | |
4521 | } | |
4522 | { | |
185d7c3e RD |
4523 | #if PYTHON_API_VERSION >= 1009 |
4524 | char* tmpPtr; int tmpSize; | |
4525 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4526 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4527 | return NULL; |
4528 | } | |
4529 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4530 | return NULL; | |
4531 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4532 | #else | |
8ab979d7 RD |
4533 | if (!PyString_Check(_obj1)) { |
4534 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4535 | return NULL; | |
4536 | } | |
185d7c3e RD |
4537 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4538 | #endif | |
8ab979d7 | 4539 | } |
cf694132 RD |
4540 | { |
4541 | wxPy_BEGIN_ALLOW_THREADS; | |
4542 | wxWindow_SetTitle(_arg0,*_arg1); | |
4543 | ||
4544 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4545 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4546 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4547 | _resultobj = Py_None; |
4548 | { | |
4549 | if (_obj1) | |
4550 | delete _arg1; | |
4551 | } | |
4552 | return _resultobj; | |
4553 | } | |
4554 | ||
4555 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4556 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4557 | PyObject * _resultobj; |
4558 | bool _result; | |
4559 | wxWindow * _arg0; | |
4560 | bool _arg1; | |
1d99702e | 4561 | PyObject * _argo0 = 0; |
8ab979d7 | 4562 | int tempbool1; |
efc5f224 | 4563 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4564 | |
4565 | self = self; | |
efc5f224 | 4566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4567 | return NULL; |
1d99702e RD |
4568 | if (_argo0) { |
4569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4572 | return NULL; | |
4573 | } | |
4574 | } | |
4575 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4576 | { |
4577 | wxPy_BEGIN_ALLOW_THREADS; | |
4578 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4579 | ||
4580 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4581 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4582 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4583 | return _resultobj; |
4584 | } | |
4585 | ||
4586 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4587 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4588 | PyObject * _resultobj; |
4589 | bool _result; | |
4590 | wxWindow * _arg0; | |
1d99702e | 4591 | PyObject * _argo0 = 0; |
efc5f224 | 4592 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4593 | |
4594 | self = self; | |
efc5f224 | 4595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4596 | return NULL; |
1d99702e RD |
4597 | if (_argo0) { |
4598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4601 | return NULL; | |
4602 | } | |
4603 | } | |
cf694132 RD |
4604 | { |
4605 | wxPy_BEGIN_ALLOW_THREADS; | |
4606 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4607 | ||
4608 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4609 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4610 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4611 | return _resultobj; |
4612 | } | |
4613 | ||
4614 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4615 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4616 | PyObject * _resultobj; |
4617 | bool _result; | |
4618 | wxWindow * _arg0; | |
1d99702e | 4619 | PyObject * _argo0 = 0; |
efc5f224 | 4620 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4621 | |
4622 | self = self; | |
efc5f224 | 4623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4624 | return NULL; |
1d99702e RD |
4625 | if (_argo0) { |
4626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4629 | return NULL; | |
4630 | } | |
4631 | } | |
cf694132 RD |
4632 | { |
4633 | wxPy_BEGIN_ALLOW_THREADS; | |
4634 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4635 | ||
4636 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4637 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4638 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4639 | return _resultobj; |
4640 | } | |
4641 | ||
4642 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4643 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4644 | PyObject * _resultobj; |
4645 | bool _result; | |
4646 | wxWindow * _arg0; | |
1d99702e | 4647 | PyObject * _argo0 = 0; |
efc5f224 | 4648 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4649 | |
4650 | self = self; | |
efc5f224 | 4651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4652 | return NULL; |
1d99702e RD |
4653 | if (_argo0) { |
4654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4657 | return NULL; | |
4658 | } | |
4659 | } | |
cf694132 RD |
4660 | { |
4661 | wxPy_BEGIN_ALLOW_THREADS; | |
4662 | _result = (bool )wxWindow_Validate(_arg0); | |
4663 | ||
4664 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4665 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4666 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4667 | return _resultobj; |
4668 | } | |
4669 | ||
4670 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4671 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4672 | PyObject * _resultobj; |
4673 | wxWindow * _arg0; | |
4674 | int _arg1; | |
4675 | int _arg2; | |
1d99702e | 4676 | PyObject * _argo0 = 0; |
efc5f224 | 4677 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4678 | |
4679 | self = self; | |
efc5f224 | 4680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4681 | return NULL; |
1d99702e RD |
4682 | if (_argo0) { |
4683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4686 | return NULL; | |
4687 | } | |
4688 | } | |
cf694132 RD |
4689 | { |
4690 | wxPy_BEGIN_ALLOW_THREADS; | |
4691 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4692 | ||
4693 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4694 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4695 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4696 | _resultobj = Py_None; |
4697 | return _resultobj; | |
4698 | } | |
4699 | ||
b8b8dda7 | 4700 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4701 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4702 | PyObject * _resultobj; |
4703 | wxPoint * _result; | |
4704 | wxWindow * _arg0; | |
4705 | wxPoint * _arg1; | |
1d99702e | 4706 | PyObject * _argo0 = 0; |
2f90df85 RD |
4707 | wxPoint temp; |
4708 | PyObject * _obj1 = 0; | |
efc5f224 | 4709 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4710 | char _ptemp[128]; |
4711 | ||
4712 | self = self; | |
2f90df85 | 4713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4714 | return NULL; |
1d99702e RD |
4715 | if (_argo0) { |
4716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4719 | return NULL; | |
4720 | } | |
4721 | } | |
2f90df85 RD |
4722 | { |
4723 | _arg1 = &temp; | |
4724 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4725 | return NULL; |
2f90df85 | 4726 | } |
cf694132 RD |
4727 | { |
4728 | wxPy_BEGIN_ALLOW_THREADS; | |
4729 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4730 | ||
4731 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4732 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4733 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4734 | _resultobj = Py_BuildValue("s",_ptemp); |
4735 | return _resultobj; | |
4736 | } | |
4737 | ||
4738 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4739 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4740 | PyObject * _resultobj; |
4741 | wxSize * _result; | |
4742 | wxWindow * _arg0; | |
4743 | wxSize * _arg1; | |
1d99702e | 4744 | PyObject * _argo0 = 0; |
2f90df85 RD |
4745 | wxSize temp; |
4746 | PyObject * _obj1 = 0; | |
efc5f224 | 4747 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4748 | char _ptemp[128]; |
4749 | ||
4750 | self = self; | |
2f90df85 | 4751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4752 | return NULL; |
1d99702e RD |
4753 | if (_argo0) { |
4754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4757 | return NULL; | |
4758 | } | |
4759 | } | |
2f90df85 RD |
4760 | { |
4761 | _arg1 = &temp; | |
4762 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4763 | return NULL; |
2f90df85 | 4764 | } |
cf694132 RD |
4765 | { |
4766 | wxPy_BEGIN_ALLOW_THREADS; | |
4767 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4768 | ||
4769 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4770 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4771 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4772 | _resultobj = Py_BuildValue("s",_ptemp); |
4773 | return _resultobj; | |
4774 | } | |
4775 | ||
4776 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4777 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4778 | PyObject * _resultobj; |
4779 | wxPoint * _result; | |
4780 | wxWindow * _arg0; | |
4781 | wxPoint * _arg1; | |
1d99702e | 4782 | PyObject * _argo0 = 0; |
2f90df85 RD |
4783 | wxPoint temp; |
4784 | PyObject * _obj1 = 0; | |
efc5f224 | 4785 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4786 | char _ptemp[128]; |
4787 | ||
4788 | self = self; | |
2f90df85 | 4789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4790 | return NULL; |
1d99702e RD |
4791 | if (_argo0) { |
4792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4795 | return NULL; | |
4796 | } | |
4797 | } | |
2f90df85 RD |
4798 | { |
4799 | _arg1 = &temp; | |
4800 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4801 | return NULL; |
2f90df85 | 4802 | } |
cf694132 RD |
4803 | { |
4804 | wxPy_BEGIN_ALLOW_THREADS; | |
4805 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4806 | ||
4807 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4808 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4809 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4810 | _resultobj = Py_BuildValue("s",_ptemp); |
4811 | return _resultobj; | |
4812 | } | |
4813 | ||
4814 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4815 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4816 | PyObject * _resultobj; |
4817 | wxSize * _result; | |
4818 | wxWindow * _arg0; | |
4819 | wxSize * _arg1; | |
1d99702e | 4820 | PyObject * _argo0 = 0; |
2f90df85 RD |
4821 | wxSize temp; |
4822 | PyObject * _obj1 = 0; | |
efc5f224 | 4823 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4824 | char _ptemp[128]; |
4825 | ||
4826 | self = self; | |
2f90df85 | 4827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4828 | return NULL; |
1d99702e RD |
4829 | if (_argo0) { |
4830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4833 | return NULL; | |
4834 | } | |
4835 | } | |
2f90df85 RD |
4836 | { |
4837 | _arg1 = &temp; | |
4838 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4839 | return NULL; |
2f90df85 | 4840 | } |
cf694132 RD |
4841 | { |
4842 | wxPy_BEGIN_ALLOW_THREADS; | |
4843 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4844 | ||
4845 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4846 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4847 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4848 | _resultobj = Py_BuildValue("s",_ptemp); |
4849 | return _resultobj; | |
4850 | } | |
4851 | ||
af309447 | 4852 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4853 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4854 | PyObject * _resultobj; |
4855 | wxWindow * _arg0; | |
4856 | wxString * _arg1; | |
1d99702e | 4857 | PyObject * _argo0 = 0; |
af309447 | 4858 | PyObject * _obj1 = 0; |
efc5f224 | 4859 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4860 | |
4861 | self = self; | |
efc5f224 | 4862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4863 | return NULL; |
1d99702e RD |
4864 | if (_argo0) { |
4865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4868 | return NULL; | |
4869 | } | |
4870 | } | |
4871 | { | |
185d7c3e RD |
4872 | #if PYTHON_API_VERSION >= 1009 |
4873 | char* tmpPtr; int tmpSize; | |
4874 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4875 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4876 | return NULL; |
4877 | } | |
4878 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4879 | return NULL; | |
4880 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4881 | #else | |
af309447 RD |
4882 | if (!PyString_Check(_obj1)) { |
4883 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4884 | return NULL; | |
4885 | } | |
185d7c3e RD |
4886 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4887 | #endif | |
af309447 | 4888 | } |
cf694132 RD |
4889 | { |
4890 | wxPy_BEGIN_ALLOW_THREADS; | |
4891 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4892 | ||
4893 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4894 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4895 | } Py_INCREF(Py_None); |
af309447 RD |
4896 | _resultobj = Py_None; |
4897 | { | |
4898 | if (_obj1) | |
4899 | delete _arg1; | |
4900 | } | |
4901 | return _resultobj; | |
4902 | } | |
4903 | ||
4904 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4905 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4906 | PyObject * _resultobj; |
4907 | wxWindow * _arg0; | |
4908 | wxToolTip * _arg1; | |
1d99702e RD |
4909 | PyObject * _argo0 = 0; |
4910 | PyObject * _argo1 = 0; | |
efc5f224 | 4911 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4912 | |
4913 | self = self; | |
efc5f224 | 4914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4915 | return NULL; |
1d99702e RD |
4916 | if (_argo0) { |
4917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4920 | return NULL; | |
4921 | } | |
4922 | } | |
1d99702e RD |
4923 | if (_argo1) { |
4924 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4925 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4927 | return NULL; | |
4928 | } | |
4929 | } | |
cf694132 RD |
4930 | { |
4931 | wxPy_BEGIN_ALLOW_THREADS; | |
4932 | wxWindow_SetToolTip(_arg0,_arg1); | |
4933 | ||
4934 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4935 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4936 | } Py_INCREF(Py_None); |
af309447 RD |
4937 | _resultobj = Py_None; |
4938 | return _resultobj; | |
4939 | } | |
4940 | ||
4941 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 4942 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4943 | PyObject * _resultobj; |
4944 | wxToolTip * _result; | |
4945 | wxWindow * _arg0; | |
1d99702e | 4946 | PyObject * _argo0 = 0; |
efc5f224 | 4947 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
4948 | |
4949 | self = self; | |
efc5f224 | 4950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 4951 | return NULL; |
1d99702e RD |
4952 | if (_argo0) { |
4953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4956 | return NULL; | |
4957 | } | |
4958 | } | |
cf694132 RD |
4959 | { |
4960 | wxPy_BEGIN_ALLOW_THREADS; | |
4961 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4962 | ||
4963 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4964 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 4965 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
4966 | return _resultobj; |
4967 | } | |
4968 | ||
2f90df85 RD |
4969 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
4970 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4971 | PyObject * _resultobj; | |
4972 | wxWindow * _arg0; | |
4973 | wxSizer * _arg1; | |
4974 | PyObject * _argo0 = 0; | |
4975 | PyObject * _argo1 = 0; | |
4976 | char *_kwnames[] = { "self","sizer", NULL }; | |
4977 | ||
4978 | self = self; | |
4979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4980 | return NULL; | |
4981 | if (_argo0) { | |
4982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4985 | return NULL; | |
4986 | } | |
4987 | } | |
4988 | if (_argo1) { | |
4989 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4990 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4992 | return NULL; | |
4993 | } | |
4994 | } | |
4995 | { | |
4996 | wxPy_BEGIN_ALLOW_THREADS; | |
4997 | wxWindow_SetSizer(_arg0,_arg1); | |
4998 | ||
4999 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5000 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5001 | } Py_INCREF(Py_None); |
5002 | _resultobj = Py_None; | |
5003 | return _resultobj; | |
5004 | } | |
5005 | ||
f6bcfd97 BP |
5006 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
5007 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5008 | PyObject * _resultobj; | |
5009 | wxSizer * _result; | |
5010 | wxWindow * _arg0; | |
5011 | PyObject * _argo0 = 0; | |
5012 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
5013 | |
5014 | self = self; | |
5015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5016 | return NULL; | |
5017 | if (_argo0) { | |
5018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5021 | return NULL; | |
5022 | } | |
5023 | } | |
5024 | { | |
5025 | wxPy_BEGIN_ALLOW_THREADS; | |
5026 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
5027 | ||
5028 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5029 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5030 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
5031 | return _resultobj; |
5032 | } | |
5033 | ||
2f90df85 RD |
5034 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5035 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5036 | PyObject * _resultobj; | |
5037 | wxValidator * _result; | |
5038 | wxWindow * _arg0; | |
5039 | PyObject * _argo0 = 0; | |
5040 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5041 | |
5042 | self = self; | |
5043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5044 | return NULL; | |
5045 | if (_argo0) { | |
5046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5049 | return NULL; | |
5050 | } | |
5051 | } | |
5052 | { | |
5053 | wxPy_BEGIN_ALLOW_THREADS; | |
5054 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
5055 | ||
5056 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5057 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5058 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5059 | return _resultobj; |
5060 | } | |
5061 | ||
5062 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5063 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5064 | PyObject * _resultobj; | |
5065 | wxWindow * _arg0; | |
5066 | wxValidator * _arg1; | |
5067 | PyObject * _argo0 = 0; | |
5068 | PyObject * _argo1 = 0; | |
5069 | char *_kwnames[] = { "self","validator", NULL }; | |
5070 | ||
5071 | self = self; | |
5072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5073 | return NULL; | |
5074 | if (_argo0) { | |
5075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5078 | return NULL; | |
5079 | } | |
5080 | } | |
5081 | if (_argo1) { | |
5082 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5083 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5085 | return NULL; | |
5086 | } | |
5087 | } | |
5088 | { | |
5089 | wxPy_BEGIN_ALLOW_THREADS; | |
5090 | wxWindow_SetValidator(_arg0,*_arg1); | |
5091 | ||
5092 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5093 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5094 | } Py_INCREF(Py_None); |
5095 | _resultobj = Py_None; | |
5096 | return _resultobj; | |
5097 | } | |
5098 | ||
b1462dfa RD |
5099 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5100 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5101 | PyObject * _resultobj; | |
5102 | wxWindow * _arg0; | |
5103 | wxDropTarget * _arg1; | |
5104 | PyObject * _argo0 = 0; | |
5105 | PyObject * _argo1 = 0; | |
5106 | char *_kwnames[] = { "self","target", NULL }; | |
5107 | ||
5108 | self = self; | |
5109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5110 | return NULL; | |
5111 | if (_argo0) { | |
5112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5115 | return NULL; | |
5116 | } | |
5117 | } | |
5118 | if (_argo1) { | |
5119 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5120 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5122 | return NULL; | |
5123 | } | |
5124 | } | |
5125 | { | |
5126 | wxPy_BEGIN_ALLOW_THREADS; | |
5127 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5128 | ||
5129 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5130 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5131 | } Py_INCREF(Py_None); |
5132 | _resultobj = Py_None; | |
5133 | return _resultobj; | |
5134 | } | |
5135 | ||
5136 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5137 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5138 | PyObject * _resultobj; | |
5139 | wxDropTarget * _result; | |
5140 | wxWindow * _arg0; | |
5141 | PyObject * _argo0 = 0; | |
5142 | char *_kwnames[] = { "self", NULL }; | |
5143 | char _ptemp[128]; | |
5144 | ||
5145 | self = self; | |
5146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5147 | return NULL; | |
5148 | if (_argo0) { | |
5149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5152 | return NULL; | |
5153 | } | |
5154 | } | |
5155 | { | |
5156 | wxPy_BEGIN_ALLOW_THREADS; | |
5157 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5158 | ||
5159 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5160 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5161 | } if (_result) { |
5162 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5163 | _resultobj = Py_BuildValue("s",_ptemp); | |
5164 | } else { | |
5165 | Py_INCREF(Py_None); | |
5166 | _resultobj = Py_None; | |
5167 | } | |
5168 | return _resultobj; | |
5169 | } | |
5170 | ||
694759cf RD |
5171 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5172 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5173 | PyObject * _resultobj; | |
5174 | wxSize * _result; | |
5175 | wxWindow * _arg0; | |
5176 | PyObject * _argo0 = 0; | |
5177 | char *_kwnames[] = { "self", NULL }; | |
5178 | char _ptemp[128]; | |
5179 | ||
5180 | self = self; | |
5181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5182 | return NULL; | |
5183 | if (_argo0) { | |
5184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5187 | return NULL; | |
5188 | } | |
5189 | } | |
5190 | { | |
5191 | wxPy_BEGIN_ALLOW_THREADS; | |
5192 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5193 | ||
5194 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5195 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5196 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5197 | _resultobj = Py_BuildValue("s",_ptemp); | |
5198 | return _resultobj; | |
5199 | } | |
5200 | ||
a1df7a95 RD |
5201 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5202 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5203 | PyObject * _resultobj; | |
5204 | wxWindow * _arg0; | |
5205 | wxCaret * _arg1; | |
5206 | PyObject * _argo0 = 0; | |
5207 | PyObject * _argo1 = 0; | |
5208 | char *_kwnames[] = { "self","caret", NULL }; | |
5209 | ||
5210 | self = self; | |
5211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5212 | return NULL; | |
5213 | if (_argo0) { | |
5214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5217 | return NULL; | |
5218 | } | |
5219 | } | |
5220 | if (_argo1) { | |
5221 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5222 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5224 | return NULL; | |
5225 | } | |
5226 | } | |
5227 | { | |
5228 | wxPy_BEGIN_ALLOW_THREADS; | |
5229 | wxWindow_SetCaret(_arg0,_arg1); | |
5230 | ||
5231 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5232 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5233 | } Py_INCREF(Py_None); |
5234 | _resultobj = Py_None; | |
5235 | return _resultobj; | |
5236 | } | |
5237 | ||
5238 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5239 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5240 | PyObject * _resultobj; | |
5241 | wxCaret * _result; | |
5242 | wxWindow * _arg0; | |
5243 | PyObject * _argo0 = 0; | |
5244 | char *_kwnames[] = { "self", NULL }; | |
5245 | char _ptemp[128]; | |
5246 | ||
5247 | self = self; | |
5248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5249 | return NULL; | |
5250 | if (_argo0) { | |
5251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5254 | return NULL; | |
5255 | } | |
5256 | } | |
5257 | { | |
5258 | wxPy_BEGIN_ALLOW_THREADS; | |
5259 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5260 | ||
5261 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5262 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5263 | } if (_result) { |
5264 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5265 | _resultobj = Py_BuildValue("s",_ptemp); | |
5266 | } else { | |
5267 | Py_INCREF(Py_None); | |
5268 | _resultobj = Py_None; | |
5269 | } | |
5270 | return _resultobj; | |
5271 | } | |
5272 | ||
8ab979d7 RD |
5273 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5274 | wxPanel *src; | |
5275 | wxWindow *dest; | |
5276 | src = (wxPanel *) ptr; | |
5277 | dest = (wxWindow *) src; | |
5278 | return (void *) dest; | |
5279 | } | |
5280 | ||
5281 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5282 | wxPanel *src; | |
5283 | wxEvtHandler *dest; | |
5284 | src = (wxPanel *) ptr; | |
5285 | dest = (wxEvtHandler *) src; | |
5286 | return (void *) dest; | |
5287 | } | |
5288 | ||
9416aa89 RD |
5289 | static void *SwigwxPanelTowxObject(void *ptr) { |
5290 | wxPanel *src; | |
5291 | wxObject *dest; | |
5292 | src = (wxPanel *) ptr; | |
5293 | dest = (wxObject *) src; | |
5294 | return (void *) dest; | |
5295 | } | |
5296 | ||
8ab979d7 | 5297 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 5298 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5299 | PyObject * _resultobj; |
5300 | wxPanel * _result; | |
5301 | wxWindow * _arg0; | |
5302 | wxWindowID _arg1; | |
e508a2b6 RD |
5303 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5304 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5305 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
5306 | char * _arg5 = (char *) "panel"; | |
5307 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5308 | wxPoint temp; |
5309 | PyObject * _obj2 = 0; | |
5310 | wxSize temp0; | |
5311 | PyObject * _obj3 = 0; | |
efc5f224 | 5312 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5313 | char _ptemp[128]; |
5314 | ||
5315 | self = self; | |
2f90df85 | 5316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5317 | return NULL; |
1d99702e RD |
5318 | if (_argo0) { |
5319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5322 | return NULL; | |
5323 | } | |
5324 | } | |
2f90df85 RD |
5325 | if (_obj2) |
5326 | { | |
5327 | _arg2 = &temp; | |
5328 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5329 | return NULL; |
2f90df85 RD |
5330 | } |
5331 | if (_obj3) | |
5332 | { | |
5333 | _arg3 = &temp0; | |
5334 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5335 | return NULL; |
2f90df85 | 5336 | } |
cf694132 RD |
5337 | { |
5338 | wxPy_BEGIN_ALLOW_THREADS; | |
5339 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5340 | ||
5341 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5342 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5343 | } if (_result) { |
5344 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5345 | _resultobj = Py_BuildValue("s",_ptemp); | |
5346 | } else { | |
5347 | Py_INCREF(Py_None); | |
5348 | _resultobj = Py_None; | |
5349 | } | |
8ab979d7 RD |
5350 | return _resultobj; |
5351 | } | |
5352 | ||
5353 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
efc5f224 | 5354 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5355 | PyObject * _resultobj; |
5356 | wxPanel * _arg0; | |
1d99702e | 5357 | PyObject * _argo0 = 0; |
efc5f224 | 5358 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5359 | |
5360 | self = self; | |
efc5f224 | 5361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 5362 | return NULL; |
1d99702e RD |
5363 | if (_argo0) { |
5364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
5366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
5367 | return NULL; | |
5368 | } | |
5369 | } | |
cf694132 RD |
5370 | { |
5371 | wxPy_BEGIN_ALLOW_THREADS; | |
5372 | wxPanel_InitDialog(_arg0); | |
5373 | ||
5374 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5375 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5376 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5377 | _resultobj = Py_None; |
5378 | return _resultobj; | |
5379 | } | |
5380 | ||
bb0054cd | 5381 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
efc5f224 | 5382 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5383 | PyObject * _resultobj; |
5384 | wxButton * _result; | |
5385 | wxPanel * _arg0; | |
1d99702e | 5386 | PyObject * _argo0 = 0; |
efc5f224 | 5387 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5388 | |
5389 | self = self; | |
efc5f224 | 5390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
bb0054cd | 5391 | return NULL; |
1d99702e RD |
5392 | if (_argo0) { |
5393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
5396 | return NULL; | |
5397 | } | |
5398 | } | |
5399 | { | |
5400 | wxPy_BEGIN_ALLOW_THREADS; | |
5401 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
5402 | ||
5403 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5404 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5405 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
5406 | return _resultobj; |
5407 | } | |
5408 | ||
5409 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
efc5f224 | 5410 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5411 | PyObject * _resultobj; |
5412 | wxPanel * _arg0; | |
5413 | wxButton * _arg1; | |
1d99702e RD |
5414 | PyObject * _argo0 = 0; |
5415 | PyObject * _argo1 = 0; | |
efc5f224 | 5416 | char *_kwnames[] = { "self","btn", NULL }; |
bb0054cd RD |
5417 | |
5418 | self = self; | |
efc5f224 | 5419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 5420 | return NULL; |
1d99702e RD |
5421 | if (_argo0) { |
5422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
5425 | return NULL; | |
5426 | } | |
5427 | } | |
1d99702e RD |
5428 | if (_argo1) { |
5429 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5430 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
bb0054cd RD |
5431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
5432 | return NULL; | |
5433 | } | |
5434 | } | |
5435 | { | |
5436 | wxPy_BEGIN_ALLOW_THREADS; | |
5437 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
5438 | ||
5439 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5440 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5441 | } Py_INCREF(Py_None); |
5442 | _resultobj = Py_None; | |
5443 | return _resultobj; | |
5444 | } | |
5445 | ||
8ab979d7 RD |
5446 | static void *SwigwxDialogTowxPanel(void *ptr) { |
5447 | wxDialog *src; | |
5448 | wxPanel *dest; | |
5449 | src = (wxDialog *) ptr; | |
5450 | dest = (wxPanel *) src; | |
5451 | return (void *) dest; | |
5452 | } | |
5453 | ||
5454 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
5455 | wxDialog *src; | |
5456 | wxWindow *dest; | |
5457 | src = (wxDialog *) ptr; | |
5458 | dest = (wxWindow *) src; | |
5459 | return (void *) dest; | |
5460 | } | |
5461 | ||
5462 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
5463 | wxDialog *src; | |
5464 | wxEvtHandler *dest; | |
5465 | src = (wxDialog *) ptr; | |
5466 | dest = (wxEvtHandler *) src; | |
5467 | return (void *) dest; | |
5468 | } | |
5469 | ||
9416aa89 RD |
5470 | static void *SwigwxDialogTowxObject(void *ptr) { |
5471 | wxDialog *src; | |
5472 | wxObject *dest; | |
5473 | src = (wxDialog *) ptr; | |
5474 | dest = (wxObject *) src; | |
5475 | return (void *) dest; | |
5476 | } | |
5477 | ||
8ab979d7 | 5478 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 5479 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5480 | PyObject * _resultobj; |
5481 | wxDialog * _result; | |
5482 | wxWindow * _arg0; | |
5483 | wxWindowID _arg1; | |
5484 | wxString * _arg2; | |
e508a2b6 RD |
5485 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
5486 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5487 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; |
5488 | char * _arg6 = (char *) "dialogBox"; | |
5489 | PyObject * _argo0 = 0; | |
8ab979d7 | 5490 | PyObject * _obj2 = 0; |
2f90df85 RD |
5491 | wxPoint temp; |
5492 | PyObject * _obj3 = 0; | |
5493 | wxSize temp0; | |
5494 | PyObject * _obj4 = 0; | |
efc5f224 | 5495 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
8ab979d7 RD |
5496 | char _ptemp[128]; |
5497 | ||
5498 | self = self; | |
2f90df85 | 5499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 5500 | return NULL; |
1d99702e RD |
5501 | if (_argo0) { |
5502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); |
5505 | return NULL; | |
5506 | } | |
5507 | } | |
5508 | { | |
185d7c3e RD |
5509 | #if PYTHON_API_VERSION >= 1009 |
5510 | char* tmpPtr; int tmpSize; | |
5511 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 5512 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5513 | return NULL; |
5514 | } | |
5515 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5516 | return NULL; | |
5517 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5518 | #else | |
8ab979d7 RD |
5519 | if (!PyString_Check(_obj2)) { |
5520 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5521 | return NULL; | |
5522 | } | |
185d7c3e RD |
5523 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5524 | #endif | |
8ab979d7 | 5525 | } |
2f90df85 RD |
5526 | if (_obj3) |
5527 | { | |
5528 | _arg3 = &temp; | |
5529 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 5530 | return NULL; |
2f90df85 RD |
5531 | } |
5532 | if (_obj4) | |
5533 | { | |
5534 | _arg4 = &temp0; | |
5535 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 5536 | return NULL; |
2f90df85 | 5537 | } |
cf694132 RD |
5538 | { |
5539 | wxPy_BEGIN_ALLOW_THREADS; | |
5540 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5541 | ||
5542 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5543 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5544 | } if (_result) { |
5545 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
5546 | _resultobj = Py_BuildValue("s",_ptemp); | |
5547 | } else { | |
5548 | Py_INCREF(Py_None); | |
5549 | _resultobj = Py_None; | |
5550 | } | |
8ab979d7 RD |
5551 | { |
5552 | if (_obj2) | |
5553 | delete _arg2; | |
5554 | } | |
5555 | return _resultobj; | |
5556 | } | |
5557 | ||
5558 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 5559 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5560 | PyObject * _resultobj; |
5561 | wxDialog * _arg0; | |
1d99702e RD |
5562 | int _arg1 = (int ) wxBOTH; |
5563 | PyObject * _argo0 = 0; | |
efc5f224 | 5564 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
5565 | |
5566 | self = self; | |
efc5f224 | 5567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5568 | return NULL; |
1d99702e RD |
5569 | if (_argo0) { |
5570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); |
5573 | return NULL; | |
5574 | } | |
5575 | } | |
cf694132 RD |
5576 | { |
5577 | wxPy_BEGIN_ALLOW_THREADS; | |
5578 | wxDialog_Centre(_arg0,_arg1); | |
5579 | ||
5580 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5581 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5582 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5583 | _resultobj = Py_None; |
5584 | return _resultobj; | |
5585 | } | |
5586 | ||
5587 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
efc5f224 | 5588 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5589 | PyObject * _resultobj; |
5590 | wxDialog * _arg0; | |
5591 | int _arg1; | |
1d99702e | 5592 | PyObject * _argo0 = 0; |
efc5f224 | 5593 | char *_kwnames[] = { "self","retCode", NULL }; |
8ab979d7 RD |
5594 | |
5595 | self = self; | |
efc5f224 | 5596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5597 | return NULL; |
1d99702e RD |
5598 | if (_argo0) { |
5599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); |
5602 | return NULL; | |
5603 | } | |
5604 | } | |
cf694132 RD |
5605 | { |
5606 | wxPy_BEGIN_ALLOW_THREADS; | |
5607 | wxDialog_EndModal(_arg0,_arg1); | |
5608 | ||
5609 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5610 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5611 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5612 | _resultobj = Py_None; |
5613 | return _resultobj; | |
5614 | } | |
5615 | ||
5616 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
efc5f224 | 5617 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5618 | PyObject * _resultobj; |
5619 | wxString * _result; | |
5620 | wxDialog * _arg0; | |
1d99702e | 5621 | PyObject * _argo0 = 0; |
efc5f224 | 5622 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5623 | |
5624 | self = self; | |
efc5f224 | 5625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 5626 | return NULL; |
1d99702e RD |
5627 | if (_argo0) { |
5628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); |
5631 | return NULL; | |
5632 | } | |
5633 | } | |
8ab979d7 | 5634 | { |
cf694132 RD |
5635 | wxPy_BEGIN_ALLOW_THREADS; |
5636 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
5637 | ||
5638 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5639 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5640 | }{ |
eec92d76 | 5641 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
5642 | } |
5643 | { | |
5644 | delete _result; | |
5645 | } | |
5646 | return _resultobj; | |
5647 | } | |
5648 | ||
5649 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
efc5f224 | 5650 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5651 | PyObject * _resultobj; |
5652 | wxDialog * _arg0; | |
5653 | bool _arg1; | |
1d99702e | 5654 | PyObject * _argo0 = 0; |
8ab979d7 | 5655 | int tempbool1; |
efc5f224 | 5656 | char *_kwnames[] = { "self","iconize", NULL }; |
8ab979d7 RD |
5657 | |
5658 | self = self; | |
efc5f224 | 5659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5660 | return NULL; |
1d99702e RD |
5661 | if (_argo0) { |
5662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p."); |
5665 | return NULL; | |
5666 | } | |
5667 | } | |
5668 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5669 | { |
5670 | wxPy_BEGIN_ALLOW_THREADS; | |
5671 | wxDialog_Iconize(_arg0,_arg1); | |
5672 | ||
5673 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5674 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5675 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5676 | _resultobj = Py_None; |
5677 | return _resultobj; | |
5678 | } | |
5679 | ||
5680 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
efc5f224 | 5681 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5682 | PyObject * _resultobj; |
5683 | bool _result; | |
5684 | wxDialog * _arg0; | |
1d99702e | 5685 | PyObject * _argo0 = 0; |
efc5f224 | 5686 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5687 | |
5688 | self = self; | |
efc5f224 | 5689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) |
8ab979d7 | 5690 | return NULL; |
1d99702e RD |
5691 | if (_argo0) { |
5692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); |
5695 | return NULL; | |
5696 | } | |
5697 | } | |
cf694132 RD |
5698 | { |
5699 | wxPy_BEGIN_ALLOW_THREADS; | |
5700 | _result = (bool )wxDialog_IsIconized(_arg0); | |
5701 | ||
5702 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5703 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5704 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5705 | return _resultobj; |
5706 | } | |
5707 | ||
5708 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
efc5f224 | 5709 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5710 | PyObject * _resultobj; |
5711 | wxDialog * _arg0; | |
5712 | bool _arg1; | |
1d99702e | 5713 | PyObject * _argo0 = 0; |
8ab979d7 | 5714 | int tempbool1; |
efc5f224 | 5715 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
5716 | |
5717 | self = self; | |
efc5f224 | 5718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5719 | return NULL; |
1d99702e RD |
5720 | if (_argo0) { |
5721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); |
5724 | return NULL; | |
5725 | } | |
5726 | } | |
5727 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5728 | { |
5729 | wxPy_BEGIN_ALLOW_THREADS; | |
5730 | wxDialog_SetModal(_arg0,_arg1); | |
5731 | ||
5732 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5733 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5734 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5735 | _resultobj = Py_None; |
5736 | return _resultobj; | |
5737 | } | |
5738 | ||
5739 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
efc5f224 | 5740 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5741 | PyObject * _resultobj; |
5742 | bool _result; | |
5743 | wxDialog * _arg0; | |
1d99702e | 5744 | PyObject * _argo0 = 0; |
efc5f224 | 5745 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5746 | |
5747 | self = self; | |
efc5f224 | 5748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) |
8ab979d7 | 5749 | return NULL; |
1d99702e RD |
5750 | if (_argo0) { |
5751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); |
5754 | return NULL; | |
5755 | } | |
5756 | } | |
cf694132 RD |
5757 | { |
5758 | wxPy_BEGIN_ALLOW_THREADS; | |
5759 | _result = (bool )wxDialog_IsModal(_arg0); | |
5760 | ||
5761 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5762 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5763 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5764 | return _resultobj; |
5765 | } | |
5766 | ||
5767 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 5768 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5769 | PyObject * _resultobj; |
5770 | wxDialog * _arg0; | |
5771 | wxString * _arg1; | |
1d99702e | 5772 | PyObject * _argo0 = 0; |
8ab979d7 | 5773 | PyObject * _obj1 = 0; |
efc5f224 | 5774 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
5775 | |
5776 | self = self; | |
efc5f224 | 5777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5778 | return NULL; |
1d99702e RD |
5779 | if (_argo0) { |
5780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); |
5783 | return NULL; | |
5784 | } | |
5785 | } | |
5786 | { | |
185d7c3e RD |
5787 | #if PYTHON_API_VERSION >= 1009 |
5788 | char* tmpPtr; int tmpSize; | |
5789 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5790 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5791 | return NULL; |
5792 | } | |
5793 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5794 | return NULL; | |
5795 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5796 | #else | |
8ab979d7 RD |
5797 | if (!PyString_Check(_obj1)) { |
5798 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5799 | return NULL; | |
5800 | } | |
185d7c3e RD |
5801 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5802 | #endif | |
8ab979d7 | 5803 | } |
cf694132 RD |
5804 | { |
5805 | wxPy_BEGIN_ALLOW_THREADS; | |
5806 | wxDialog_SetTitle(_arg0,*_arg1); | |
5807 | ||
5808 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5809 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5810 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5811 | _resultobj = Py_None; |
5812 | { | |
5813 | if (_obj1) | |
5814 | delete _arg1; | |
5815 | } | |
5816 | return _resultobj; | |
5817 | } | |
5818 | ||
5819 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 5820 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5821 | PyObject * _resultobj; |
5822 | bool _result; | |
5823 | wxDialog * _arg0; | |
5824 | bool _arg1; | |
1d99702e | 5825 | PyObject * _argo0 = 0; |
8ab979d7 | 5826 | int tempbool1; |
efc5f224 | 5827 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
5828 | |
5829 | self = self; | |
efc5f224 | 5830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5831 | return NULL; |
1d99702e RD |
5832 | if (_argo0) { |
5833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); |
5836 | return NULL; | |
5837 | } | |
5838 | } | |
5839 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5840 | { |
5841 | wxPy_BEGIN_ALLOW_THREADS; | |
5842 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
5843 | ||
5844 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5845 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5846 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5847 | return _resultobj; |
5848 | } | |
5849 | ||
5850 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 5851 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5852 | PyObject * _resultobj; |
5853 | int _result; | |
5854 | wxDialog * _arg0; | |
1d99702e | 5855 | PyObject * _argo0 = 0; |
efc5f224 | 5856 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5857 | |
5858 | self = self; | |
efc5f224 | 5859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 5860 | return NULL; |
1d99702e RD |
5861 | if (_argo0) { |
5862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); |
5865 | return NULL; | |
5866 | } | |
5867 | } | |
cf694132 RD |
5868 | { |
5869 | wxPy_BEGIN_ALLOW_THREADS; | |
5870 | _result = (int )wxDialog_ShowModal(_arg0); | |
5871 | ||
5872 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5873 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5874 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5875 | return _resultobj; |
5876 | } | |
5877 | ||
bb0054cd | 5878 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) |
efc5f224 | 5879 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5880 | PyObject * _resultobj; |
5881 | int _result; | |
5882 | wxDialog * _arg0; | |
1d99702e | 5883 | PyObject * _argo0 = 0; |
efc5f224 | 5884 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5885 | |
5886 | self = self; | |
efc5f224 | 5887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) |
bb0054cd | 5888 | return NULL; |
1d99702e RD |
5889 | if (_argo0) { |
5890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); |
5893 | return NULL; | |
5894 | } | |
5895 | } | |
5896 | { | |
5897 | wxPy_BEGIN_ALLOW_THREADS; | |
5898 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
5899 | ||
5900 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5901 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5902 | } _resultobj = Py_BuildValue("i",_result); |
5903 | return _resultobj; | |
5904 | } | |
5905 | ||
5906 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
efc5f224 | 5907 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5908 | PyObject * _resultobj; |
5909 | wxDialog * _arg0; | |
5910 | int _arg1; | |
1d99702e | 5911 | PyObject * _argo0 = 0; |
efc5f224 | 5912 | char *_kwnames[] = { "self","retCode", NULL }; |
bb0054cd RD |
5913 | |
5914 | self = self; | |
efc5f224 | 5915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 5916 | return NULL; |
1d99702e RD |
5917 | if (_argo0) { |
5918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); |
5921 | return NULL; | |
5922 | } | |
5923 | } | |
5924 | { | |
5925 | wxPy_BEGIN_ALLOW_THREADS; | |
5926 | wxDialog_SetReturnCode(_arg0,_arg1); | |
5927 | ||
5928 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5929 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5930 | } Py_INCREF(Py_None); |
5931 | _resultobj = Py_None; | |
5932 | return _resultobj; | |
5933 | } | |
5934 | ||
f3d9dc1d RD |
5935 | #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0)) |
5936 | static PyObject *_wrap_wxDialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5937 | PyObject * _resultobj; | |
5938 | wxSizer * _result; | |
5939 | wxDialog * _arg0; | |
5940 | wxString * _arg1; | |
5941 | PyObject * _argo0 = 0; | |
5942 | PyObject * _obj1 = 0; | |
5943 | char *_kwnames[] = { "self","message", NULL }; | |
f3d9dc1d RD |
5944 | |
5945 | self = self; | |
5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_CreateTextSizer",_kwnames,&_argo0,&_obj1)) | |
5947 | return NULL; | |
5948 | if (_argo0) { | |
5949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p."); | |
5952 | return NULL; | |
5953 | } | |
5954 | } | |
5955 | { | |
5956 | #if PYTHON_API_VERSION >= 1009 | |
5957 | char* tmpPtr; int tmpSize; | |
5958 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5959 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
f3d9dc1d RD |
5960 | return NULL; |
5961 | } | |
5962 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5963 | return NULL; | |
5964 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5965 | #else | |
5966 | if (!PyString_Check(_obj1)) { | |
5967 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5968 | return NULL; | |
5969 | } | |
5970 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5971 | #endif | |
5972 | } | |
5973 | { | |
5974 | wxPy_BEGIN_ALLOW_THREADS; | |
5975 | _result = (wxSizer *)wxDialog_CreateTextSizer(_arg0,*_arg1); | |
5976 | ||
5977 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5978 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5979 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f3d9dc1d RD |
5980 | { |
5981 | if (_obj1) | |
5982 | delete _arg1; | |
5983 | } | |
5984 | return _resultobj; | |
5985 | } | |
5986 | ||
5987 | #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0)) | |
5988 | static PyObject *_wrap_wxDialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5989 | PyObject * _resultobj; | |
5990 | wxSizer * _result; | |
5991 | wxDialog * _arg0; | |
5992 | long _arg1; | |
5993 | PyObject * _argo0 = 0; | |
5994 | char *_kwnames[] = { "self","flags", NULL }; | |
f3d9dc1d RD |
5995 | |
5996 | self = self; | |
5997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDialog_CreateButtonSizer",_kwnames,&_argo0,&_arg1)) | |
5998 | return NULL; | |
5999 | if (_argo0) { | |
6000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
6002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p."); | |
6003 | return NULL; | |
6004 | } | |
6005 | } | |
6006 | { | |
6007 | wxPy_BEGIN_ALLOW_THREADS; | |
6008 | _result = (wxSizer *)wxDialog_CreateButtonSizer(_arg0,_arg1); | |
6009 | ||
6010 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6011 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6012 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f3d9dc1d RD |
6013 | return _resultobj; |
6014 | } | |
6015 | ||
bb0054cd RD |
6016 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6017 | wxScrolledWindow *src; | |
6018 | wxPanel *dest; | |
6019 | src = (wxScrolledWindow *) ptr; | |
6020 | dest = (wxPanel *) src; | |
6021 | return (void *) dest; | |
6022 | } | |
6023 | ||
8ab979d7 RD |
6024 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6025 | wxScrolledWindow *src; | |
6026 | wxWindow *dest; | |
6027 | src = (wxScrolledWindow *) ptr; | |
6028 | dest = (wxWindow *) src; | |
6029 | return (void *) dest; | |
6030 | } | |
6031 | ||
6032 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6033 | wxScrolledWindow *src; | |
6034 | wxEvtHandler *dest; | |
6035 | src = (wxScrolledWindow *) ptr; | |
6036 | dest = (wxEvtHandler *) src; | |
6037 | return (void *) dest; | |
6038 | } | |
6039 | ||
9416aa89 RD |
6040 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6041 | wxScrolledWindow *src; | |
6042 | wxObject *dest; | |
6043 | src = (wxScrolledWindow *) ptr; | |
6044 | dest = (wxObject *) src; | |
6045 | return (void *) dest; | |
6046 | } | |
6047 | ||
8ab979d7 | 6048 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6049 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6050 | PyObject * _resultobj; |
6051 | wxScrolledWindow * _result; | |
6052 | wxWindow * _arg0; | |
1d99702e | 6053 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6054 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6055 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6056 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
6057 | char * _arg5 = (char *) "scrolledWindow"; | |
6058 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6059 | wxPoint temp; |
6060 | PyObject * _obj2 = 0; | |
6061 | wxSize temp0; | |
6062 | PyObject * _obj3 = 0; | |
efc5f224 | 6063 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6064 | char _ptemp[128]; |
6065 | ||
6066 | self = self; | |
2f90df85 | 6067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6068 | return NULL; |
1d99702e RD |
6069 | if (_argo0) { |
6070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6073 | return NULL; | |
6074 | } | |
6075 | } | |
2f90df85 RD |
6076 | if (_obj2) |
6077 | { | |
6078 | _arg2 = &temp; | |
6079 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6080 | return NULL; |
2f90df85 RD |
6081 | } |
6082 | if (_obj3) | |
6083 | { | |
6084 | _arg3 = &temp0; | |
6085 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6086 | return NULL; |
2f90df85 | 6087 | } |
cf694132 RD |
6088 | { |
6089 | wxPy_BEGIN_ALLOW_THREADS; | |
6090 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
6091 | ||
6092 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6093 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6094 | } if (_result) { |
6095 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6096 | _resultobj = Py_BuildValue("s",_ptemp); | |
6097 | } else { | |
6098 | Py_INCREF(Py_None); | |
6099 | _resultobj = Py_None; | |
6100 | } | |
8ab979d7 RD |
6101 | return _resultobj; |
6102 | } | |
6103 | ||
6104 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
efc5f224 | 6105 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6106 | PyObject * _resultobj; |
6107 | wxScrolledWindow * _arg0; | |
6108 | bool _arg1; | |
6109 | bool _arg2; | |
1d99702e | 6110 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6111 | int tempbool1; |
6112 | int tempbool2; | |
efc5f224 | 6113 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6114 | |
6115 | self = self; | |
efc5f224 | 6116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6117 | return NULL; |
1d99702e RD |
6118 | if (_argo0) { |
6119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6122 | return NULL; | |
6123 | } | |
6124 | } | |
6125 | _arg1 = (bool ) tempbool1; | |
6126 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6127 | { |
6128 | wxPy_BEGIN_ALLOW_THREADS; | |
6129 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
6130 | ||
6131 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6132 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6133 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6134 | _resultobj = Py_None; |
6135 | return _resultobj; | |
6136 | } | |
6137 | ||
b7e72427 RD |
6138 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6139 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6140 | PyObject * _resultobj; | |
6141 | int _result; | |
6142 | wxScrolledWindow * _arg0; | |
6143 | int _arg1; | |
6144 | PyObject * _argo0 = 0; | |
6145 | char *_kwnames[] = { "self","orient", NULL }; | |
6146 | ||
6147 | self = self; | |
6148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6149 | return NULL; | |
6150 | if (_argo0) { | |
6151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6154 | return NULL; | |
6155 | } | |
6156 | } | |
6157 | { | |
6158 | wxPy_BEGIN_ALLOW_THREADS; | |
6159 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
6160 | ||
6161 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6162 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6163 | } _resultobj = Py_BuildValue("i",_result); |
6164 | return _resultobj; | |
6165 | } | |
6166 | ||
8ab979d7 | 6167 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6168 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6169 | PyObject * _resultobj; |
6170 | wxScrolledWindow * _arg0; | |
6171 | int * _arg1; | |
6172 | int temp; | |
6173 | int * _arg2; | |
6174 | int temp0; | |
1d99702e | 6175 | PyObject * _argo0 = 0; |
efc5f224 | 6176 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6177 | |
6178 | self = self; | |
6179 | { | |
6180 | _arg1 = &temp; | |
6181 | } | |
6182 | { | |
6183 | _arg2 = &temp0; | |
6184 | } | |
efc5f224 | 6185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6186 | return NULL; |
1d99702e RD |
6187 | if (_argo0) { |
6188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6191 | return NULL; | |
6192 | } | |
6193 | } | |
cf694132 RD |
6194 | { |
6195 | wxPy_BEGIN_ALLOW_THREADS; | |
6196 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
6197 | ||
6198 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6199 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6200 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6201 | _resultobj = Py_None; |
6202 | { | |
6203 | PyObject *o; | |
6204 | o = PyInt_FromLong((long) (*_arg1)); | |
6205 | _resultobj = t_output_helper(_resultobj, o); | |
6206 | } | |
6207 | { | |
6208 | PyObject *o; | |
6209 | o = PyInt_FromLong((long) (*_arg2)); | |
6210 | _resultobj = t_output_helper(_resultobj, o); | |
6211 | } | |
6212 | return _resultobj; | |
6213 | } | |
6214 | ||
b7e72427 RD |
6215 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6216 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6217 | PyObject * _resultobj; | |
6218 | wxWindow * _result; | |
6219 | wxScrolledWindow * _arg0; | |
6220 | PyObject * _argo0 = 0; | |
6221 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6222 | |
6223 | self = self; | |
6224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6225 | return NULL; | |
6226 | if (_argo0) { | |
6227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6230 | return NULL; | |
6231 | } | |
6232 | } | |
6233 | { | |
6234 | wxPy_BEGIN_ALLOW_THREADS; | |
6235 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6236 | ||
6237 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6238 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6239 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
6240 | return _resultobj; |
6241 | } | |
6242 | ||
8ab979d7 | 6243 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6244 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6245 | PyObject * _resultobj; |
6246 | wxScrolledWindow * _arg0; | |
6247 | int * _arg1; | |
6248 | int temp; | |
6249 | int * _arg2; | |
6250 | int temp0; | |
1d99702e | 6251 | PyObject * _argo0 = 0; |
efc5f224 | 6252 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6253 | |
6254 | self = self; | |
6255 | { | |
6256 | _arg1 = &temp; | |
6257 | } | |
6258 | { | |
6259 | _arg2 = &temp0; | |
6260 | } | |
efc5f224 | 6261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6262 | return NULL; |
1d99702e RD |
6263 | if (_argo0) { |
6264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6267 | return NULL; | |
6268 | } | |
6269 | } | |
cf694132 RD |
6270 | { |
6271 | wxPy_BEGIN_ALLOW_THREADS; | |
6272 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6273 | ||
6274 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6275 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6276 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6277 | _resultobj = Py_None; |
6278 | { | |
6279 | PyObject *o; | |
6280 | o = PyInt_FromLong((long) (*_arg1)); | |
6281 | _resultobj = t_output_helper(_resultobj, o); | |
6282 | } | |
6283 | { | |
6284 | PyObject *o; | |
6285 | o = PyInt_FromLong((long) (*_arg2)); | |
6286 | _resultobj = t_output_helper(_resultobj, o); | |
6287 | } | |
6288 | return _resultobj; | |
6289 | } | |
6290 | ||
6291 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6292 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6293 | PyObject * _resultobj; |
6294 | bool _result; | |
6295 | wxScrolledWindow * _arg0; | |
1d99702e | 6296 | PyObject * _argo0 = 0; |
efc5f224 | 6297 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6298 | |
6299 | self = self; | |
efc5f224 | 6300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6301 | return NULL; |
1d99702e RD |
6302 | if (_argo0) { |
6303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6306 | return NULL; | |
6307 | } | |
6308 | } | |
cf694132 RD |
6309 | { |
6310 | wxPy_BEGIN_ALLOW_THREADS; | |
6311 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6312 | ||
6313 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6314 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6315 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6316 | return _resultobj; |
6317 | } | |
6318 | ||
6319 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6320 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6321 | PyObject * _resultobj; |
6322 | wxScrolledWindow * _arg0; | |
6323 | wxDC * _arg1; | |
1d99702e RD |
6324 | PyObject * _argo0 = 0; |
6325 | PyObject * _argo1 = 0; | |
efc5f224 | 6326 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6327 | |
6328 | self = self; | |
efc5f224 | 6329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6330 | return NULL; |
1d99702e RD |
6331 | if (_argo0) { |
6332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6335 | return NULL; | |
6336 | } | |
6337 | } | |
1d99702e RD |
6338 | if (_argo1) { |
6339 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6340 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6342 | return NULL; | |
6343 | } | |
6344 | } | |
cf694132 RD |
6345 | { |
6346 | wxPy_BEGIN_ALLOW_THREADS; | |
6347 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
6348 | ||
6349 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6350 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6351 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6352 | _resultobj = Py_None; |
6353 | return _resultobj; | |
6354 | } | |
6355 | ||
6356 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6357 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6358 | PyObject * _resultobj; |
6359 | wxScrolledWindow * _arg0; | |
6360 | int _arg1; | |
6361 | int _arg2; | |
1d99702e | 6362 | PyObject * _argo0 = 0; |
efc5f224 | 6363 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6364 | |
6365 | self = self; | |
efc5f224 | 6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6367 | return NULL; |
1d99702e RD |
6368 | if (_argo0) { |
6369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6372 | return NULL; | |
6373 | } | |
6374 | } | |
cf694132 RD |
6375 | { |
6376 | wxPy_BEGIN_ALLOW_THREADS; | |
6377 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
6378 | ||
6379 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6380 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6381 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6382 | _resultobj = Py_None; |
6383 | return _resultobj; | |
6384 | } | |
6385 | ||
f6bcfd97 | 6386 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6387 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6388 | PyObject * _resultobj; |
6389 | wxScrolledWindow * _arg0; | |
6390 | int _arg1; | |
6391 | int _arg2; | |
6392 | int _arg3; | |
6393 | int _arg4; | |
1d99702e RD |
6394 | int _arg5 = (int ) 0; |
6395 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6396 | int _arg7 = (int ) FALSE; |
1d99702e | 6397 | PyObject * _argo0 = 0; |
f6bcfd97 | 6398 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6399 | |
6400 | self = self; | |
f6bcfd97 | 6401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6402 | return NULL; |
1d99702e RD |
6403 | if (_argo0) { |
6404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6407 | return NULL; | |
6408 | } | |
6409 | } | |
cf694132 RD |
6410 | { |
6411 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6412 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 RD |
6413 | |
6414 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6415 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6416 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6417 | _resultobj = Py_None; |
6418 | return _resultobj; | |
6419 | } | |
6420 | ||
b7e72427 RD |
6421 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6422 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6423 | PyObject * _resultobj; | |
6424 | wxScrolledWindow * _arg0; | |
6425 | int _arg1; | |
6426 | int _arg2; | |
6427 | PyObject * _argo0 = 0; | |
6428 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6429 | ||
6430 | self = self; | |
6431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6432 | return NULL; | |
6433 | if (_argo0) { | |
6434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6437 | return NULL; | |
6438 | } | |
6439 | } | |
6440 | { | |
6441 | wxPy_BEGIN_ALLOW_THREADS; | |
6442 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6443 | ||
6444 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6445 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6446 | } Py_INCREF(Py_None); |
6447 | _resultobj = Py_None; | |
6448 | return _resultobj; | |
6449 | } | |
6450 | ||
eb715945 RD |
6451 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6452 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6453 | PyObject * _resultobj; | |
6454 | wxScrolledWindow * _arg0; | |
6455 | wxWindow * _arg1; | |
6456 | PyObject * _argo0 = 0; | |
6457 | PyObject * _argo1 = 0; | |
6458 | char *_kwnames[] = { "self","window", NULL }; | |
6459 | ||
6460 | self = self; | |
6461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6462 | return NULL; | |
6463 | if (_argo0) { | |
6464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6467 | return NULL; | |
6468 | } | |
6469 | } | |
6470 | if (_argo1) { | |
6471 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6472 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6474 | return NULL; | |
6475 | } | |
6476 | } | |
6477 | { | |
6478 | wxPy_BEGIN_ALLOW_THREADS; | |
6479 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6480 | ||
6481 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6482 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
6483 | } Py_INCREF(Py_None); |
6484 | _resultobj = Py_None; | |
6485 | return _resultobj; | |
6486 | } | |
6487 | ||
4c9993c3 RD |
6488 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6489 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6490 | PyObject * _resultobj; | |
6491 | wxScrolledWindow * _arg0; | |
6492 | int * _arg1; | |
6493 | int temp; | |
6494 | int * _arg2; | |
6495 | int temp0; | |
6496 | PyObject * _argo0 = 0; | |
6497 | char *_kwnames[] = { "self", NULL }; | |
6498 | ||
6499 | self = self; | |
6500 | { | |
6501 | _arg1 = &temp; | |
6502 | } | |
6503 | { | |
6504 | _arg2 = &temp0; | |
6505 | } | |
6506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6507 | return NULL; | |
6508 | if (_argo0) { | |
6509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6512 | return NULL; | |
6513 | } | |
6514 | } | |
6515 | { | |
6516 | wxPy_BEGIN_ALLOW_THREADS; | |
6517 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6518 | ||
6519 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6520 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
6521 | } Py_INCREF(Py_None); |
6522 | _resultobj = Py_None; | |
6523 | { | |
6524 | PyObject *o; | |
6525 | o = PyInt_FromLong((long) (*_arg1)); | |
6526 | _resultobj = t_output_helper(_resultobj, o); | |
6527 | } | |
6528 | { | |
6529 | PyObject *o; | |
6530 | o = PyInt_FromLong((long) (*_arg2)); | |
6531 | _resultobj = t_output_helper(_resultobj, o); | |
6532 | } | |
6533 | return _resultobj; | |
6534 | } | |
6535 | ||
9d8bd15f RD |
6536 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6537 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6538 | PyObject * _resultobj; | |
6539 | wxScrolledWindow * _arg0; | |
6540 | int _arg1; | |
6541 | int _arg2; | |
6542 | int * _arg3; | |
6543 | int temp; | |
6544 | int * _arg4; | |
6545 | int temp0; | |
6546 | PyObject * _argo0 = 0; | |
6547 | char *_kwnames[] = { "self","x","y", NULL }; | |
6548 | ||
6549 | self = self; | |
6550 | { | |
6551 | _arg3 = &temp; | |
6552 | } | |
6553 | { | |
6554 | _arg4 = &temp0; | |
6555 | } | |
6556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6557 | return NULL; | |
6558 | if (_argo0) { | |
6559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6562 | return NULL; | |
6563 | } | |
6564 | } | |
6565 | { | |
6566 | wxPy_BEGIN_ALLOW_THREADS; | |
6567 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6568 | ||
6569 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6570 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6571 | } Py_INCREF(Py_None); |
6572 | _resultobj = Py_None; | |
6573 | { | |
6574 | PyObject *o; | |
6575 | o = PyInt_FromLong((long) (*_arg3)); | |
6576 | _resultobj = t_output_helper(_resultobj, o); | |
6577 | } | |
6578 | { | |
6579 | PyObject *o; | |
6580 | o = PyInt_FromLong((long) (*_arg4)); | |
6581 | _resultobj = t_output_helper(_resultobj, o); | |
6582 | } | |
6583 | return _resultobj; | |
6584 | } | |
6585 | ||
6586 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6587 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6588 | PyObject * _resultobj; | |
6589 | wxScrolledWindow * _arg0; | |
6590 | int _arg1; | |
6591 | int _arg2; | |
6592 | int * _arg3; | |
6593 | int temp; | |
6594 | int * _arg4; | |
6595 | int temp0; | |
6596 | PyObject * _argo0 = 0; | |
6597 | char *_kwnames[] = { "self","x","y", NULL }; | |
6598 | ||
6599 | self = self; | |
6600 | { | |
6601 | _arg3 = &temp; | |
6602 | } | |
6603 | { | |
6604 | _arg4 = &temp0; | |
6605 | } | |
6606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6607 | return NULL; | |
6608 | if (_argo0) { | |
6609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6612 | return NULL; | |
6613 | } | |
6614 | } | |
6615 | { | |
6616 | wxPy_BEGIN_ALLOW_THREADS; | |
6617 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6618 | ||
6619 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6620 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6621 | } Py_INCREF(Py_None); |
6622 | _resultobj = Py_None; | |
6623 | { | |
6624 | PyObject *o; | |
6625 | o = PyInt_FromLong((long) (*_arg3)); | |
6626 | _resultobj = t_output_helper(_resultobj, o); | |
6627 | } | |
6628 | { | |
6629 | PyObject *o; | |
6630 | o = PyInt_FromLong((long) (*_arg4)); | |
6631 | _resultobj = t_output_helper(_resultobj, o); | |
6632 | } | |
6633 | return _resultobj; | |
6634 | } | |
6635 | ||
d1679124 RD |
6636 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
6637 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6638 | PyObject * _resultobj; | |
6639 | wxScrolledWindow * _arg0; | |
6640 | double _arg1; | |
6641 | double _arg2; | |
6642 | PyObject * _argo0 = 0; | |
6643 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
6644 | ||
6645 | self = self; | |
6646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6647 | return NULL; | |
6648 | if (_argo0) { | |
6649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
6652 | return NULL; | |
6653 | } | |
6654 | } | |
6655 | { | |
6656 | wxPy_BEGIN_ALLOW_THREADS; | |
6657 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); | |
6658 | ||
6659 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6660 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6661 | } Py_INCREF(Py_None); |
6662 | _resultobj = Py_None; | |
6663 | return _resultobj; | |
6664 | } | |
6665 | ||
6666 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
6667 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6668 | PyObject * _resultobj; | |
6669 | double _result; | |
6670 | wxScrolledWindow * _arg0; | |
6671 | PyObject * _argo0 = 0; | |
6672 | char *_kwnames[] = { "self", NULL }; | |
6673 | ||
6674 | self = self; | |
6675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
6676 | return NULL; | |
6677 | if (_argo0) { | |
6678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
6681 | return NULL; | |
6682 | } | |
6683 | } | |
6684 | { | |
6685 | wxPy_BEGIN_ALLOW_THREADS; | |
6686 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); | |
6687 | ||
6688 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6689 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6690 | } _resultobj = Py_BuildValue("d",_result); |
6691 | return _resultobj; | |
6692 | } | |
6693 | ||
6694 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
6695 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6696 | PyObject * _resultobj; | |
6697 | double _result; | |
6698 | wxScrolledWindow * _arg0; | |
6699 | PyObject * _argo0 = 0; | |
6700 | char *_kwnames[] = { "self", NULL }; | |
6701 | ||
6702 | self = self; | |
6703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
6704 | return NULL; | |
6705 | if (_argo0) { | |
6706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
6709 | return NULL; | |
6710 | } | |
6711 | } | |
6712 | { | |
6713 | wxPy_BEGIN_ALLOW_THREADS; | |
6714 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
6715 | ||
6716 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6717 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6718 | } _resultobj = Py_BuildValue("d",_result); |
6719 | return _resultobj; | |
6720 | } | |
6721 | ||
6722 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
6723 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6724 | PyObject * _resultobj; | |
6725 | wxScrolledWindow * _arg0; | |
6726 | PyObject * _argo0 = 0; | |
6727 | char *_kwnames[] = { "self", NULL }; | |
6728 | ||
6729 | self = self; | |
6730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
6731 | return NULL; | |
6732 | if (_argo0) { | |
6733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
6736 | return NULL; | |
6737 | } | |
6738 | } | |
6739 | { | |
6740 | wxPy_BEGIN_ALLOW_THREADS; | |
6741 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
6742 | ||
6743 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6744 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6745 | } Py_INCREF(Py_None); |
6746 | _resultobj = Py_None; | |
6747 | return _resultobj; | |
6748 | } | |
6749 | ||
8ab979d7 RD |
6750 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
6751 | wxMenu *src; | |
6752 | wxEvtHandler *dest; | |
6753 | src = (wxMenu *) ptr; | |
6754 | dest = (wxEvtHandler *) src; | |
6755 | return (void *) dest; | |
6756 | } | |
6757 | ||
9416aa89 RD |
6758 | static void *SwigwxMenuTowxObject(void *ptr) { |
6759 | wxMenu *src; | |
6760 | wxObject *dest; | |
6761 | src = (wxMenu *) ptr; | |
6762 | dest = (wxObject *) src; | |
6763 | return (void *) dest; | |
6764 | } | |
6765 | ||
8bf5d46e | 6766 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 6767 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6768 | PyObject * _resultobj; |
6769 | wxMenu * _result; | |
1d99702e RD |
6770 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
6771 | long _arg1 = (long ) 0; | |
8ab979d7 | 6772 | PyObject * _obj0 = 0; |
efc5f224 | 6773 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
6774 | char _ptemp[128]; |
6775 | ||
6776 | self = self; | |
efc5f224 | 6777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
6778 | return NULL; |
6779 | if (_obj0) | |
6780 | { | |
185d7c3e RD |
6781 | #if PYTHON_API_VERSION >= 1009 |
6782 | char* tmpPtr; int tmpSize; | |
6783 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 6784 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6785 | return NULL; |
6786 | } | |
6787 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6788 | return NULL; | |
6789 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6790 | #else | |
8ab979d7 RD |
6791 | if (!PyString_Check(_obj0)) { |
6792 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6793 | return NULL; | |
6794 | } | |
185d7c3e RD |
6795 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
6796 | #endif | |
8ab979d7 | 6797 | } |
cf694132 RD |
6798 | { |
6799 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 6800 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 RD |
6801 | |
6802 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6803 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6804 | } if (_result) { |
6805 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6806 | _resultobj = Py_BuildValue("s",_ptemp); | |
6807 | } else { | |
6808 | Py_INCREF(Py_None); | |
6809 | _resultobj = Py_None; | |
6810 | } | |
8ab979d7 RD |
6811 | { |
6812 | if (_obj0) | |
6813 | delete _arg0; | |
6814 | } | |
6815 | return _resultobj; | |
6816 | } | |
6817 | ||
6818 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6819 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6820 | PyObject * _resultobj; |
6821 | wxMenu * _arg0; | |
6822 | int _arg1; | |
6823 | wxString * _arg2; | |
1d99702e | 6824 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
926bb76c | 6825 | int _arg4 = (int ) FALSE; |
1d99702e | 6826 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6827 | PyObject * _obj2 = 0; |
6828 | PyObject * _obj3 = 0; | |
efc5f224 | 6829 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
6830 | |
6831 | self = self; | |
926bb76c | 6832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 6833 | return NULL; |
1d99702e RD |
6834 | if (_argo0) { |
6835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
6838 | return NULL; | |
6839 | } | |
6840 | } | |
6841 | { | |
185d7c3e RD |
6842 | #if PYTHON_API_VERSION >= 1009 |
6843 | char* tmpPtr; int tmpSize; | |
6844 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6845 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6846 | return NULL; |
6847 | } | |
6848 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6849 | return NULL; | |
6850 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6851 | #else | |
8ab979d7 RD |
6852 | if (!PyString_Check(_obj2)) { |
6853 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6854 | return NULL; | |
6855 | } | |
185d7c3e RD |
6856 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6857 | #endif | |
8ab979d7 RD |
6858 | } |
6859 | if (_obj3) | |
6860 | { | |
185d7c3e RD |
6861 | #if PYTHON_API_VERSION >= 1009 |
6862 | char* tmpPtr; int tmpSize; | |
6863 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 6864 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6865 | return NULL; |
6866 | } | |
6867 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6868 | return NULL; | |
6869 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6870 | #else | |
8ab979d7 RD |
6871 | if (!PyString_Check(_obj3)) { |
6872 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6873 | return NULL; | |
6874 | } | |
185d7c3e RD |
6875 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6876 | #endif | |
8ab979d7 | 6877 | } |
cf694132 RD |
6878 | { |
6879 | wxPy_BEGIN_ALLOW_THREADS; | |
6880 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
6881 | ||
6882 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6883 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6884 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6885 | _resultobj = Py_None; |
6886 | { | |
6887 | if (_obj2) | |
6888 | delete _arg2; | |
6889 | } | |
6890 | { | |
6891 | if (_obj3) | |
6892 | delete _arg3; | |
6893 | } | |
6894 | return _resultobj; | |
6895 | } | |
6896 | ||
6897 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6898 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6899 | PyObject * _resultobj; |
6900 | wxMenu * _arg0; | |
6901 | int _arg1; | |
6902 | wxString * _arg2; | |
6903 | wxMenu * _arg3; | |
1d99702e RD |
6904 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
6905 | PyObject * _argo0 = 0; | |
8ab979d7 | 6906 | PyObject * _obj2 = 0; |
1d99702e | 6907 | PyObject * _argo3 = 0; |
8ab979d7 | 6908 | PyObject * _obj4 = 0; |
efc5f224 | 6909 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
6910 | |
6911 | self = self; | |
efc5f224 | 6912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 6913 | return NULL; |
1d99702e RD |
6914 | if (_argo0) { |
6915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6918 | return NULL; | |
6919 | } | |
6920 | } | |
6921 | { | |
185d7c3e RD |
6922 | #if PYTHON_API_VERSION >= 1009 |
6923 | char* tmpPtr; int tmpSize; | |
6924 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6925 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6926 | return NULL; |
6927 | } | |
6928 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6929 | return NULL; | |
6930 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6931 | #else | |
8ab979d7 RD |
6932 | if (!PyString_Check(_obj2)) { |
6933 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6934 | return NULL; | |
6935 | } | |
185d7c3e RD |
6936 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6937 | #endif | |
8ab979d7 | 6938 | } |
1d99702e RD |
6939 | if (_argo3) { |
6940 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6941 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
6942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6943 | return NULL; | |
6944 | } | |
6945 | } | |
6946 | if (_obj4) | |
6947 | { | |
185d7c3e RD |
6948 | #if PYTHON_API_VERSION >= 1009 |
6949 | char* tmpPtr; int tmpSize; | |
6950 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
794c5cb1 | 6951 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6952 | return NULL; |
6953 | } | |
6954 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
6955 | return NULL; | |
6956 | _arg4 = new wxString(tmpPtr, tmpSize); | |
6957 | #else | |
8ab979d7 RD |
6958 | if (!PyString_Check(_obj4)) { |
6959 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6960 | return NULL; | |
6961 | } | |
185d7c3e RD |
6962 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
6963 | #endif | |
8ab979d7 | 6964 | } |
cf694132 RD |
6965 | { |
6966 | wxPy_BEGIN_ALLOW_THREADS; | |
6967 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
6968 | ||
6969 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6970 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6971 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6972 | _resultobj = Py_None; |
6973 | { | |
6974 | if (_obj2) | |
6975 | delete _arg2; | |
6976 | } | |
6977 | { | |
6978 | if (_obj4) | |
6979 | delete _arg4; | |
6980 | } | |
6981 | return _resultobj; | |
6982 | } | |
6983 | ||
af309447 | 6984 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 6985 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
6986 | PyObject * _resultobj; |
6987 | wxMenu * _arg0; | |
6988 | wxMenuItem * _arg1; | |
1d99702e RD |
6989 | PyObject * _argo0 = 0; |
6990 | PyObject * _argo1 = 0; | |
efc5f224 | 6991 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
6992 | |
6993 | self = self; | |
efc5f224 | 6994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 6995 | return NULL; |
1d99702e RD |
6996 | if (_argo0) { |
6997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
6999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
7000 | return NULL; | |
7001 | } | |
7002 | } | |
1d99702e RD |
7003 | if (_argo1) { |
7004 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7005 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
7006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
7007 | return NULL; | |
7008 | } | |
7009 | } | |
cf694132 RD |
7010 | { |
7011 | wxPy_BEGIN_ALLOW_THREADS; | |
7012 | wxMenu_AppendItem(_arg0,_arg1); | |
7013 | ||
7014 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7015 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7016 | } Py_INCREF(Py_None); |
af309447 RD |
7017 | _resultobj = Py_None; |
7018 | return _resultobj; | |
7019 | } | |
7020 | ||
8ab979d7 | 7021 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 7022 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7023 | PyObject * _resultobj; |
7024 | wxMenu * _arg0; | |
1d99702e | 7025 | PyObject * _argo0 = 0; |
efc5f224 | 7026 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7027 | |
7028 | self = self; | |
efc5f224 | 7029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 7030 | return NULL; |
1d99702e RD |
7031 | if (_argo0) { |
7032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
7035 | return NULL; | |
7036 | } | |
7037 | } | |
cf694132 RD |
7038 | { |
7039 | wxPy_BEGIN_ALLOW_THREADS; | |
7040 | wxMenu_AppendSeparator(_arg0); | |
7041 | ||
7042 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7043 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7044 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7045 | _resultobj = Py_None; |
7046 | return _resultobj; | |
7047 | } | |
7048 | ||
7049 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 7050 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7051 | PyObject * _resultobj; |
7052 | wxMenu * _arg0; | |
1d99702e | 7053 | PyObject * _argo0 = 0; |
efc5f224 | 7054 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7055 | |
7056 | self = self; | |
efc5f224 | 7057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 7058 | return NULL; |
1d99702e RD |
7059 | if (_argo0) { |
7060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
7063 | return NULL; | |
7064 | } | |
7065 | } | |
cf694132 RD |
7066 | { |
7067 | wxPy_BEGIN_ALLOW_THREADS; | |
7068 | wxMenu_Break(_arg0); | |
7069 | ||
7070 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7071 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7072 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7073 | _resultobj = Py_None; |
7074 | return _resultobj; | |
7075 | } | |
7076 | ||
7077 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 7078 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7079 | PyObject * _resultobj; |
7080 | wxMenu * _arg0; | |
7081 | int _arg1; | |
7082 | bool _arg2; | |
1d99702e | 7083 | PyObject * _argo0 = 0; |
8ab979d7 | 7084 | int tempbool2; |
efc5f224 | 7085 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
7086 | |
7087 | self = self; | |
efc5f224 | 7088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7089 | return NULL; |
1d99702e RD |
7090 | if (_argo0) { |
7091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
7094 | return NULL; | |
7095 | } | |
7096 | } | |
7097 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7098 | { |
7099 | wxPy_BEGIN_ALLOW_THREADS; | |
7100 | wxMenu_Check(_arg0,_arg1,_arg2); | |
7101 | ||
7102 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7103 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7104 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7105 | _resultobj = Py_None; |
7106 | return _resultobj; | |
7107 | } | |
7108 | ||
b1462dfa RD |
7109 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
7110 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7111 | PyObject * _resultobj; | |
7112 | bool _result; | |
7113 | wxMenu * _arg0; | |
7114 | int _arg1; | |
7115 | PyObject * _argo0 = 0; | |
7116 | char *_kwnames[] = { "self","id", NULL }; | |
7117 | ||
7118 | self = self; | |
7119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7120 | return NULL; | |
7121 | if (_argo0) { | |
7122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7125 | return NULL; | |
7126 | } | |
7127 | } | |
7128 | { | |
7129 | wxPy_BEGIN_ALLOW_THREADS; | |
7130 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
7131 | ||
7132 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7133 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7134 | } _resultobj = Py_BuildValue("i",_result); |
7135 | return _resultobj; | |
7136 | } | |
7137 | ||
8ab979d7 | 7138 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 7139 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7140 | PyObject * _resultobj; |
7141 | wxMenu * _arg0; | |
7142 | int _arg1; | |
7143 | bool _arg2; | |
1d99702e | 7144 | PyObject * _argo0 = 0; |
8ab979d7 | 7145 | int tempbool2; |
efc5f224 | 7146 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
7147 | |
7148 | self = self; | |
efc5f224 | 7149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7150 | return NULL; |
1d99702e RD |
7151 | if (_argo0) { |
7152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
7155 | return NULL; | |
7156 | } | |
7157 | } | |
7158 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7159 | { |
7160 | wxPy_BEGIN_ALLOW_THREADS; | |
7161 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
7162 | ||
7163 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7164 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7165 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7166 | _resultobj = Py_None; |
7167 | return _resultobj; | |
7168 | } | |
7169 | ||
b1462dfa RD |
7170 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
7171 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7172 | PyObject * _resultobj; | |
7173 | bool _result; | |
7174 | wxMenu * _arg0; | |
7175 | int _arg1; | |
7176 | PyObject * _argo0 = 0; | |
7177 | char *_kwnames[] = { "self","id", NULL }; | |
7178 | ||
7179 | self = self; | |
7180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7181 | return NULL; | |
7182 | if (_argo0) { | |
7183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7186 | return NULL; | |
7187 | } | |
7188 | } | |
7189 | { | |
7190 | wxPy_BEGIN_ALLOW_THREADS; | |
7191 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
7192 | ||
7193 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7194 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7195 | } _resultobj = Py_BuildValue("i",_result); |
7196 | return _resultobj; | |
7197 | } | |
7198 | ||
8ab979d7 | 7199 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 7200 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7201 | PyObject * _resultobj; |
7202 | int _result; | |
7203 | wxMenu * _arg0; | |
7204 | wxString * _arg1; | |
1d99702e | 7205 | PyObject * _argo0 = 0; |
8ab979d7 | 7206 | PyObject * _obj1 = 0; |
efc5f224 | 7207 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
7208 | |
7209 | self = self; | |
efc5f224 | 7210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7211 | return NULL; |
1d99702e RD |
7212 | if (_argo0) { |
7213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
7216 | return NULL; | |
7217 | } | |
7218 | } | |
7219 | { | |
185d7c3e RD |
7220 | #if PYTHON_API_VERSION >= 1009 |
7221 | char* tmpPtr; int tmpSize; | |
7222 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7223 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7224 | return NULL; |
7225 | } | |
7226 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7227 | return NULL; | |
7228 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7229 | #else | |
8ab979d7 RD |
7230 | if (!PyString_Check(_obj1)) { |
7231 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7232 | return NULL; | |
7233 | } | |
185d7c3e RD |
7234 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7235 | #endif | |
8ab979d7 | 7236 | } |
cf694132 RD |
7237 | { |
7238 | wxPy_BEGIN_ALLOW_THREADS; | |
7239 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
7240 | ||
7241 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7242 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7243 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7244 | { |
7245 | if (_obj1) | |
7246 | delete _arg1; | |
7247 | } | |
7248 | return _resultobj; | |
7249 | } | |
7250 | ||
b1462dfa RD |
7251 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
7252 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7253 | PyObject * _resultobj; | |
7254 | wxMenuItem * _result; | |
7255 | wxMenu * _arg0; | |
7256 | int _arg1; | |
7257 | PyObject * _argo0 = 0; | |
7258 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
7259 | |
7260 | self = self; | |
7261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7262 | return NULL; | |
7263 | if (_argo0) { | |
7264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7267 | return NULL; | |
7268 | } | |
7269 | } | |
7270 | { | |
7271 | wxPy_BEGIN_ALLOW_THREADS; | |
7272 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
7273 | ||
7274 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7275 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7276 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
7277 | return _resultobj; |
7278 | } | |
7279 | ||
8ab979d7 | 7280 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 7281 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7282 | PyObject * _resultobj; |
7283 | wxString * _result; | |
7284 | wxMenu * _arg0; | |
1d99702e | 7285 | PyObject * _argo0 = 0; |
efc5f224 | 7286 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7287 | |
7288 | self = self; | |
efc5f224 | 7289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 7290 | return NULL; |
1d99702e RD |
7291 | if (_argo0) { |
7292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
7295 | return NULL; | |
7296 | } | |
7297 | } | |
8ab979d7 | 7298 | { |
cf694132 RD |
7299 | wxPy_BEGIN_ALLOW_THREADS; |
7300 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
7301 | ||
7302 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7303 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7304 | }{ |
eec92d76 | 7305 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7306 | } |
7307 | { | |
7308 | delete _result; | |
7309 | } | |
7310 | return _resultobj; | |
7311 | } | |
7312 | ||
7313 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7314 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7315 | PyObject * _resultobj; |
7316 | wxMenu * _arg0; | |
7317 | wxString * _arg1; | |
1d99702e | 7318 | PyObject * _argo0 = 0; |
8ab979d7 | 7319 | PyObject * _obj1 = 0; |
efc5f224 | 7320 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7321 | |
7322 | self = self; | |
efc5f224 | 7323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7324 | return NULL; |
1d99702e RD |
7325 | if (_argo0) { |
7326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7329 | return NULL; | |
7330 | } | |
7331 | } | |
7332 | { | |
185d7c3e RD |
7333 | #if PYTHON_API_VERSION >= 1009 |
7334 | char* tmpPtr; int tmpSize; | |
7335 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7336 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7337 | return NULL; |
7338 | } | |
7339 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7340 | return NULL; | |
7341 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7342 | #else | |
8ab979d7 RD |
7343 | if (!PyString_Check(_obj1)) { |
7344 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7345 | return NULL; | |
7346 | } | |
185d7c3e RD |
7347 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7348 | #endif | |
8ab979d7 | 7349 | } |
cf694132 RD |
7350 | { |
7351 | wxPy_BEGIN_ALLOW_THREADS; | |
7352 | wxMenu_SetTitle(_arg0,*_arg1); | |
7353 | ||
7354 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7355 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7356 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7357 | _resultobj = Py_None; |
7358 | { | |
7359 | if (_obj1) | |
7360 | delete _arg1; | |
7361 | } | |
7362 | return _resultobj; | |
7363 | } | |
7364 | ||
b1462dfa RD |
7365 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7366 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7367 | PyObject * _resultobj; |
b1462dfa | 7368 | wxString * _result; |
8ab979d7 RD |
7369 | wxMenu * _arg0; |
7370 | int _arg1; | |
1d99702e | 7371 | PyObject * _argo0 = 0; |
efc5f224 | 7372 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7373 | |
7374 | self = self; | |
b1462dfa | 7375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7376 | return NULL; |
1d99702e RD |
7377 | if (_argo0) { |
7378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7381 | return NULL; |
7382 | } | |
7383 | } | |
cf694132 RD |
7384 | { |
7385 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7386 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 RD |
7387 | |
7388 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7389 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7390 | }{ |
eec92d76 | 7391 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7392 | } |
7393 | { | |
7394 | delete _result; | |
7395 | } | |
8ab979d7 RD |
7396 | return _resultobj; |
7397 | } | |
7398 | ||
b1462dfa RD |
7399 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7400 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7401 | PyObject * _resultobj; |
8ab979d7 RD |
7402 | wxMenu * _arg0; |
7403 | int _arg1; | |
b1462dfa | 7404 | wxString * _arg2; |
1d99702e | 7405 | PyObject * _argo0 = 0; |
b1462dfa RD |
7406 | PyObject * _obj2 = 0; |
7407 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7408 | |
7409 | self = self; | |
b1462dfa | 7410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7411 | return NULL; |
1d99702e RD |
7412 | if (_argo0) { |
7413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7416 | return NULL; |
7417 | } | |
7418 | } | |
b1462dfa | 7419 | { |
185d7c3e RD |
7420 | #if PYTHON_API_VERSION >= 1009 |
7421 | char* tmpPtr; int tmpSize; | |
7422 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7423 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7424 | return NULL; |
7425 | } | |
7426 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7427 | return NULL; | |
7428 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7429 | #else | |
b1462dfa RD |
7430 | if (!PyString_Check(_obj2)) { |
7431 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7432 | return NULL; | |
7433 | } | |
185d7c3e RD |
7434 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7435 | #endif | |
b1462dfa | 7436 | } |
8ab979d7 | 7437 | { |
cf694132 | 7438 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7439 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
7440 | |
7441 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7442 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7443 | } Py_INCREF(Py_None); |
7444 | _resultobj = Py_None; | |
8ab979d7 | 7445 | { |
b1462dfa RD |
7446 | if (_obj2) |
7447 | delete _arg2; | |
8ab979d7 RD |
7448 | } |
7449 | return _resultobj; | |
7450 | } | |
7451 | ||
b1462dfa RD |
7452 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7453 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7454 | PyObject * _resultobj; |
7455 | wxString * _result; | |
7456 | wxMenu * _arg0; | |
7457 | int _arg1; | |
1d99702e | 7458 | PyObject * _argo0 = 0; |
efc5f224 | 7459 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7460 | |
7461 | self = self; | |
b1462dfa | 7462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7463 | return NULL; |
1d99702e RD |
7464 | if (_argo0) { |
7465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7468 | return NULL; |
7469 | } | |
7470 | } | |
8ab979d7 | 7471 | { |
cf694132 | 7472 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7473 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
7474 | |
7475 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7476 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7477 | }{ |
eec92d76 | 7478 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7479 | } |
7480 | { | |
7481 | delete _result; | |
7482 | } | |
7483 | return _resultobj; | |
7484 | } | |
7485 | ||
7486 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7487 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7488 | PyObject * _resultobj; |
7489 | wxMenu * _arg0; | |
7490 | int _arg1; | |
7491 | wxString * _arg2; | |
1d99702e | 7492 | PyObject * _argo0 = 0; |
8ab979d7 | 7493 | PyObject * _obj2 = 0; |
efc5f224 | 7494 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7495 | |
7496 | self = self; | |
efc5f224 | 7497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7498 | return NULL; |
1d99702e RD |
7499 | if (_argo0) { |
7500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7503 | return NULL; | |
7504 | } | |
7505 | } | |
7506 | { | |
185d7c3e RD |
7507 | #if PYTHON_API_VERSION >= 1009 |
7508 | char* tmpPtr; int tmpSize; | |
7509 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7510 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7511 | return NULL; |
7512 | } | |
7513 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7514 | return NULL; | |
7515 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7516 | #else | |
8ab979d7 RD |
7517 | if (!PyString_Check(_obj2)) { |
7518 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7519 | return NULL; | |
7520 | } | |
185d7c3e RD |
7521 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7522 | #endif | |
8ab979d7 | 7523 | } |
cf694132 RD |
7524 | { |
7525 | wxPy_BEGIN_ALLOW_THREADS; | |
7526 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
7527 | ||
7528 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7529 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7530 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7531 | _resultobj = Py_None; |
7532 | { | |
7533 | if (_obj2) | |
7534 | delete _arg2; | |
7535 | } | |
7536 | return _resultobj; | |
7537 | } | |
7538 | ||
b1462dfa RD |
7539 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7540 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7541 | PyObject * _resultobj; |
8ab979d7 | 7542 | wxMenu * _arg0; |
b1462dfa | 7543 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7544 | PyObject * _argo0 = 0; |
b1462dfa RD |
7545 | PyObject * _argo1 = 0; |
7546 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7547 | |
7548 | self = self; | |
b1462dfa | 7549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7550 | return NULL; |
1d99702e RD |
7551 | if (_argo0) { |
7552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
7554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7555 | return NULL; | |
7556 | } | |
7557 | } | |
7558 | if (_argo1) { | |
7559 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7560 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7562 | return NULL; |
7563 | } | |
7564 | } | |
cf694132 RD |
7565 | { |
7566 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7567 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 RD |
7568 | |
7569 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7570 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7571 | } Py_INCREF(Py_None); |
7572 | _resultobj = Py_None; | |
8ab979d7 RD |
7573 | return _resultobj; |
7574 | } | |
7575 | ||
b1462dfa RD |
7576 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7577 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7578 | PyObject * _resultobj; |
7579 | bool _result; | |
7580 | wxMenu * _arg0; | |
7581 | int _arg1; | |
1d99702e | 7582 | PyObject * _argo0 = 0; |
efc5f224 | 7583 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7584 | |
7585 | self = self; | |
b1462dfa | 7586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7587 | return NULL; |
1d99702e RD |
7588 | if (_argo0) { |
7589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
7592 | return NULL; |
7593 | } | |
7594 | } | |
cf694132 RD |
7595 | { |
7596 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7597 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 RD |
7598 | |
7599 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7600 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7601 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7602 | return _resultobj; |
7603 | } | |
7604 | ||
b1462dfa RD |
7605 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7606 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7607 | PyObject * _resultobj; |
b1462dfa | 7608 | bool _result; |
8ab979d7 | 7609 | wxMenu * _arg0; |
b1462dfa | 7610 | wxMenuItem * _arg1; |
1d99702e | 7611 | PyObject * _argo0 = 0; |
b1462dfa RD |
7612 | PyObject * _argo1 = 0; |
7613 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7614 | |
7615 | self = self; | |
b1462dfa | 7616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7617 | return NULL; |
1d99702e RD |
7618 | if (_argo0) { |
7619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7622 | return NULL; |
7623 | } | |
7624 | } | |
b1462dfa RD |
7625 | if (_argo1) { |
7626 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7627 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7629 | return NULL; |
b1462dfa | 7630 | } |
8ab979d7 | 7631 | } |
cf694132 RD |
7632 | { |
7633 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7634 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 RD |
7635 | |
7636 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7637 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7638 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7639 | return _resultobj; |
7640 | } | |
7641 | ||
b1462dfa RD |
7642 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7643 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7644 | PyObject * _resultobj; |
b1462dfa | 7645 | bool _result; |
8bf5d46e | 7646 | wxMenu * _arg0; |
b1462dfa RD |
7647 | size_t _arg1; |
7648 | wxMenuItem * _arg2; | |
1d99702e | 7649 | PyObject * _argo0 = 0; |
b1462dfa RD |
7650 | PyObject * _argo2 = 0; |
7651 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7652 | |
7653 | self = self; | |
b1462dfa | 7654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7655 | return NULL; |
1d99702e RD |
7656 | if (_argo0) { |
7657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7660 | return NULL; |
7661 | } | |
7662 | } | |
b1462dfa RD |
7663 | if (_argo2) { |
7664 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7665 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7667 | return NULL; |
7668 | } | |
7669 | } | |
cf694132 RD |
7670 | { |
7671 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7672 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 RD |
7673 | |
7674 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7675 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7676 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7677 | return _resultobj; |
7678 | } | |
7679 | ||
b1462dfa RD |
7680 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7681 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7682 | PyObject * _resultobj; |
b1462dfa | 7683 | wxMenuItem * _result; |
efc5f224 | 7684 | wxMenu * _arg0; |
b1462dfa | 7685 | int _arg1; |
efc5f224 | 7686 | PyObject * _argo0 = 0; |
b1462dfa | 7687 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
7688 | |
7689 | self = self; | |
b1462dfa | 7690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7691 | return NULL; |
7692 | if (_argo0) { | |
7693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7696 | return NULL; |
7697 | } | |
7698 | } | |
7699 | { | |
7700 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7701 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 RD |
7702 | |
7703 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7704 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7705 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
7706 | return _resultobj; |
7707 | } | |
7708 | ||
b1462dfa RD |
7709 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7710 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7711 | PyObject * _resultobj; |
b1462dfa RD |
7712 | wxMenuItem * _result; |
7713 | wxMenu * _arg0; | |
7714 | wxMenuItem * _arg1; | |
7715 | PyObject * _argo0 = 0; | |
7716 | PyObject * _argo1 = 0; | |
7717 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7718 | |
7719 | self = self; | |
b1462dfa RD |
7720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7721 | return NULL; | |
7722 | if (_argo0) { | |
7723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7726 | return NULL; | |
7727 | } | |
7728 | } | |
7729 | if (_argo1) { | |
7730 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7731 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7733 | return NULL; |
b1462dfa RD |
7734 | } |
7735 | } | |
cf694132 RD |
7736 | { |
7737 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7738 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 RD |
7739 | |
7740 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7741 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7742 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7743 | return _resultobj; |
7744 | } | |
7745 | ||
eb715945 | 7746 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7747 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7748 | PyObject * _resultobj; |
b1462dfa | 7749 | wxMenu * _arg0; |
1d99702e | 7750 | PyObject * _argo0 = 0; |
b1462dfa | 7751 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7752 | |
7753 | self = self; | |
b1462dfa | 7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7755 | return NULL; |
1d99702e RD |
7756 | if (_argo0) { |
7757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7760 | return NULL; |
7761 | } | |
7762 | } | |
cf694132 RD |
7763 | { |
7764 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7765 | wxMenu_Destroy(_arg0); |
cf694132 RD |
7766 | |
7767 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7768 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7769 | } Py_INCREF(Py_None); |
8ab979d7 | 7770 | _resultobj = Py_None; |
8ab979d7 RD |
7771 | return _resultobj; |
7772 | } | |
7773 | ||
b1462dfa RD |
7774 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7775 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7776 | PyObject * _resultobj; |
b1462dfa RD |
7777 | bool _result; |
7778 | wxMenu * _arg0; | |
8ab979d7 | 7779 | int _arg1; |
1d99702e | 7780 | PyObject * _argo0 = 0; |
b1462dfa | 7781 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7782 | |
7783 | self = self; | |
b1462dfa | 7784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7785 | return NULL; |
1d99702e RD |
7786 | if (_argo0) { |
7787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
7790 | return NULL; |
7791 | } | |
7792 | } | |
cf694132 RD |
7793 | { |
7794 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7795 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 RD |
7796 | |
7797 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7798 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7799 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7800 | return _resultobj; |
7801 | } | |
7802 | ||
b1462dfa RD |
7803 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7804 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7805 | PyObject * _resultobj; |
b1462dfa RD |
7806 | bool _result; |
7807 | wxMenu * _arg0; | |
7808 | wxMenuItem * _arg1; | |
1d99702e | 7809 | PyObject * _argo0 = 0; |
b1462dfa RD |
7810 | PyObject * _argo1 = 0; |
7811 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7812 | |
7813 | self = self; | |
b1462dfa | 7814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7815 | return NULL; |
1d99702e RD |
7816 | if (_argo0) { |
7817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7820 | return NULL; | |
7821 | } | |
7822 | } | |
7823 | if (_argo1) { | |
7824 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7825 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7827 | return NULL; |
7828 | } | |
7829 | } | |
cf694132 RD |
7830 | { |
7831 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7832 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 RD |
7833 | |
7834 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7835 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7836 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7837 | return _resultobj; |
7838 | } | |
7839 | ||
b1462dfa RD |
7840 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
7841 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7842 | PyObject * _resultobj; |
b1462dfa RD |
7843 | size_t _result; |
7844 | wxMenu * _arg0; | |
1d99702e | 7845 | PyObject * _argo0 = 0; |
b1462dfa | 7846 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7847 | |
7848 | self = self; | |
b1462dfa | 7849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 7850 | return NULL; |
1d99702e RD |
7851 | if (_argo0) { |
7852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
7855 | return NULL; |
7856 | } | |
7857 | } | |
cf694132 RD |
7858 | { |
7859 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7860 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 RD |
7861 | |
7862 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7863 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 7864 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7865 | return _resultobj; |
7866 | } | |
7867 | ||
b1462dfa RD |
7868 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
7869 | wxMenuItemList& list = self->GetMenuItems(); | |
7870 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
7871 | } | |
7872 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7873 | PyObject * _resultobj; |
b1462dfa RD |
7874 | PyObject * _result; |
7875 | wxMenu * _arg0; | |
1d99702e | 7876 | PyObject * _argo0 = 0; |
b1462dfa | 7877 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7878 | |
7879 | self = self; | |
b1462dfa | 7880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 7881 | return NULL; |
1d99702e RD |
7882 | if (_argo0) { |
7883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
7886 | return NULL; |
7887 | } | |
7888 | } | |
cf694132 RD |
7889 | { |
7890 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7891 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 RD |
7892 | |
7893 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7894 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7895 | }{ |
7896 | _resultobj = _result; | |
7897 | } | |
8ab979d7 RD |
7898 | return _resultobj; |
7899 | } | |
7900 | ||
b1462dfa RD |
7901 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
7902 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7903 | PyObject * _resultobj; |
b1462dfa RD |
7904 | wxMenu * _arg0; |
7905 | wxEvtHandler * _arg1; | |
1d99702e | 7906 | PyObject * _argo0 = 0; |
b1462dfa RD |
7907 | PyObject * _argo1 = 0; |
7908 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
7909 | |
7910 | self = self; | |
b1462dfa | 7911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7912 | return NULL; |
1d99702e RD |
7913 | if (_argo0) { |
7914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7917 | return NULL; |
7918 | } | |
7919 | } | |
b1462dfa RD |
7920 | if (_argo1) { |
7921 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7922 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 7924 | return NULL; |
b1462dfa | 7925 | } |
8ab979d7 | 7926 | } |
cf694132 RD |
7927 | { |
7928 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7929 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 RD |
7930 | |
7931 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7932 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7933 | } Py_INCREF(Py_None); |
7934 | _resultobj = Py_None; | |
8ab979d7 RD |
7935 | return _resultobj; |
7936 | } | |
7937 | ||
b1462dfa RD |
7938 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
7939 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7940 | PyObject * _resultobj; |
b1462dfa RD |
7941 | wxEvtHandler * _result; |
7942 | wxMenu * _arg0; | |
1d99702e | 7943 | PyObject * _argo0 = 0; |
b1462dfa | 7944 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7945 | |
7946 | self = self; | |
b1462dfa | 7947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 7948 | return NULL; |
1d99702e RD |
7949 | if (_argo0) { |
7950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7953 | return NULL; |
7954 | } | |
7955 | } | |
cf694132 RD |
7956 | { |
7957 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7958 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 RD |
7959 | |
7960 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7961 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7962 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7963 | return _resultobj; |
7964 | } | |
7965 | ||
b1462dfa RD |
7966 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
7967 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 7968 | PyObject * _resultobj; |
b1462dfa RD |
7969 | wxMenu * _arg0; |
7970 | wxWindow * _arg1; | |
2f90df85 | 7971 | PyObject * _argo0 = 0; |
b1462dfa RD |
7972 | PyObject * _argo1 = 0; |
7973 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
7974 | |
7975 | self = self; | |
b1462dfa | 7976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
7977 | return NULL; |
7978 | if (_argo0) { | |
7979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
7982 | return NULL; |
7983 | } | |
7984 | } | |
b1462dfa RD |
7985 | if (_argo1) { |
7986 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7987 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 7989 | return NULL; |
b1462dfa | 7990 | } |
2f90df85 | 7991 | } |
2f90df85 RD |
7992 | { |
7993 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7994 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 RD |
7995 | |
7996 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7997 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
7998 | } Py_INCREF(Py_None); |
7999 | _resultobj = Py_None; | |
2f90df85 RD |
8000 | return _resultobj; |
8001 | } | |
8002 | ||
b1462dfa RD |
8003 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
8004 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8005 | PyObject * _resultobj; |
b1462dfa RD |
8006 | wxWindow * _result; |
8007 | wxMenu * _arg0; | |
1d99702e | 8008 | PyObject * _argo0 = 0; |
b1462dfa | 8009 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8010 | |
8011 | self = self; | |
b1462dfa | 8012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 8013 | return NULL; |
1d99702e RD |
8014 | if (_argo0) { |
8015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
8018 | return NULL; |
8019 | } | |
8020 | } | |
cf694132 RD |
8021 | { |
8022 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8023 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 RD |
8024 | |
8025 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8026 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8027 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8028 | return _resultobj; |
8029 | } | |
8030 | ||
b1462dfa RD |
8031 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
8032 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8033 | PyObject * _resultobj; |
b1462dfa RD |
8034 | long _result; |
8035 | wxMenu * _arg0; | |
1d99702e | 8036 | PyObject * _argo0 = 0; |
b1462dfa | 8037 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8038 | |
8039 | self = self; | |
b1462dfa | 8040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 8041 | return NULL; |
1d99702e RD |
8042 | if (_argo0) { |
8043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
8046 | return NULL; |
8047 | } | |
8048 | } | |
8ab979d7 | 8049 | { |
cf694132 | 8050 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8051 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 RD |
8052 | |
8053 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8054 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8055 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8056 | return _resultobj; |
8057 | } | |
8058 | ||
b1462dfa RD |
8059 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
8060 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8061 | PyObject * _resultobj; |
b1462dfa RD |
8062 | bool _result; |
8063 | wxMenu * _arg0; | |
1d99702e | 8064 | PyObject * _argo0 = 0; |
b1462dfa | 8065 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8066 | |
8067 | self = self; | |
b1462dfa | 8068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 8069 | return NULL; |
1d99702e RD |
8070 | if (_argo0) { |
8071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
8074 | return NULL; |
8075 | } | |
8076 | } | |
8ab979d7 | 8077 | { |
cf694132 | 8078 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8079 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 RD |
8080 | |
8081 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8082 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8083 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8084 | return _resultobj; |
8085 | } | |
8086 | ||
b1462dfa RD |
8087 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
8088 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8089 | PyObject * _resultobj; |
b1462dfa RD |
8090 | wxMenu * _arg0; |
8091 | wxMenu * _arg1; | |
1d99702e | 8092 | PyObject * _argo0 = 0; |
b1462dfa RD |
8093 | PyObject * _argo1 = 0; |
8094 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
8095 | |
8096 | self = self; | |
b1462dfa | 8097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8098 | return NULL; |
1d99702e RD |
8099 | if (_argo0) { |
8100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8103 | return NULL; |
8104 | } | |
8105 | } | |
b1462dfa RD |
8106 | if (_argo1) { |
8107 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8108 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 8110 | return NULL; |
b1462dfa | 8111 | } |
8ab979d7 | 8112 | } |
cf694132 RD |
8113 | { |
8114 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8115 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 RD |
8116 | |
8117 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8118 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8119 | } Py_INCREF(Py_None); |
8ab979d7 | 8120 | _resultobj = Py_None; |
8ab979d7 RD |
8121 | return _resultobj; |
8122 | } | |
8123 | ||
b1462dfa RD |
8124 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
8125 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8126 | PyObject * _resultobj; |
b1462dfa RD |
8127 | wxMenu * _result; |
8128 | wxMenu * _arg0; | |
1d99702e | 8129 | PyObject * _argo0 = 0; |
b1462dfa | 8130 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8131 | |
8132 | self = self; | |
b1462dfa | 8133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 8134 | return NULL; |
1d99702e RD |
8135 | if (_argo0) { |
8136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8139 | return NULL; |
8140 | } | |
8141 | } | |
8ab979d7 | 8142 | { |
cf694132 | 8143 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8144 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 RD |
8145 | |
8146 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8147 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8148 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8149 | return _resultobj; |
8ab979d7 | 8150 | } |
b1462dfa RD |
8151 | |
8152 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8153 | wxMenuBar *src; | |
8154 | wxWindow *dest; | |
8155 | src = (wxMenuBar *) ptr; | |
8156 | dest = (wxWindow *) src; | |
8157 | return (void *) dest; | |
8158 | } | |
8159 | ||
8160 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8161 | wxMenuBar *src; | |
8162 | wxEvtHandler *dest; | |
8163 | src = (wxMenuBar *) ptr; | |
8164 | dest = (wxEvtHandler *) src; | |
8165 | return (void *) dest; | |
8ab979d7 | 8166 | } |
b1462dfa | 8167 | |
9416aa89 RD |
8168 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
8169 | wxMenuBar *src; | |
8170 | wxObject *dest; | |
8171 | src = (wxMenuBar *) ptr; | |
8172 | dest = (wxObject *) src; | |
8173 | return (void *) dest; | |
8174 | } | |
8175 | ||
c368d904 | 8176 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
8177 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8178 | PyObject * _resultobj; | |
8179 | wxMenuBar * _result; | |
c368d904 RD |
8180 | long _arg0 = (long ) 0; |
8181 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
8182 | char _ptemp[128]; |
8183 | ||
8184 | self = self; | |
c368d904 | 8185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
8186 | return NULL; |
8187 | { | |
8188 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 8189 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa RD |
8190 | |
8191 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8192 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8193 | } if (_result) { |
8194 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8195 | _resultobj = Py_BuildValue("s",_ptemp); | |
8196 | } else { | |
8197 | Py_INCREF(Py_None); | |
8198 | _resultobj = Py_None; | |
8199 | } | |
8ab979d7 RD |
8200 | return _resultobj; |
8201 | } | |
8202 | ||
b1462dfa RD |
8203 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
8204 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8205 | PyObject * _resultobj; |
b1462dfa | 8206 | bool _result; |
8ab979d7 | 8207 | wxMenuBar * _arg0; |
b1462dfa | 8208 | wxMenu * _arg1; |
8ab979d7 | 8209 | wxString * _arg2; |
1d99702e | 8210 | PyObject * _argo0 = 0; |
b1462dfa | 8211 | PyObject * _argo1 = 0; |
8ab979d7 | 8212 | PyObject * _obj2 = 0; |
b1462dfa | 8213 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
8214 | |
8215 | self = self; | |
b1462dfa | 8216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8217 | return NULL; |
1d99702e RD |
8218 | if (_argo0) { |
8219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
8222 | return NULL; | |
8223 | } | |
8224 | } | |
8225 | if (_argo1) { | |
8226 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8227 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
8229 | return NULL; |
8230 | } | |
8231 | } | |
8232 | { | |
185d7c3e RD |
8233 | #if PYTHON_API_VERSION >= 1009 |
8234 | char* tmpPtr; int tmpSize; | |
8235 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8236 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8237 | return NULL; |
8238 | } | |
8239 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8240 | return NULL; | |
8241 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8242 | #else | |
8ab979d7 RD |
8243 | if (!PyString_Check(_obj2)) { |
8244 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8245 | return NULL; | |
8246 | } | |
185d7c3e RD |
8247 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8248 | #endif | |
8ab979d7 | 8249 | } |
cf694132 RD |
8250 | { |
8251 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8252 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 RD |
8253 | |
8254 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8255 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8256 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8257 | { |
8258 | if (_obj2) | |
8259 | delete _arg2; | |
8260 | } | |
8261 | return _resultobj; | |
8262 | } | |
8263 | ||
b1462dfa RD |
8264 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
8265 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8266 | PyObject * _resultobj; |
b1462dfa | 8267 | bool _result; |
8ab979d7 | 8268 | wxMenuBar * _arg0; |
b1462dfa RD |
8269 | size_t _arg1; |
8270 | wxMenu * _arg2; | |
8271 | wxString * _arg3; | |
1d99702e | 8272 | PyObject * _argo0 = 0; |
b1462dfa RD |
8273 | PyObject * _argo2 = 0; |
8274 | PyObject * _obj3 = 0; | |
8275 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
8276 | |
8277 | self = self; | |
b1462dfa | 8278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 8279 | return NULL; |
1d99702e RD |
8280 | if (_argo0) { |
8281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
8284 | return NULL; | |
8285 | } | |
8286 | } | |
8287 | if (_argo2) { | |
8288 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8289 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
8291 | return NULL; |
8292 | } | |
8293 | } | |
b1462dfa | 8294 | { |
185d7c3e RD |
8295 | #if PYTHON_API_VERSION >= 1009 |
8296 | char* tmpPtr; int tmpSize; | |
8297 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8298 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8299 | return NULL; |
8300 | } | |
8301 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8302 | return NULL; | |
8303 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8304 | #else | |
b1462dfa RD |
8305 | if (!PyString_Check(_obj3)) { |
8306 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8307 | return NULL; | |
8308 | } | |
185d7c3e RD |
8309 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8310 | #endif | |
b1462dfa | 8311 | } |
cf694132 RD |
8312 | { |
8313 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8314 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
8315 | |
8316 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8317 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8318 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
8319 | { |
8320 | if (_obj3) | |
8321 | delete _arg3; | |
8322 | } | |
8ab979d7 RD |
8323 | return _resultobj; |
8324 | } | |
8325 | ||
b1462dfa RD |
8326 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8327 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8328 | PyObject * _resultobj; |
b1462dfa | 8329 | size_t _result; |
8ab979d7 | 8330 | wxMenuBar * _arg0; |
1d99702e | 8331 | PyObject * _argo0 = 0; |
b1462dfa | 8332 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8333 | |
8334 | self = self; | |
b1462dfa | 8335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8336 | return NULL; |
1d99702e RD |
8337 | if (_argo0) { |
8338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8341 | return NULL; |
8342 | } | |
8343 | } | |
cf694132 RD |
8344 | { |
8345 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8346 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 RD |
8347 | |
8348 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8349 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8350 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8351 | return _resultobj; |
8352 | } | |
8353 | ||
b1462dfa RD |
8354 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8355 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8356 | PyObject * _resultobj; |
b1462dfa | 8357 | wxMenu * _result; |
06c0fba4 | 8358 | wxMenuBar * _arg0; |
b1462dfa | 8359 | size_t _arg1; |
06c0fba4 | 8360 | PyObject * _argo0 = 0; |
b1462dfa | 8361 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
8362 | |
8363 | self = self; | |
b1462dfa | 8364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8365 | return NULL; |
8366 | if (_argo0) { | |
8367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8370 | return NULL; |
8371 | } | |
8372 | } | |
8373 | { | |
8374 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8375 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 RD |
8376 | |
8377 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8378 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8379 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
8380 | return _resultobj; |
8381 | } | |
8382 | ||
2abc0a0f RD |
8383 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8384 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8385 | PyObject * _resultobj; | |
8386 | wxMenu * _result; | |
8387 | wxMenuBar * _arg0; | |
8388 | size_t _arg1; | |
8389 | wxMenu * _arg2; | |
8390 | wxString * _arg3; | |
8391 | PyObject * _argo0 = 0; | |
8392 | PyObject * _argo2 = 0; | |
8393 | PyObject * _obj3 = 0; | |
8394 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
8395 | |
8396 | self = self; | |
8397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8398 | return NULL; | |
8399 | if (_argo0) { | |
8400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8403 | return NULL; | |
8404 | } | |
8405 | } | |
8406 | if (_argo2) { | |
8407 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8408 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8410 | return NULL; | |
8411 | } | |
8412 | } | |
8413 | { | |
185d7c3e RD |
8414 | #if PYTHON_API_VERSION >= 1009 |
8415 | char* tmpPtr; int tmpSize; | |
8416 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8417 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8418 | return NULL; |
8419 | } | |
8420 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8421 | return NULL; | |
8422 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8423 | #else | |
2abc0a0f RD |
8424 | if (!PyString_Check(_obj3)) { |
8425 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8426 | return NULL; | |
8427 | } | |
185d7c3e RD |
8428 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8429 | #endif | |
2abc0a0f RD |
8430 | } |
8431 | { | |
8432 | wxPy_BEGIN_ALLOW_THREADS; | |
8433 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
8434 | ||
8435 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8436 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8437 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8438 | { |
8439 | if (_obj3) | |
8440 | delete _arg3; | |
8441 | } | |
8442 | return _resultobj; | |
8443 | } | |
8444 | ||
8445 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8446 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8447 | PyObject * _resultobj; | |
8448 | wxMenu * _result; | |
8449 | wxMenuBar * _arg0; | |
8450 | size_t _arg1; | |
8451 | PyObject * _argo0 = 0; | |
8452 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
8453 | |
8454 | self = self; | |
8455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8456 | return NULL; | |
8457 | if (_argo0) { | |
8458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8461 | return NULL; | |
8462 | } | |
8463 | } | |
8464 | { | |
8465 | wxPy_BEGIN_ALLOW_THREADS; | |
8466 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
8467 | ||
8468 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8469 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8470 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8471 | return _resultobj; |
8472 | } | |
8473 | ||
b1462dfa RD |
8474 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8475 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8476 | PyObject * _resultobj; |
b1462dfa RD |
8477 | wxMenuBar * _arg0; |
8478 | size_t _arg1; | |
8479 | bool _arg2; | |
8480 | PyObject * _argo0 = 0; | |
8481 | int tempbool2; | |
8482 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8483 | ||
8484 | self = self; | |
8485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8486 | return NULL; | |
8487 | if (_argo0) { | |
8488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8491 | return NULL; | |
8492 | } | |
8493 | } | |
8494 | _arg2 = (bool ) tempbool2; | |
8495 | { | |
8496 | wxPy_BEGIN_ALLOW_THREADS; | |
8497 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
8498 | ||
8499 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8500 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8501 | } Py_INCREF(Py_None); |
8502 | _resultobj = Py_None; | |
8503 | return _resultobj; | |
8504 | } | |
8505 | ||
8506 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8507 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8508 | PyObject * _resultobj; | |
8509 | wxMenuBar * _arg0; | |
8510 | size_t _arg1; | |
8511 | wxString * _arg2; | |
1d99702e | 8512 | PyObject * _argo0 = 0; |
cf694132 | 8513 | PyObject * _obj2 = 0; |
b1462dfa | 8514 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8515 | |
8516 | self = self; | |
b1462dfa | 8517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8518 | return NULL; |
1d99702e RD |
8519 | if (_argo0) { |
8520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8523 | return NULL; |
8524 | } | |
8525 | } | |
cf694132 | 8526 | { |
185d7c3e RD |
8527 | #if PYTHON_API_VERSION >= 1009 |
8528 | char* tmpPtr; int tmpSize; | |
8529 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8530 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8531 | return NULL; |
8532 | } | |
8533 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8534 | return NULL; | |
8535 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8536 | #else | |
cf694132 RD |
8537 | if (!PyString_Check(_obj2)) { |
8538 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8539 | return NULL; | |
8540 | } | |
185d7c3e RD |
8541 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8542 | #endif | |
cf694132 | 8543 | } |
cf694132 | 8544 | { |
b1462dfa RD |
8545 | wxPy_BEGIN_ALLOW_THREADS; |
8546 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
8547 | ||
8548 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8549 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8550 | } Py_INCREF(Py_None); |
8551 | _resultobj = Py_None; | |
8552 | { | |
8553 | if (_obj2) | |
8554 | delete _arg2; | |
8555 | } | |
8556 | return _resultobj; | |
8557 | } | |
8558 | ||
8559 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8560 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8561 | PyObject * _resultobj; | |
8562 | wxString * _result; | |
8563 | wxMenuBar * _arg0; | |
8564 | size_t _arg1; | |
8565 | PyObject * _argo0 = 0; | |
8566 | char *_kwnames[] = { "self","pos", NULL }; | |
8567 | ||
8568 | self = self; | |
8569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8570 | return NULL; | |
8571 | if (_argo0) { | |
8572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8575 | return NULL; | |
8576 | } | |
8577 | } | |
8578 | { | |
8579 | wxPy_BEGIN_ALLOW_THREADS; | |
8580 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
8581 | ||
8582 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8583 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8584 | }{ |
eec92d76 | 8585 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8586 | } |
8587 | { | |
8588 | delete _result; | |
8589 | } | |
8590 | return _resultobj; | |
8591 | } | |
8592 | ||
8593 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
8594 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8595 | PyObject * _resultobj; | |
8596 | int _result; | |
8597 | wxMenuBar * _arg0; | |
8598 | wxString * _arg1; | |
8599 | wxString * _arg2; | |
8600 | PyObject * _argo0 = 0; | |
8601 | PyObject * _obj1 = 0; | |
8602 | PyObject * _obj2 = 0; | |
8603 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8604 | ||
8605 | self = self; | |
8606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8607 | return NULL; | |
8608 | if (_argo0) { | |
8609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8612 | return NULL; | |
8613 | } | |
8614 | } | |
8615 | { | |
185d7c3e RD |
8616 | #if PYTHON_API_VERSION >= 1009 |
8617 | char* tmpPtr; int tmpSize; | |
8618 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8619 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8620 | return NULL; |
8621 | } | |
8622 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8623 | return NULL; | |
8624 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8625 | #else | |
b1462dfa | 8626 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
8627 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
8628 | return NULL; | |
8629 | } | |
185d7c3e RD |
8630 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8631 | #endif | |
cf694132 | 8632 | } |
b1462dfa | 8633 | { |
185d7c3e RD |
8634 | #if PYTHON_API_VERSION >= 1009 |
8635 | char* tmpPtr; int tmpSize; | |
8636 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8637 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8638 | return NULL; |
8639 | } | |
8640 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8641 | return NULL; | |
8642 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8643 | #else | |
b1462dfa RD |
8644 | if (!PyString_Check(_obj2)) { |
8645 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8646 | return NULL; | |
8647 | } | |
185d7c3e RD |
8648 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8649 | #endif | |
b1462dfa RD |
8650 | } |
8651 | { | |
8652 | wxPy_BEGIN_ALLOW_THREADS; | |
8653 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
8654 | ||
8655 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8656 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8657 | } _resultobj = Py_BuildValue("i",_result); |
8658 | { | |
8659 | if (_obj1) | |
8660 | delete _arg1; | |
8661 | } | |
8662 | { | |
8663 | if (_obj2) | |
8664 | delete _arg2; | |
8665 | } | |
8666 | return _resultobj; | |
8667 | } | |
8668 | ||
8669 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8670 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8671 | PyObject * _resultobj; | |
8672 | wxMenuItem * _result; | |
8673 | wxMenuBar * _arg0; | |
8674 | int _arg1; | |
8675 | PyObject * _argo0 = 0; | |
8676 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8677 | |
8678 | self = self; | |
8679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8680 | return NULL; | |
8681 | if (_argo0) { | |
8682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8685 | return NULL; |
8686 | } | |
8687 | } | |
8688 | { | |
8689 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8690 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 RD |
8691 | |
8692 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8693 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8694 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8695 | return _resultobj; |
cf694132 | 8696 | } |
b1462dfa RD |
8697 | |
8698 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8699 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8700 | PyObject * _resultobj; | |
8701 | wxMenuBar * _arg0; | |
8702 | int _arg1; | |
8703 | bool _arg2; | |
8704 | PyObject * _argo0 = 0; | |
8705 | int tempbool2; | |
8706 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8707 | ||
8708 | self = self; | |
8709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8710 | return NULL; | |
8711 | if (_argo0) { | |
8712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8715 | return NULL; | |
8716 | } | |
8717 | } | |
8718 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8719 | { |
b1462dfa RD |
8720 | wxPy_BEGIN_ALLOW_THREADS; |
8721 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8722 | ||
8723 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8724 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8725 | } Py_INCREF(Py_None); |
8726 | _resultobj = Py_None; | |
8727 | return _resultobj; | |
cf694132 | 8728 | } |
b1462dfa RD |
8729 | |
8730 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8731 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8732 | PyObject * _resultobj; | |
8733 | wxMenuBar * _arg0; | |
8734 | int _arg1; | |
8735 | bool _arg2; | |
8736 | PyObject * _argo0 = 0; | |
8737 | int tempbool2; | |
8738 | char *_kwnames[] = { "self","id","check", NULL }; | |
8739 | ||
8740 | self = self; | |
8741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8742 | return NULL; | |
8743 | if (_argo0) { | |
8744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8747 | return NULL; | |
8748 | } | |
8749 | } | |
8750 | _arg2 = (bool ) tempbool2; | |
8751 | { | |
8752 | wxPy_BEGIN_ALLOW_THREADS; | |
8753 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8754 | ||
8755 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8756 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8757 | } Py_INCREF(Py_None); |
8758 | _resultobj = Py_None; | |
cf694132 RD |
8759 | return _resultobj; |
8760 | } | |
8761 | ||
b1462dfa RD |
8762 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8763 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8764 | PyObject * _resultobj; |
8765 | bool _result; | |
b1462dfa RD |
8766 | wxMenuBar * _arg0; |
8767 | int _arg1; | |
1d99702e | 8768 | PyObject * _argo0 = 0; |
b1462dfa | 8769 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8770 | |
8771 | self = self; | |
b1462dfa | 8772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8773 | return NULL; |
1d99702e RD |
8774 | if (_argo0) { |
8775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8778 | return NULL; |
8779 | } | |
8780 | } | |
cf694132 RD |
8781 | { |
8782 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8783 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 RD |
8784 | |
8785 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8786 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8787 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8788 | return _resultobj; |
8789 | } | |
8790 | ||
b1462dfa RD |
8791 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8792 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8793 | PyObject * _resultobj; |
8794 | bool _result; | |
b1462dfa RD |
8795 | wxMenuBar * _arg0; |
8796 | int _arg1; | |
1d99702e | 8797 | PyObject * _argo0 = 0; |
b1462dfa | 8798 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8799 | |
8800 | self = self; | |
b1462dfa | 8801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8802 | return NULL; |
1d99702e RD |
8803 | if (_argo0) { |
8804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8807 | return NULL; |
8808 | } | |
8809 | } | |
cf694132 RD |
8810 | { |
8811 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8812 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 RD |
8813 | |
8814 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8815 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8816 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8817 | return _resultobj; |
8818 | } | |
8819 | ||
b1462dfa RD |
8820 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8821 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8822 | PyObject * _resultobj; |
b1462dfa RD |
8823 | wxMenuBar * _arg0; |
8824 | int _arg1; | |
8825 | wxString * _arg2; | |
1d99702e | 8826 | PyObject * _argo0 = 0; |
b1462dfa RD |
8827 | PyObject * _obj2 = 0; |
8828 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8829 | |
8830 | self = self; | |
b1462dfa | 8831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8832 | return NULL; |
1d99702e RD |
8833 | if (_argo0) { |
8834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8837 | return NULL; |
8838 | } | |
8839 | } | |
b1462dfa | 8840 | { |
185d7c3e RD |
8841 | #if PYTHON_API_VERSION >= 1009 |
8842 | char* tmpPtr; int tmpSize; | |
8843 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8844 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8845 | return NULL; |
8846 | } | |
8847 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8848 | return NULL; | |
8849 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8850 | #else | |
b1462dfa RD |
8851 | if (!PyString_Check(_obj2)) { |
8852 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8853 | return NULL; | |
8854 | } | |
185d7c3e RD |
8855 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8856 | #endif | |
b1462dfa | 8857 | } |
cf694132 RD |
8858 | { |
8859 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8860 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
8861 | |
8862 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8863 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8864 | } Py_INCREF(Py_None); |
8865 | _resultobj = Py_None; | |
8866 | { | |
8867 | if (_obj2) | |
8868 | delete _arg2; | |
8869 | } | |
8ab979d7 RD |
8870 | return _resultobj; |
8871 | } | |
8872 | ||
b1462dfa RD |
8873 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8874 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8875 | PyObject * _resultobj; |
b1462dfa RD |
8876 | wxString * _result; |
8877 | wxMenuBar * _arg0; | |
8878 | int _arg1; | |
1d99702e | 8879 | PyObject * _argo0 = 0; |
b1462dfa | 8880 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8881 | |
8882 | self = self; | |
b1462dfa | 8883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8884 | return NULL; |
1d99702e RD |
8885 | if (_argo0) { |
8886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
8889 | return NULL; | |
8890 | } | |
8891 | } | |
8892 | { | |
8893 | wxPy_BEGIN_ALLOW_THREADS; | |
8894 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
8895 | ||
8896 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8897 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8898 | }{ |
eec92d76 | 8899 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8900 | } |
8901 | { | |
8902 | delete _result; | |
8903 | } | |
8904 | return _resultobj; | |
8905 | } | |
8906 | ||
8907 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
8908 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8909 | PyObject * _resultobj; | |
8910 | wxMenuBar * _arg0; | |
8911 | int _arg1; | |
8912 | wxString * _arg2; | |
8913 | PyObject * _argo0 = 0; | |
8914 | PyObject * _obj2 = 0; | |
8915 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
8916 | ||
8917 | self = self; | |
8918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8919 | return NULL; | |
8920 | if (_argo0) { | |
8921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
8924 | return NULL; | |
8925 | } | |
8926 | } | |
8927 | { | |
185d7c3e RD |
8928 | #if PYTHON_API_VERSION >= 1009 |
8929 | char* tmpPtr; int tmpSize; | |
8930 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8931 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8932 | return NULL; |
8933 | } | |
8934 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8935 | return NULL; | |
8936 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8937 | #else | |
b1462dfa RD |
8938 | if (!PyString_Check(_obj2)) { |
8939 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8940 | return NULL; | |
8941 | } | |
185d7c3e RD |
8942 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8943 | #endif | |
b1462dfa RD |
8944 | } |
8945 | { | |
8946 | wxPy_BEGIN_ALLOW_THREADS; | |
8947 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
8948 | ||
8949 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8950 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8951 | } Py_INCREF(Py_None); |
8952 | _resultobj = Py_None; | |
8953 | { | |
8954 | if (_obj2) | |
8955 | delete _arg2; | |
8956 | } | |
8957 | return _resultobj; | |
8958 | } | |
8959 | ||
8960 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
8961 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8962 | PyObject * _resultobj; | |
8963 | wxString * _result; | |
8964 | wxMenuBar * _arg0; | |
8965 | int _arg1; | |
8966 | PyObject * _argo0 = 0; | |
8967 | char *_kwnames[] = { "self","id", NULL }; | |
8968 | ||
8969 | self = self; | |
8970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
8971 | return NULL; | |
8972 | if (_argo0) { | |
8973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8976 | return NULL; |
8977 | } | |
8978 | } | |
cf694132 RD |
8979 | { |
8980 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8981 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
8982 | |
8983 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8984 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8985 | }{ |
eec92d76 | 8986 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8987 | } |
8988 | { | |
8989 | delete _result; | |
8990 | } | |
8ab979d7 RD |
8991 | return _resultobj; |
8992 | } | |
8993 | ||
9416aa89 RD |
8994 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
8995 | wxMenuItem *src; | |
8996 | wxObject *dest; | |
8997 | src = (wxMenuItem *) ptr; | |
8998 | dest = (wxObject *) src; | |
8999 | return (void *) dest; | |
9000 | } | |
9001 | ||
b1462dfa RD |
9002 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
9003 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9004 | PyObject * _resultobj; |
b1462dfa RD |
9005 | wxMenuItem * _result; |
9006 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 9007 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
9008 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
9009 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
9010 | bool _arg4 = (bool ) FALSE; | |
9011 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 9012 | PyObject * _argo0 = 0; |
b1462dfa RD |
9013 | PyObject * _obj2 = 0; |
9014 | PyObject * _obj3 = 0; | |
9015 | int tempbool4 = (int) FALSE; | |
9016 | PyObject * _argo5 = 0; | |
9017 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
9018 | char _ptemp[128]; | |
8ab979d7 RD |
9019 | |
9020 | self = self; | |
b1462dfa | 9021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 9022 | return NULL; |
1d99702e RD |
9023 | if (_argo0) { |
9024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9027 | return NULL; | |
9028 | } | |
9029 | } | |
9030 | if (_obj2) | |
9031 | { | |
185d7c3e RD |
9032 | #if PYTHON_API_VERSION >= 1009 |
9033 | char* tmpPtr; int tmpSize; | |
9034 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9035 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9036 | return NULL; |
9037 | } | |
9038 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9039 | return NULL; | |
9040 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9041 | #else | |
b1462dfa RD |
9042 | if (!PyString_Check(_obj2)) { |
9043 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9044 | return NULL; | |
9045 | } | |
185d7c3e RD |
9046 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9047 | #endif | |
b1462dfa RD |
9048 | } |
9049 | if (_obj3) | |
9050 | { | |
185d7c3e RD |
9051 | #if PYTHON_API_VERSION >= 1009 |
9052 | char* tmpPtr; int tmpSize; | |
9053 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 9054 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9055 | return NULL; |
9056 | } | |
9057 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9058 | return NULL; | |
9059 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9060 | #else | |
b1462dfa RD |
9061 | if (!PyString_Check(_obj3)) { |
9062 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9063 | return NULL; | |
9064 | } | |
185d7c3e RD |
9065 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
9066 | #endif | |
b1462dfa RD |
9067 | } |
9068 | _arg4 = (bool ) tempbool4; | |
9069 | if (_argo5) { | |
9070 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9071 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
9073 | return NULL; |
9074 | } | |
9075 | } | |
cf694132 RD |
9076 | { |
9077 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9078 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 RD |
9079 | |
9080 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9081 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9082 | } if (_result) { |
9083 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9084 | _resultobj = Py_BuildValue("s",_ptemp); | |
9085 | } else { | |
9086 | Py_INCREF(Py_None); | |
9087 | _resultobj = Py_None; | |
9088 | } | |
9089 | { | |
9090 | if (_obj2) | |
9091 | delete _arg2; | |
9092 | } | |
9093 | { | |
9094 | if (_obj3) | |
9095 | delete _arg3; | |
9096 | } | |
8ab979d7 RD |
9097 | return _resultobj; |
9098 | } | |
9099 | ||
b1462dfa RD |
9100 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
9101 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9102 | PyObject * _resultobj; |
b1462dfa | 9103 | wxMenu * _result; |
8ab979d7 | 9104 | wxMenuItem * _arg0; |
1d99702e | 9105 | PyObject * _argo0 = 0; |
efc5f224 | 9106 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9107 | |
9108 | self = self; | |
b1462dfa | 9109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 9110 | return NULL; |
1d99702e RD |
9111 | if (_argo0) { |
9112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9115 | return NULL; |
9116 | } | |
9117 | } | |
cf694132 RD |
9118 | { |
9119 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9120 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 RD |
9121 | |
9122 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9123 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9124 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9125 | return _resultobj; |
9126 | } | |
9127 | ||
2abc0a0f RD |
9128 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
9129 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9130 | PyObject * _resultobj; |
9131 | wxMenuItem * _arg0; | |
2abc0a0f | 9132 | int _arg1; |
1d99702e | 9133 | PyObject * _argo0 = 0; |
2abc0a0f | 9134 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9135 | |
9136 | self = self; | |
2abc0a0f | 9137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9138 | return NULL; |
1d99702e RD |
9139 | if (_argo0) { |
9140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 9142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9143 | return NULL; |
9144 | } | |
9145 | } | |
cf694132 RD |
9146 | { |
9147 | wxPy_BEGIN_ALLOW_THREADS; | |
2abc0a0f | 9148 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 RD |
9149 | |
9150 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9151 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9152 | } Py_INCREF(Py_None); |
8ab979d7 | 9153 | _resultobj = Py_None; |
8ab979d7 RD |
9154 | return _resultobj; |
9155 | } | |
9156 | ||
b1462dfa RD |
9157 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
9158 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9159 | PyObject * _resultobj; |
b1462dfa | 9160 | int _result; |
8ab979d7 | 9161 | wxMenuItem * _arg0; |
1d99702e | 9162 | PyObject * _argo0 = 0; |
efc5f224 | 9163 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9164 | |
9165 | self = self; | |
b1462dfa | 9166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 9167 | return NULL; |
1d99702e RD |
9168 | if (_argo0) { |
9169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9172 | return NULL; |
9173 | } | |
9174 | } | |
8ab979d7 | 9175 | { |
cf694132 | 9176 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9177 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 RD |
9178 | |
9179 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9180 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9181 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9182 | return _resultobj; |
9183 | } | |
9184 | ||
b1462dfa RD |
9185 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
9186 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9187 | PyObject * _resultobj; |
b1462dfa | 9188 | bool _result; |
8ab979d7 | 9189 | wxMenuItem * _arg0; |
1d99702e | 9190 | PyObject * _argo0 = 0; |
efc5f224 | 9191 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9192 | |
9193 | self = self; | |
b1462dfa | 9194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 9195 | return NULL; |
1d99702e RD |
9196 | if (_argo0) { |
9197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9200 | return NULL; |
9201 | } | |
9202 | } | |
8ab979d7 | 9203 | { |
cf694132 | 9204 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9205 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 RD |
9206 | |
9207 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9208 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9209 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9210 | return _resultobj; |
9211 | } | |
9212 | ||
b1462dfa RD |
9213 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
9214 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9215 | PyObject * _resultobj; |
9216 | wxMenuItem * _arg0; | |
9217 | wxString * _arg1; | |
1d99702e | 9218 | PyObject * _argo0 = 0; |
8ab979d7 | 9219 | PyObject * _obj1 = 0; |
b1462dfa | 9220 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
9221 | |
9222 | self = self; | |
b1462dfa | 9223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9224 | return NULL; |
1d99702e RD |
9225 | if (_argo0) { |
9226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9229 | return NULL; |
9230 | } | |
9231 | } | |
9232 | { | |
185d7c3e RD |
9233 | #if PYTHON_API_VERSION >= 1009 |
9234 | char* tmpPtr; int tmpSize; | |
9235 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9236 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9237 | return NULL; |
9238 | } | |
9239 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9240 | return NULL; | |
9241 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9242 | #else | |
8ab979d7 RD |
9243 | if (!PyString_Check(_obj1)) { |
9244 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9245 | return NULL; | |
9246 | } | |
185d7c3e RD |
9247 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9248 | #endif | |
8ab979d7 | 9249 | } |
cf694132 RD |
9250 | { |
9251 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9252 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 RD |
9253 | |
9254 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9255 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9256 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9257 | _resultobj = Py_None; |
9258 | { | |
9259 | if (_obj1) | |
9260 | delete _arg1; | |
9261 | } | |
9262 | return _resultobj; | |
9263 | } | |
9264 | ||
b1462dfa RD |
9265 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
9266 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9267 | PyObject * _resultobj; |
b1462dfa | 9268 | wxString * _result; |
8ab979d7 | 9269 | wxMenuItem * _arg0; |
1d99702e | 9270 | PyObject * _argo0 = 0; |
b1462dfa | 9271 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9272 | |
9273 | self = self; | |
b1462dfa | 9274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 9275 | return NULL; |
1d99702e RD |
9276 | if (_argo0) { |
9277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9280 | return NULL; |
9281 | } | |
9282 | } | |
cf694132 RD |
9283 | { |
9284 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9285 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 RD |
9286 | |
9287 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9288 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9289 | }{ |
eec92d76 | 9290 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 9291 | } |
cf694132 | 9292 | { |
b1462dfa RD |
9293 | delete _result; |
9294 | } | |
cf694132 RD |
9295 | return _resultobj; |
9296 | } | |
9297 | ||
b1462dfa RD |
9298 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
9299 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9300 | PyObject * _resultobj; |
b1462dfa | 9301 | wxString * _result; |
cf694132 | 9302 | wxMenuItem * _arg0; |
1d99702e | 9303 | PyObject * _argo0 = 0; |
efc5f224 | 9304 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9305 | |
9306 | self = self; | |
b1462dfa | 9307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 9308 | return NULL; |
1d99702e RD |
9309 | if (_argo0) { |
9310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9313 | return NULL; |
9314 | } | |
9315 | } | |
9316 | { | |
9317 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9318 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
9319 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9320 | |
9321 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9322 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9323 | }{ |
eec92d76 | 9324 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 9325 | } |
cf694132 RD |
9326 | return _resultobj; |
9327 | } | |
9328 | ||
b1462dfa RD |
9329 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9330 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9331 | PyObject * _resultobj; |
cf694132 | 9332 | wxMenuItem * _arg0; |
b1462dfa | 9333 | bool _arg1; |
1d99702e | 9334 | PyObject * _argo0 = 0; |
b1462dfa RD |
9335 | int tempbool1; |
9336 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9337 | |
9338 | self = self; | |
b1462dfa | 9339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9340 | return NULL; |
1d99702e RD |
9341 | if (_argo0) { |
9342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9345 | return NULL; |
9346 | } | |
9347 | } | |
b1462dfa | 9348 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9349 | { |
9350 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9351 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 RD |
9352 | |
9353 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9354 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9355 | } Py_INCREF(Py_None); |
9356 | _resultobj = Py_None; | |
cf694132 RD |
9357 | return _resultobj; |
9358 | } | |
9359 | ||
b1462dfa RD |
9360 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9361 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9362 | PyObject * _resultobj; |
b1462dfa | 9363 | bool _result; |
cf694132 | 9364 | wxMenuItem * _arg0; |
1d99702e | 9365 | PyObject * _argo0 = 0; |
efc5f224 | 9366 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9367 | |
9368 | self = self; | |
b1462dfa | 9369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9370 | return NULL; |
1d99702e RD |
9371 | if (_argo0) { |
9372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9375 | return NULL; |
9376 | } | |
9377 | } | |
9378 | { | |
9379 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9380 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 RD |
9381 | |
9382 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9383 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9384 | } _resultobj = Py_BuildValue("i",_result); |
9385 | return _resultobj; | |
9386 | } | |
9387 | ||
b1462dfa RD |
9388 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9389 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9390 | PyObject * _resultobj; |
b1462dfa | 9391 | bool _result; |
cf694132 | 9392 | wxMenuItem * _arg0; |
1d99702e | 9393 | PyObject * _argo0 = 0; |
efc5f224 | 9394 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9395 | |
9396 | self = self; | |
b1462dfa | 9397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9398 | return NULL; |
1d99702e RD |
9399 | if (_argo0) { |
9400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9403 | return NULL; |
9404 | } | |
9405 | } | |
9406 | { | |
9407 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9408 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 RD |
9409 | |
9410 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9411 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9412 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9413 | return _resultobj; |
9414 | } | |
9415 | ||
b1462dfa RD |
9416 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9417 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9418 | PyObject * _resultobj; |
9419 | wxMenuItem * _arg0; | |
b1462dfa | 9420 | wxMenu * _arg1; |
1d99702e RD |
9421 | PyObject * _argo0 = 0; |
9422 | PyObject * _argo1 = 0; | |
b1462dfa | 9423 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9424 | |
9425 | self = self; | |
b1462dfa | 9426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9427 | return NULL; |
1d99702e RD |
9428 | if (_argo0) { |
9429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9432 | return NULL; |
9433 | } | |
9434 | } | |
1d99702e RD |
9435 | if (_argo1) { |
9436 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9437 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9439 | return NULL; |
9440 | } | |
9441 | } | |
9442 | { | |
9443 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9444 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 RD |
9445 | |
9446 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9447 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9448 | } Py_INCREF(Py_None); |
9449 | _resultobj = Py_None; | |
9450 | return _resultobj; | |
9451 | } | |
9452 | ||
b1462dfa RD |
9453 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9454 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9455 | PyObject * _resultobj; |
b1462dfa | 9456 | wxMenu * _result; |
cf694132 | 9457 | wxMenuItem * _arg0; |
1d99702e | 9458 | PyObject * _argo0 = 0; |
b1462dfa | 9459 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9460 | |
9461 | self = self; | |
b1462dfa | 9462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 9463 | return NULL; |
1d99702e RD |
9464 | if (_argo0) { |
9465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9468 | return NULL; |
9469 | } | |
9470 | } | |
b1462dfa RD |
9471 | { |
9472 | wxPy_BEGIN_ALLOW_THREADS; | |
9473 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
9474 | ||
9475 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9476 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9477 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
9478 | return _resultobj; |
9479 | } | |
9480 | ||
9481 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9482 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9483 | PyObject * _resultobj; | |
9484 | wxMenuItem * _arg0; | |
9485 | bool _arg1 = (bool ) TRUE; | |
9486 | PyObject * _argo0 = 0; | |
9487 | int tempbool1 = (int) TRUE; | |
9488 | char *_kwnames[] = { "self","enable", NULL }; | |
9489 | ||
9490 | self = self; | |
9491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9492 | return NULL; | |
9493 | if (_argo0) { | |
9494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
9497 | return NULL; |
9498 | } | |
9499 | } | |
b1462dfa | 9500 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9501 | { |
9502 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9503 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 RD |
9504 | |
9505 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9506 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9507 | } Py_INCREF(Py_None); |
9508 | _resultobj = Py_None; | |
9509 | return _resultobj; | |
9510 | } | |
9511 | ||
b1462dfa RD |
9512 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9513 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9514 | PyObject * _resultobj; |
b1462dfa | 9515 | bool _result; |
cf694132 | 9516 | wxMenuItem * _arg0; |
1d99702e | 9517 | PyObject * _argo0 = 0; |
b1462dfa | 9518 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9519 | |
9520 | self = self; | |
b1462dfa | 9521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9522 | return NULL; |
1d99702e RD |
9523 | if (_argo0) { |
9524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
9527 | return NULL; |
9528 | } | |
9529 | } | |
9530 | { | |
9531 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9532 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 RD |
9533 | |
9534 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9535 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9536 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9537 | return _resultobj; |
9538 | } | |
9539 | ||
b1462dfa RD |
9540 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
9541 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9542 | PyObject * _resultobj; |
9543 | wxMenuItem * _arg0; | |
b1462dfa | 9544 | bool _arg1 = (bool ) TRUE; |
1d99702e | 9545 | PyObject * _argo0 = 0; |
b1462dfa RD |
9546 | int tempbool1 = (int) TRUE; |
9547 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
9548 | |
9549 | self = self; | |
b1462dfa | 9550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9551 | return NULL; |
1d99702e RD |
9552 | if (_argo0) { |
9553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
9556 | return NULL; |
9557 | } | |
9558 | } | |
b1462dfa | 9559 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9560 | { |
9561 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9562 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 RD |
9563 | |
9564 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9565 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9566 | } Py_INCREF(Py_None); |
9567 | _resultobj = Py_None; | |
9568 | return _resultobj; | |
9569 | } | |
9570 | ||
b1462dfa RD |
9571 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
9572 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9573 | PyObject * _resultobj; |
b1462dfa | 9574 | bool _result; |
2abc0a0f | 9575 | wxMenuItem * _arg0; |
2abc0a0f | 9576 | PyObject * _argo0 = 0; |
b1462dfa | 9577 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
9578 | |
9579 | self = self; | |
b1462dfa | 9580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
9581 | return NULL; |
9582 | if (_argo0) { | |
9583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9586 | return NULL; |
9587 | } | |
9588 | } | |
2abc0a0f RD |
9589 | { |
9590 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9591 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f RD |
9592 | |
9593 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9594 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9595 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
9596 | return _resultobj; |
9597 | } | |
9598 | ||
b1462dfa RD |
9599 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
9600 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9601 | PyObject * _resultobj; |
2abc0a0f RD |
9602 | wxMenuItem * _arg0; |
9603 | PyObject * _argo0 = 0; | |
9604 | char *_kwnames[] = { "self", NULL }; | |
9605 | ||
9606 | self = self; | |
b1462dfa | 9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
9608 | return NULL; |
9609 | if (_argo0) { | |
9610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9613 | return NULL; |
9614 | } | |
9615 | } | |
9616 | { | |
9617 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9618 | wxMenuItem_Toggle(_arg0); |
2abc0a0f RD |
9619 | |
9620 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9621 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9622 | } Py_INCREF(Py_None); |
9623 | _resultobj = Py_None; | |
2abc0a0f RD |
9624 | return _resultobj; |
9625 | } | |
9626 | ||
b1462dfa RD |
9627 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
9628 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9629 | PyObject * _resultobj; |
9630 | wxMenuItem * _arg0; | |
b1462dfa | 9631 | wxString * _arg1; |
1d99702e | 9632 | PyObject * _argo0 = 0; |
b1462dfa RD |
9633 | PyObject * _obj1 = 0; |
9634 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
9635 | |
9636 | self = self; | |
b1462dfa | 9637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 9638 | return NULL; |
1d99702e RD |
9639 | if (_argo0) { |
9640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
9643 | return NULL; |
9644 | } | |
9645 | } | |
b1462dfa | 9646 | { |
185d7c3e RD |
9647 | #if PYTHON_API_VERSION >= 1009 |
9648 | char* tmpPtr; int tmpSize; | |
9649 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9650 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9651 | return NULL; |
9652 | } | |
9653 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9654 | return NULL; | |
9655 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9656 | #else | |
b1462dfa RD |
9657 | if (!PyString_Check(_obj1)) { |
9658 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 9659 | return NULL; |
cf694132 | 9660 | } |
185d7c3e RD |
9661 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9662 | #endif | |
b1462dfa | 9663 | } |
cf694132 RD |
9664 | { |
9665 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9666 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 RD |
9667 | |
9668 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9669 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9670 | } Py_INCREF(Py_None); |
8ab979d7 | 9671 | _resultobj = Py_None; |
b1462dfa RD |
9672 | { |
9673 | if (_obj1) | |
9674 | delete _arg1; | |
9675 | } | |
8ab979d7 RD |
9676 | return _resultobj; |
9677 | } | |
9678 | ||
b1462dfa RD |
9679 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
9680 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 9681 | PyObject * _resultobj; |
b1462dfa | 9682 | wxString * _result; |
be4d9c1f | 9683 | wxMenuItem * _arg0; |
1d99702e | 9684 | PyObject * _argo0 = 0; |
efc5f224 | 9685 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
9686 | |
9687 | self = self; | |
b1462dfa | 9688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 9689 | return NULL; |
1d99702e RD |
9690 | if (_argo0) { |
9691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
9694 | return NULL; |
9695 | } | |
9696 | } | |
cf694132 RD |
9697 | { |
9698 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9699 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
9700 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9701 | |
9702 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9703 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9704 | }{ |
eec92d76 | 9705 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 9706 | } |
be4d9c1f RD |
9707 | return _resultobj; |
9708 | } | |
9709 | ||
b1462dfa RD |
9710 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
9711 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9712 | PyObject * _resultobj; |
b1462dfa | 9713 | wxAcceleratorEntry * _result; |
2abc0a0f | 9714 | wxMenuItem * _arg0; |
2abc0a0f | 9715 | PyObject * _argo0 = 0; |
b1462dfa RD |
9716 | char *_kwnames[] = { "self", NULL }; |
9717 | char _ptemp[128]; | |
2abc0a0f RD |
9718 | |
9719 | self = self; | |
b1462dfa | 9720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
9721 | return NULL; |
9722 | if (_argo0) { | |
9723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9726 | return NULL; |
9727 | } | |
9728 | } | |
2abc0a0f RD |
9729 | { |
9730 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9731 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f RD |
9732 | |
9733 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9734 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9735 | } if (_result) { |
9736 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9737 | _resultobj = Py_BuildValue("s",_ptemp); | |
9738 | } else { | |
9739 | Py_INCREF(Py_None); | |
9740 | _resultobj = Py_None; | |
9741 | } | |
2abc0a0f RD |
9742 | return _resultobj; |
9743 | } | |
9744 | ||
b1462dfa RD |
9745 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9746 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9747 | PyObject * _resultobj; |
9748 | wxMenuItem * _arg0; | |
b1462dfa | 9749 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9750 | PyObject * _argo0 = 0; |
9751 | PyObject * _argo1 = 0; | |
b1462dfa | 9752 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9753 | |
9754 | self = self; | |
b1462dfa | 9755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9756 | return NULL; |
9757 | if (_argo0) { | |
9758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9761 | return NULL; |
9762 | } | |
9763 | } | |
9764 | if (_argo1) { | |
9765 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9766 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
9767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
9768 | return NULL; |
9769 | } | |
9770 | } | |
9771 | { | |
9772 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9773 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f RD |
9774 | |
9775 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9776 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
9777 | } Py_INCREF(Py_None); |
9778 | _resultobj = Py_None; | |
9779 | return _resultobj; | |
9780 | } | |
9781 | ||
1b62f00d RD |
9782 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9783 | PyObject * _resultobj; | |
9784 | wxString * _result; | |
9785 | wxString * _arg0; | |
9786 | PyObject * _obj0 = 0; | |
9787 | char *_kwnames[] = { "text", NULL }; | |
9788 | ||
9789 | self = self; | |
9790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
9791 | return NULL; | |
9792 | { | |
9793 | #if PYTHON_API_VERSION >= 1009 | |
9794 | char* tmpPtr; int tmpSize; | |
9795 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 9796 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
9797 | return NULL; |
9798 | } | |
9799 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9800 | return NULL; | |
9801 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9802 | #else | |
9803 | if (!PyString_Check(_obj0)) { | |
9804 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9805 | return NULL; | |
9806 | } | |
9807 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9808 | #endif | |
9809 | } | |
9810 | { | |
9811 | wxPy_BEGIN_ALLOW_THREADS; | |
9812 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); | |
9813 | ||
9814 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9815 | if (PyErr_Occurred()) return NULL; |
1b62f00d RD |
9816 | }{ |
9817 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9818 | } | |
9819 | { | |
9820 | if (_obj0) | |
9821 | delete _arg0; | |
9822 | } | |
9823 | { | |
9824 | delete _result; | |
9825 | } | |
9826 | return _resultobj; | |
9827 | } | |
9828 | ||
f3d9dc1d RD |
9829 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
9830 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9831 | PyObject * _resultobj; | |
9832 | wxMenuItem * _arg0; | |
9833 | wxFont * _arg1; | |
9834 | PyObject * _argo0 = 0; | |
9835 | PyObject * _argo1 = 0; | |
9836 | char *_kwnames[] = { "self","font", NULL }; | |
9837 | ||
9838 | self = self; | |
9839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
9840 | return NULL; | |
9841 | if (_argo0) { | |
9842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p."); | |
9845 | return NULL; | |
9846 | } | |
9847 | } | |
9848 | if (_argo1) { | |
9849 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9850 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
9851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); | |
9852 | return NULL; | |
9853 | } | |
9854 | } | |
9855 | { | |
9856 | wxPy_BEGIN_ALLOW_THREADS; | |
9857 | wxMenuItem_SetFont(_arg0,*_arg1); | |
9858 | ||
9859 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9860 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
9861 | } Py_INCREF(Py_None); |
9862 | _resultobj = Py_None; | |
9863 | return _resultobj; | |
9864 | } | |
9865 | ||
9866 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
9867 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9868 | PyObject * _resultobj; | |
9869 | wxFont * _result; | |
9870 | wxMenuItem * _arg0; | |
9871 | PyObject * _argo0 = 0; | |
9872 | char *_kwnames[] = { "self", NULL }; | |
9873 | char _ptemp[128]; | |
9874 | ||
9875 | self = self; | |
9876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0)) | |
9877 | return NULL; | |
9878 | if (_argo0) { | |
9879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p."); | |
9882 | return NULL; | |
9883 | } | |
9884 | } | |
9885 | { | |
9886 | wxPy_BEGIN_ALLOW_THREADS; | |
9887 | wxFont & _result_ref = wxMenuItem_GetFont(_arg0); | |
9888 | _result = (wxFont *) &_result_ref; | |
9889 | ||
9890 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9891 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
9892 | } if (_result) { |
9893 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
9894 | _resultobj = Py_BuildValue("s",_ptemp); | |
9895 | } else { | |
9896 | Py_INCREF(Py_None); | |
9897 | _resultobj = Py_None; | |
9898 | } | |
9899 | return _resultobj; | |
9900 | } | |
9901 | ||
9902 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
9903 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9904 | PyObject * _resultobj; | |
9905 | wxMenuItem * _arg0; | |
9906 | wxColour * _arg1; | |
9907 | PyObject * _argo0 = 0; | |
9908 | wxColour temp; | |
9909 | PyObject * _obj1 = 0; | |
9910 | char *_kwnames[] = { "self","colText", NULL }; | |
9911 | ||
9912 | self = self; | |
9913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
9914 | return NULL; | |
9915 | if (_argo0) { | |
9916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
9919 | return NULL; | |
9920 | } | |
9921 | } | |
9922 | { | |
9923 | _arg1 = &temp; | |
9924 | if (! wxColour_helper(_obj1, &_arg1)) | |
9925 | return NULL; | |
9926 | } | |
9927 | { | |
9928 | wxPy_BEGIN_ALLOW_THREADS; | |
9929 | wxMenuItem_SetTextColour(_arg0,*_arg1); | |
9930 | ||
9931 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9932 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
9933 | } Py_INCREF(Py_None); |
9934 | _resultobj = Py_None; | |
9935 | return _resultobj; | |
9936 | } | |
9937 | ||
9938 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
9939 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9940 | PyObject * _resultobj; | |
9941 | wxColour * _result; | |
9942 | wxMenuItem * _arg0; | |
9943 | PyObject * _argo0 = 0; | |
9944 | char *_kwnames[] = { "self", NULL }; | |
9945 | char _ptemp[128]; | |
9946 | ||
9947 | self = self; | |
9948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
9949 | return NULL; | |
9950 | if (_argo0) { | |
9951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p."); | |
9954 | return NULL; | |
9955 | } | |
9956 | } | |
9957 | { | |
9958 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 9959 | _result = new wxColour (wxMenuItem_GetTextColour(_arg0)); |
f3d9dc1d RD |
9960 | |
9961 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9962 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
9963 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
9964 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
9965 | return _resultobj; |
9966 | } | |
9967 | ||
9968 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
9969 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9970 | PyObject * _resultobj; | |
9971 | wxMenuItem * _arg0; | |
9972 | wxColour * _arg1; | |
9973 | PyObject * _argo0 = 0; | |
9974 | wxColour temp; | |
9975 | PyObject * _obj1 = 0; | |
9976 | char *_kwnames[] = { "self","colBack", NULL }; | |
9977 | ||
9978 | self = self; | |
9979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
9980 | return NULL; | |
9981 | if (_argo0) { | |
9982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
9985 | return NULL; | |
9986 | } | |
9987 | } | |
9988 | { | |
9989 | _arg1 = &temp; | |
9990 | if (! wxColour_helper(_obj1, &_arg1)) | |
9991 | return NULL; | |
9992 | } | |
9993 | { | |
9994 | wxPy_BEGIN_ALLOW_THREADS; | |
9995 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); | |
9996 | ||
9997 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9998 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
9999 | } Py_INCREF(Py_None); |
10000 | _resultobj = Py_None; | |
10001 | return _resultobj; | |
10002 | } | |
10003 | ||
10004 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
10005 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10006 | PyObject * _resultobj; | |
10007 | wxColour * _result; | |
10008 | wxMenuItem * _arg0; | |
10009 | PyObject * _argo0 = 0; | |
10010 | char *_kwnames[] = { "self", NULL }; | |
10011 | char _ptemp[128]; | |
10012 | ||
10013 | self = self; | |
10014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
10015 | return NULL; | |
10016 | if (_argo0) { | |
10017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
10020 | return NULL; | |
10021 | } | |
10022 | } | |
10023 | { | |
10024 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 10025 | _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0)); |
f3d9dc1d RD |
10026 | |
10027 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10028 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
10029 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
10030 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10031 | return _resultobj; |
10032 | } | |
10033 | ||
10034 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
10035 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10036 | PyObject * _resultobj; | |
10037 | wxMenuItem * _arg0; | |
10038 | wxBitmap * _arg1; | |
10039 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
10040 | PyObject * _argo0 = 0; | |
10041 | PyObject * _argo1 = 0; | |
10042 | PyObject * _argo2 = 0; | |
10043 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
10044 | ||
10045 | self = self; | |
10046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
10047 | return NULL; | |
10048 | if (_argo0) { | |
10049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
10052 | return NULL; | |
10053 | } | |
10054 | } | |
10055 | if (_argo1) { | |
10056 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10057 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10059 | return NULL; | |
10060 | } | |
10061 | } | |
10062 | if (_argo2) { | |
10063 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10064 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10066 | return NULL; | |
10067 | } | |
10068 | } | |
10069 | { | |
10070 | wxPy_BEGIN_ALLOW_THREADS; | |
10071 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); | |
10072 | ||
10073 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10074 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10075 | } Py_INCREF(Py_None); |
10076 | _resultobj = Py_None; | |
10077 | return _resultobj; | |
10078 | } | |
10079 | ||
10080 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
10081 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10082 | PyObject * _resultobj; | |
10083 | wxMenuItem * _arg0; | |
10084 | wxBitmap * _arg1; | |
10085 | PyObject * _argo0 = 0; | |
10086 | PyObject * _argo1 = 0; | |
10087 | char *_kwnames[] = { "self","bmpChecked", NULL }; | |
10088 | ||
10089 | self = self; | |
10090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
10091 | return NULL; | |
10092 | if (_argo0) { | |
10093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
10096 | return NULL; | |
10097 | } | |
10098 | } | |
10099 | if (_argo1) { | |
10100 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10101 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); | |
10103 | return NULL; | |
10104 | } | |
10105 | } | |
10106 | { | |
10107 | wxPy_BEGIN_ALLOW_THREADS; | |
10108 | wxMenuItem_SetBitmap(_arg0,*_arg1); | |
10109 | ||
10110 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10111 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10112 | } Py_INCREF(Py_None); |
10113 | _resultobj = Py_None; | |
10114 | return _resultobj; | |
10115 | } | |
10116 | ||
10117 | #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0)) | |
10118 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10119 | PyObject * _resultobj; | |
10120 | wxBitmap * _result; | |
10121 | wxMenuItem * _arg0; | |
10122 | bool _arg1 = (bool ) TRUE; | |
10123 | PyObject * _argo0 = 0; | |
10124 | int tempbool1 = (int) TRUE; | |
10125 | char *_kwnames[] = { "self","bChecked", NULL }; | |
10126 | char _ptemp[128]; | |
10127 | ||
10128 | self = self; | |
10129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1)) | |
10130 | return NULL; | |
10131 | if (_argo0) { | |
10132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
10135 | return NULL; | |
10136 | } | |
10137 | } | |
10138 | _arg1 = (bool ) tempbool1; | |
10139 | { | |
10140 | wxPy_BEGIN_ALLOW_THREADS; | |
10141 | const wxBitmap & _result_ref = wxMenuItem_GetBitmap(_arg0,_arg1); | |
10142 | _result = (wxBitmap *) &_result_ref; | |
10143 | ||
10144 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10145 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10146 | } if (_result) { |
10147 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
10148 | _resultobj = Py_BuildValue("s",_ptemp); | |
10149 | } else { | |
10150 | Py_INCREF(Py_None); | |
10151 | _resultobj = Py_None; | |
10152 | } | |
10153 | return _resultobj; | |
10154 | } | |
10155 | ||
10156 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) | |
10157 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10158 | PyObject * _resultobj; | |
10159 | wxMenuItem * _arg0; | |
10160 | int _arg1; | |
10161 | PyObject * _argo0 = 0; | |
10162 | char *_kwnames[] = { "self","nWidth", NULL }; | |
10163 | ||
10164 | self = self; | |
10165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
10166 | return NULL; | |
10167 | if (_argo0) { | |
10168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
10171 | return NULL; | |
10172 | } | |
10173 | } | |
10174 | { | |
10175 | wxPy_BEGIN_ALLOW_THREADS; | |
10176 | wxMenuItem_SetMarginWidth(_arg0,_arg1); | |
10177 | ||
10178 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10179 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10180 | } Py_INCREF(Py_None); |
10181 | _resultobj = Py_None; | |
10182 | return _resultobj; | |
10183 | } | |
10184 | ||
10185 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
10186 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10187 | PyObject * _resultobj; | |
10188 | int _result; | |
10189 | wxMenuItem * _arg0; | |
10190 | PyObject * _argo0 = 0; | |
10191 | char *_kwnames[] = { "self", NULL }; | |
10192 | ||
10193 | self = self; | |
10194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
10195 | return NULL; | |
10196 | if (_argo0) { | |
10197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
10200 | return NULL; | |
10201 | } | |
10202 | } | |
10203 | { | |
10204 | wxPy_BEGIN_ALLOW_THREADS; | |
10205 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); | |
10206 | ||
10207 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10208 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10209 | } _resultobj = Py_BuildValue("i",_result); |
10210 | return _resultobj; | |
10211 | } | |
10212 | ||
10213 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10214 | PyObject * _resultobj; | |
10215 | int _result; | |
10216 | char *_kwnames[] = { NULL }; | |
10217 | ||
10218 | self = self; | |
10219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
10220 | return NULL; | |
10221 | { | |
10222 | wxPy_BEGIN_ALLOW_THREADS; | |
10223 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); | |
10224 | ||
10225 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10226 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10227 | } _resultobj = Py_BuildValue("i",_result); |
10228 | return _resultobj; | |
10229 | } | |
10230 | ||
10231 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
10232 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10233 | PyObject * _resultobj; | |
10234 | bool _result; | |
10235 | wxMenuItem * _arg0; | |
10236 | PyObject * _argo0 = 0; | |
10237 | char *_kwnames[] = { "self", NULL }; | |
10238 | ||
10239 | self = self; | |
10240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
10241 | return NULL; | |
10242 | if (_argo0) { | |
10243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
10246 | return NULL; | |
10247 | } | |
10248 | } | |
10249 | { | |
10250 | wxPy_BEGIN_ALLOW_THREADS; | |
10251 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); | |
10252 | ||
10253 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10254 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10255 | } _resultobj = Py_BuildValue("i",_result); |
10256 | return _resultobj; | |
10257 | } | |
10258 | ||
10259 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
10260 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10261 | PyObject * _resultobj; | |
10262 | wxMenuItem * _arg0; | |
10263 | PyObject * _argo0 = 0; | |
10264 | char *_kwnames[] = { "self", NULL }; | |
10265 | ||
10266 | self = self; | |
10267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
10268 | return NULL; | |
10269 | if (_argo0) { | |
10270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
10273 | return NULL; | |
10274 | } | |
10275 | } | |
10276 | { | |
10277 | wxPy_BEGIN_ALLOW_THREADS; | |
10278 | wxMenuItem_ResetOwnerDrawn(_arg0); | |
10279 | ||
10280 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10281 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10282 | } Py_INCREF(Py_None); |
10283 | _resultobj = Py_None; | |
10284 | return _resultobj; | |
10285 | } | |
10286 | ||
8ab979d7 | 10287 | static PyMethodDef windowscMethods[] = { |
f3d9dc1d RD |
10288 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, |
10289 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
10290 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10291 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10292 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10293 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10294 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10295 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
10296 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10297 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10298 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10299 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10300 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10301 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10302 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10303 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
10304 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10305 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10306 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10307 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10308 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10309 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10310 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10311 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10312 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10313 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 10314 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10315 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10316 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
10317 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10318 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10319 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10320 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10321 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
10322 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10323 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10324 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10325 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10326 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
10327 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10328 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
10329 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10330 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10331 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10332 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
10333 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10334 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10335 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10336 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10337 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
10338 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10339 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10340 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10341 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
10342 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10343 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
10344 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10345 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
10346 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
10347 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
10348 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10349 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10350 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10351 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10352 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10353 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
10354 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10355 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
10356 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10357 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10358 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
10359 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10360 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
10361 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10362 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10363 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10364 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10365 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10366 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
10367 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10368 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
10369 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 10370 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10371 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10372 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10373 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10374 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10375 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
10376 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
10377 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10378 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
10379 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
10380 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
10381 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
d1679124 RD |
10382 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10383 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
10384 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
10385 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
10386 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
10387 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 10388 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10389 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10390 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10391 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10392 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
10393 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
10394 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10395 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10396 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10397 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10398 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10399 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
10400 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
f3d9dc1d RD |
10401 | { "wxDialog_CreateButtonSizer", (PyCFunction) _wrap_wxDialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, |
10402 | { "wxDialog_CreateTextSizer", (PyCFunction) _wrap_wxDialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10403 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, |
10404 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
10405 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
10406 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
10407 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10408 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
10409 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
10410 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
10411 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
10412 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10413 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
10414 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10415 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
10416 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10417 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10418 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10419 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10420 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
10421 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10422 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10423 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
10424 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10425 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
10426 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10427 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10428 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10429 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
10430 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10431 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10432 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10433 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10434 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10435 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10436 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10437 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10438 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10439 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
10440 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
10441 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10442 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10443 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
83b18bab | 10444 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10445 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10446 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
10447 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10448 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10449 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
dbbb98cd | 10450 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10451 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
10452 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10453 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10454 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10455 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10456 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10457 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10458 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10459 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10460 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10461 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10462 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10463 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10464 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 10465 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10466 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
10467 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
10468 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
10469 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10470 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10471 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10472 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10473 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
10474 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
10475 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10476 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10477 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10478 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10479 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10480 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
10481 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10482 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10483 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10484 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10485 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10486 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10487 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10488 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
10489 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
10490 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10491 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10492 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10493 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10494 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10495 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10496 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10497 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
10498 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10499 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10500 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10501 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10502 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10503 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10504 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10505 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10506 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10507 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10508 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10509 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10510 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10511 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10512 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10513 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10514 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 10515 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10516 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
10517 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10518 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10519 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10520 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10521 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10522 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10523 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10524 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10525 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10526 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10527 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
10528 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10529 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
10530 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10531 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 10532 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10533 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
10534 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10535 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
10536 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
10537 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
d56cebe7 | 10538 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
10539 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
10540 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10541 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
10542 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
10543 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10544 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
10545 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
10546 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10547 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10548 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
10549 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
10550 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10551 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
10552 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10553 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
10554 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 10555 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10556 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
10557 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
10558 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10559 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
10560 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10561 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10562 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10563 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10564 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10565 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
a1df7a95 RD |
10566 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
10567 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10568 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10569 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
10570 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
10571 | { NULL, NULL } |
10572 | }; | |
1d99702e RD |
10573 | #ifdef __cplusplus |
10574 | } | |
10575 | #endif | |
10576 | /* | |
10577 | * This table is used by the pointer type-checker | |
10578 | */ | |
10579 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 10580 | { "_signed_long","_long",0}, |
b1462dfa | 10581 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10582 | { "_wxPrintQuality","_int",0}, |
10583 | { "_wxPrintQuality","_signed_int",0}, | |
10584 | { "_wxPrintQuality","_unsigned_int",0}, | |
10585 | { "_wxPrintQuality","_wxWindowID",0}, | |
10586 | { "_wxPrintQuality","_uint",0}, | |
10587 | { "_wxPrintQuality","_EBool",0}, | |
10588 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10589 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 10590 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10591 | { "_long","_unsigned_long",0}, |
10592 | { "_long","_signed_long",0}, | |
b1462dfa | 10593 | { "_size_t","_wxCoord",0}, |
1d99702e | 10594 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10595 | { "_size_t","_time_t",0}, |
1d99702e RD |
10596 | { "_size_t","_unsigned_int",0}, |
10597 | { "_size_t","_int",0}, | |
10598 | { "_size_t","_wxWindowID",0}, | |
10599 | { "_size_t","_uint",0}, | |
1d99702e | 10600 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
1d99702e | 10601 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, |
b1462dfa | 10602 | { "_uint","_wxCoord",0}, |
1d99702e | 10603 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10604 | { "_uint","_time_t",0}, |
1d99702e RD |
10605 | { "_uint","_size_t",0}, |
10606 | { "_uint","_unsigned_int",0}, | |
10607 | { "_uint","_int",0}, | |
10608 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10609 | { "_wxChar","_char",0}, |
f6bcfd97 | 10610 | { "_char","_wxChar",0}, |
b1462dfa | 10611 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10612 | { "_EBool","_wxPrintQuality",0}, |
10613 | { "_EBool","_signed_int",0}, | |
10614 | { "_EBool","_int",0}, | |
10615 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10616 | { "_unsigned_long","_long",0}, |
b1462dfa | 10617 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10618 | { "_signed_int","_wxPrintQuality",0}, |
10619 | { "_signed_int","_EBool",0}, | |
10620 | { "_signed_int","_wxWindowID",0}, | |
10621 | { "_signed_int","_int",0}, | |
1d99702e RD |
10622 | { "_WXTYPE","_short",0}, |
10623 | { "_WXTYPE","_signed_short",0}, | |
10624 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
10625 | { "_unsigned_short","_WXTYPE",0}, |
10626 | { "_unsigned_short","_short",0}, | |
9416aa89 | 10627 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9416aa89 | 10628 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9416aa89 | 10629 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9416aa89 | 10630 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9416aa89 | 10631 | { "_wxObject","_wxDialog",SwigwxDialogTowxObject}, |
9416aa89 | 10632 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9416aa89 | 10633 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9416aa89 | 10634 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9416aa89 | 10635 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9416aa89 | 10636 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
10637 | { "_signed_short","_WXTYPE",0}, |
10638 | { "_signed_short","_short",0}, | |
1d99702e | 10639 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10640 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10641 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10642 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10643 | { "_unsigned_int","_size_t",0}, |
10644 | { "_unsigned_int","_uint",0}, | |
10645 | { "_unsigned_int","_wxWindowID",0}, | |
10646 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
10647 | { "_short","_WXTYPE",0}, |
10648 | { "_short","_unsigned_short",0}, | |
10649 | { "_short","_signed_short",0}, | |
b1462dfa | 10650 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10651 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10652 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10653 | { "_wxWindowID","_size_t",0}, |
10654 | { "_wxWindowID","_EBool",0}, | |
10655 | { "_wxWindowID","_uint",0}, | |
10656 | { "_wxWindowID","_int",0}, | |
10657 | { "_wxWindowID","_signed_int",0}, | |
10658 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10659 | { "_int","_wxCoord",0}, |
1d99702e | 10660 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10661 | { "_int","_time_t",0}, |
1d99702e RD |
10662 | { "_int","_size_t",0}, |
10663 | { "_int","_EBool",0}, | |
10664 | { "_int","_uint",0}, | |
10665 | { "_int","_wxWindowID",0}, | |
10666 | { "_int","_unsigned_int",0}, | |
10667 | { "_int","_signed_int",0}, | |
c368d904 RD |
10668 | { "_time_t","_wxCoord",0}, |
10669 | { "_time_t","_wxPrintQuality",0}, | |
10670 | { "_time_t","_unsigned_int",0}, | |
10671 | { "_time_t","_int",0}, | |
10672 | { "_time_t","_wxWindowID",0}, | |
10673 | { "_time_t","_uint",0}, | |
10674 | { "_time_t","_size_t",0}, | |
2f90df85 | 10675 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
10676 | { "_wxCoord","_int",0}, |
10677 | { "_wxCoord","_signed_int",0}, | |
10678 | { "_wxCoord","_unsigned_int",0}, | |
10679 | { "_wxCoord","_wxWindowID",0}, | |
10680 | { "_wxCoord","_uint",0}, | |
10681 | { "_wxCoord","_EBool",0}, | |
10682 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10683 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10684 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 10685 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 10686 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 10687 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 10688 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, |
1d99702e | 10689 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 10690 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 10691 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 10692 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 10693 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 10694 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 10695 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, |
1d99702e | 10696 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
10697 | {0,0,0}}; |
10698 | ||
8ab979d7 RD |
10699 | static PyObject *SWIG_globals; |
10700 | #ifdef __cplusplus | |
10701 | extern "C" | |
10702 | #endif | |
1d99702e | 10703 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
10704 | PyObject *m, *d; |
10705 | SWIG_globals = SWIG_newvarlink(); | |
10706 | m = Py_InitModule("windowsc", windowscMethods); | |
10707 | d = PyModule_GetDict(m); | |
1d99702e RD |
10708 | { |
10709 | int i; | |
10710 | for (i = 0; _swig_mapping[i].n1; i++) | |
10711 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10712 | } | |
8ab979d7 | 10713 | } |