]>
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 | ||
af309447 | 1169 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1170 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1171 | PyObject * _resultobj; |
1172 | wxWindow * _arg0; | |
1173 | int * _arg1; | |
1174 | int * _arg2; | |
1d99702e | 1175 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1176 | int temp; |
1177 | PyObject * _obj1 = 0; | |
1178 | int temp0; | |
1179 | PyObject * _obj2 = 0; | |
efc5f224 | 1180 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1181 | |
1182 | self = self; | |
efc5f224 | 1183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1184 | return NULL; |
1d99702e RD |
1185 | if (_argo0) { |
1186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1189 | return NULL; |
1190 | } | |
1191 | } | |
1192 | { | |
1193 | temp = (int) PyInt_AsLong(_obj1); | |
1194 | _arg1 = &temp; | |
1195 | } | |
1196 | { | |
1197 | temp0 = (int) PyInt_AsLong(_obj2); | |
1198 | _arg2 = &temp0; | |
1199 | } | |
cf694132 RD |
1200 | { |
1201 | wxPy_BEGIN_ALLOW_THREADS; | |
1202 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1203 | ||
1204 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1205 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1206 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1207 | _resultobj = Py_None; |
1208 | { | |
1209 | PyObject *o; | |
1210 | o = PyInt_FromLong((long) (*_arg1)); | |
1211 | _resultobj = t_output_helper(_resultobj, o); | |
1212 | } | |
1213 | { | |
1214 | PyObject *o; | |
1215 | o = PyInt_FromLong((long) (*_arg2)); | |
1216 | _resultobj = t_output_helper(_resultobj, o); | |
1217 | } | |
1218 | return _resultobj; | |
1219 | } | |
1220 | ||
af309447 | 1221 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1222 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1223 | PyObject * _resultobj; |
1224 | wxPoint * _result; | |
1225 | wxWindow * _arg0; | |
1226 | wxPoint * _arg1; | |
1d99702e | 1227 | PyObject * _argo0 = 0; |
2f90df85 RD |
1228 | wxPoint temp; |
1229 | PyObject * _obj1 = 0; | |
efc5f224 | 1230 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1231 | char _ptemp[128]; |
1232 | ||
1233 | self = self; | |
2f90df85 | 1234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1235 | return NULL; |
1d99702e RD |
1236 | if (_argo0) { |
1237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1240 | return NULL; | |
1241 | } | |
1242 | } | |
2f90df85 RD |
1243 | { |
1244 | _arg1 = &temp; | |
1245 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1246 | return NULL; |
2f90df85 | 1247 | } |
cf694132 RD |
1248 | { |
1249 | wxPy_BEGIN_ALLOW_THREADS; | |
1250 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1251 | ||
1252 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1253 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1254 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1255 | _resultobj = Py_BuildValue("s",_ptemp); |
1256 | return _resultobj; | |
1257 | } | |
1258 | ||
8ab979d7 | 1259 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1260 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1261 | PyObject * _resultobj; |
1262 | bool _result; | |
1263 | wxWindow * _arg0; | |
1d99702e RD |
1264 | int _arg1 = (int ) FALSE; |
1265 | PyObject * _argo0 = 0; | |
efc5f224 | 1266 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1267 | |
1268 | self = self; | |
efc5f224 | 1269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1270 | return NULL; |
1d99702e RD |
1271 | if (_argo0) { |
1272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1275 | return NULL; | |
1276 | } | |
1277 | } | |
cf694132 RD |
1278 | { |
1279 | wxPy_BEGIN_ALLOW_THREADS; | |
1280 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1281 | ||
1282 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1283 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1284 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1285 | return _resultobj; |
1286 | } | |
1287 | ||
1288 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1289 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1290 | PyObject * _resultobj; |
1291 | bool _result; | |
1292 | wxWindow * _arg0; | |
1d99702e | 1293 | PyObject * _argo0 = 0; |
efc5f224 | 1294 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1295 | |
1296 | self = self; | |
efc5f224 | 1297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
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_Destroy. Expected _wxWindow_p."); |
1303 | return NULL; | |
1304 | } | |
1305 | } | |
cf694132 RD |
1306 | { |
1307 | wxPy_BEGIN_ALLOW_THREADS; | |
1308 | _result = (bool )wxWindow_Destroy(_arg0); | |
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_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1317 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1318 | PyObject * _resultobj; |
1319 | wxWindow * _arg0; | |
1d99702e | 1320 | PyObject * _argo0 = 0; |
efc5f224 | 1321 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1322 | |
1323 | self = self; | |
efc5f224 | 1324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1325 | return NULL; |
1d99702e RD |
1326 | if (_argo0) { |
1327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1330 | return NULL; | |
1331 | } | |
1332 | } | |
cf694132 RD |
1333 | { |
1334 | wxPy_BEGIN_ALLOW_THREADS; | |
1335 | wxWindow_DestroyChildren(_arg0); | |
1336 | ||
1337 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1338 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1339 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1340 | _resultobj = Py_None; |
1341 | return _resultobj; | |
1342 | } | |
1343 | ||
1344 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) | |
efc5f224 | 1345 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1346 | PyObject * _resultobj; |
1347 | wxWindow * _arg0; | |
1348 | bool _arg1; | |
1d99702e | 1349 | PyObject * _argo0 = 0; |
8ab979d7 | 1350 | int tempbool1; |
efc5f224 | 1351 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1352 | |
1353 | self = self; | |
efc5f224 | 1354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1355 | return NULL; |
1d99702e RD |
1356 | if (_argo0) { |
1357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1360 | return NULL; | |
1361 | } | |
1362 | } | |
1363 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1364 | { |
1365 | wxPy_BEGIN_ALLOW_THREADS; | |
1366 | wxWindow_DragAcceptFiles(_arg0,_arg1); | |
1367 | ||
1368 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1369 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1370 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1371 | _resultobj = Py_None; |
1372 | return _resultobj; | |
1373 | } | |
1374 | ||
1375 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1376 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1377 | PyObject * _resultobj; |
1378 | wxWindow * _arg0; | |
1379 | bool _arg1; | |
1d99702e | 1380 | PyObject * _argo0 = 0; |
8ab979d7 | 1381 | int tempbool1; |
efc5f224 | 1382 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1383 | |
1384 | self = self; | |
efc5f224 | 1385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1386 | return NULL; |
1d99702e RD |
1387 | if (_argo0) { |
1388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1391 | return NULL; | |
1392 | } | |
1393 | } | |
1394 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1395 | { |
1396 | wxPy_BEGIN_ALLOW_THREADS; | |
1397 | wxWindow_Enable(_arg0,_arg1); | |
1398 | ||
1399 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1400 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1401 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1402 | _resultobj = Py_None; |
1403 | return _resultobj; | |
1404 | } | |
1405 | ||
af309447 | 1406 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1407 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1408 | PyObject * _resultobj; |
1409 | wxWindow * _result; | |
1410 | wxWindow * _arg0; | |
1411 | long _arg1; | |
1d99702e | 1412 | PyObject * _argo0 = 0; |
efc5f224 | 1413 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1414 | |
1415 | self = self; | |
efc5f224 | 1416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1417 | return NULL; |
1d99702e RD |
1418 | if (_argo0) { |
1419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1422 | return NULL; |
1423 | } | |
1424 | } | |
cf694132 RD |
1425 | { |
1426 | wxPy_BEGIN_ALLOW_THREADS; | |
1427 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1428 | ||
1429 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1430 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1431 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1432 | return _resultobj; |
1433 | } | |
1434 | ||
1435 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1436 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1437 | PyObject * _resultobj; |
1438 | wxWindow * _result; | |
1439 | wxWindow * _arg0; | |
1440 | wxString * _arg1; | |
1d99702e | 1441 | PyObject * _argo0 = 0; |
8ab979d7 | 1442 | PyObject * _obj1 = 0; |
efc5f224 | 1443 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1444 | |
1445 | self = self; | |
efc5f224 | 1446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1447 | return NULL; |
1d99702e RD |
1448 | if (_argo0) { |
1449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1452 | return NULL; | |
1453 | } | |
1454 | } | |
1455 | { | |
185d7c3e RD |
1456 | #if PYTHON_API_VERSION >= 1009 |
1457 | char* tmpPtr; int tmpSize; | |
1458 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1459 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1460 | return NULL; |
1461 | } | |
1462 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1463 | return NULL; | |
1464 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1465 | #else | |
8ab979d7 RD |
1466 | if (!PyString_Check(_obj1)) { |
1467 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1468 | return NULL; | |
1469 | } | |
185d7c3e RD |
1470 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1471 | #endif | |
8ab979d7 | 1472 | } |
cf694132 RD |
1473 | { |
1474 | wxPy_BEGIN_ALLOW_THREADS; | |
1475 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1476 | ||
1477 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1478 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1479 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1480 | { |
1481 | if (_obj1) | |
1482 | delete _arg1; | |
1483 | } | |
1484 | return _resultobj; | |
1485 | } | |
1486 | ||
1487 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1488 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1489 | PyObject * _resultobj; |
1490 | wxWindow * _arg0; | |
1d99702e | 1491 | PyObject * _argo0 = 0; |
efc5f224 | 1492 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1493 | |
1494 | self = self; | |
efc5f224 | 1495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1496 | return NULL; |
1d99702e RD |
1497 | if (_argo0) { |
1498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1501 | return NULL; | |
1502 | } | |
1503 | } | |
cf694132 RD |
1504 | { |
1505 | wxPy_BEGIN_ALLOW_THREADS; | |
1506 | wxWindow_Fit(_arg0); | |
1507 | ||
1508 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1509 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1510 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1511 | _resultobj = Py_None; |
1512 | return _resultobj; | |
1513 | } | |
1514 | ||
1515 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1516 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1517 | PyObject * _resultobj; |
1518 | wxColour * _result; | |
1519 | wxWindow * _arg0; | |
1d99702e | 1520 | PyObject * _argo0 = 0; |
efc5f224 | 1521 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1522 | char _ptemp[128]; |
1523 | ||
1524 | self = self; | |
efc5f224 | 1525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1526 | return NULL; |
1d99702e RD |
1527 | if (_argo0) { |
1528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1531 | return NULL; | |
1532 | } | |
1533 | } | |
cf694132 RD |
1534 | { |
1535 | wxPy_BEGIN_ALLOW_THREADS; | |
1536 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1537 | ||
1538 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1539 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1540 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1541 | _resultobj = Py_BuildValue("s",_ptemp); |
1542 | return _resultobj; | |
1543 | } | |
1544 | ||
d426c97e RD |
1545 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1546 | wxWindowList& list = self->GetChildren(); | |
1547 | return wxPy_ConvertList(&list, "wxWindow"); | |
1548 | } | |
1549 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1550 | PyObject * _resultobj; | |
1551 | PyObject * _result; | |
1552 | wxWindow * _arg0; | |
1553 | PyObject * _argo0 = 0; | |
1554 | char *_kwnames[] = { "self", NULL }; | |
1555 | ||
1556 | self = self; | |
1557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1558 | return NULL; | |
1559 | if (_argo0) { | |
1560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1563 | return NULL; | |
1564 | } | |
1565 | } | |
1566 | { | |
1567 | wxPy_BEGIN_ALLOW_THREADS; | |
1568 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1569 | ||
1570 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1571 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1572 | }{ |
1573 | _resultobj = _result; | |
1574 | } | |
1575 | return _resultobj; | |
1576 | } | |
1577 | ||
8ab979d7 | 1578 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1579 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1580 | PyObject * _resultobj; |
1581 | int _result; | |
1582 | wxWindow * _arg0; | |
1d99702e | 1583 | PyObject * _argo0 = 0; |
efc5f224 | 1584 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1585 | |
1586 | self = self; | |
efc5f224 | 1587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1588 | return NULL; |
1d99702e RD |
1589 | if (_argo0) { |
1590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1593 | return NULL; | |
1594 | } | |
1595 | } | |
cf694132 RD |
1596 | { |
1597 | wxPy_BEGIN_ALLOW_THREADS; | |
1598 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1599 | ||
1600 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1601 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1602 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1603 | return _resultobj; |
1604 | } | |
1605 | ||
1606 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1607 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1608 | PyObject * _resultobj; |
1609 | int _result; | |
1610 | wxWindow * _arg0; | |
1d99702e | 1611 | PyObject * _argo0 = 0; |
efc5f224 | 1612 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1613 | |
1614 | self = self; | |
efc5f224 | 1615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1616 | return NULL; |
1d99702e RD |
1617 | if (_argo0) { |
1618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1621 | return NULL; | |
1622 | } | |
1623 | } | |
cf694132 RD |
1624 | { |
1625 | wxPy_BEGIN_ALLOW_THREADS; | |
1626 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1627 | ||
1628 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1629 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1630 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1631 | return _resultobj; |
1632 | } | |
1633 | ||
b8b8dda7 | 1634 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1635 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1636 | PyObject * _resultobj; |
1637 | wxWindow * _arg0; | |
1638 | int * _arg1; | |
1639 | int temp; | |
1640 | int * _arg2; | |
1641 | int temp0; | |
1d99702e | 1642 | PyObject * _argo0 = 0; |
efc5f224 | 1643 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1644 | |
1645 | self = self; | |
1646 | { | |
1647 | _arg1 = &temp; | |
1648 | } | |
1649 | { | |
1650 | _arg2 = &temp0; | |
1651 | } | |
efc5f224 | 1652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1653 | return NULL; |
1d99702e RD |
1654 | if (_argo0) { |
1655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1658 | return NULL; |
1659 | } | |
1660 | } | |
cf694132 RD |
1661 | { |
1662 | wxPy_BEGIN_ALLOW_THREADS; | |
1663 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1664 | ||
1665 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1666 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1667 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1668 | _resultobj = Py_None; |
1669 | { | |
1670 | PyObject *o; | |
1671 | o = PyInt_FromLong((long) (*_arg1)); | |
1672 | _resultobj = t_output_helper(_resultobj, o); | |
1673 | } | |
1674 | { | |
1675 | PyObject *o; | |
1676 | o = PyInt_FromLong((long) (*_arg2)); | |
1677 | _resultobj = t_output_helper(_resultobj, o); | |
1678 | } | |
1679 | return _resultobj; | |
1680 | } | |
1681 | ||
b8b8dda7 | 1682 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1683 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1684 | PyObject * _resultobj; |
1685 | wxSize * _result; | |
1686 | wxWindow * _arg0; | |
1d99702e | 1687 | PyObject * _argo0 = 0; |
efc5f224 | 1688 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1689 | char _ptemp[128]; |
1690 | ||
1691 | self = self; | |
efc5f224 | 1692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1693 | return NULL; |
1d99702e RD |
1694 | if (_argo0) { |
1695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1698 | return NULL; | |
1699 | } | |
1700 | } | |
cf694132 RD |
1701 | { |
1702 | wxPy_BEGIN_ALLOW_THREADS; | |
1703 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1704 | ||
1705 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1706 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1707 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1708 | _resultobj = Py_BuildValue("s",_ptemp); |
1709 | return _resultobj; | |
1710 | } | |
1711 | ||
8ab979d7 | 1712 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1713 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1714 | PyObject * _resultobj; |
1715 | wxLayoutConstraints * _result; | |
1716 | wxWindow * _arg0; | |
1d99702e | 1717 | PyObject * _argo0 = 0; |
efc5f224 | 1718 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1719 | char _ptemp[128]; |
1720 | ||
1721 | self = self; | |
efc5f224 | 1722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1723 | return NULL; |
1d99702e RD |
1724 | if (_argo0) { |
1725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1728 | return NULL; | |
1729 | } | |
1730 | } | |
cf694132 RD |
1731 | { |
1732 | wxPy_BEGIN_ALLOW_THREADS; | |
1733 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1734 | ||
1735 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1736 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1737 | } if (_result) { |
1738 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1739 | _resultobj = Py_BuildValue("s",_ptemp); | |
1740 | } else { | |
1741 | Py_INCREF(Py_None); | |
1742 | _resultobj = Py_None; | |
1743 | } | |
8ab979d7 RD |
1744 | return _resultobj; |
1745 | } | |
1746 | ||
1afc06c2 RD |
1747 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1748 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1749 | PyObject * _resultobj; | |
1750 | wxEvtHandler * _result; | |
1751 | wxWindow * _arg0; | |
1752 | PyObject * _argo0 = 0; | |
1753 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
1754 | |
1755 | self = self; | |
1756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1757 | return NULL; | |
1758 | if (_argo0) { | |
1759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1762 | return NULL; | |
1763 | } | |
1764 | } | |
1765 | { | |
1766 | wxPy_BEGIN_ALLOW_THREADS; | |
1767 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1768 | ||
1769 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1770 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1771 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
1772 | return _resultobj; |
1773 | } | |
1774 | ||
8ab979d7 | 1775 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1776 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1777 | PyObject * _resultobj; |
1778 | wxFont * _result; | |
1779 | wxWindow * _arg0; | |
1d99702e | 1780 | PyObject * _argo0 = 0; |
efc5f224 | 1781 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1782 | char _ptemp[128]; |
1783 | ||
1784 | self = self; | |
efc5f224 | 1785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1786 | return NULL; |
1d99702e RD |
1787 | if (_argo0) { |
1788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1791 | return NULL; | |
1792 | } | |
1793 | } | |
cf694132 RD |
1794 | { |
1795 | wxPy_BEGIN_ALLOW_THREADS; | |
1796 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
b8b8dda7 | 1797 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
1798 | |
1799 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1800 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1801 | } if (_result) { |
1802 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1803 | _resultobj = Py_BuildValue("s",_ptemp); | |
1804 | } else { | |
1805 | Py_INCREF(Py_None); | |
1806 | _resultobj = Py_None; | |
1807 | } | |
8ab979d7 RD |
1808 | return _resultobj; |
1809 | } | |
1810 | ||
1811 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1812 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1813 | PyObject * _resultobj; |
1814 | wxColour * _result; | |
1815 | wxWindow * _arg0; | |
1d99702e | 1816 | PyObject * _argo0 = 0; |
efc5f224 | 1817 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1818 | char _ptemp[128]; |
1819 | ||
1820 | self = self; | |
efc5f224 | 1821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1822 | return NULL; |
1d99702e RD |
1823 | if (_argo0) { |
1824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1827 | return NULL; | |
1828 | } | |
1829 | } | |
cf694132 RD |
1830 | { |
1831 | wxPy_BEGIN_ALLOW_THREADS; | |
1832 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1833 | ||
1834 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1835 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1836 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1837 | _resultobj = Py_BuildValue("s",_ptemp); |
1838 | return _resultobj; | |
1839 | } | |
1840 | ||
1841 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1842 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1843 | PyObject * _resultobj; |
1844 | wxWindow * _result; | |
1845 | wxWindow * _arg0; | |
1d99702e | 1846 | PyObject * _argo0 = 0; |
efc5f224 | 1847 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1848 | |
1849 | self = self; | |
efc5f224 | 1850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1851 | return NULL; |
1d99702e RD |
1852 | if (_argo0) { |
1853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1856 | return NULL; | |
1857 | } | |
1858 | } | |
cf694132 RD |
1859 | { |
1860 | wxPy_BEGIN_ALLOW_THREADS; | |
1861 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1862 | ||
1863 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1864 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1865 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1866 | return _resultobj; |
1867 | } | |
1868 | ||
2abc0a0f | 1869 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1870 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1871 | } |
1872 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1873 | PyObject * _resultobj; | |
1874 | long _result; | |
1875 | wxWindow * _arg0; | |
1876 | PyObject * _argo0 = 0; | |
1877 | char *_kwnames[] = { "self", NULL }; | |
1878 | ||
1879 | self = self; | |
1880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1881 | return NULL; | |
1882 | if (_argo0) { | |
1883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1886 | return NULL; | |
1887 | } | |
1888 | } | |
1889 | { | |
1890 | wxPy_BEGIN_ALLOW_THREADS; | |
1891 | _result = (long )wxWindow_GetHandle(_arg0); | |
1892 | ||
1893 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1894 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
1895 | } _resultobj = Py_BuildValue("l",_result); |
1896 | return _resultobj; | |
1897 | } | |
1898 | ||
8ab979d7 | 1899 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 1900 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1901 | PyObject * _resultobj; |
1902 | int _result; | |
1903 | wxWindow * _arg0; | |
1d99702e | 1904 | PyObject * _argo0 = 0; |
efc5f224 | 1905 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1906 | |
1907 | self = self; | |
efc5f224 | 1908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 1909 | return NULL; |
1d99702e RD |
1910 | if (_argo0) { |
1911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
1914 | return NULL; | |
1915 | } | |
1916 | } | |
cf694132 RD |
1917 | { |
1918 | wxPy_BEGIN_ALLOW_THREADS; | |
1919 | _result = (int )wxWindow_GetId(_arg0); | |
1920 | ||
1921 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1922 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1923 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1924 | return _resultobj; |
1925 | } | |
1926 | ||
8ab979d7 | 1927 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 1928 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1929 | PyObject * _resultobj; |
1930 | wxString * _result; | |
1931 | wxWindow * _arg0; | |
1d99702e | 1932 | PyObject * _argo0 = 0; |
efc5f224 | 1933 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1934 | |
1935 | self = self; | |
efc5f224 | 1936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 1937 | return NULL; |
1d99702e RD |
1938 | if (_argo0) { |
1939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
1942 | return NULL; | |
1943 | } | |
1944 | } | |
8ab979d7 | 1945 | { |
cf694132 RD |
1946 | wxPy_BEGIN_ALLOW_THREADS; |
1947 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
1948 | ||
1949 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1950 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1951 | }{ |
eec92d76 | 1952 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1953 | } |
1954 | { | |
1955 | delete _result; | |
1956 | } | |
1957 | return _resultobj; | |
1958 | } | |
1959 | ||
bb0054cd | 1960 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 1961 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1962 | PyObject * _resultobj; |
1963 | wxWindow * _arg0; | |
1964 | wxString * _arg1; | |
1d99702e | 1965 | PyObject * _argo0 = 0; |
bb0054cd | 1966 | PyObject * _obj1 = 0; |
efc5f224 | 1967 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
1968 | |
1969 | self = self; | |
efc5f224 | 1970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 1971 | return NULL; |
1d99702e RD |
1972 | if (_argo0) { |
1973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
1976 | return NULL; | |
1977 | } | |
1978 | } | |
1979 | { | |
185d7c3e RD |
1980 | #if PYTHON_API_VERSION >= 1009 |
1981 | char* tmpPtr; int tmpSize; | |
1982 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1983 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1984 | return NULL; |
1985 | } | |
1986 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1987 | return NULL; | |
1988 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1989 | #else | |
bb0054cd RD |
1990 | if (!PyString_Check(_obj1)) { |
1991 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1992 | return NULL; | |
1993 | } | |
185d7c3e RD |
1994 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1995 | #endif | |
bb0054cd RD |
1996 | } |
1997 | { | |
1998 | wxPy_BEGIN_ALLOW_THREADS; | |
1999 | wxWindow_SetLabel(_arg0,*_arg1); | |
2000 | ||
2001 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2002 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2003 | } Py_INCREF(Py_None); |
2004 | _resultobj = Py_None; | |
2005 | { | |
2006 | if (_obj1) | |
2007 | delete _arg1; | |
2008 | } | |
2009 | return _resultobj; | |
2010 | } | |
2011 | ||
8ab979d7 | 2012 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2013 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2014 | PyObject * _resultobj; |
2015 | wxString * _result; | |
2016 | wxWindow * _arg0; | |
1d99702e | 2017 | PyObject * _argo0 = 0; |
efc5f224 | 2018 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2019 | |
2020 | self = self; | |
efc5f224 | 2021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2022 | return NULL; |
1d99702e RD |
2023 | if (_argo0) { |
2024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2027 | return NULL; | |
2028 | } | |
2029 | } | |
8ab979d7 | 2030 | { |
cf694132 RD |
2031 | wxPy_BEGIN_ALLOW_THREADS; |
2032 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2033 | ||
2034 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2035 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2036 | }{ |
eec92d76 | 2037 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2038 | } |
2039 | { | |
2040 | delete _result; | |
2041 | } | |
2042 | return _resultobj; | |
2043 | } | |
2044 | ||
2045 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2046 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2047 | PyObject * _resultobj; |
2048 | wxWindow * _result; | |
2049 | wxWindow * _arg0; | |
1d99702e | 2050 | PyObject * _argo0 = 0; |
efc5f224 | 2051 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2052 | |
2053 | self = self; | |
efc5f224 | 2054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2055 | return NULL; |
1d99702e RD |
2056 | if (_argo0) { |
2057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2060 | return NULL; | |
2061 | } | |
2062 | } | |
cf694132 RD |
2063 | { |
2064 | wxPy_BEGIN_ALLOW_THREADS; | |
2065 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2066 | ||
2067 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2068 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2069 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2070 | return _resultobj; |
2071 | } | |
2072 | ||
b8b8dda7 | 2073 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2074 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2075 | PyObject * _resultobj; |
2076 | wxWindow * _arg0; | |
2077 | int * _arg1; | |
2078 | int temp; | |
2079 | int * _arg2; | |
2080 | int temp0; | |
1d99702e | 2081 | PyObject * _argo0 = 0; |
efc5f224 | 2082 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2083 | |
2084 | self = self; | |
2085 | { | |
2086 | _arg1 = &temp; | |
2087 | } | |
2088 | { | |
2089 | _arg2 = &temp0; | |
2090 | } | |
efc5f224 | 2091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2092 | return NULL; |
1d99702e RD |
2093 | if (_argo0) { |
2094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2097 | return NULL; | |
2098 | } | |
2099 | } | |
cf694132 RD |
2100 | { |
2101 | wxPy_BEGIN_ALLOW_THREADS; | |
2102 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2103 | ||
2104 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2105 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2106 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2107 | _resultobj = Py_None; |
2108 | { | |
2109 | PyObject *o; | |
2110 | o = PyInt_FromLong((long) (*_arg1)); | |
2111 | _resultobj = t_output_helper(_resultobj, o); | |
2112 | } | |
2113 | { | |
2114 | PyObject *o; | |
2115 | o = PyInt_FromLong((long) (*_arg2)); | |
2116 | _resultobj = t_output_helper(_resultobj, o); | |
2117 | } | |
2118 | return _resultobj; | |
2119 | } | |
2120 | ||
2121 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2122 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2123 | PyObject * _resultobj; |
2124 | wxPoint * _result; | |
2125 | wxWindow * _arg0; | |
1d99702e | 2126 | PyObject * _argo0 = 0; |
efc5f224 | 2127 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2128 | char _ptemp[128]; |
2129 | ||
2130 | self = self; | |
efc5f224 | 2131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2132 | return NULL; |
1d99702e RD |
2133 | if (_argo0) { |
2134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2137 | return NULL; | |
2138 | } | |
2139 | } | |
cf694132 RD |
2140 | { |
2141 | wxPy_BEGIN_ALLOW_THREADS; | |
2142 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2143 | ||
2144 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2145 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2146 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2147 | _resultobj = Py_BuildValue("s",_ptemp); |
2148 | return _resultobj; | |
2149 | } | |
2150 | ||
2151 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2152 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2153 | PyObject * _resultobj; |
2154 | wxRect * _result; | |
2155 | wxWindow * _arg0; | |
1d99702e | 2156 | PyObject * _argo0 = 0; |
efc5f224 | 2157 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2158 | char _ptemp[128]; |
2159 | ||
2160 | self = self; | |
efc5f224 | 2161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2162 | return NULL; |
1d99702e RD |
2163 | if (_argo0) { |
2164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2167 | return NULL; | |
2168 | } | |
2169 | } | |
cf694132 RD |
2170 | { |
2171 | wxPy_BEGIN_ALLOW_THREADS; | |
2172 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2173 | ||
2174 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2175 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2176 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2177 | _resultobj = Py_BuildValue("s",_ptemp); |
2178 | return _resultobj; | |
2179 | } | |
2180 | ||
8ab979d7 | 2181 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2182 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2183 | PyObject * _resultobj; |
2184 | int _result; | |
2185 | wxWindow * _arg0; | |
2186 | int _arg1; | |
1d99702e | 2187 | PyObject * _argo0 = 0; |
efc5f224 | 2188 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2189 | |
2190 | self = self; | |
efc5f224 | 2191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2192 | return NULL; |
1d99702e RD |
2193 | if (_argo0) { |
2194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2197 | return NULL; | |
2198 | } | |
2199 | } | |
cf694132 RD |
2200 | { |
2201 | wxPy_BEGIN_ALLOW_THREADS; | |
2202 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2203 | ||
2204 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2205 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2206 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2207 | return _resultobj; |
2208 | } | |
2209 | ||
2210 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2211 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2212 | PyObject * _resultobj; |
2213 | int _result; | |
2214 | wxWindow * _arg0; | |
2215 | int _arg1; | |
1d99702e | 2216 | PyObject * _argo0 = 0; |
efc5f224 | 2217 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2218 | |
2219 | self = self; | |
efc5f224 | 2220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2221 | return NULL; |
1d99702e RD |
2222 | if (_argo0) { |
2223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2226 | return NULL; | |
2227 | } | |
2228 | } | |
cf694132 RD |
2229 | { |
2230 | wxPy_BEGIN_ALLOW_THREADS; | |
2231 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2232 | ||
2233 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2234 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2235 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2236 | return _resultobj; |
2237 | } | |
2238 | ||
2239 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2240 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2241 | PyObject * _resultobj; |
2242 | int _result; | |
2243 | wxWindow * _arg0; | |
2244 | int _arg1; | |
1d99702e | 2245 | PyObject * _argo0 = 0; |
efc5f224 | 2246 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2247 | |
2248 | self = self; | |
efc5f224 | 2249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2250 | return NULL; |
1d99702e RD |
2251 | if (_argo0) { |
2252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2255 | return NULL; | |
2256 | } | |
2257 | } | |
cf694132 RD |
2258 | { |
2259 | wxPy_BEGIN_ALLOW_THREADS; | |
2260 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2261 | ||
2262 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2263 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2264 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2265 | return _resultobj; |
2266 | } | |
2267 | ||
b8b8dda7 | 2268 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2269 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2270 | PyObject * _resultobj; |
2271 | wxWindow * _arg0; | |
2272 | int * _arg1; | |
2273 | int temp; | |
2274 | int * _arg2; | |
2275 | int temp0; | |
1d99702e | 2276 | PyObject * _argo0 = 0; |
efc5f224 | 2277 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2278 | |
2279 | self = self; | |
2280 | { | |
2281 | _arg1 = &temp; | |
2282 | } | |
2283 | { | |
2284 | _arg2 = &temp0; | |
2285 | } | |
efc5f224 | 2286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2287 | return NULL; |
1d99702e RD |
2288 | if (_argo0) { |
2289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2292 | return NULL; |
2293 | } | |
2294 | } | |
cf694132 RD |
2295 | { |
2296 | wxPy_BEGIN_ALLOW_THREADS; | |
2297 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2298 | ||
2299 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2300 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2301 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2302 | _resultobj = Py_None; |
2303 | { | |
2304 | PyObject *o; | |
2305 | o = PyInt_FromLong((long) (*_arg1)); | |
2306 | _resultobj = t_output_helper(_resultobj, o); | |
2307 | } | |
2308 | { | |
2309 | PyObject *o; | |
2310 | o = PyInt_FromLong((long) (*_arg2)); | |
2311 | _resultobj = t_output_helper(_resultobj, o); | |
2312 | } | |
2313 | return _resultobj; | |
2314 | } | |
2315 | ||
b8b8dda7 | 2316 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2317 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2318 | PyObject * _resultobj; |
2319 | wxSize * _result; | |
2320 | wxWindow * _arg0; | |
1d99702e | 2321 | PyObject * _argo0 = 0; |
efc5f224 | 2322 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2323 | char _ptemp[128]; |
2324 | ||
2325 | self = self; | |
efc5f224 | 2326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2327 | return NULL; |
1d99702e RD |
2328 | if (_argo0) { |
2329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2332 | return NULL; | |
2333 | } | |
2334 | } | |
cf694132 RD |
2335 | { |
2336 | wxPy_BEGIN_ALLOW_THREADS; | |
2337 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2338 | ||
2339 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2340 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2341 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2342 | _resultobj = Py_BuildValue("s",_ptemp); |
2343 | return _resultobj; | |
2344 | } | |
2345 | ||
8ab979d7 | 2346 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2347 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2348 | PyObject * _resultobj; |
2349 | wxWindow * _arg0; | |
2350 | wxString * _arg1; | |
2351 | int * _arg2; | |
2352 | int temp; | |
2353 | int * _arg3; | |
2354 | int temp0; | |
1d99702e | 2355 | PyObject * _argo0 = 0; |
8ab979d7 | 2356 | PyObject * _obj1 = 0; |
efc5f224 | 2357 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2358 | |
2359 | self = self; | |
2360 | { | |
2361 | _arg2 = &temp; | |
2362 | } | |
2363 | { | |
2364 | _arg3 = &temp0; | |
2365 | } | |
efc5f224 | 2366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2367 | return NULL; |
1d99702e RD |
2368 | if (_argo0) { |
2369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2372 | return NULL; | |
2373 | } | |
2374 | } | |
2375 | { | |
185d7c3e RD |
2376 | #if PYTHON_API_VERSION >= 1009 |
2377 | char* tmpPtr; int tmpSize; | |
2378 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2379 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2380 | return NULL; |
2381 | } | |
2382 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2383 | return NULL; | |
2384 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2385 | #else | |
8ab979d7 RD |
2386 | if (!PyString_Check(_obj1)) { |
2387 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2388 | return NULL; | |
2389 | } | |
185d7c3e RD |
2390 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2391 | #endif | |
8ab979d7 | 2392 | } |
cf694132 RD |
2393 | { |
2394 | wxPy_BEGIN_ALLOW_THREADS; | |
2395 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2396 | ||
2397 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2398 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2399 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2400 | _resultobj = Py_None; |
2401 | { | |
2402 | PyObject *o; | |
2403 | o = PyInt_FromLong((long) (*_arg2)); | |
2404 | _resultobj = t_output_helper(_resultobj, o); | |
2405 | } | |
2406 | { | |
2407 | PyObject *o; | |
2408 | o = PyInt_FromLong((long) (*_arg3)); | |
2409 | _resultobj = t_output_helper(_resultobj, o); | |
2410 | } | |
2411 | { | |
2412 | if (_obj1) | |
2413 | delete _arg1; | |
2414 | } | |
2415 | return _resultobj; | |
2416 | } | |
2417 | ||
af309447 | 2418 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2419 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2420 | PyObject * _resultobj; |
2421 | wxWindow * _arg0; | |
2422 | wxString * _arg1; | |
2423 | int * _arg2; | |
2424 | int temp; | |
2425 | int * _arg3; | |
2426 | int temp0; | |
2427 | int * _arg4; | |
2428 | int temp1; | |
2429 | int * _arg5; | |
2430 | int temp2; | |
1d99702e RD |
2431 | wxFont * _arg6 = (wxFont *) NULL; |
2432 | PyObject * _argo0 = 0; | |
af309447 | 2433 | PyObject * _obj1 = 0; |
1d99702e | 2434 | PyObject * _argo6 = 0; |
efc5f224 | 2435 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2436 | |
2437 | self = self; | |
2438 | { | |
2439 | _arg2 = &temp; | |
2440 | } | |
2441 | { | |
2442 | _arg3 = &temp0; | |
2443 | } | |
2444 | { | |
2445 | _arg4 = &temp1; | |
2446 | } | |
2447 | { | |
2448 | _arg5 = &temp2; | |
2449 | } | |
efc5f224 | 2450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2451 | return NULL; |
1d99702e RD |
2452 | if (_argo0) { |
2453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2456 | return NULL; | |
2457 | } | |
2458 | } | |
2459 | { | |
185d7c3e RD |
2460 | #if PYTHON_API_VERSION >= 1009 |
2461 | char* tmpPtr; int tmpSize; | |
2462 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2463 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2464 | return NULL; |
2465 | } | |
2466 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2467 | return NULL; | |
2468 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2469 | #else | |
af309447 RD |
2470 | if (!PyString_Check(_obj1)) { |
2471 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2472 | return NULL; | |
2473 | } | |
185d7c3e RD |
2474 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2475 | #endif | |
af309447 | 2476 | } |
1d99702e RD |
2477 | if (_argo6) { |
2478 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2479 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2481 | return NULL; | |
2482 | } | |
2483 | } | |
cf694132 RD |
2484 | { |
2485 | wxPy_BEGIN_ALLOW_THREADS; | |
2486 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2487 | ||
2488 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2489 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2490 | } Py_INCREF(Py_None); |
af309447 RD |
2491 | _resultobj = Py_None; |
2492 | { | |
2493 | PyObject *o; | |
2494 | o = PyInt_FromLong((long) (*_arg2)); | |
2495 | _resultobj = t_output_helper(_resultobj, o); | |
2496 | } | |
2497 | { | |
2498 | PyObject *o; | |
2499 | o = PyInt_FromLong((long) (*_arg3)); | |
2500 | _resultobj = t_output_helper(_resultobj, o); | |
2501 | } | |
2502 | { | |
2503 | PyObject *o; | |
2504 | o = PyInt_FromLong((long) (*_arg4)); | |
2505 | _resultobj = t_output_helper(_resultobj, o); | |
2506 | } | |
2507 | { | |
2508 | PyObject *o; | |
2509 | o = PyInt_FromLong((long) (*_arg5)); | |
2510 | _resultobj = t_output_helper(_resultobj, o); | |
2511 | } | |
2512 | { | |
2513 | if (_obj1) | |
2514 | delete _arg1; | |
2515 | } | |
2516 | return _resultobj; | |
2517 | } | |
2518 | ||
8ab979d7 | 2519 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2520 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2521 | PyObject * _resultobj; |
2522 | wxString * _result; | |
2523 | wxWindow * _arg0; | |
1d99702e | 2524 | PyObject * _argo0 = 0; |
efc5f224 | 2525 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2526 | |
2527 | self = self; | |
efc5f224 | 2528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2529 | return NULL; |
1d99702e RD |
2530 | if (_argo0) { |
2531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2534 | return NULL; | |
2535 | } | |
2536 | } | |
8ab979d7 | 2537 | { |
cf694132 RD |
2538 | wxPy_BEGIN_ALLOW_THREADS; |
2539 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2540 | ||
2541 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2542 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2543 | }{ |
eec92d76 | 2544 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2545 | } |
2546 | { | |
2547 | delete _result; | |
2548 | } | |
2549 | return _resultobj; | |
2550 | } | |
2551 | ||
8bf5d46e | 2552 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2553 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2554 | PyObject * _resultobj; |
2555 | wxRegion * _result; | |
2556 | wxWindow * _arg0; | |
1d99702e | 2557 | PyObject * _argo0 = 0; |
efc5f224 | 2558 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2559 | char _ptemp[128]; |
2560 | ||
2561 | self = self; | |
efc5f224 | 2562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2563 | return NULL; |
1d99702e RD |
2564 | if (_argo0) { |
2565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2568 | return NULL; | |
2569 | } | |
2570 | } | |
2571 | { | |
2572 | wxPy_BEGIN_ALLOW_THREADS; | |
2573 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2574 | ||
2575 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2576 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2577 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2578 | _resultobj = Py_BuildValue("s",_ptemp); | |
2579 | return _resultobj; | |
2580 | } | |
2581 | ||
8ab979d7 | 2582 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2583 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2584 | PyObject * _resultobj; |
2585 | long _result; | |
2586 | wxWindow * _arg0; | |
1d99702e | 2587 | PyObject * _argo0 = 0; |
efc5f224 | 2588 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2589 | |
2590 | self = self; | |
efc5f224 | 2591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2592 | return NULL; |
1d99702e RD |
2593 | if (_argo0) { |
2594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2597 | return NULL; | |
2598 | } | |
2599 | } | |
cf694132 RD |
2600 | { |
2601 | wxPy_BEGIN_ALLOW_THREADS; | |
2602 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2603 | ||
2604 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2605 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2606 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2607 | return _resultobj; |
2608 | } | |
2609 | ||
f6bcfd97 BP |
2610 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2611 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2612 | PyObject * _resultobj; | |
2613 | wxWindow * _arg0; | |
2614 | long _arg1; | |
2615 | PyObject * _argo0 = 0; | |
2616 | char *_kwnames[] = { "self","style", NULL }; | |
2617 | ||
2618 | self = self; | |
2619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2620 | return NULL; | |
2621 | if (_argo0) { | |
2622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2625 | return NULL; | |
2626 | } | |
2627 | } | |
2628 | { | |
2629 | wxPy_BEGIN_ALLOW_THREADS; | |
2630 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2631 | ||
2632 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2633 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2634 | } Py_INCREF(Py_None); |
2635 | _resultobj = Py_None; | |
2636 | return _resultobj; | |
2637 | } | |
2638 | ||
2639 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2640 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2641 | PyObject * _resultobj; | |
2642 | wxWindow * _arg0; | |
2643 | long _arg1; | |
2644 | PyObject * _argo0 = 0; | |
2645 | char *_kwnames[] = { "self","style", NULL }; | |
2646 | ||
2647 | self = self; | |
2648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2649 | return NULL; | |
2650 | if (_argo0) { | |
2651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2654 | return NULL; | |
2655 | } | |
2656 | } | |
2657 | { | |
2658 | wxPy_BEGIN_ALLOW_THREADS; | |
2659 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2660 | ||
2661 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2662 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2663 | } Py_INCREF(Py_None); |
2664 | _resultobj = Py_None; | |
2665 | return _resultobj; | |
2666 | } | |
2667 | ||
bb0054cd | 2668 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2669 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2670 | PyObject * _resultobj; |
2671 | bool _result; | |
2672 | wxWindow * _arg0; | |
1d99702e | 2673 | PyObject * _argo0 = 0; |
efc5f224 | 2674 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2675 | |
2676 | self = self; | |
efc5f224 | 2677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2678 | return NULL; |
1d99702e RD |
2679 | if (_argo0) { |
2680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2683 | return NULL; | |
2684 | } | |
2685 | } | |
2686 | { | |
2687 | wxPy_BEGIN_ALLOW_THREADS; | |
2688 | _result = (bool )wxWindow_Hide(_arg0); | |
2689 | ||
2690 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2691 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2692 | } _resultobj = Py_BuildValue("i",_result); |
2693 | return _resultobj; | |
2694 | } | |
2695 | ||
8ab979d7 | 2696 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2697 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2698 | PyObject * _resultobj; |
2699 | wxWindow * _arg0; | |
1d99702e | 2700 | PyObject * _argo0 = 0; |
efc5f224 | 2701 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2702 | |
2703 | self = self; | |
efc5f224 | 2704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2705 | return NULL; |
1d99702e RD |
2706 | if (_argo0) { |
2707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2710 | return NULL; | |
2711 | } | |
2712 | } | |
cf694132 RD |
2713 | { |
2714 | wxPy_BEGIN_ALLOW_THREADS; | |
2715 | wxWindow_InitDialog(_arg0); | |
2716 | ||
2717 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2718 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2719 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2720 | _resultobj = Py_None; |
2721 | return _resultobj; | |
2722 | } | |
2723 | ||
2724 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2725 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2726 | PyObject * _resultobj; |
2727 | bool _result; | |
2728 | wxWindow * _arg0; | |
1d99702e | 2729 | PyObject * _argo0 = 0; |
efc5f224 | 2730 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2731 | |
2732 | self = self; | |
efc5f224 | 2733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 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")) { | |
8ab979d7 RD |
2738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2739 | return NULL; | |
2740 | } | |
2741 | } | |
cf694132 RD |
2742 | { |
2743 | wxPy_BEGIN_ALLOW_THREADS; | |
2744 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2745 | ||
2746 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2747 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2748 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2749 | return _resultobj; |
2750 | } | |
2751 | ||
1b55cabf RD |
2752 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2753 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2754 | PyObject * _resultobj; | |
2755 | bool _result; | |
2756 | wxWindow * _arg0; | |
2757 | int _arg1; | |
2758 | int _arg2; | |
2759 | int _arg3 = (int ) 0; | |
2760 | int _arg4 = (int ) 0; | |
2761 | PyObject * _argo0 = 0; | |
2762 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2763 | ||
2764 | self = self; | |
2765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2766 | return NULL; | |
2767 | if (_argo0) { | |
2768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2771 | return NULL; | |
2772 | } | |
2773 | } | |
2774 | { | |
2775 | wxPy_BEGIN_ALLOW_THREADS; | |
2776 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2777 | ||
2778 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2779 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2780 | } _resultobj = Py_BuildValue("i",_result); |
2781 | return _resultobj; | |
2782 | } | |
2783 | ||
2784 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2785 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2786 | PyObject * _resultobj; | |
2787 | bool _result; | |
2788 | wxWindow * _arg0; | |
2789 | wxPoint * _arg1; | |
2790 | PyObject * _argo0 = 0; | |
2791 | wxPoint temp; | |
2792 | PyObject * _obj1 = 0; | |
2793 | char *_kwnames[] = { "self","pt", NULL }; | |
2794 | ||
2795 | self = self; | |
2796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2797 | return NULL; | |
2798 | if (_argo0) { | |
2799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2802 | return NULL; | |
2803 | } | |
2804 | } | |
2805 | { | |
2806 | _arg1 = &temp; | |
2807 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2808 | return NULL; | |
2809 | } | |
2810 | { | |
2811 | wxPy_BEGIN_ALLOW_THREADS; | |
2812 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2813 | ||
2814 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2815 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2816 | } _resultobj = Py_BuildValue("i",_result); |
2817 | return _resultobj; | |
2818 | } | |
2819 | ||
2820 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2821 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2822 | PyObject * _resultobj; | |
2823 | bool _result; | |
2824 | wxWindow * _arg0; | |
2825 | wxRect * _arg1; | |
2826 | PyObject * _argo0 = 0; | |
2827 | wxRect temp; | |
2828 | PyObject * _obj1 = 0; | |
2829 | char *_kwnames[] = { "self","rect", NULL }; | |
2830 | ||
2831 | self = self; | |
2832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2833 | return NULL; | |
2834 | if (_argo0) { | |
2835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2838 | return NULL; | |
2839 | } | |
2840 | } | |
2841 | { | |
2842 | _arg1 = &temp; | |
2843 | if (! wxRect_helper(_obj1, &_arg1)) | |
2844 | return NULL; | |
2845 | } | |
2846 | { | |
2847 | wxPy_BEGIN_ALLOW_THREADS; | |
2848 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2849 | ||
2850 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2851 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2852 | } _resultobj = Py_BuildValue("i",_result); |
2853 | return _resultobj; | |
2854 | } | |
2855 | ||
8ab979d7 | 2856 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 2857 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2858 | PyObject * _resultobj; |
2859 | bool _result; | |
2860 | wxWindow * _arg0; | |
1d99702e | 2861 | PyObject * _argo0 = 0; |
efc5f224 | 2862 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2863 | |
2864 | self = self; | |
efc5f224 | 2865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 2866 | return NULL; |
1d99702e RD |
2867 | if (_argo0) { |
2868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
2871 | return NULL; | |
2872 | } | |
2873 | } | |
cf694132 RD |
2874 | { |
2875 | wxPy_BEGIN_ALLOW_THREADS; | |
2876 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2877 | ||
2878 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2879 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2880 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2881 | return _resultobj; |
2882 | } | |
2883 | ||
2884 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 2885 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2886 | PyObject * _resultobj; |
2887 | bool _result; | |
2888 | wxWindow * _arg0; | |
1d99702e | 2889 | PyObject * _argo0 = 0; |
efc5f224 | 2890 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2891 | |
2892 | self = self; | |
efc5f224 | 2893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 2894 | return NULL; |
1d99702e RD |
2895 | if (_argo0) { |
2896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
2899 | return NULL; | |
2900 | } | |
2901 | } | |
cf694132 RD |
2902 | { |
2903 | wxPy_BEGIN_ALLOW_THREADS; | |
2904 | _result = (bool )wxWindow_IsShown(_arg0); | |
2905 | ||
2906 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2907 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2908 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2909 | return _resultobj; |
2910 | } | |
2911 | ||
bb0054cd | 2912 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 2913 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2914 | PyObject * _resultobj; |
2915 | bool _result; | |
2916 | wxWindow * _arg0; | |
1d99702e | 2917 | PyObject * _argo0 = 0; |
efc5f224 | 2918 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2919 | |
2920 | self = self; | |
efc5f224 | 2921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 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")) { | |
bb0054cd RD |
2926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
2927 | return NULL; | |
2928 | } | |
2929 | } | |
2930 | { | |
2931 | wxPy_BEGIN_ALLOW_THREADS; | |
2932 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2933 | ||
2934 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2935 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2936 | } _resultobj = Py_BuildValue("i",_result); |
2937 | return _resultobj; | |
2938 | } | |
2939 | ||
8ab979d7 | 2940 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 2941 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2942 | PyObject * _resultobj; |
2943 | wxWindow * _arg0; | |
1d99702e | 2944 | PyObject * _argo0 = 0; |
efc5f224 | 2945 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2946 | |
2947 | self = self; | |
efc5f224 | 2948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 2949 | return NULL; |
1d99702e RD |
2950 | if (_argo0) { |
2951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
2954 | return NULL; | |
2955 | } | |
2956 | } | |
cf694132 RD |
2957 | { |
2958 | wxPy_BEGIN_ALLOW_THREADS; | |
2959 | wxWindow_Layout(_arg0); | |
2960 | ||
2961 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2962 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2963 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2964 | _resultobj = Py_None; |
2965 | return _resultobj; | |
2966 | } | |
2967 | ||
2968 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2969 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2970 | PyObject * _resultobj; |
2971 | bool _result; | |
2972 | wxWindow * _arg0; | |
2973 | wxWindow * _arg1; | |
2974 | wxString * _arg2; | |
1d99702e RD |
2975 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
2976 | PyObject * _argo0 = 0; | |
2977 | PyObject * _argo1 = 0; | |
8ab979d7 | 2978 | PyObject * _obj2 = 0; |
1d99702e | 2979 | PyObject * _argo3 = 0; |
efc5f224 | 2980 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
2981 | |
2982 | self = self; | |
efc5f224 | 2983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 2984 | return NULL; |
1d99702e RD |
2985 | if (_argo0) { |
2986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
2989 | return NULL; | |
2990 | } | |
2991 | } | |
1d99702e RD |
2992 | if (_argo1) { |
2993 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2994 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
2995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
2996 | return NULL; | |
2997 | } | |
2998 | } | |
2999 | { | |
185d7c3e RD |
3000 | #if PYTHON_API_VERSION >= 1009 |
3001 | char* tmpPtr; int tmpSize; | |
3002 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 3003 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3004 | return NULL; |
3005 | } | |
3006 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3007 | return NULL; | |
3008 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3009 | #else | |
8ab979d7 RD |
3010 | if (!PyString_Check(_obj2)) { |
3011 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3012 | return NULL; | |
3013 | } | |
185d7c3e RD |
3014 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3015 | #endif | |
8ab979d7 | 3016 | } |
1d99702e RD |
3017 | if (_argo3) { |
3018 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3019 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3021 | return NULL; | |
3022 | } | |
3023 | } | |
cf694132 RD |
3024 | { |
3025 | wxPy_BEGIN_ALLOW_THREADS; | |
3026 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
3027 | ||
3028 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3029 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3030 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3031 | { |
3032 | if (_obj2) | |
3033 | delete _arg2; | |
3034 | } | |
3035 | return _resultobj; | |
3036 | } | |
3037 | ||
3038 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3039 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3040 | PyObject * _resultobj; |
3041 | wxWindow * _arg0; | |
1d99702e | 3042 | PyObject * _argo0 = 0; |
efc5f224 | 3043 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3044 | |
3045 | self = self; | |
efc5f224 | 3046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3047 | return NULL; |
1d99702e RD |
3048 | if (_argo0) { |
3049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3052 | return NULL; | |
3053 | } | |
3054 | } | |
cf694132 RD |
3055 | { |
3056 | wxPy_BEGIN_ALLOW_THREADS; | |
3057 | wxWindow_Lower(_arg0); | |
3058 | ||
3059 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3060 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3061 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3062 | _resultobj = Py_None; |
3063 | return _resultobj; | |
3064 | } | |
3065 | ||
3066 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3067 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3068 | PyObject * _resultobj; |
3069 | wxWindow * _arg0; | |
3070 | bool _arg1; | |
1d99702e | 3071 | PyObject * _argo0 = 0; |
8ab979d7 | 3072 | int tempbool1; |
efc5f224 | 3073 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3074 | |
3075 | self = self; | |
efc5f224 | 3076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3077 | return NULL; |
1d99702e RD |
3078 | if (_argo0) { |
3079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3082 | return NULL; | |
3083 | } | |
3084 | } | |
3085 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3086 | { |
3087 | wxPy_BEGIN_ALLOW_THREADS; | |
3088 | wxWindow_MakeModal(_arg0,_arg1); | |
3089 | ||
3090 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3091 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3092 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3093 | _resultobj = Py_None; |
3094 | return _resultobj; | |
3095 | } | |
3096 | ||
af309447 | 3097 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3098 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3099 | PyObject * _resultobj; |
3100 | wxWindow * _arg0; | |
3101 | int _arg1; | |
3102 | int _arg2; | |
1d99702e | 3103 | PyObject * _argo0 = 0; |
efc5f224 | 3104 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3105 | |
3106 | self = self; | |
efc5f224 | 3107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 3108 | return NULL; |
1d99702e RD |
3109 | if (_argo0) { |
3110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3113 | return NULL; | |
3114 | } | |
3115 | } | |
cf694132 RD |
3116 | { |
3117 | wxPy_BEGIN_ALLOW_THREADS; | |
3118 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
3119 | ||
3120 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3121 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3122 | } Py_INCREF(Py_None); |
af309447 RD |
3123 | _resultobj = Py_None; |
3124 | return _resultobj; | |
3125 | } | |
3126 | ||
3127 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
efc5f224 | 3128 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3129 | PyObject * _resultobj; |
3130 | wxWindow * _arg0; | |
3131 | wxPoint * _arg1; | |
1d99702e | 3132 | PyObject * _argo0 = 0; |
2f90df85 RD |
3133 | wxPoint temp; |
3134 | PyObject * _obj1 = 0; | |
efc5f224 | 3135 | char *_kwnames[] = { "self","point", NULL }; |
af309447 RD |
3136 | |
3137 | self = self; | |
2f90df85 | 3138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3139 | return NULL; |
1d99702e RD |
3140 | if (_argo0) { |
3141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3144 | return NULL; | |
3145 | } | |
3146 | } | |
2f90df85 RD |
3147 | { |
3148 | _arg1 = &temp; | |
3149 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3150 | return NULL; |
2f90df85 | 3151 | } |
cf694132 RD |
3152 | { |
3153 | wxPy_BEGIN_ALLOW_THREADS; | |
3154 | wxWindow_Move(_arg0,*_arg1); | |
3155 | ||
3156 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3157 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3158 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3159 | _resultobj = Py_None; |
3160 | return _resultobj; | |
3161 | } | |
3162 | ||
1afc06c2 RD |
3163 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3164 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3165 | PyObject * _resultobj; | |
3166 | wxEvtHandler * _result; | |
3167 | wxWindow * _arg0; | |
3168 | bool _arg1 = (bool ) FALSE; | |
3169 | PyObject * _argo0 = 0; | |
3170 | int tempbool1 = (int) FALSE; | |
3171 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3172 | |
3173 | self = self; | |
3174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3175 | return NULL; | |
3176 | if (_argo0) { | |
3177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3180 | return NULL; | |
3181 | } | |
3182 | } | |
3183 | _arg1 = (bool ) tempbool1; | |
3184 | { | |
3185 | wxPy_BEGIN_ALLOW_THREADS; | |
3186 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3187 | ||
3188 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3189 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3190 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3191 | return _resultobj; |
3192 | } | |
3193 | ||
3194 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3195 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3196 | PyObject * _resultobj; | |
3197 | wxWindow * _arg0; | |
3198 | wxEvtHandler * _arg1; | |
3199 | PyObject * _argo0 = 0; | |
3200 | PyObject * _argo1 = 0; | |
3201 | char *_kwnames[] = { "self","handler", NULL }; | |
3202 | ||
3203 | self = self; | |
3204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3205 | return NULL; | |
3206 | if (_argo0) { | |
3207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3210 | return NULL; | |
3211 | } | |
3212 | } | |
3213 | if (_argo1) { | |
3214 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3215 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3217 | return NULL; | |
3218 | } | |
3219 | } | |
3220 | { | |
3221 | wxPy_BEGIN_ALLOW_THREADS; | |
3222 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3223 | ||
3224 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3225 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3226 | } Py_INCREF(Py_None); |
3227 | _resultobj = Py_None; | |
3228 | return _resultobj; | |
3229 | } | |
3230 | ||
8bf5d46e | 3231 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3232 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3233 | PyObject * _resultobj; |
3234 | bool _result; | |
3235 | wxWindow * _arg0; | |
3236 | wxMenu * _arg1; | |
3237 | int _arg2; | |
3238 | int _arg3; | |
1d99702e RD |
3239 | PyObject * _argo0 = 0; |
3240 | PyObject * _argo1 = 0; | |
efc5f224 | 3241 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3242 | |
3243 | self = self; | |
efc5f224 | 3244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3245 | return NULL; |
1d99702e RD |
3246 | if (_argo0) { |
3247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3250 | return NULL; | |
3251 | } | |
3252 | } | |
1d99702e RD |
3253 | if (_argo1) { |
3254 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3255 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3257 | return NULL; | |
3258 | } | |
3259 | } | |
3260 | { | |
3261 | wxPy_BEGIN_ALLOW_THREADS; | |
3262 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3263 | ||
3264 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3265 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3266 | } _resultobj = Py_BuildValue("i",_result); |
3267 | return _resultobj; | |
3268 | } | |
3269 | ||
3270 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3271 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3272 | PyObject * _resultobj; |
3273 | bool _result; | |
3274 | wxWindow * _arg0; | |
3275 | wxMenu * _arg1; | |
3276 | wxPoint * _arg2; | |
1d99702e RD |
3277 | PyObject * _argo0 = 0; |
3278 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3279 | wxPoint temp; |
3280 | PyObject * _obj2 = 0; | |
efc5f224 | 3281 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3282 | |
3283 | self = self; | |
2f90df85 | 3284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3285 | return NULL; |
1d99702e RD |
3286 | if (_argo0) { |
3287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3290 | return NULL; | |
3291 | } | |
3292 | } | |
1d99702e RD |
3293 | if (_argo1) { |
3294 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3295 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3297 | return NULL; | |
3298 | } | |
3299 | } | |
2f90df85 RD |
3300 | { |
3301 | _arg2 = &temp; | |
3302 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3303 | return NULL; |
2f90df85 | 3304 | } |
cf694132 RD |
3305 | { |
3306 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 3307 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 RD |
3308 | |
3309 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3310 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3311 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3312 | return _resultobj; |
3313 | } | |
3314 | ||
3315 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3316 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3317 | PyObject * _resultobj; |
3318 | wxWindow * _arg0; | |
1d99702e | 3319 | PyObject * _argo0 = 0; |
efc5f224 | 3320 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3321 | |
3322 | self = self; | |
efc5f224 | 3323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3324 | return NULL; |
1d99702e RD |
3325 | if (_argo0) { |
3326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3329 | return NULL; | |
3330 | } | |
3331 | } | |
cf694132 RD |
3332 | { |
3333 | wxPy_BEGIN_ALLOW_THREADS; | |
3334 | wxWindow_Raise(_arg0); | |
3335 | ||
3336 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3337 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3338 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3339 | _resultobj = Py_None; |
3340 | return _resultobj; | |
3341 | } | |
3342 | ||
3343 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3344 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3345 | PyObject * _resultobj; |
3346 | wxWindow * _arg0; | |
1d99702e RD |
3347 | bool _arg1 = (bool ) TRUE; |
3348 | wxRect * _arg2 = (wxRect *) NULL; | |
3349 | PyObject * _argo0 = 0; | |
3350 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3351 | wxRect temp; |
3352 | PyObject * _obj2 = 0; | |
efc5f224 | 3353 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3354 | |
3355 | self = self; | |
2f90df85 | 3356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3357 | return NULL; |
1d99702e RD |
3358 | if (_argo0) { |
3359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3362 | return NULL; | |
3363 | } | |
3364 | } | |
3365 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3366 | if (_obj2) |
3367 | { | |
3368 | _arg2 = &temp; | |
3369 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3370 | return NULL; |
2f90df85 | 3371 | } |
cf694132 RD |
3372 | { |
3373 | wxPy_BEGIN_ALLOW_THREADS; | |
3374 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3375 | ||
3376 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3377 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3378 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3379 | _resultobj = Py_None; |
3380 | return _resultobj; | |
3381 | } | |
3382 | ||
3383 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
efc5f224 | 3384 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3385 | PyObject * _resultobj; |
3386 | wxWindow * _arg0; | |
1d99702e | 3387 | PyObject * _argo0 = 0; |
efc5f224 | 3388 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3389 | |
3390 | self = self; | |
efc5f224 | 3391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3392 | return NULL; |
1d99702e RD |
3393 | if (_argo0) { |
3394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3397 | return NULL; | |
3398 | } | |
3399 | } | |
cf694132 RD |
3400 | { |
3401 | wxPy_BEGIN_ALLOW_THREADS; | |
3402 | wxWindow_ReleaseMouse(_arg0); | |
3403 | ||
3404 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3405 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3406 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3407 | _resultobj = Py_None; |
3408 | return _resultobj; | |
3409 | } | |
3410 | ||
b7e72427 RD |
3411 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3412 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3413 | PyObject * _resultobj; | |
3414 | wxWindow * _arg0; | |
3415 | wxWindow * _arg1; | |
3416 | PyObject * _argo0 = 0; | |
3417 | PyObject * _argo1 = 0; | |
3418 | char *_kwnames[] = { "self","child", NULL }; | |
3419 | ||
3420 | self = self; | |
3421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3422 | return NULL; | |
3423 | if (_argo0) { | |
3424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3427 | return NULL; | |
3428 | } | |
3429 | } | |
3430 | if (_argo1) { | |
3431 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3432 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3434 | return NULL; | |
3435 | } | |
3436 | } | |
3437 | { | |
3438 | wxPy_BEGIN_ALLOW_THREADS; | |
3439 | wxWindow_RemoveChild(_arg0,_arg1); | |
3440 | ||
3441 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3442 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3443 | } Py_INCREF(Py_None); |
3444 | _resultobj = Py_None; | |
3445 | return _resultobj; | |
3446 | } | |
3447 | ||
bb0054cd | 3448 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3449 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3450 | PyObject * _resultobj; |
3451 | bool _result; | |
3452 | wxWindow * _arg0; | |
3453 | wxWindow * _arg1; | |
1d99702e RD |
3454 | PyObject * _argo0 = 0; |
3455 | PyObject * _argo1 = 0; | |
efc5f224 | 3456 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3457 | |
3458 | self = self; | |
efc5f224 | 3459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3460 | return NULL; |
1d99702e RD |
3461 | if (_argo0) { |
3462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3465 | return NULL; | |
3466 | } | |
3467 | } | |
1d99702e RD |
3468 | if (_argo1) { |
3469 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3470 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3472 | return NULL; | |
3473 | } | |
3474 | } | |
3475 | { | |
3476 | wxPy_BEGIN_ALLOW_THREADS; | |
3477 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3478 | ||
3479 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3480 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3481 | } _resultobj = Py_BuildValue("i",_result); |
3482 | return _resultobj; | |
3483 | } | |
3484 | ||
af309447 | 3485 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3486 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3487 | PyObject * _resultobj; |
3488 | wxWindow * _arg0; | |
3489 | int * _arg1; | |
3490 | int * _arg2; | |
1d99702e | 3491 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3492 | int temp; |
3493 | PyObject * _obj1 = 0; | |
3494 | int temp0; | |
3495 | PyObject * _obj2 = 0; | |
efc5f224 | 3496 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3497 | |
3498 | self = self; | |
efc5f224 | 3499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3500 | return NULL; |
1d99702e RD |
3501 | if (_argo0) { |
3502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3505 | return NULL; |
3506 | } | |
3507 | } | |
3508 | { | |
3509 | temp = (int) PyInt_AsLong(_obj1); | |
3510 | _arg1 = &temp; | |
3511 | } | |
3512 | { | |
3513 | temp0 = (int) PyInt_AsLong(_obj2); | |
3514 | _arg2 = &temp0; | |
3515 | } | |
cf694132 RD |
3516 | { |
3517 | wxPy_BEGIN_ALLOW_THREADS; | |
3518 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3519 | ||
3520 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3521 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3522 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3523 | _resultobj = Py_None; |
3524 | { | |
3525 | PyObject *o; | |
3526 | o = PyInt_FromLong((long) (*_arg1)); | |
3527 | _resultobj = t_output_helper(_resultobj, o); | |
3528 | } | |
3529 | { | |
3530 | PyObject *o; | |
3531 | o = PyInt_FromLong((long) (*_arg2)); | |
3532 | _resultobj = t_output_helper(_resultobj, o); | |
3533 | } | |
3534 | return _resultobj; | |
3535 | } | |
3536 | ||
af309447 | 3537 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3538 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3539 | PyObject * _resultobj; |
3540 | wxPoint * _result; | |
3541 | wxWindow * _arg0; | |
3542 | wxPoint * _arg1; | |
1d99702e | 3543 | PyObject * _argo0 = 0; |
2f90df85 RD |
3544 | wxPoint temp; |
3545 | PyObject * _obj1 = 0; | |
efc5f224 | 3546 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3547 | char _ptemp[128]; |
3548 | ||
3549 | self = self; | |
2f90df85 | 3550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3551 | return NULL; |
1d99702e RD |
3552 | if (_argo0) { |
3553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3556 | return NULL; | |
3557 | } | |
3558 | } | |
2f90df85 RD |
3559 | { |
3560 | _arg1 = &temp; | |
3561 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3562 | return NULL; |
2f90df85 | 3563 | } |
cf694132 RD |
3564 | { |
3565 | wxPy_BEGIN_ALLOW_THREADS; | |
3566 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3567 | ||
3568 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3569 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3570 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3571 | _resultobj = Py_BuildValue("s",_ptemp); |
3572 | return _resultobj; | |
3573 | } | |
3574 | ||
8ab979d7 | 3575 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3576 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3577 | PyObject * _resultobj; |
3578 | wxWindow * _arg0; | |
3579 | int _arg1; | |
3580 | int _arg2; | |
1d99702e RD |
3581 | wxRect * _arg3 = (wxRect *) NULL; |
3582 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3583 | wxRect temp; |
3584 | PyObject * _obj3 = 0; | |
efc5f224 | 3585 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3586 | |
3587 | self = self; | |
2f90df85 | 3588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3589 | return NULL; |
1d99702e RD |
3590 | if (_argo0) { |
3591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3594 | return NULL; | |
3595 | } | |
3596 | } | |
2f90df85 RD |
3597 | if (_obj3) |
3598 | { | |
3599 | _arg3 = &temp; | |
3600 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3601 | return NULL; |
2f90df85 | 3602 | } |
cf694132 RD |
3603 | { |
3604 | wxPy_BEGIN_ALLOW_THREADS; | |
3605 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3606 | ||
3607 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3608 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3609 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3610 | _resultobj = Py_None; |
3611 | return _resultobj; | |
3612 | } | |
3613 | ||
b8b8dda7 | 3614 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
efc5f224 | 3615 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
3616 | PyObject * _resultobj; |
3617 | wxWindow * _arg0; | |
3618 | wxAcceleratorTable * _arg1; | |
1d99702e RD |
3619 | PyObject * _argo0 = 0; |
3620 | PyObject * _argo1 = 0; | |
efc5f224 | 3621 | char *_kwnames[] = { "self","accel", NULL }; |
b8b8dda7 RD |
3622 | |
3623 | self = self; | |
efc5f224 | 3624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 3625 | return NULL; |
1d99702e RD |
3626 | if (_argo0) { |
3627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
3629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); |
3630 | return NULL; | |
3631 | } | |
3632 | } | |
1d99702e RD |
3633 | if (_argo1) { |
3634 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3635 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
b8b8dda7 RD |
3636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
3637 | return NULL; | |
3638 | } | |
3639 | } | |
cf694132 RD |
3640 | { |
3641 | wxPy_BEGIN_ALLOW_THREADS; | |
3642 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
3643 | ||
3644 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3645 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3646 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
3647 | _resultobj = Py_None; |
3648 | return _resultobj; | |
3649 | } | |
3650 | ||
8ab979d7 | 3651 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) |
efc5f224 | 3652 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3653 | PyObject * _resultobj; |
3654 | wxWindow * _arg0; | |
3655 | bool _arg1; | |
1d99702e | 3656 | PyObject * _argo0 = 0; |
8ab979d7 | 3657 | int tempbool1; |
efc5f224 | 3658 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3659 | |
3660 | self = self; | |
efc5f224 | 3661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3662 | return NULL; |
1d99702e RD |
3663 | if (_argo0) { |
3664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3667 | return NULL; | |
3668 | } | |
3669 | } | |
3670 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3671 | { |
3672 | wxPy_BEGIN_ALLOW_THREADS; | |
3673 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3674 | ||
3675 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3676 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3677 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3678 | _resultobj = Py_None; |
3679 | return _resultobj; | |
3680 | } | |
3681 | ||
9d8bd15f RD |
3682 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3683 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3684 | PyObject * _resultobj; | |
3685 | bool _result; | |
3686 | wxWindow * _arg0; | |
3687 | PyObject * _argo0 = 0; | |
3688 | char *_kwnames[] = { "self", NULL }; | |
3689 | ||
3690 | self = self; | |
3691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3692 | return NULL; | |
3693 | if (_argo0) { | |
3694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3697 | return NULL; | |
3698 | } | |
3699 | } | |
3700 | { | |
3701 | wxPy_BEGIN_ALLOW_THREADS; | |
3702 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3703 | ||
3704 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3705 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3706 | } _resultobj = Py_BuildValue("i",_result); |
3707 | return _resultobj; | |
3708 | } | |
3709 | ||
8ab979d7 | 3710 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3711 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3712 | PyObject * _resultobj; |
3713 | wxWindow * _arg0; | |
3714 | wxColour * _arg1; | |
1d99702e | 3715 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3716 | wxColour temp; |
3717 | PyObject * _obj1 = 0; | |
efc5f224 | 3718 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3719 | |
3720 | self = self; | |
f6bcfd97 | 3721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3722 | return NULL; |
1d99702e RD |
3723 | if (_argo0) { |
3724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3727 | return NULL; | |
3728 | } | |
3729 | } | |
f6bcfd97 BP |
3730 | { |
3731 | _arg1 = &temp; | |
3732 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3733 | return NULL; |
f6bcfd97 | 3734 | } |
cf694132 RD |
3735 | { |
3736 | wxPy_BEGIN_ALLOW_THREADS; | |
3737 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3738 | ||
3739 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3740 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3741 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3742 | _resultobj = Py_None; |
3743 | return _resultobj; | |
3744 | } | |
3745 | ||
3746 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3747 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3748 | PyObject * _resultobj; |
3749 | wxWindow * _arg0; | |
3750 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3751 | PyObject * _argo0 = 0; |
3752 | PyObject * _argo1 = 0; | |
efc5f224 | 3753 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3754 | |
3755 | self = self; | |
efc5f224 | 3756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3757 | return NULL; |
1d99702e RD |
3758 | if (_argo0) { |
3759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3762 | return NULL; | |
3763 | } | |
3764 | } | |
1d99702e RD |
3765 | if (_argo1) { |
3766 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3767 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3769 | return NULL; | |
3770 | } | |
3771 | } | |
cf694132 RD |
3772 | { |
3773 | wxPy_BEGIN_ALLOW_THREADS; | |
3774 | wxWindow_SetConstraints(_arg0,_arg1); | |
3775 | ||
3776 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3777 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3778 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3779 | _resultobj = Py_None; |
3780 | return _resultobj; | |
3781 | } | |
3782 | ||
2f90df85 RD |
3783 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3784 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3785 | PyObject * _resultobj; | |
3786 | wxWindow * _arg0; | |
3787 | wxLayoutConstraints * _arg1; | |
3788 | PyObject * _argo0 = 0; | |
3789 | PyObject * _argo1 = 0; | |
3790 | char *_kwnames[] = { "self","constraints", NULL }; | |
3791 | ||
3792 | self = self; | |
3793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3794 | return NULL; | |
3795 | if (_argo0) { | |
3796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3799 | return NULL; | |
3800 | } | |
3801 | } | |
3802 | if (_argo1) { | |
3803 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3804 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3806 | return NULL; | |
3807 | } | |
3808 | } | |
3809 | { | |
3810 | wxPy_BEGIN_ALLOW_THREADS; | |
3811 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3812 | ||
3813 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3814 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3815 | } Py_INCREF(Py_None); |
3816 | _resultobj = Py_None; | |
3817 | return _resultobj; | |
3818 | } | |
3819 | ||
8ab979d7 | 3820 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3821 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3822 | PyObject * _resultobj; |
3823 | wxWindow * _arg0; | |
1d99702e | 3824 | PyObject * _argo0 = 0; |
efc5f224 | 3825 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3826 | |
3827 | self = self; | |
efc5f224 | 3828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3829 | return NULL; |
1d99702e RD |
3830 | if (_argo0) { |
3831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3834 | return NULL; | |
3835 | } | |
3836 | } | |
cf694132 RD |
3837 | { |
3838 | wxPy_BEGIN_ALLOW_THREADS; | |
3839 | wxWindow_SetFocus(_arg0); | |
3840 | ||
3841 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3842 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3843 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3844 | _resultobj = Py_None; |
3845 | return _resultobj; | |
3846 | } | |
3847 | ||
2f90df85 RD |
3848 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3849 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3850 | PyObject * _resultobj; | |
3851 | bool _result; | |
3852 | wxWindow * _arg0; | |
3853 | PyObject * _argo0 = 0; | |
3854 | char *_kwnames[] = { "self", NULL }; | |
3855 | ||
3856 | self = self; | |
3857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3858 | return NULL; | |
3859 | if (_argo0) { | |
3860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3863 | return NULL; | |
3864 | } | |
3865 | } | |
3866 | { | |
3867 | wxPy_BEGIN_ALLOW_THREADS; | |
3868 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3869 | ||
3870 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3871 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3872 | } _resultobj = Py_BuildValue("i",_result); |
3873 | return _resultobj; | |
3874 | } | |
3875 | ||
8ab979d7 | 3876 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 3877 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3878 | PyObject * _resultobj; |
3879 | wxWindow * _arg0; | |
3880 | wxFont * _arg1; | |
1d99702e RD |
3881 | PyObject * _argo0 = 0; |
3882 | PyObject * _argo1 = 0; | |
efc5f224 | 3883 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
3884 | |
3885 | self = self; | |
efc5f224 | 3886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3887 | return NULL; |
1d99702e RD |
3888 | if (_argo0) { |
3889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3892 | return NULL; | |
3893 | } | |
3894 | } | |
1d99702e RD |
3895 | if (_argo1) { |
3896 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3897 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
3898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3899 | return NULL; | |
3900 | } | |
3901 | } | |
cf694132 RD |
3902 | { |
3903 | wxPy_BEGIN_ALLOW_THREADS; | |
3904 | wxWindow_SetFont(_arg0,*_arg1); | |
3905 | ||
3906 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3907 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3908 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3909 | _resultobj = Py_None; |
3910 | return _resultobj; | |
3911 | } | |
3912 | ||
3913 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 3914 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3915 | PyObject * _resultobj; |
3916 | wxWindow * _arg0; | |
3917 | wxColour * _arg1; | |
1d99702e | 3918 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3919 | wxColour temp; |
3920 | PyObject * _obj1 = 0; | |
efc5f224 | 3921 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3922 | |
3923 | self = self; | |
f6bcfd97 | 3924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3925 | return NULL; |
1d99702e RD |
3926 | if (_argo0) { |
3927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
3930 | return NULL; | |
3931 | } | |
3932 | } | |
f6bcfd97 BP |
3933 | { |
3934 | _arg1 = &temp; | |
3935 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3936 | return NULL; |
f6bcfd97 | 3937 | } |
cf694132 RD |
3938 | { |
3939 | wxPy_BEGIN_ALLOW_THREADS; | |
3940 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3941 | ||
3942 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3943 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3944 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3945 | _resultobj = Py_None; |
3946 | return _resultobj; | |
3947 | } | |
3948 | ||
3949 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 3950 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3951 | PyObject * _resultobj; |
3952 | wxWindow * _arg0; | |
3953 | int _arg1; | |
1d99702e | 3954 | PyObject * _argo0 = 0; |
efc5f224 | 3955 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
3956 | |
3957 | self = self; | |
efc5f224 | 3958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3959 | return NULL; |
1d99702e RD |
3960 | if (_argo0) { |
3961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
3964 | return NULL; | |
3965 | } | |
3966 | } | |
cf694132 RD |
3967 | { |
3968 | wxPy_BEGIN_ALLOW_THREADS; | |
3969 | wxWindow_SetId(_arg0,_arg1); | |
3970 | ||
3971 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3972 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3973 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3974 | _resultobj = Py_None; |
3975 | return _resultobj; | |
3976 | } | |
3977 | ||
3978 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 3979 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3980 | PyObject * _resultobj; |
3981 | wxWindow * _arg0; | |
3982 | wxString * _arg1; | |
1d99702e | 3983 | PyObject * _argo0 = 0; |
8ab979d7 | 3984 | PyObject * _obj1 = 0; |
efc5f224 | 3985 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
3986 | |
3987 | self = self; | |
efc5f224 | 3988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3989 | return NULL; |
1d99702e RD |
3990 | if (_argo0) { |
3991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
3994 | return NULL; | |
3995 | } | |
3996 | } | |
3997 | { | |
185d7c3e RD |
3998 | #if PYTHON_API_VERSION >= 1009 |
3999 | char* tmpPtr; int tmpSize; | |
4000 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4001 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4002 | return NULL; |
4003 | } | |
4004 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4005 | return NULL; | |
4006 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4007 | #else | |
8ab979d7 RD |
4008 | if (!PyString_Check(_obj1)) { |
4009 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4010 | return NULL; | |
4011 | } | |
185d7c3e RD |
4012 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4013 | #endif | |
8ab979d7 | 4014 | } |
cf694132 RD |
4015 | { |
4016 | wxPy_BEGIN_ALLOW_THREADS; | |
4017 | wxWindow_SetName(_arg0,*_arg1); | |
4018 | ||
4019 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4020 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4021 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4022 | _resultobj = Py_None; |
4023 | { | |
4024 | if (_obj1) | |
4025 | delete _arg1; | |
4026 | } | |
4027 | return _resultobj; | |
4028 | } | |
4029 | ||
8ab979d7 | 4030 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4031 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4032 | PyObject * _resultobj; |
4033 | wxWindow * _arg0; | |
4034 | int _arg1; | |
4035 | int _arg2; | |
4036 | int _arg3; | |
4037 | int _arg4; | |
eb715945 | 4038 | int _arg5 = (int ) TRUE; |
1d99702e | 4039 | PyObject * _argo0 = 0; |
efc5f224 | 4040 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4041 | |
4042 | self = self; | |
eb715945 | 4043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4044 | return NULL; |
1d99702e RD |
4045 | if (_argo0) { |
4046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4049 | return NULL; | |
4050 | } | |
4051 | } | |
cf694132 RD |
4052 | { |
4053 | wxPy_BEGIN_ALLOW_THREADS; | |
4054 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4055 | ||
4056 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4057 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4058 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4059 | _resultobj = Py_None; |
4060 | return _resultobj; | |
4061 | } | |
4062 | ||
4063 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4064 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4065 | PyObject * _resultobj; |
4066 | wxWindow * _arg0; | |
4067 | int _arg1; | |
4068 | int _arg2; | |
1d99702e RD |
4069 | bool _arg3 = (bool ) TRUE; |
4070 | PyObject * _argo0 = 0; | |
4071 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4072 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4073 | |
4074 | self = self; | |
efc5f224 | 4075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4076 | return NULL; |
1d99702e RD |
4077 | if (_argo0) { |
4078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4081 | return NULL; | |
4082 | } | |
4083 | } | |
4084 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
4085 | { |
4086 | wxPy_BEGIN_ALLOW_THREADS; | |
4087 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4088 | ||
4089 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4090 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4091 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4092 | _resultobj = Py_None; |
4093 | return _resultobj; | |
4094 | } | |
4095 | ||
4096 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4097 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4098 | PyObject * _resultobj; |
4099 | wxWindow * _arg0; | |
4100 | int _arg1; | |
4101 | int _arg2; | |
4102 | int _arg3; | |
4103 | int _arg4; | |
1d99702e RD |
4104 | int _arg5 = (int ) wxSIZE_AUTO; |
4105 | PyObject * _argo0 = 0; | |
efc5f224 | 4106 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4107 | |
4108 | self = self; | |
efc5f224 | 4109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4110 | return NULL; |
1d99702e RD |
4111 | if (_argo0) { |
4112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4115 | return NULL; | |
4116 | } | |
4117 | } | |
cf694132 RD |
4118 | { |
4119 | wxPy_BEGIN_ALLOW_THREADS; | |
4120 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4121 | ||
4122 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4123 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4124 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4125 | _resultobj = Py_None; |
4126 | return _resultobj; | |
4127 | } | |
4128 | ||
4129 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4130 | self->SetSize(size); |
8ab979d7 | 4131 | } |
efc5f224 | 4132 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4133 | PyObject * _resultobj; |
4134 | wxWindow * _arg0; | |
4135 | wxSize * _arg1; | |
1d99702e | 4136 | PyObject * _argo0 = 0; |
2f90df85 RD |
4137 | wxSize temp; |
4138 | PyObject * _obj1 = 0; | |
efc5f224 | 4139 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4140 | |
4141 | self = self; | |
2f90df85 | 4142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4143 | return NULL; |
1d99702e RD |
4144 | if (_argo0) { |
4145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4148 | return NULL; | |
4149 | } | |
4150 | } | |
2f90df85 RD |
4151 | { |
4152 | _arg1 = &temp; | |
4153 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4154 | return NULL; |
2f90df85 | 4155 | } |
cf694132 RD |
4156 | { |
4157 | wxPy_BEGIN_ALLOW_THREADS; | |
4158 | wxWindow_SetSize(_arg0,*_arg1); | |
4159 | ||
4160 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4161 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4162 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4163 | _resultobj = Py_None; |
4164 | return _resultobj; | |
4165 | } | |
4166 | ||
4167 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
b7e72427 | 4168 | self->Move(pos); |
8ab979d7 | 4169 | } |
efc5f224 | 4170 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4171 | PyObject * _resultobj; |
4172 | wxWindow * _arg0; | |
4173 | wxPoint * _arg1; | |
1d99702e | 4174 | PyObject * _argo0 = 0; |
2f90df85 RD |
4175 | wxPoint temp; |
4176 | PyObject * _obj1 = 0; | |
efc5f224 | 4177 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4178 | |
4179 | self = self; | |
2f90df85 | 4180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4181 | return NULL; |
1d99702e RD |
4182 | if (_argo0) { |
4183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4186 | return NULL; | |
4187 | } | |
4188 | } | |
2f90df85 RD |
4189 | { |
4190 | _arg1 = &temp; | |
4191 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4192 | return NULL; |
2f90df85 | 4193 | } |
cf694132 RD |
4194 | { |
4195 | wxPy_BEGIN_ALLOW_THREADS; | |
4196 | wxWindow_SetPosition(_arg0,*_arg1); | |
4197 | ||
4198 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4199 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4200 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4201 | _resultobj = Py_None; |
4202 | return _resultobj; | |
4203 | } | |
4204 | ||
dbbb98cd RD |
4205 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4206 | self->SetSize(rect, sizeFlags); | |
4207 | } | |
4208 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4209 | PyObject * _resultobj; | |
4210 | wxWindow * _arg0; | |
4211 | wxRect * _arg1; | |
4212 | int _arg2 = (int ) wxSIZE_AUTO; | |
4213 | PyObject * _argo0 = 0; | |
4214 | wxRect temp; | |
4215 | PyObject * _obj1 = 0; | |
4216 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4217 | ||
4218 | self = self; | |
4219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4220 | return NULL; | |
4221 | if (_argo0) { | |
4222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4225 | return NULL; | |
4226 | } | |
4227 | } | |
4228 | { | |
4229 | _arg1 = &temp; | |
4230 | if (! wxRect_helper(_obj1, &_arg1)) | |
4231 | return NULL; | |
4232 | } | |
4233 | { | |
4234 | wxPy_BEGIN_ALLOW_THREADS; | |
4235 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4236 | ||
4237 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4238 | if (PyErr_Occurred()) return NULL; |
dbbb98cd RD |
4239 | } Py_INCREF(Py_None); |
4240 | _resultobj = Py_None; | |
4241 | return _resultobj; | |
4242 | } | |
4243 | ||
8ab979d7 | 4244 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4245 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4246 | PyObject * _resultobj; |
4247 | wxWindow * _arg0; | |
1d99702e RD |
4248 | int _arg1 = (int ) -1; |
4249 | int _arg2 = (int ) -1; | |
4250 | int _arg3 = (int ) -1; | |
4251 | int _arg4 = (int ) -1; | |
4252 | int _arg5 = (int ) -1; | |
4253 | int _arg6 = (int ) -1; | |
4254 | PyObject * _argo0 = 0; | |
efc5f224 | 4255 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4256 | |
4257 | self = self; | |
efc5f224 | 4258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4259 | return NULL; |
1d99702e RD |
4260 | if (_argo0) { |
4261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4264 | return NULL; | |
4265 | } | |
4266 | } | |
cf694132 RD |
4267 | { |
4268 | wxPy_BEGIN_ALLOW_THREADS; | |
4269 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4270 | ||
4271 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4272 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4273 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4274 | _resultobj = Py_None; |
4275 | return _resultobj; | |
4276 | } | |
4277 | ||
af309447 | 4278 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4279 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4280 | PyObject * _resultobj; |
4281 | wxWindow * _arg0; | |
4282 | int _arg1; | |
4283 | int _arg2; | |
1d99702e | 4284 | PyObject * _argo0 = 0; |
efc5f224 | 4285 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4286 | |
4287 | self = self; | |
efc5f224 | 4288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4289 | return NULL; |
1d99702e RD |
4290 | if (_argo0) { |
4291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4294 | return NULL; | |
4295 | } | |
4296 | } | |
cf694132 RD |
4297 | { |
4298 | wxPy_BEGIN_ALLOW_THREADS; | |
4299 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4300 | ||
4301 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4302 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4303 | } Py_INCREF(Py_None); |
af309447 RD |
4304 | _resultobj = Py_None; |
4305 | return _resultobj; | |
4306 | } | |
4307 | ||
4308 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4309 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4310 | PyObject * _resultobj; |
4311 | wxWindow * _arg0; | |
4312 | wxSize * _arg1; | |
1d99702e | 4313 | PyObject * _argo0 = 0; |
2f90df85 RD |
4314 | wxSize temp; |
4315 | PyObject * _obj1 = 0; | |
efc5f224 | 4316 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4317 | |
4318 | self = self; | |
2f90df85 | 4319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4320 | return NULL; |
1d99702e RD |
4321 | if (_argo0) { |
4322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4325 | return NULL; | |
4326 | } | |
4327 | } | |
2f90df85 RD |
4328 | { |
4329 | _arg1 = &temp; | |
4330 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4331 | return NULL; |
2f90df85 | 4332 | } |
cf694132 RD |
4333 | { |
4334 | wxPy_BEGIN_ALLOW_THREADS; | |
4335 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4336 | ||
4337 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4338 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4339 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4340 | _resultobj = Py_None; |
4341 | return _resultobj; | |
4342 | } | |
4343 | ||
4344 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4345 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4346 | PyObject * _resultobj; |
4347 | wxWindow * _arg0; | |
4348 | wxCursor * _arg1; | |
1d99702e RD |
4349 | PyObject * _argo0 = 0; |
4350 | PyObject * _argo1 = 0; | |
efc5f224 | 4351 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4352 | |
4353 | self = self; | |
efc5f224 | 4354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4355 | return NULL; |
1d99702e RD |
4356 | if (_argo0) { |
4357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4360 | return NULL; | |
4361 | } | |
4362 | } | |
1d99702e RD |
4363 | if (_argo1) { |
4364 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4365 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4367 | return NULL; | |
4368 | } | |
4369 | } | |
cf694132 RD |
4370 | { |
4371 | wxPy_BEGIN_ALLOW_THREADS; | |
4372 | wxWindow_SetCursor(_arg0,*_arg1); | |
4373 | ||
4374 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4375 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4376 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4377 | _resultobj = Py_None; |
4378 | return _resultobj; | |
4379 | } | |
4380 | ||
1afc06c2 RD |
4381 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4382 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4383 | PyObject * _resultobj; | |
4384 | wxWindow * _arg0; | |
4385 | wxEvtHandler * _arg1; | |
4386 | PyObject * _argo0 = 0; | |
4387 | PyObject * _argo1 = 0; | |
4388 | char *_kwnames[] = { "self","handler", NULL }; | |
4389 | ||
4390 | self = self; | |
4391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4392 | return NULL; | |
4393 | if (_argo0) { | |
4394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4397 | return NULL; | |
4398 | } | |
4399 | } | |
4400 | if (_argo1) { | |
4401 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4402 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4404 | return NULL; | |
4405 | } | |
4406 | } | |
4407 | { | |
4408 | wxPy_BEGIN_ALLOW_THREADS; | |
4409 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4410 | ||
4411 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4412 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4413 | } Py_INCREF(Py_None); |
4414 | _resultobj = Py_None; | |
4415 | return _resultobj; | |
4416 | } | |
4417 | ||
83b18bab RD |
4418 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4419 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4420 | PyObject * _resultobj; | |
4421 | wxWindow * _arg0; | |
4422 | long _arg1; | |
4423 | PyObject * _argo0 = 0; | |
4424 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4425 | ||
4426 | self = self; | |
4427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4428 | return NULL; | |
4429 | if (_argo0) { | |
4430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4433 | return NULL; | |
4434 | } | |
4435 | } | |
4436 | { | |
4437 | wxPy_BEGIN_ALLOW_THREADS; | |
4438 | wxWindow_SetExtraStyle(_arg0,_arg1); | |
4439 | ||
4440 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4441 | if (PyErr_Occurred()) return NULL; |
83b18bab RD |
4442 | } Py_INCREF(Py_None); |
4443 | _resultobj = Py_None; | |
4444 | return _resultobj; | |
4445 | } | |
4446 | ||
8ab979d7 | 4447 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4448 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4449 | PyObject * _resultobj; |
4450 | wxWindow * _arg0; | |
4451 | wxString * _arg1; | |
1d99702e | 4452 | PyObject * _argo0 = 0; |
8ab979d7 | 4453 | PyObject * _obj1 = 0; |
efc5f224 | 4454 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4455 | |
4456 | self = self; | |
efc5f224 | 4457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4458 | return NULL; |
1d99702e RD |
4459 | if (_argo0) { |
4460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4463 | return NULL; | |
4464 | } | |
4465 | } | |
4466 | { | |
185d7c3e RD |
4467 | #if PYTHON_API_VERSION >= 1009 |
4468 | char* tmpPtr; int tmpSize; | |
4469 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4470 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4471 | return NULL; |
4472 | } | |
4473 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4474 | return NULL; | |
4475 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4476 | #else | |
8ab979d7 RD |
4477 | if (!PyString_Check(_obj1)) { |
4478 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4479 | return NULL; | |
4480 | } | |
185d7c3e RD |
4481 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4482 | #endif | |
8ab979d7 | 4483 | } |
cf694132 RD |
4484 | { |
4485 | wxPy_BEGIN_ALLOW_THREADS; | |
4486 | wxWindow_SetTitle(_arg0,*_arg1); | |
4487 | ||
4488 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4489 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4490 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4491 | _resultobj = Py_None; |
4492 | { | |
4493 | if (_obj1) | |
4494 | delete _arg1; | |
4495 | } | |
4496 | return _resultobj; | |
4497 | } | |
4498 | ||
4499 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4500 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4501 | PyObject * _resultobj; |
4502 | bool _result; | |
4503 | wxWindow * _arg0; | |
4504 | bool _arg1; | |
1d99702e | 4505 | PyObject * _argo0 = 0; |
8ab979d7 | 4506 | int tempbool1; |
efc5f224 | 4507 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4508 | |
4509 | self = self; | |
efc5f224 | 4510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4511 | return NULL; |
1d99702e RD |
4512 | if (_argo0) { |
4513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4516 | return NULL; | |
4517 | } | |
4518 | } | |
4519 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4520 | { |
4521 | wxPy_BEGIN_ALLOW_THREADS; | |
4522 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4523 | ||
4524 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4525 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4526 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4527 | return _resultobj; |
4528 | } | |
4529 | ||
4530 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4531 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4532 | PyObject * _resultobj; |
4533 | bool _result; | |
4534 | wxWindow * _arg0; | |
1d99702e | 4535 | PyObject * _argo0 = 0; |
efc5f224 | 4536 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4537 | |
4538 | self = self; | |
efc5f224 | 4539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4540 | return NULL; |
1d99702e RD |
4541 | if (_argo0) { |
4542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4545 | return NULL; | |
4546 | } | |
4547 | } | |
cf694132 RD |
4548 | { |
4549 | wxPy_BEGIN_ALLOW_THREADS; | |
4550 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4551 | ||
4552 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4553 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4554 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4555 | return _resultobj; |
4556 | } | |
4557 | ||
4558 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4559 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4560 | PyObject * _resultobj; |
4561 | bool _result; | |
4562 | wxWindow * _arg0; | |
1d99702e | 4563 | PyObject * _argo0 = 0; |
efc5f224 | 4564 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4565 | |
4566 | self = self; | |
efc5f224 | 4567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4568 | return NULL; |
1d99702e RD |
4569 | if (_argo0) { |
4570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4573 | return NULL; | |
4574 | } | |
4575 | } | |
cf694132 RD |
4576 | { |
4577 | wxPy_BEGIN_ALLOW_THREADS; | |
4578 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
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_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4587 | static PyObject *_wrap_wxWindow_Validate(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_Validate",_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_Validate. Expected _wxWindow_p."); |
4601 | return NULL; | |
4602 | } | |
4603 | } | |
cf694132 RD |
4604 | { |
4605 | wxPy_BEGIN_ALLOW_THREADS; | |
4606 | _result = (bool )wxWindow_Validate(_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_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4615 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4616 | PyObject * _resultobj; |
4617 | wxWindow * _arg0; | |
4618 | int _arg1; | |
4619 | int _arg2; | |
1d99702e | 4620 | PyObject * _argo0 = 0; |
efc5f224 | 4621 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4622 | |
4623 | self = self; | |
efc5f224 | 4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4625 | return NULL; |
1d99702e RD |
4626 | if (_argo0) { |
4627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4630 | return NULL; | |
4631 | } | |
4632 | } | |
cf694132 RD |
4633 | { |
4634 | wxPy_BEGIN_ALLOW_THREADS; | |
4635 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4636 | ||
4637 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4638 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4639 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4640 | _resultobj = Py_None; |
4641 | return _resultobj; | |
4642 | } | |
4643 | ||
b8b8dda7 | 4644 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4645 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4646 | PyObject * _resultobj; |
4647 | wxPoint * _result; | |
4648 | wxWindow * _arg0; | |
4649 | wxPoint * _arg1; | |
1d99702e | 4650 | PyObject * _argo0 = 0; |
2f90df85 RD |
4651 | wxPoint temp; |
4652 | PyObject * _obj1 = 0; | |
efc5f224 | 4653 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4654 | char _ptemp[128]; |
4655 | ||
4656 | self = self; | |
2f90df85 | 4657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4658 | return NULL; |
1d99702e RD |
4659 | if (_argo0) { |
4660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4663 | return NULL; | |
4664 | } | |
4665 | } | |
2f90df85 RD |
4666 | { |
4667 | _arg1 = &temp; | |
4668 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4669 | return NULL; |
2f90df85 | 4670 | } |
cf694132 RD |
4671 | { |
4672 | wxPy_BEGIN_ALLOW_THREADS; | |
4673 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4674 | ||
4675 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4676 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4677 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4678 | _resultobj = Py_BuildValue("s",_ptemp); |
4679 | return _resultobj; | |
4680 | } | |
4681 | ||
4682 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4683 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4684 | PyObject * _resultobj; |
4685 | wxSize * _result; | |
4686 | wxWindow * _arg0; | |
4687 | wxSize * _arg1; | |
1d99702e | 4688 | PyObject * _argo0 = 0; |
2f90df85 RD |
4689 | wxSize temp; |
4690 | PyObject * _obj1 = 0; | |
efc5f224 | 4691 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4692 | char _ptemp[128]; |
4693 | ||
4694 | self = self; | |
2f90df85 | 4695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4696 | return NULL; |
1d99702e RD |
4697 | if (_argo0) { |
4698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4701 | return NULL; | |
4702 | } | |
4703 | } | |
2f90df85 RD |
4704 | { |
4705 | _arg1 = &temp; | |
4706 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4707 | return NULL; |
2f90df85 | 4708 | } |
cf694132 RD |
4709 | { |
4710 | wxPy_BEGIN_ALLOW_THREADS; | |
4711 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4712 | ||
4713 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4714 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4715 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4716 | _resultobj = Py_BuildValue("s",_ptemp); |
4717 | return _resultobj; | |
4718 | } | |
4719 | ||
4720 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4721 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4722 | PyObject * _resultobj; |
4723 | wxPoint * _result; | |
4724 | wxWindow * _arg0; | |
4725 | wxPoint * _arg1; | |
1d99702e | 4726 | PyObject * _argo0 = 0; |
2f90df85 RD |
4727 | wxPoint temp; |
4728 | PyObject * _obj1 = 0; | |
efc5f224 | 4729 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4730 | char _ptemp[128]; |
4731 | ||
4732 | self = self; | |
2f90df85 | 4733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4734 | return NULL; |
1d99702e RD |
4735 | if (_argo0) { |
4736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4739 | return NULL; | |
4740 | } | |
4741 | } | |
2f90df85 RD |
4742 | { |
4743 | _arg1 = &temp; | |
4744 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4745 | return NULL; |
2f90df85 | 4746 | } |
cf694132 RD |
4747 | { |
4748 | wxPy_BEGIN_ALLOW_THREADS; | |
4749 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4750 | ||
4751 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4752 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4753 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4754 | _resultobj = Py_BuildValue("s",_ptemp); |
4755 | return _resultobj; | |
4756 | } | |
4757 | ||
4758 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4759 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4760 | PyObject * _resultobj; |
4761 | wxSize * _result; | |
4762 | wxWindow * _arg0; | |
4763 | wxSize * _arg1; | |
1d99702e | 4764 | PyObject * _argo0 = 0; |
2f90df85 RD |
4765 | wxSize temp; |
4766 | PyObject * _obj1 = 0; | |
efc5f224 | 4767 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4768 | char _ptemp[128]; |
4769 | ||
4770 | self = self; | |
2f90df85 | 4771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4772 | return NULL; |
1d99702e RD |
4773 | if (_argo0) { |
4774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4777 | return NULL; | |
4778 | } | |
4779 | } | |
2f90df85 RD |
4780 | { |
4781 | _arg1 = &temp; | |
4782 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4783 | return NULL; |
2f90df85 | 4784 | } |
cf694132 RD |
4785 | { |
4786 | wxPy_BEGIN_ALLOW_THREADS; | |
4787 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4788 | ||
4789 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4790 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4791 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4792 | _resultobj = Py_BuildValue("s",_ptemp); |
4793 | return _resultobj; | |
4794 | } | |
4795 | ||
af309447 | 4796 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4797 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4798 | PyObject * _resultobj; |
4799 | wxWindow * _arg0; | |
4800 | wxString * _arg1; | |
1d99702e | 4801 | PyObject * _argo0 = 0; |
af309447 | 4802 | PyObject * _obj1 = 0; |
efc5f224 | 4803 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4804 | |
4805 | self = self; | |
efc5f224 | 4806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4807 | return NULL; |
1d99702e RD |
4808 | if (_argo0) { |
4809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4812 | return NULL; | |
4813 | } | |
4814 | } | |
4815 | { | |
185d7c3e RD |
4816 | #if PYTHON_API_VERSION >= 1009 |
4817 | char* tmpPtr; int tmpSize; | |
4818 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4819 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4820 | return NULL; |
4821 | } | |
4822 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4823 | return NULL; | |
4824 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4825 | #else | |
af309447 RD |
4826 | if (!PyString_Check(_obj1)) { |
4827 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4828 | return NULL; | |
4829 | } | |
185d7c3e RD |
4830 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4831 | #endif | |
af309447 | 4832 | } |
cf694132 RD |
4833 | { |
4834 | wxPy_BEGIN_ALLOW_THREADS; | |
4835 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4836 | ||
4837 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4838 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4839 | } Py_INCREF(Py_None); |
af309447 RD |
4840 | _resultobj = Py_None; |
4841 | { | |
4842 | if (_obj1) | |
4843 | delete _arg1; | |
4844 | } | |
4845 | return _resultobj; | |
4846 | } | |
4847 | ||
4848 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4849 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4850 | PyObject * _resultobj; |
4851 | wxWindow * _arg0; | |
4852 | wxToolTip * _arg1; | |
1d99702e RD |
4853 | PyObject * _argo0 = 0; |
4854 | PyObject * _argo1 = 0; | |
efc5f224 | 4855 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4856 | |
4857 | self = self; | |
efc5f224 | 4858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4859 | return NULL; |
1d99702e RD |
4860 | if (_argo0) { |
4861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4864 | return NULL; | |
4865 | } | |
4866 | } | |
1d99702e RD |
4867 | if (_argo1) { |
4868 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4869 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4871 | return NULL; | |
4872 | } | |
4873 | } | |
cf694132 RD |
4874 | { |
4875 | wxPy_BEGIN_ALLOW_THREADS; | |
4876 | wxWindow_SetToolTip(_arg0,_arg1); | |
4877 | ||
4878 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4879 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4880 | } Py_INCREF(Py_None); |
af309447 RD |
4881 | _resultobj = Py_None; |
4882 | return _resultobj; | |
4883 | } | |
4884 | ||
4885 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 4886 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4887 | PyObject * _resultobj; |
4888 | wxToolTip * _result; | |
4889 | wxWindow * _arg0; | |
1d99702e | 4890 | PyObject * _argo0 = 0; |
efc5f224 | 4891 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
4892 | |
4893 | self = self; | |
efc5f224 | 4894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 4895 | return NULL; |
1d99702e RD |
4896 | if (_argo0) { |
4897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4900 | return NULL; | |
4901 | } | |
4902 | } | |
cf694132 RD |
4903 | { |
4904 | wxPy_BEGIN_ALLOW_THREADS; | |
4905 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4906 | ||
4907 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4908 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 4909 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
4910 | return _resultobj; |
4911 | } | |
4912 | ||
2f90df85 RD |
4913 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
4914 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4915 | PyObject * _resultobj; | |
4916 | wxWindow * _arg0; | |
4917 | wxSizer * _arg1; | |
4918 | PyObject * _argo0 = 0; | |
4919 | PyObject * _argo1 = 0; | |
4920 | char *_kwnames[] = { "self","sizer", NULL }; | |
4921 | ||
4922 | self = self; | |
4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4924 | return NULL; | |
4925 | if (_argo0) { | |
4926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4929 | return NULL; | |
4930 | } | |
4931 | } | |
4932 | if (_argo1) { | |
4933 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4934 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4936 | return NULL; | |
4937 | } | |
4938 | } | |
4939 | { | |
4940 | wxPy_BEGIN_ALLOW_THREADS; | |
4941 | wxWindow_SetSizer(_arg0,_arg1); | |
4942 | ||
4943 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4944 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4945 | } Py_INCREF(Py_None); |
4946 | _resultobj = Py_None; | |
4947 | return _resultobj; | |
4948 | } | |
4949 | ||
f6bcfd97 BP |
4950 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
4951 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4952 | PyObject * _resultobj; | |
4953 | wxSizer * _result; | |
4954 | wxWindow * _arg0; | |
4955 | PyObject * _argo0 = 0; | |
4956 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
4957 | |
4958 | self = self; | |
4959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
4960 | return NULL; | |
4961 | if (_argo0) { | |
4962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
4965 | return NULL; | |
4966 | } | |
4967 | } | |
4968 | { | |
4969 | wxPy_BEGIN_ALLOW_THREADS; | |
4970 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
4971 | ||
4972 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4973 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 4974 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
4975 | return _resultobj; |
4976 | } | |
4977 | ||
2f90df85 RD |
4978 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
4979 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4980 | PyObject * _resultobj; | |
4981 | wxValidator * _result; | |
4982 | wxWindow * _arg0; | |
4983 | PyObject * _argo0 = 0; | |
4984 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
4985 | |
4986 | self = self; | |
4987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
4988 | return NULL; | |
4989 | if (_argo0) { | |
4990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
4993 | return NULL; | |
4994 | } | |
4995 | } | |
4996 | { | |
4997 | wxPy_BEGIN_ALLOW_THREADS; | |
4998 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
4999 | ||
5000 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5001 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5002 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5003 | return _resultobj; |
5004 | } | |
5005 | ||
5006 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5007 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5008 | PyObject * _resultobj; | |
5009 | wxWindow * _arg0; | |
5010 | wxValidator * _arg1; | |
5011 | PyObject * _argo0 = 0; | |
5012 | PyObject * _argo1 = 0; | |
5013 | char *_kwnames[] = { "self","validator", NULL }; | |
5014 | ||
5015 | self = self; | |
5016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5017 | return NULL; | |
5018 | if (_argo0) { | |
5019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5022 | return NULL; | |
5023 | } | |
5024 | } | |
5025 | if (_argo1) { | |
5026 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5027 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5029 | return NULL; | |
5030 | } | |
5031 | } | |
5032 | { | |
5033 | wxPy_BEGIN_ALLOW_THREADS; | |
5034 | wxWindow_SetValidator(_arg0,*_arg1); | |
5035 | ||
5036 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5037 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5038 | } Py_INCREF(Py_None); |
5039 | _resultobj = Py_None; | |
5040 | return _resultobj; | |
5041 | } | |
5042 | ||
b1462dfa RD |
5043 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5044 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5045 | PyObject * _resultobj; | |
5046 | wxWindow * _arg0; | |
5047 | wxDropTarget * _arg1; | |
5048 | PyObject * _argo0 = 0; | |
5049 | PyObject * _argo1 = 0; | |
5050 | char *_kwnames[] = { "self","target", NULL }; | |
5051 | ||
5052 | self = self; | |
5053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5054 | return NULL; | |
5055 | if (_argo0) { | |
5056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5059 | return NULL; | |
5060 | } | |
5061 | } | |
5062 | if (_argo1) { | |
5063 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5064 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5066 | return NULL; | |
5067 | } | |
5068 | } | |
5069 | { | |
5070 | wxPy_BEGIN_ALLOW_THREADS; | |
5071 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5072 | ||
5073 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5074 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5075 | } Py_INCREF(Py_None); |
5076 | _resultobj = Py_None; | |
5077 | return _resultobj; | |
5078 | } | |
5079 | ||
5080 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5081 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5082 | PyObject * _resultobj; | |
5083 | wxDropTarget * _result; | |
5084 | wxWindow * _arg0; | |
5085 | PyObject * _argo0 = 0; | |
5086 | char *_kwnames[] = { "self", NULL }; | |
5087 | char _ptemp[128]; | |
5088 | ||
5089 | self = self; | |
5090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5091 | return NULL; | |
5092 | if (_argo0) { | |
5093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5096 | return NULL; | |
5097 | } | |
5098 | } | |
5099 | { | |
5100 | wxPy_BEGIN_ALLOW_THREADS; | |
5101 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5102 | ||
5103 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5104 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5105 | } if (_result) { |
5106 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5107 | _resultobj = Py_BuildValue("s",_ptemp); | |
5108 | } else { | |
5109 | Py_INCREF(Py_None); | |
5110 | _resultobj = Py_None; | |
5111 | } | |
5112 | return _resultobj; | |
5113 | } | |
5114 | ||
694759cf RD |
5115 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5116 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5117 | PyObject * _resultobj; | |
5118 | wxSize * _result; | |
5119 | wxWindow * _arg0; | |
5120 | PyObject * _argo0 = 0; | |
5121 | char *_kwnames[] = { "self", NULL }; | |
5122 | char _ptemp[128]; | |
5123 | ||
5124 | self = self; | |
5125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5126 | return NULL; | |
5127 | if (_argo0) { | |
5128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5131 | return NULL; | |
5132 | } | |
5133 | } | |
5134 | { | |
5135 | wxPy_BEGIN_ALLOW_THREADS; | |
5136 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5137 | ||
5138 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5139 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5140 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5141 | _resultobj = Py_BuildValue("s",_ptemp); | |
5142 | return _resultobj; | |
5143 | } | |
5144 | ||
a1df7a95 RD |
5145 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5146 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5147 | PyObject * _resultobj; | |
5148 | wxWindow * _arg0; | |
5149 | wxCaret * _arg1; | |
5150 | PyObject * _argo0 = 0; | |
5151 | PyObject * _argo1 = 0; | |
5152 | char *_kwnames[] = { "self","caret", NULL }; | |
5153 | ||
5154 | self = self; | |
5155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5156 | return NULL; | |
5157 | if (_argo0) { | |
5158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5161 | return NULL; | |
5162 | } | |
5163 | } | |
5164 | if (_argo1) { | |
5165 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5166 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5168 | return NULL; | |
5169 | } | |
5170 | } | |
5171 | { | |
5172 | wxPy_BEGIN_ALLOW_THREADS; | |
5173 | wxWindow_SetCaret(_arg0,_arg1); | |
5174 | ||
5175 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5176 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5177 | } Py_INCREF(Py_None); |
5178 | _resultobj = Py_None; | |
5179 | return _resultobj; | |
5180 | } | |
5181 | ||
5182 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5183 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5184 | PyObject * _resultobj; | |
5185 | wxCaret * _result; | |
5186 | wxWindow * _arg0; | |
5187 | PyObject * _argo0 = 0; | |
5188 | char *_kwnames[] = { "self", NULL }; | |
5189 | char _ptemp[128]; | |
5190 | ||
5191 | self = self; | |
5192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5193 | return NULL; | |
5194 | if (_argo0) { | |
5195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5198 | return NULL; | |
5199 | } | |
5200 | } | |
5201 | { | |
5202 | wxPy_BEGIN_ALLOW_THREADS; | |
5203 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5204 | ||
5205 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5206 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5207 | } if (_result) { |
5208 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5209 | _resultobj = Py_BuildValue("s",_ptemp); | |
5210 | } else { | |
5211 | Py_INCREF(Py_None); | |
5212 | _resultobj = Py_None; | |
5213 | } | |
5214 | return _resultobj; | |
5215 | } | |
5216 | ||
8ab979d7 RD |
5217 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5218 | wxPanel *src; | |
5219 | wxWindow *dest; | |
5220 | src = (wxPanel *) ptr; | |
5221 | dest = (wxWindow *) src; | |
5222 | return (void *) dest; | |
5223 | } | |
5224 | ||
5225 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5226 | wxPanel *src; | |
5227 | wxEvtHandler *dest; | |
5228 | src = (wxPanel *) ptr; | |
5229 | dest = (wxEvtHandler *) src; | |
5230 | return (void *) dest; | |
5231 | } | |
5232 | ||
9416aa89 RD |
5233 | static void *SwigwxPanelTowxObject(void *ptr) { |
5234 | wxPanel *src; | |
5235 | wxObject *dest; | |
5236 | src = (wxPanel *) ptr; | |
5237 | dest = (wxObject *) src; | |
5238 | return (void *) dest; | |
5239 | } | |
5240 | ||
8ab979d7 | 5241 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 5242 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5243 | PyObject * _resultobj; |
5244 | wxPanel * _result; | |
5245 | wxWindow * _arg0; | |
5246 | wxWindowID _arg1; | |
e508a2b6 RD |
5247 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5248 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5249 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
5250 | char * _arg5 = (char *) "panel"; | |
5251 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5252 | wxPoint temp; |
5253 | PyObject * _obj2 = 0; | |
5254 | wxSize temp0; | |
5255 | PyObject * _obj3 = 0; | |
efc5f224 | 5256 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5257 | char _ptemp[128]; |
5258 | ||
5259 | self = self; | |
2f90df85 | 5260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5261 | return NULL; |
1d99702e RD |
5262 | if (_argo0) { |
5263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5266 | return NULL; | |
5267 | } | |
5268 | } | |
2f90df85 RD |
5269 | if (_obj2) |
5270 | { | |
5271 | _arg2 = &temp; | |
5272 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5273 | return NULL; |
2f90df85 RD |
5274 | } |
5275 | if (_obj3) | |
5276 | { | |
5277 | _arg3 = &temp0; | |
5278 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5279 | return NULL; |
2f90df85 | 5280 | } |
cf694132 RD |
5281 | { |
5282 | wxPy_BEGIN_ALLOW_THREADS; | |
5283 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5284 | ||
5285 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5286 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5287 | } if (_result) { |
5288 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5289 | _resultobj = Py_BuildValue("s",_ptemp); | |
5290 | } else { | |
5291 | Py_INCREF(Py_None); | |
5292 | _resultobj = Py_None; | |
5293 | } | |
8ab979d7 RD |
5294 | return _resultobj; |
5295 | } | |
5296 | ||
5297 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
efc5f224 | 5298 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5299 | PyObject * _resultobj; |
5300 | wxPanel * _arg0; | |
1d99702e | 5301 | PyObject * _argo0 = 0; |
efc5f224 | 5302 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5303 | |
5304 | self = self; | |
efc5f224 | 5305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 5306 | return NULL; |
1d99702e RD |
5307 | if (_argo0) { |
5308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
5310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
5311 | return NULL; | |
5312 | } | |
5313 | } | |
cf694132 RD |
5314 | { |
5315 | wxPy_BEGIN_ALLOW_THREADS; | |
5316 | wxPanel_InitDialog(_arg0); | |
5317 | ||
5318 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5319 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5320 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5321 | _resultobj = Py_None; |
5322 | return _resultobj; | |
5323 | } | |
5324 | ||
bb0054cd | 5325 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
efc5f224 | 5326 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5327 | PyObject * _resultobj; |
5328 | wxButton * _result; | |
5329 | wxPanel * _arg0; | |
1d99702e | 5330 | PyObject * _argo0 = 0; |
efc5f224 | 5331 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5332 | |
5333 | self = self; | |
efc5f224 | 5334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
bb0054cd | 5335 | return NULL; |
1d99702e RD |
5336 | if (_argo0) { |
5337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
5340 | return NULL; | |
5341 | } | |
5342 | } | |
5343 | { | |
5344 | wxPy_BEGIN_ALLOW_THREADS; | |
5345 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
5346 | ||
5347 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5348 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5349 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
5350 | return _resultobj; |
5351 | } | |
5352 | ||
5353 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
efc5f224 | 5354 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5355 | PyObject * _resultobj; |
5356 | wxPanel * _arg0; | |
5357 | wxButton * _arg1; | |
1d99702e RD |
5358 | PyObject * _argo0 = 0; |
5359 | PyObject * _argo1 = 0; | |
efc5f224 | 5360 | char *_kwnames[] = { "self","btn", NULL }; |
bb0054cd RD |
5361 | |
5362 | self = self; | |
efc5f224 | 5363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 5364 | return NULL; |
1d99702e RD |
5365 | if (_argo0) { |
5366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
5369 | return NULL; | |
5370 | } | |
5371 | } | |
1d99702e RD |
5372 | if (_argo1) { |
5373 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5374 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
bb0054cd RD |
5375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
5376 | return NULL; | |
5377 | } | |
5378 | } | |
5379 | { | |
5380 | wxPy_BEGIN_ALLOW_THREADS; | |
5381 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
5382 | ||
5383 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5384 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5385 | } Py_INCREF(Py_None); |
5386 | _resultobj = Py_None; | |
5387 | return _resultobj; | |
5388 | } | |
5389 | ||
8ab979d7 RD |
5390 | static void *SwigwxDialogTowxPanel(void *ptr) { |
5391 | wxDialog *src; | |
5392 | wxPanel *dest; | |
5393 | src = (wxDialog *) ptr; | |
5394 | dest = (wxPanel *) src; | |
5395 | return (void *) dest; | |
5396 | } | |
5397 | ||
5398 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
5399 | wxDialog *src; | |
5400 | wxWindow *dest; | |
5401 | src = (wxDialog *) ptr; | |
5402 | dest = (wxWindow *) src; | |
5403 | return (void *) dest; | |
5404 | } | |
5405 | ||
5406 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
5407 | wxDialog *src; | |
5408 | wxEvtHandler *dest; | |
5409 | src = (wxDialog *) ptr; | |
5410 | dest = (wxEvtHandler *) src; | |
5411 | return (void *) dest; | |
5412 | } | |
5413 | ||
9416aa89 RD |
5414 | static void *SwigwxDialogTowxObject(void *ptr) { |
5415 | wxDialog *src; | |
5416 | wxObject *dest; | |
5417 | src = (wxDialog *) ptr; | |
5418 | dest = (wxObject *) src; | |
5419 | return (void *) dest; | |
5420 | } | |
5421 | ||
8ab979d7 | 5422 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 5423 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5424 | PyObject * _resultobj; |
5425 | wxDialog * _result; | |
5426 | wxWindow * _arg0; | |
5427 | wxWindowID _arg1; | |
5428 | wxString * _arg2; | |
e508a2b6 RD |
5429 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
5430 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5431 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; |
5432 | char * _arg6 = (char *) "dialogBox"; | |
5433 | PyObject * _argo0 = 0; | |
8ab979d7 | 5434 | PyObject * _obj2 = 0; |
2f90df85 RD |
5435 | wxPoint temp; |
5436 | PyObject * _obj3 = 0; | |
5437 | wxSize temp0; | |
5438 | PyObject * _obj4 = 0; | |
efc5f224 | 5439 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
8ab979d7 RD |
5440 | char _ptemp[128]; |
5441 | ||
5442 | self = self; | |
2f90df85 | 5443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 5444 | return NULL; |
1d99702e RD |
5445 | if (_argo0) { |
5446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); |
5449 | return NULL; | |
5450 | } | |
5451 | } | |
5452 | { | |
185d7c3e RD |
5453 | #if PYTHON_API_VERSION >= 1009 |
5454 | char* tmpPtr; int tmpSize; | |
5455 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 5456 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5457 | return NULL; |
5458 | } | |
5459 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5460 | return NULL; | |
5461 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5462 | #else | |
8ab979d7 RD |
5463 | if (!PyString_Check(_obj2)) { |
5464 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5465 | return NULL; | |
5466 | } | |
185d7c3e RD |
5467 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5468 | #endif | |
8ab979d7 | 5469 | } |
2f90df85 RD |
5470 | if (_obj3) |
5471 | { | |
5472 | _arg3 = &temp; | |
5473 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 5474 | return NULL; |
2f90df85 RD |
5475 | } |
5476 | if (_obj4) | |
5477 | { | |
5478 | _arg4 = &temp0; | |
5479 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 5480 | return NULL; |
2f90df85 | 5481 | } |
cf694132 RD |
5482 | { |
5483 | wxPy_BEGIN_ALLOW_THREADS; | |
5484 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5485 | ||
5486 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5487 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5488 | } if (_result) { |
5489 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
5490 | _resultobj = Py_BuildValue("s",_ptemp); | |
5491 | } else { | |
5492 | Py_INCREF(Py_None); | |
5493 | _resultobj = Py_None; | |
5494 | } | |
8ab979d7 RD |
5495 | { |
5496 | if (_obj2) | |
5497 | delete _arg2; | |
5498 | } | |
5499 | return _resultobj; | |
5500 | } | |
5501 | ||
5502 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 5503 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5504 | PyObject * _resultobj; |
5505 | wxDialog * _arg0; | |
1d99702e RD |
5506 | int _arg1 = (int ) wxBOTH; |
5507 | PyObject * _argo0 = 0; | |
efc5f224 | 5508 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
5509 | |
5510 | self = self; | |
efc5f224 | 5511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5512 | return NULL; |
1d99702e RD |
5513 | if (_argo0) { |
5514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); |
5517 | return NULL; | |
5518 | } | |
5519 | } | |
cf694132 RD |
5520 | { |
5521 | wxPy_BEGIN_ALLOW_THREADS; | |
5522 | wxDialog_Centre(_arg0,_arg1); | |
5523 | ||
5524 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5525 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5526 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5527 | _resultobj = Py_None; |
5528 | return _resultobj; | |
5529 | } | |
5530 | ||
5531 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
efc5f224 | 5532 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5533 | PyObject * _resultobj; |
5534 | wxDialog * _arg0; | |
5535 | int _arg1; | |
1d99702e | 5536 | PyObject * _argo0 = 0; |
efc5f224 | 5537 | char *_kwnames[] = { "self","retCode", NULL }; |
8ab979d7 RD |
5538 | |
5539 | self = self; | |
efc5f224 | 5540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5541 | return NULL; |
1d99702e RD |
5542 | if (_argo0) { |
5543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); |
5546 | return NULL; | |
5547 | } | |
5548 | } | |
cf694132 RD |
5549 | { |
5550 | wxPy_BEGIN_ALLOW_THREADS; | |
5551 | wxDialog_EndModal(_arg0,_arg1); | |
5552 | ||
5553 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5554 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5555 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5556 | _resultobj = Py_None; |
5557 | return _resultobj; | |
5558 | } | |
5559 | ||
5560 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
efc5f224 | 5561 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5562 | PyObject * _resultobj; |
5563 | wxString * _result; | |
5564 | wxDialog * _arg0; | |
1d99702e | 5565 | PyObject * _argo0 = 0; |
efc5f224 | 5566 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5567 | |
5568 | self = self; | |
efc5f224 | 5569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 5570 | return NULL; |
1d99702e RD |
5571 | if (_argo0) { |
5572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); |
5575 | return NULL; | |
5576 | } | |
5577 | } | |
8ab979d7 | 5578 | { |
cf694132 RD |
5579 | wxPy_BEGIN_ALLOW_THREADS; |
5580 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
5581 | ||
5582 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5583 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5584 | }{ |
eec92d76 | 5585 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
5586 | } |
5587 | { | |
5588 | delete _result; | |
5589 | } | |
5590 | return _resultobj; | |
5591 | } | |
5592 | ||
5593 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
efc5f224 | 5594 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5595 | PyObject * _resultobj; |
5596 | wxDialog * _arg0; | |
5597 | bool _arg1; | |
1d99702e | 5598 | PyObject * _argo0 = 0; |
8ab979d7 | 5599 | int tempbool1; |
efc5f224 | 5600 | char *_kwnames[] = { "self","iconize", NULL }; |
8ab979d7 RD |
5601 | |
5602 | self = self; | |
efc5f224 | 5603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5604 | return NULL; |
1d99702e RD |
5605 | if (_argo0) { |
5606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p."); |
5609 | return NULL; | |
5610 | } | |
5611 | } | |
5612 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5613 | { |
5614 | wxPy_BEGIN_ALLOW_THREADS; | |
5615 | wxDialog_Iconize(_arg0,_arg1); | |
5616 | ||
5617 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5618 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5619 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5620 | _resultobj = Py_None; |
5621 | return _resultobj; | |
5622 | } | |
5623 | ||
5624 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
efc5f224 | 5625 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5626 | PyObject * _resultobj; |
5627 | bool _result; | |
5628 | wxDialog * _arg0; | |
1d99702e | 5629 | PyObject * _argo0 = 0; |
efc5f224 | 5630 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5631 | |
5632 | self = self; | |
efc5f224 | 5633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) |
8ab979d7 | 5634 | return NULL; |
1d99702e RD |
5635 | if (_argo0) { |
5636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); |
5639 | return NULL; | |
5640 | } | |
5641 | } | |
cf694132 RD |
5642 | { |
5643 | wxPy_BEGIN_ALLOW_THREADS; | |
5644 | _result = (bool )wxDialog_IsIconized(_arg0); | |
5645 | ||
5646 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5647 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5648 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5649 | return _resultobj; |
5650 | } | |
5651 | ||
5652 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
efc5f224 | 5653 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5654 | PyObject * _resultobj; |
5655 | wxDialog * _arg0; | |
5656 | bool _arg1; | |
1d99702e | 5657 | PyObject * _argo0 = 0; |
8ab979d7 | 5658 | int tempbool1; |
efc5f224 | 5659 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
5660 | |
5661 | self = self; | |
efc5f224 | 5662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5663 | return NULL; |
1d99702e RD |
5664 | if (_argo0) { |
5665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); |
5668 | return NULL; | |
5669 | } | |
5670 | } | |
5671 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5672 | { |
5673 | wxPy_BEGIN_ALLOW_THREADS; | |
5674 | wxDialog_SetModal(_arg0,_arg1); | |
5675 | ||
5676 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5677 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5678 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5679 | _resultobj = Py_None; |
5680 | return _resultobj; | |
5681 | } | |
5682 | ||
5683 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
efc5f224 | 5684 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5685 | PyObject * _resultobj; |
5686 | bool _result; | |
5687 | wxDialog * _arg0; | |
1d99702e | 5688 | PyObject * _argo0 = 0; |
efc5f224 | 5689 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5690 | |
5691 | self = self; | |
efc5f224 | 5692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) |
8ab979d7 | 5693 | return NULL; |
1d99702e RD |
5694 | if (_argo0) { |
5695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); |
5698 | return NULL; | |
5699 | } | |
5700 | } | |
cf694132 RD |
5701 | { |
5702 | wxPy_BEGIN_ALLOW_THREADS; | |
5703 | _result = (bool )wxDialog_IsModal(_arg0); | |
5704 | ||
5705 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5706 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5707 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5708 | return _resultobj; |
5709 | } | |
5710 | ||
5711 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 5712 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5713 | PyObject * _resultobj; |
5714 | wxDialog * _arg0; | |
5715 | wxString * _arg1; | |
1d99702e | 5716 | PyObject * _argo0 = 0; |
8ab979d7 | 5717 | PyObject * _obj1 = 0; |
efc5f224 | 5718 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
5719 | |
5720 | self = self; | |
efc5f224 | 5721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5722 | return NULL; |
1d99702e RD |
5723 | if (_argo0) { |
5724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); |
5727 | return NULL; | |
5728 | } | |
5729 | } | |
5730 | { | |
185d7c3e RD |
5731 | #if PYTHON_API_VERSION >= 1009 |
5732 | char* tmpPtr; int tmpSize; | |
5733 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5734 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5735 | return NULL; |
5736 | } | |
5737 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5738 | return NULL; | |
5739 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5740 | #else | |
8ab979d7 RD |
5741 | if (!PyString_Check(_obj1)) { |
5742 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5743 | return NULL; | |
5744 | } | |
185d7c3e RD |
5745 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5746 | #endif | |
8ab979d7 | 5747 | } |
cf694132 RD |
5748 | { |
5749 | wxPy_BEGIN_ALLOW_THREADS; | |
5750 | wxDialog_SetTitle(_arg0,*_arg1); | |
5751 | ||
5752 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5753 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5754 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5755 | _resultobj = Py_None; |
5756 | { | |
5757 | if (_obj1) | |
5758 | delete _arg1; | |
5759 | } | |
5760 | return _resultobj; | |
5761 | } | |
5762 | ||
5763 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 5764 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5765 | PyObject * _resultobj; |
5766 | bool _result; | |
5767 | wxDialog * _arg0; | |
5768 | bool _arg1; | |
1d99702e | 5769 | PyObject * _argo0 = 0; |
8ab979d7 | 5770 | int tempbool1; |
efc5f224 | 5771 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
5772 | |
5773 | self = self; | |
efc5f224 | 5774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5775 | return NULL; |
1d99702e RD |
5776 | if (_argo0) { |
5777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); |
5780 | return NULL; | |
5781 | } | |
5782 | } | |
5783 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5784 | { |
5785 | wxPy_BEGIN_ALLOW_THREADS; | |
5786 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
5787 | ||
5788 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5789 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5790 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5791 | return _resultobj; |
5792 | } | |
5793 | ||
5794 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 5795 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5796 | PyObject * _resultobj; |
5797 | int _result; | |
5798 | wxDialog * _arg0; | |
1d99702e | 5799 | PyObject * _argo0 = 0; |
efc5f224 | 5800 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5801 | |
5802 | self = self; | |
efc5f224 | 5803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 5804 | return NULL; |
1d99702e RD |
5805 | if (_argo0) { |
5806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); |
5809 | return NULL; | |
5810 | } | |
5811 | } | |
cf694132 RD |
5812 | { |
5813 | wxPy_BEGIN_ALLOW_THREADS; | |
5814 | _result = (int )wxDialog_ShowModal(_arg0); | |
5815 | ||
5816 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5817 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5818 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5819 | return _resultobj; |
5820 | } | |
5821 | ||
bb0054cd | 5822 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) |
efc5f224 | 5823 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5824 | PyObject * _resultobj; |
5825 | int _result; | |
5826 | wxDialog * _arg0; | |
1d99702e | 5827 | PyObject * _argo0 = 0; |
efc5f224 | 5828 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5829 | |
5830 | self = self; | |
efc5f224 | 5831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) |
bb0054cd | 5832 | return NULL; |
1d99702e RD |
5833 | if (_argo0) { |
5834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); |
5837 | return NULL; | |
5838 | } | |
5839 | } | |
5840 | { | |
5841 | wxPy_BEGIN_ALLOW_THREADS; | |
5842 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
5843 | ||
5844 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5845 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5846 | } _resultobj = Py_BuildValue("i",_result); |
5847 | return _resultobj; | |
5848 | } | |
5849 | ||
5850 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
efc5f224 | 5851 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5852 | PyObject * _resultobj; |
5853 | wxDialog * _arg0; | |
5854 | int _arg1; | |
1d99702e | 5855 | PyObject * _argo0 = 0; |
efc5f224 | 5856 | char *_kwnames[] = { "self","retCode", NULL }; |
bb0054cd RD |
5857 | |
5858 | self = self; | |
efc5f224 | 5859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 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")) { | |
bb0054cd RD |
5864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); |
5865 | return NULL; | |
5866 | } | |
5867 | } | |
5868 | { | |
5869 | wxPy_BEGIN_ALLOW_THREADS; | |
5870 | wxDialog_SetReturnCode(_arg0,_arg1); | |
5871 | ||
5872 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5873 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5874 | } Py_INCREF(Py_None); |
5875 | _resultobj = Py_None; | |
5876 | return _resultobj; | |
5877 | } | |
5878 | ||
f3d9dc1d RD |
5879 | #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0)) |
5880 | static PyObject *_wrap_wxDialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5881 | PyObject * _resultobj; | |
5882 | wxSizer * _result; | |
5883 | wxDialog * _arg0; | |
5884 | wxString * _arg1; | |
5885 | PyObject * _argo0 = 0; | |
5886 | PyObject * _obj1 = 0; | |
5887 | char *_kwnames[] = { "self","message", NULL }; | |
f3d9dc1d RD |
5888 | |
5889 | self = self; | |
5890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_CreateTextSizer",_kwnames,&_argo0,&_obj1)) | |
5891 | return NULL; | |
5892 | if (_argo0) { | |
5893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p."); | |
5896 | return NULL; | |
5897 | } | |
5898 | } | |
5899 | { | |
5900 | #if PYTHON_API_VERSION >= 1009 | |
5901 | char* tmpPtr; int tmpSize; | |
5902 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5903 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
f3d9dc1d RD |
5904 | return NULL; |
5905 | } | |
5906 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5907 | return NULL; | |
5908 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5909 | #else | |
5910 | if (!PyString_Check(_obj1)) { | |
5911 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5912 | return NULL; | |
5913 | } | |
5914 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5915 | #endif | |
5916 | } | |
5917 | { | |
5918 | wxPy_BEGIN_ALLOW_THREADS; | |
5919 | _result = (wxSizer *)wxDialog_CreateTextSizer(_arg0,*_arg1); | |
5920 | ||
5921 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5922 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5923 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f3d9dc1d RD |
5924 | { |
5925 | if (_obj1) | |
5926 | delete _arg1; | |
5927 | } | |
5928 | return _resultobj; | |
5929 | } | |
5930 | ||
5931 | #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0)) | |
5932 | static PyObject *_wrap_wxDialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5933 | PyObject * _resultobj; | |
5934 | wxSizer * _result; | |
5935 | wxDialog * _arg0; | |
5936 | long _arg1; | |
5937 | PyObject * _argo0 = 0; | |
5938 | char *_kwnames[] = { "self","flags", NULL }; | |
f3d9dc1d RD |
5939 | |
5940 | self = self; | |
5941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDialog_CreateButtonSizer",_kwnames,&_argo0,&_arg1)) | |
5942 | return NULL; | |
5943 | if (_argo0) { | |
5944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p."); | |
5947 | return NULL; | |
5948 | } | |
5949 | } | |
5950 | { | |
5951 | wxPy_BEGIN_ALLOW_THREADS; | |
5952 | _result = (wxSizer *)wxDialog_CreateButtonSizer(_arg0,_arg1); | |
5953 | ||
5954 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5955 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5956 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f3d9dc1d RD |
5957 | return _resultobj; |
5958 | } | |
5959 | ||
bb0054cd RD |
5960 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
5961 | wxScrolledWindow *src; | |
5962 | wxPanel *dest; | |
5963 | src = (wxScrolledWindow *) ptr; | |
5964 | dest = (wxPanel *) src; | |
5965 | return (void *) dest; | |
5966 | } | |
5967 | ||
8ab979d7 RD |
5968 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
5969 | wxScrolledWindow *src; | |
5970 | wxWindow *dest; | |
5971 | src = (wxScrolledWindow *) ptr; | |
5972 | dest = (wxWindow *) src; | |
5973 | return (void *) dest; | |
5974 | } | |
5975 | ||
5976 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
5977 | wxScrolledWindow *src; | |
5978 | wxEvtHandler *dest; | |
5979 | src = (wxScrolledWindow *) ptr; | |
5980 | dest = (wxEvtHandler *) src; | |
5981 | return (void *) dest; | |
5982 | } | |
5983 | ||
9416aa89 RD |
5984 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
5985 | wxScrolledWindow *src; | |
5986 | wxObject *dest; | |
5987 | src = (wxScrolledWindow *) ptr; | |
5988 | dest = (wxObject *) src; | |
5989 | return (void *) dest; | |
5990 | } | |
5991 | ||
8ab979d7 | 5992 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 5993 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5994 | PyObject * _resultobj; |
5995 | wxScrolledWindow * _result; | |
5996 | wxWindow * _arg0; | |
1d99702e | 5997 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
5998 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5999 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6000 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
6001 | char * _arg5 = (char *) "scrolledWindow"; | |
6002 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6003 | wxPoint temp; |
6004 | PyObject * _obj2 = 0; | |
6005 | wxSize temp0; | |
6006 | PyObject * _obj3 = 0; | |
efc5f224 | 6007 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6008 | char _ptemp[128]; |
6009 | ||
6010 | self = self; | |
2f90df85 | 6011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6012 | return NULL; |
1d99702e RD |
6013 | if (_argo0) { |
6014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6017 | return NULL; | |
6018 | } | |
6019 | } | |
2f90df85 RD |
6020 | if (_obj2) |
6021 | { | |
6022 | _arg2 = &temp; | |
6023 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6024 | return NULL; |
2f90df85 RD |
6025 | } |
6026 | if (_obj3) | |
6027 | { | |
6028 | _arg3 = &temp0; | |
6029 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6030 | return NULL; |
2f90df85 | 6031 | } |
cf694132 RD |
6032 | { |
6033 | wxPy_BEGIN_ALLOW_THREADS; | |
6034 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
6035 | ||
6036 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6037 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6038 | } if (_result) { |
6039 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6040 | _resultobj = Py_BuildValue("s",_ptemp); | |
6041 | } else { | |
6042 | Py_INCREF(Py_None); | |
6043 | _resultobj = Py_None; | |
6044 | } | |
8ab979d7 RD |
6045 | return _resultobj; |
6046 | } | |
6047 | ||
6048 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
efc5f224 | 6049 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6050 | PyObject * _resultobj; |
6051 | wxScrolledWindow * _arg0; | |
6052 | bool _arg1; | |
6053 | bool _arg2; | |
1d99702e | 6054 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6055 | int tempbool1; |
6056 | int tempbool2; | |
efc5f224 | 6057 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6058 | |
6059 | self = self; | |
efc5f224 | 6060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6061 | return NULL; |
1d99702e RD |
6062 | if (_argo0) { |
6063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6066 | return NULL; | |
6067 | } | |
6068 | } | |
6069 | _arg1 = (bool ) tempbool1; | |
6070 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6071 | { |
6072 | wxPy_BEGIN_ALLOW_THREADS; | |
6073 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
6074 | ||
6075 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6076 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6077 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6078 | _resultobj = Py_None; |
6079 | return _resultobj; | |
6080 | } | |
6081 | ||
b7e72427 RD |
6082 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6083 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6084 | PyObject * _resultobj; | |
6085 | int _result; | |
6086 | wxScrolledWindow * _arg0; | |
6087 | int _arg1; | |
6088 | PyObject * _argo0 = 0; | |
6089 | char *_kwnames[] = { "self","orient", NULL }; | |
6090 | ||
6091 | self = self; | |
6092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6093 | return NULL; | |
6094 | if (_argo0) { | |
6095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6098 | return NULL; | |
6099 | } | |
6100 | } | |
6101 | { | |
6102 | wxPy_BEGIN_ALLOW_THREADS; | |
6103 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
6104 | ||
6105 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6106 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6107 | } _resultobj = Py_BuildValue("i",_result); |
6108 | return _resultobj; | |
6109 | } | |
6110 | ||
8ab979d7 | 6111 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6112 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6113 | PyObject * _resultobj; |
6114 | wxScrolledWindow * _arg0; | |
6115 | int * _arg1; | |
6116 | int temp; | |
6117 | int * _arg2; | |
6118 | int temp0; | |
1d99702e | 6119 | PyObject * _argo0 = 0; |
efc5f224 | 6120 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6121 | |
6122 | self = self; | |
6123 | { | |
6124 | _arg1 = &temp; | |
6125 | } | |
6126 | { | |
6127 | _arg2 = &temp0; | |
6128 | } | |
efc5f224 | 6129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6130 | return NULL; |
1d99702e RD |
6131 | if (_argo0) { |
6132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6135 | return NULL; | |
6136 | } | |
6137 | } | |
cf694132 RD |
6138 | { |
6139 | wxPy_BEGIN_ALLOW_THREADS; | |
6140 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
6141 | ||
6142 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6143 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6144 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6145 | _resultobj = Py_None; |
6146 | { | |
6147 | PyObject *o; | |
6148 | o = PyInt_FromLong((long) (*_arg1)); | |
6149 | _resultobj = t_output_helper(_resultobj, o); | |
6150 | } | |
6151 | { | |
6152 | PyObject *o; | |
6153 | o = PyInt_FromLong((long) (*_arg2)); | |
6154 | _resultobj = t_output_helper(_resultobj, o); | |
6155 | } | |
6156 | return _resultobj; | |
6157 | } | |
6158 | ||
b7e72427 RD |
6159 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6160 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6161 | PyObject * _resultobj; | |
6162 | wxWindow * _result; | |
6163 | wxScrolledWindow * _arg0; | |
6164 | PyObject * _argo0 = 0; | |
6165 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6166 | |
6167 | self = self; | |
6168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6169 | return NULL; | |
6170 | if (_argo0) { | |
6171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6174 | return NULL; | |
6175 | } | |
6176 | } | |
6177 | { | |
6178 | wxPy_BEGIN_ALLOW_THREADS; | |
6179 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6180 | ||
6181 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6182 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6183 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
6184 | return _resultobj; |
6185 | } | |
6186 | ||
8ab979d7 | 6187 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6188 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6189 | PyObject * _resultobj; |
6190 | wxScrolledWindow * _arg0; | |
6191 | int * _arg1; | |
6192 | int temp; | |
6193 | int * _arg2; | |
6194 | int temp0; | |
1d99702e | 6195 | PyObject * _argo0 = 0; |
efc5f224 | 6196 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6197 | |
6198 | self = self; | |
6199 | { | |
6200 | _arg1 = &temp; | |
6201 | } | |
6202 | { | |
6203 | _arg2 = &temp0; | |
6204 | } | |
efc5f224 | 6205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6206 | return NULL; |
1d99702e RD |
6207 | if (_argo0) { |
6208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6211 | return NULL; | |
6212 | } | |
6213 | } | |
cf694132 RD |
6214 | { |
6215 | wxPy_BEGIN_ALLOW_THREADS; | |
6216 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6217 | ||
6218 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6219 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6220 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6221 | _resultobj = Py_None; |
6222 | { | |
6223 | PyObject *o; | |
6224 | o = PyInt_FromLong((long) (*_arg1)); | |
6225 | _resultobj = t_output_helper(_resultobj, o); | |
6226 | } | |
6227 | { | |
6228 | PyObject *o; | |
6229 | o = PyInt_FromLong((long) (*_arg2)); | |
6230 | _resultobj = t_output_helper(_resultobj, o); | |
6231 | } | |
6232 | return _resultobj; | |
6233 | } | |
6234 | ||
6235 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6236 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6237 | PyObject * _resultobj; |
6238 | bool _result; | |
6239 | wxScrolledWindow * _arg0; | |
1d99702e | 6240 | PyObject * _argo0 = 0; |
efc5f224 | 6241 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6242 | |
6243 | self = self; | |
efc5f224 | 6244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6245 | return NULL; |
1d99702e RD |
6246 | if (_argo0) { |
6247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6250 | return NULL; | |
6251 | } | |
6252 | } | |
cf694132 RD |
6253 | { |
6254 | wxPy_BEGIN_ALLOW_THREADS; | |
6255 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6256 | ||
6257 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6258 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6259 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6260 | return _resultobj; |
6261 | } | |
6262 | ||
6263 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6264 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6265 | PyObject * _resultobj; |
6266 | wxScrolledWindow * _arg0; | |
6267 | wxDC * _arg1; | |
1d99702e RD |
6268 | PyObject * _argo0 = 0; |
6269 | PyObject * _argo1 = 0; | |
efc5f224 | 6270 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6271 | |
6272 | self = self; | |
efc5f224 | 6273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6274 | return NULL; |
1d99702e RD |
6275 | if (_argo0) { |
6276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6279 | return NULL; | |
6280 | } | |
6281 | } | |
1d99702e RD |
6282 | if (_argo1) { |
6283 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6284 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6286 | return NULL; | |
6287 | } | |
6288 | } | |
cf694132 RD |
6289 | { |
6290 | wxPy_BEGIN_ALLOW_THREADS; | |
6291 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
6292 | ||
6293 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6294 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6295 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6296 | _resultobj = Py_None; |
6297 | return _resultobj; | |
6298 | } | |
6299 | ||
6300 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6301 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6302 | PyObject * _resultobj; |
6303 | wxScrolledWindow * _arg0; | |
6304 | int _arg1; | |
6305 | int _arg2; | |
1d99702e | 6306 | PyObject * _argo0 = 0; |
efc5f224 | 6307 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6308 | |
6309 | self = self; | |
efc5f224 | 6310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6311 | return NULL; |
1d99702e RD |
6312 | if (_argo0) { |
6313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6316 | return NULL; | |
6317 | } | |
6318 | } | |
cf694132 RD |
6319 | { |
6320 | wxPy_BEGIN_ALLOW_THREADS; | |
6321 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
6322 | ||
6323 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6324 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6325 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6326 | _resultobj = Py_None; |
6327 | return _resultobj; | |
6328 | } | |
6329 | ||
f6bcfd97 | 6330 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6331 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6332 | PyObject * _resultobj; |
6333 | wxScrolledWindow * _arg0; | |
6334 | int _arg1; | |
6335 | int _arg2; | |
6336 | int _arg3; | |
6337 | int _arg4; | |
1d99702e RD |
6338 | int _arg5 = (int ) 0; |
6339 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6340 | int _arg7 = (int ) FALSE; |
1d99702e | 6341 | PyObject * _argo0 = 0; |
f6bcfd97 | 6342 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6343 | |
6344 | self = self; | |
f6bcfd97 | 6345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6346 | return NULL; |
1d99702e RD |
6347 | if (_argo0) { |
6348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6351 | return NULL; | |
6352 | } | |
6353 | } | |
cf694132 RD |
6354 | { |
6355 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6356 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 RD |
6357 | |
6358 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6359 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6360 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6361 | _resultobj = Py_None; |
6362 | return _resultobj; | |
6363 | } | |
6364 | ||
b7e72427 RD |
6365 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6366 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6367 | PyObject * _resultobj; | |
6368 | wxScrolledWindow * _arg0; | |
6369 | int _arg1; | |
6370 | int _arg2; | |
6371 | PyObject * _argo0 = 0; | |
6372 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6373 | ||
6374 | self = self; | |
6375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6376 | return NULL; | |
6377 | if (_argo0) { | |
6378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6381 | return NULL; | |
6382 | } | |
6383 | } | |
6384 | { | |
6385 | wxPy_BEGIN_ALLOW_THREADS; | |
6386 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6387 | ||
6388 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6389 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6390 | } Py_INCREF(Py_None); |
6391 | _resultobj = Py_None; | |
6392 | return _resultobj; | |
6393 | } | |
6394 | ||
eb715945 RD |
6395 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6396 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6397 | PyObject * _resultobj; | |
6398 | wxScrolledWindow * _arg0; | |
6399 | wxWindow * _arg1; | |
6400 | PyObject * _argo0 = 0; | |
6401 | PyObject * _argo1 = 0; | |
6402 | char *_kwnames[] = { "self","window", NULL }; | |
6403 | ||
6404 | self = self; | |
6405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6406 | return NULL; | |
6407 | if (_argo0) { | |
6408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6411 | return NULL; | |
6412 | } | |
6413 | } | |
6414 | if (_argo1) { | |
6415 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6416 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6418 | return NULL; | |
6419 | } | |
6420 | } | |
6421 | { | |
6422 | wxPy_BEGIN_ALLOW_THREADS; | |
6423 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6424 | ||
6425 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6426 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
6427 | } Py_INCREF(Py_None); |
6428 | _resultobj = Py_None; | |
6429 | return _resultobj; | |
6430 | } | |
6431 | ||
4c9993c3 RD |
6432 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6433 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6434 | PyObject * _resultobj; | |
6435 | wxScrolledWindow * _arg0; | |
6436 | int * _arg1; | |
6437 | int temp; | |
6438 | int * _arg2; | |
6439 | int temp0; | |
6440 | PyObject * _argo0 = 0; | |
6441 | char *_kwnames[] = { "self", NULL }; | |
6442 | ||
6443 | self = self; | |
6444 | { | |
6445 | _arg1 = &temp; | |
6446 | } | |
6447 | { | |
6448 | _arg2 = &temp0; | |
6449 | } | |
6450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6451 | return NULL; | |
6452 | if (_argo0) { | |
6453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6456 | return NULL; | |
6457 | } | |
6458 | } | |
6459 | { | |
6460 | wxPy_BEGIN_ALLOW_THREADS; | |
6461 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6462 | ||
6463 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6464 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
6465 | } Py_INCREF(Py_None); |
6466 | _resultobj = Py_None; | |
6467 | { | |
6468 | PyObject *o; | |
6469 | o = PyInt_FromLong((long) (*_arg1)); | |
6470 | _resultobj = t_output_helper(_resultobj, o); | |
6471 | } | |
6472 | { | |
6473 | PyObject *o; | |
6474 | o = PyInt_FromLong((long) (*_arg2)); | |
6475 | _resultobj = t_output_helper(_resultobj, o); | |
6476 | } | |
6477 | return _resultobj; | |
6478 | } | |
6479 | ||
8ab979d7 | 6480 | #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1)) |
efc5f224 | 6481 | static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6482 | PyObject * _resultobj; |
6483 | wxScrolledWindow * _arg0; | |
6484 | int * _arg1; | |
6485 | int temp; | |
6486 | int * _arg2; | |
6487 | int temp0; | |
1d99702e | 6488 | PyObject * _argo0 = 0; |
efc5f224 | 6489 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6490 | |
6491 | self = self; | |
6492 | { | |
6493 | _arg1 = &temp; | |
6494 | } | |
6495 | { | |
6496 | _arg2 = &temp0; | |
6497 | } | |
efc5f224 | 6498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0)) |
8ab979d7 | 6499 | return NULL; |
1d99702e RD |
6500 | if (_argo0) { |
6501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p."); |
6504 | return NULL; | |
6505 | } | |
6506 | } | |
cf694132 RD |
6507 | { |
6508 | wxPy_BEGIN_ALLOW_THREADS; | |
6509 | wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2); | |
6510 | ||
6511 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6512 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6513 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6514 | _resultobj = Py_None; |
6515 | { | |
6516 | PyObject *o; | |
6517 | o = PyInt_FromLong((long) (*_arg1)); | |
6518 | _resultobj = t_output_helper(_resultobj, o); | |
6519 | } | |
6520 | { | |
6521 | PyObject *o; | |
6522 | o = PyInt_FromLong((long) (*_arg2)); | |
6523 | _resultobj = t_output_helper(_resultobj, o); | |
6524 | } | |
6525 | return _resultobj; | |
6526 | } | |
6527 | ||
9d8bd15f RD |
6528 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6529 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6530 | PyObject * _resultobj; | |
6531 | wxScrolledWindow * _arg0; | |
6532 | int _arg1; | |
6533 | int _arg2; | |
6534 | int * _arg3; | |
6535 | int temp; | |
6536 | int * _arg4; | |
6537 | int temp0; | |
6538 | PyObject * _argo0 = 0; | |
6539 | char *_kwnames[] = { "self","x","y", NULL }; | |
6540 | ||
6541 | self = self; | |
6542 | { | |
6543 | _arg3 = &temp; | |
6544 | } | |
6545 | { | |
6546 | _arg4 = &temp0; | |
6547 | } | |
6548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6549 | return NULL; | |
6550 | if (_argo0) { | |
6551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6554 | return NULL; | |
6555 | } | |
6556 | } | |
6557 | { | |
6558 | wxPy_BEGIN_ALLOW_THREADS; | |
6559 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6560 | ||
6561 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6562 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6563 | } Py_INCREF(Py_None); |
6564 | _resultobj = Py_None; | |
6565 | { | |
6566 | PyObject *o; | |
6567 | o = PyInt_FromLong((long) (*_arg3)); | |
6568 | _resultobj = t_output_helper(_resultobj, o); | |
6569 | } | |
6570 | { | |
6571 | PyObject *o; | |
6572 | o = PyInt_FromLong((long) (*_arg4)); | |
6573 | _resultobj = t_output_helper(_resultobj, o); | |
6574 | } | |
6575 | return _resultobj; | |
6576 | } | |
6577 | ||
6578 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6579 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6580 | PyObject * _resultobj; | |
6581 | wxScrolledWindow * _arg0; | |
6582 | int _arg1; | |
6583 | int _arg2; | |
6584 | int * _arg3; | |
6585 | int temp; | |
6586 | int * _arg4; | |
6587 | int temp0; | |
6588 | PyObject * _argo0 = 0; | |
6589 | char *_kwnames[] = { "self","x","y", NULL }; | |
6590 | ||
6591 | self = self; | |
6592 | { | |
6593 | _arg3 = &temp; | |
6594 | } | |
6595 | { | |
6596 | _arg4 = &temp0; | |
6597 | } | |
6598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6599 | return NULL; | |
6600 | if (_argo0) { | |
6601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6604 | return NULL; | |
6605 | } | |
6606 | } | |
6607 | { | |
6608 | wxPy_BEGIN_ALLOW_THREADS; | |
6609 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6610 | ||
6611 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6612 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6613 | } Py_INCREF(Py_None); |
6614 | _resultobj = Py_None; | |
6615 | { | |
6616 | PyObject *o; | |
6617 | o = PyInt_FromLong((long) (*_arg3)); | |
6618 | _resultobj = t_output_helper(_resultobj, o); | |
6619 | } | |
6620 | { | |
6621 | PyObject *o; | |
6622 | o = PyInt_FromLong((long) (*_arg4)); | |
6623 | _resultobj = t_output_helper(_resultobj, o); | |
6624 | } | |
6625 | return _resultobj; | |
6626 | } | |
6627 | ||
d1679124 RD |
6628 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
6629 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6630 | PyObject * _resultobj; | |
6631 | wxScrolledWindow * _arg0; | |
6632 | double _arg1; | |
6633 | double _arg2; | |
6634 | PyObject * _argo0 = 0; | |
6635 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
6636 | ||
6637 | self = self; | |
6638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6639 | return NULL; | |
6640 | if (_argo0) { | |
6641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
6644 | return NULL; | |
6645 | } | |
6646 | } | |
6647 | { | |
6648 | wxPy_BEGIN_ALLOW_THREADS; | |
6649 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); | |
6650 | ||
6651 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6652 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6653 | } Py_INCREF(Py_None); |
6654 | _resultobj = Py_None; | |
6655 | return _resultobj; | |
6656 | } | |
6657 | ||
6658 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
6659 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6660 | PyObject * _resultobj; | |
6661 | double _result; | |
6662 | wxScrolledWindow * _arg0; | |
6663 | PyObject * _argo0 = 0; | |
6664 | char *_kwnames[] = { "self", NULL }; | |
6665 | ||
6666 | self = self; | |
6667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
6668 | return NULL; | |
6669 | if (_argo0) { | |
6670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
6673 | return NULL; | |
6674 | } | |
6675 | } | |
6676 | { | |
6677 | wxPy_BEGIN_ALLOW_THREADS; | |
6678 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); | |
6679 | ||
6680 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6681 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6682 | } _resultobj = Py_BuildValue("d",_result); |
6683 | return _resultobj; | |
6684 | } | |
6685 | ||
6686 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
6687 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject * _resultobj; | |
6689 | double _result; | |
6690 | wxScrolledWindow * _arg0; | |
6691 | PyObject * _argo0 = 0; | |
6692 | char *_kwnames[] = { "self", NULL }; | |
6693 | ||
6694 | self = self; | |
6695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
6696 | return NULL; | |
6697 | if (_argo0) { | |
6698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
6701 | return NULL; | |
6702 | } | |
6703 | } | |
6704 | { | |
6705 | wxPy_BEGIN_ALLOW_THREADS; | |
6706 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
6707 | ||
6708 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6709 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6710 | } _resultobj = Py_BuildValue("d",_result); |
6711 | return _resultobj; | |
6712 | } | |
6713 | ||
6714 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
6715 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6716 | PyObject * _resultobj; | |
6717 | wxScrolledWindow * _arg0; | |
6718 | PyObject * _argo0 = 0; | |
6719 | char *_kwnames[] = { "self", NULL }; | |
6720 | ||
6721 | self = self; | |
6722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
6723 | return NULL; | |
6724 | if (_argo0) { | |
6725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
6728 | return NULL; | |
6729 | } | |
6730 | } | |
6731 | { | |
6732 | wxPy_BEGIN_ALLOW_THREADS; | |
6733 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
6734 | ||
6735 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6736 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6737 | } Py_INCREF(Py_None); |
6738 | _resultobj = Py_None; | |
6739 | return _resultobj; | |
6740 | } | |
6741 | ||
8ab979d7 RD |
6742 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
6743 | wxMenu *src; | |
6744 | wxEvtHandler *dest; | |
6745 | src = (wxMenu *) ptr; | |
6746 | dest = (wxEvtHandler *) src; | |
6747 | return (void *) dest; | |
6748 | } | |
6749 | ||
9416aa89 RD |
6750 | static void *SwigwxMenuTowxObject(void *ptr) { |
6751 | wxMenu *src; | |
6752 | wxObject *dest; | |
6753 | src = (wxMenu *) ptr; | |
6754 | dest = (wxObject *) src; | |
6755 | return (void *) dest; | |
6756 | } | |
6757 | ||
8bf5d46e | 6758 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 6759 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6760 | PyObject * _resultobj; |
6761 | wxMenu * _result; | |
1d99702e RD |
6762 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
6763 | long _arg1 = (long ) 0; | |
8ab979d7 | 6764 | PyObject * _obj0 = 0; |
efc5f224 | 6765 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
6766 | char _ptemp[128]; |
6767 | ||
6768 | self = self; | |
efc5f224 | 6769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
6770 | return NULL; |
6771 | if (_obj0) | |
6772 | { | |
185d7c3e RD |
6773 | #if PYTHON_API_VERSION >= 1009 |
6774 | char* tmpPtr; int tmpSize; | |
6775 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 6776 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6777 | return NULL; |
6778 | } | |
6779 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6780 | return NULL; | |
6781 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6782 | #else | |
8ab979d7 RD |
6783 | if (!PyString_Check(_obj0)) { |
6784 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6785 | return NULL; | |
6786 | } | |
185d7c3e RD |
6787 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
6788 | #endif | |
8ab979d7 | 6789 | } |
cf694132 RD |
6790 | { |
6791 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 6792 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 RD |
6793 | |
6794 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6795 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6796 | } if (_result) { |
6797 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6798 | _resultobj = Py_BuildValue("s",_ptemp); | |
6799 | } else { | |
6800 | Py_INCREF(Py_None); | |
6801 | _resultobj = Py_None; | |
6802 | } | |
8ab979d7 RD |
6803 | { |
6804 | if (_obj0) | |
6805 | delete _arg0; | |
6806 | } | |
6807 | return _resultobj; | |
6808 | } | |
6809 | ||
6810 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6811 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6812 | PyObject * _resultobj; |
6813 | wxMenu * _arg0; | |
6814 | int _arg1; | |
6815 | wxString * _arg2; | |
1d99702e | 6816 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
926bb76c | 6817 | int _arg4 = (int ) FALSE; |
1d99702e | 6818 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6819 | PyObject * _obj2 = 0; |
6820 | PyObject * _obj3 = 0; | |
efc5f224 | 6821 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
6822 | |
6823 | self = self; | |
926bb76c | 6824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 6825 | return NULL; |
1d99702e RD |
6826 | if (_argo0) { |
6827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
6830 | return NULL; | |
6831 | } | |
6832 | } | |
6833 | { | |
185d7c3e RD |
6834 | #if PYTHON_API_VERSION >= 1009 |
6835 | char* tmpPtr; int tmpSize; | |
6836 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6837 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6838 | return NULL; |
6839 | } | |
6840 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6841 | return NULL; | |
6842 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6843 | #else | |
8ab979d7 RD |
6844 | if (!PyString_Check(_obj2)) { |
6845 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6846 | return NULL; | |
6847 | } | |
185d7c3e RD |
6848 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6849 | #endif | |
8ab979d7 RD |
6850 | } |
6851 | if (_obj3) | |
6852 | { | |
185d7c3e RD |
6853 | #if PYTHON_API_VERSION >= 1009 |
6854 | char* tmpPtr; int tmpSize; | |
6855 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 6856 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6857 | return NULL; |
6858 | } | |
6859 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6860 | return NULL; | |
6861 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6862 | #else | |
8ab979d7 RD |
6863 | if (!PyString_Check(_obj3)) { |
6864 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6865 | return NULL; | |
6866 | } | |
185d7c3e RD |
6867 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6868 | #endif | |
8ab979d7 | 6869 | } |
cf694132 RD |
6870 | { |
6871 | wxPy_BEGIN_ALLOW_THREADS; | |
6872 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
6873 | ||
6874 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6875 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6876 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6877 | _resultobj = Py_None; |
6878 | { | |
6879 | if (_obj2) | |
6880 | delete _arg2; | |
6881 | } | |
6882 | { | |
6883 | if (_obj3) | |
6884 | delete _arg3; | |
6885 | } | |
6886 | return _resultobj; | |
6887 | } | |
6888 | ||
6889 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6890 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6891 | PyObject * _resultobj; |
6892 | wxMenu * _arg0; | |
6893 | int _arg1; | |
6894 | wxString * _arg2; | |
6895 | wxMenu * _arg3; | |
1d99702e RD |
6896 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
6897 | PyObject * _argo0 = 0; | |
8ab979d7 | 6898 | PyObject * _obj2 = 0; |
1d99702e | 6899 | PyObject * _argo3 = 0; |
8ab979d7 | 6900 | PyObject * _obj4 = 0; |
efc5f224 | 6901 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
6902 | |
6903 | self = self; | |
efc5f224 | 6904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 6905 | return NULL; |
1d99702e RD |
6906 | if (_argo0) { |
6907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6910 | return NULL; | |
6911 | } | |
6912 | } | |
6913 | { | |
185d7c3e RD |
6914 | #if PYTHON_API_VERSION >= 1009 |
6915 | char* tmpPtr; int tmpSize; | |
6916 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6917 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6918 | return NULL; |
6919 | } | |
6920 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6921 | return NULL; | |
6922 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6923 | #else | |
8ab979d7 RD |
6924 | if (!PyString_Check(_obj2)) { |
6925 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6926 | return NULL; | |
6927 | } | |
185d7c3e RD |
6928 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6929 | #endif | |
8ab979d7 | 6930 | } |
1d99702e RD |
6931 | if (_argo3) { |
6932 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6933 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
6934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6935 | return NULL; | |
6936 | } | |
6937 | } | |
6938 | if (_obj4) | |
6939 | { | |
185d7c3e RD |
6940 | #if PYTHON_API_VERSION >= 1009 |
6941 | char* tmpPtr; int tmpSize; | |
6942 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
794c5cb1 | 6943 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6944 | return NULL; |
6945 | } | |
6946 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
6947 | return NULL; | |
6948 | _arg4 = new wxString(tmpPtr, tmpSize); | |
6949 | #else | |
8ab979d7 RD |
6950 | if (!PyString_Check(_obj4)) { |
6951 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6952 | return NULL; | |
6953 | } | |
185d7c3e RD |
6954 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
6955 | #endif | |
8ab979d7 | 6956 | } |
cf694132 RD |
6957 | { |
6958 | wxPy_BEGIN_ALLOW_THREADS; | |
6959 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
6960 | ||
6961 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6962 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6963 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6964 | _resultobj = Py_None; |
6965 | { | |
6966 | if (_obj2) | |
6967 | delete _arg2; | |
6968 | } | |
6969 | { | |
6970 | if (_obj4) | |
6971 | delete _arg4; | |
6972 | } | |
6973 | return _resultobj; | |
6974 | } | |
6975 | ||
af309447 | 6976 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 6977 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
6978 | PyObject * _resultobj; |
6979 | wxMenu * _arg0; | |
6980 | wxMenuItem * _arg1; | |
1d99702e RD |
6981 | PyObject * _argo0 = 0; |
6982 | PyObject * _argo1 = 0; | |
efc5f224 | 6983 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
6984 | |
6985 | self = self; | |
efc5f224 | 6986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 6987 | return NULL; |
1d99702e RD |
6988 | if (_argo0) { |
6989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
6991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
6992 | return NULL; | |
6993 | } | |
6994 | } | |
1d99702e RD |
6995 | if (_argo1) { |
6996 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6997 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
6998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
6999 | return NULL; | |
7000 | } | |
7001 | } | |
cf694132 RD |
7002 | { |
7003 | wxPy_BEGIN_ALLOW_THREADS; | |
7004 | wxMenu_AppendItem(_arg0,_arg1); | |
7005 | ||
7006 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7007 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7008 | } Py_INCREF(Py_None); |
af309447 RD |
7009 | _resultobj = Py_None; |
7010 | return _resultobj; | |
7011 | } | |
7012 | ||
8ab979d7 | 7013 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 7014 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7015 | PyObject * _resultobj; |
7016 | wxMenu * _arg0; | |
1d99702e | 7017 | PyObject * _argo0 = 0; |
efc5f224 | 7018 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7019 | |
7020 | self = self; | |
efc5f224 | 7021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 7022 | return NULL; |
1d99702e RD |
7023 | if (_argo0) { |
7024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
7027 | return NULL; | |
7028 | } | |
7029 | } | |
cf694132 RD |
7030 | { |
7031 | wxPy_BEGIN_ALLOW_THREADS; | |
7032 | wxMenu_AppendSeparator(_arg0); | |
7033 | ||
7034 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7035 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7036 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7037 | _resultobj = Py_None; |
7038 | return _resultobj; | |
7039 | } | |
7040 | ||
7041 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 7042 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7043 | PyObject * _resultobj; |
7044 | wxMenu * _arg0; | |
1d99702e | 7045 | PyObject * _argo0 = 0; |
efc5f224 | 7046 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7047 | |
7048 | self = self; | |
efc5f224 | 7049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 7050 | return NULL; |
1d99702e RD |
7051 | if (_argo0) { |
7052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
7055 | return NULL; | |
7056 | } | |
7057 | } | |
cf694132 RD |
7058 | { |
7059 | wxPy_BEGIN_ALLOW_THREADS; | |
7060 | wxMenu_Break(_arg0); | |
7061 | ||
7062 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7063 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7064 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7065 | _resultobj = Py_None; |
7066 | return _resultobj; | |
7067 | } | |
7068 | ||
7069 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 7070 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7071 | PyObject * _resultobj; |
7072 | wxMenu * _arg0; | |
7073 | int _arg1; | |
7074 | bool _arg2; | |
1d99702e | 7075 | PyObject * _argo0 = 0; |
8ab979d7 | 7076 | int tempbool2; |
efc5f224 | 7077 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
7078 | |
7079 | self = self; | |
efc5f224 | 7080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7081 | return NULL; |
1d99702e RD |
7082 | if (_argo0) { |
7083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
7086 | return NULL; | |
7087 | } | |
7088 | } | |
7089 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7090 | { |
7091 | wxPy_BEGIN_ALLOW_THREADS; | |
7092 | wxMenu_Check(_arg0,_arg1,_arg2); | |
7093 | ||
7094 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7095 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7096 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7097 | _resultobj = Py_None; |
7098 | return _resultobj; | |
7099 | } | |
7100 | ||
b1462dfa RD |
7101 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
7102 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7103 | PyObject * _resultobj; | |
7104 | bool _result; | |
7105 | wxMenu * _arg0; | |
7106 | int _arg1; | |
7107 | PyObject * _argo0 = 0; | |
7108 | char *_kwnames[] = { "self","id", NULL }; | |
7109 | ||
7110 | self = self; | |
7111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7112 | return NULL; | |
7113 | if (_argo0) { | |
7114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7117 | return NULL; | |
7118 | } | |
7119 | } | |
7120 | { | |
7121 | wxPy_BEGIN_ALLOW_THREADS; | |
7122 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
7123 | ||
7124 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7125 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7126 | } _resultobj = Py_BuildValue("i",_result); |
7127 | return _resultobj; | |
7128 | } | |
7129 | ||
8ab979d7 | 7130 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 7131 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7132 | PyObject * _resultobj; |
7133 | wxMenu * _arg0; | |
7134 | int _arg1; | |
7135 | bool _arg2; | |
1d99702e | 7136 | PyObject * _argo0 = 0; |
8ab979d7 | 7137 | int tempbool2; |
efc5f224 | 7138 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
7139 | |
7140 | self = self; | |
efc5f224 | 7141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7142 | return NULL; |
1d99702e RD |
7143 | if (_argo0) { |
7144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
7147 | return NULL; | |
7148 | } | |
7149 | } | |
7150 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7151 | { |
7152 | wxPy_BEGIN_ALLOW_THREADS; | |
7153 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
7154 | ||
7155 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7156 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7157 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7158 | _resultobj = Py_None; |
7159 | return _resultobj; | |
7160 | } | |
7161 | ||
b1462dfa RD |
7162 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
7163 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7164 | PyObject * _resultobj; | |
7165 | bool _result; | |
7166 | wxMenu * _arg0; | |
7167 | int _arg1; | |
7168 | PyObject * _argo0 = 0; | |
7169 | char *_kwnames[] = { "self","id", NULL }; | |
7170 | ||
7171 | self = self; | |
7172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7173 | return NULL; | |
7174 | if (_argo0) { | |
7175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7178 | return NULL; | |
7179 | } | |
7180 | } | |
7181 | { | |
7182 | wxPy_BEGIN_ALLOW_THREADS; | |
7183 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
7184 | ||
7185 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7186 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7187 | } _resultobj = Py_BuildValue("i",_result); |
7188 | return _resultobj; | |
7189 | } | |
7190 | ||
8ab979d7 | 7191 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 7192 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7193 | PyObject * _resultobj; |
7194 | int _result; | |
7195 | wxMenu * _arg0; | |
7196 | wxString * _arg1; | |
1d99702e | 7197 | PyObject * _argo0 = 0; |
8ab979d7 | 7198 | PyObject * _obj1 = 0; |
efc5f224 | 7199 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
7200 | |
7201 | self = self; | |
efc5f224 | 7202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7203 | return NULL; |
1d99702e RD |
7204 | if (_argo0) { |
7205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
7208 | return NULL; | |
7209 | } | |
7210 | } | |
7211 | { | |
185d7c3e RD |
7212 | #if PYTHON_API_VERSION >= 1009 |
7213 | char* tmpPtr; int tmpSize; | |
7214 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7215 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7216 | return NULL; |
7217 | } | |
7218 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7219 | return NULL; | |
7220 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7221 | #else | |
8ab979d7 RD |
7222 | if (!PyString_Check(_obj1)) { |
7223 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7224 | return NULL; | |
7225 | } | |
185d7c3e RD |
7226 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7227 | #endif | |
8ab979d7 | 7228 | } |
cf694132 RD |
7229 | { |
7230 | wxPy_BEGIN_ALLOW_THREADS; | |
7231 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
7232 | ||
7233 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7234 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7235 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7236 | { |
7237 | if (_obj1) | |
7238 | delete _arg1; | |
7239 | } | |
7240 | return _resultobj; | |
7241 | } | |
7242 | ||
b1462dfa RD |
7243 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
7244 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7245 | PyObject * _resultobj; | |
7246 | wxMenuItem * _result; | |
7247 | wxMenu * _arg0; | |
7248 | int _arg1; | |
7249 | PyObject * _argo0 = 0; | |
7250 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
7251 | |
7252 | self = self; | |
7253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7254 | return NULL; | |
7255 | if (_argo0) { | |
7256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7259 | return NULL; | |
7260 | } | |
7261 | } | |
7262 | { | |
7263 | wxPy_BEGIN_ALLOW_THREADS; | |
7264 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
7265 | ||
7266 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7267 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7268 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
7269 | return _resultobj; |
7270 | } | |
7271 | ||
8ab979d7 | 7272 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 7273 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7274 | PyObject * _resultobj; |
7275 | wxString * _result; | |
7276 | wxMenu * _arg0; | |
1d99702e | 7277 | PyObject * _argo0 = 0; |
efc5f224 | 7278 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7279 | |
7280 | self = self; | |
efc5f224 | 7281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 7282 | return NULL; |
1d99702e RD |
7283 | if (_argo0) { |
7284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
7287 | return NULL; | |
7288 | } | |
7289 | } | |
8ab979d7 | 7290 | { |
cf694132 RD |
7291 | wxPy_BEGIN_ALLOW_THREADS; |
7292 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
7293 | ||
7294 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7295 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7296 | }{ |
eec92d76 | 7297 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7298 | } |
7299 | { | |
7300 | delete _result; | |
7301 | } | |
7302 | return _resultobj; | |
7303 | } | |
7304 | ||
7305 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7306 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7307 | PyObject * _resultobj; |
7308 | wxMenu * _arg0; | |
7309 | wxString * _arg1; | |
1d99702e | 7310 | PyObject * _argo0 = 0; |
8ab979d7 | 7311 | PyObject * _obj1 = 0; |
efc5f224 | 7312 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7313 | |
7314 | self = self; | |
efc5f224 | 7315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7316 | return NULL; |
1d99702e RD |
7317 | if (_argo0) { |
7318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7321 | return NULL; | |
7322 | } | |
7323 | } | |
7324 | { | |
185d7c3e RD |
7325 | #if PYTHON_API_VERSION >= 1009 |
7326 | char* tmpPtr; int tmpSize; | |
7327 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7328 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7329 | return NULL; |
7330 | } | |
7331 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7332 | return NULL; | |
7333 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7334 | #else | |
8ab979d7 RD |
7335 | if (!PyString_Check(_obj1)) { |
7336 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7337 | return NULL; | |
7338 | } | |
185d7c3e RD |
7339 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7340 | #endif | |
8ab979d7 | 7341 | } |
cf694132 RD |
7342 | { |
7343 | wxPy_BEGIN_ALLOW_THREADS; | |
7344 | wxMenu_SetTitle(_arg0,*_arg1); | |
7345 | ||
7346 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7347 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7348 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7349 | _resultobj = Py_None; |
7350 | { | |
7351 | if (_obj1) | |
7352 | delete _arg1; | |
7353 | } | |
7354 | return _resultobj; | |
7355 | } | |
7356 | ||
b1462dfa RD |
7357 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7358 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7359 | PyObject * _resultobj; |
b1462dfa | 7360 | wxString * _result; |
8ab979d7 RD |
7361 | wxMenu * _arg0; |
7362 | int _arg1; | |
1d99702e | 7363 | PyObject * _argo0 = 0; |
efc5f224 | 7364 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7365 | |
7366 | self = self; | |
b1462dfa | 7367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7368 | return NULL; |
1d99702e RD |
7369 | if (_argo0) { |
7370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7373 | return NULL; |
7374 | } | |
7375 | } | |
cf694132 RD |
7376 | { |
7377 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7378 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 RD |
7379 | |
7380 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7381 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7382 | }{ |
eec92d76 | 7383 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7384 | } |
7385 | { | |
7386 | delete _result; | |
7387 | } | |
8ab979d7 RD |
7388 | return _resultobj; |
7389 | } | |
7390 | ||
b1462dfa RD |
7391 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7392 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7393 | PyObject * _resultobj; |
8ab979d7 RD |
7394 | wxMenu * _arg0; |
7395 | int _arg1; | |
b1462dfa | 7396 | wxString * _arg2; |
1d99702e | 7397 | PyObject * _argo0 = 0; |
b1462dfa RD |
7398 | PyObject * _obj2 = 0; |
7399 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7400 | |
7401 | self = self; | |
b1462dfa | 7402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7403 | return NULL; |
1d99702e RD |
7404 | if (_argo0) { |
7405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7408 | return NULL; |
7409 | } | |
7410 | } | |
b1462dfa | 7411 | { |
185d7c3e RD |
7412 | #if PYTHON_API_VERSION >= 1009 |
7413 | char* tmpPtr; int tmpSize; | |
7414 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7415 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7416 | return NULL; |
7417 | } | |
7418 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7419 | return NULL; | |
7420 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7421 | #else | |
b1462dfa RD |
7422 | if (!PyString_Check(_obj2)) { |
7423 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7424 | return NULL; | |
7425 | } | |
185d7c3e RD |
7426 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7427 | #endif | |
b1462dfa | 7428 | } |
8ab979d7 | 7429 | { |
cf694132 | 7430 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7431 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
7432 | |
7433 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7434 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7435 | } Py_INCREF(Py_None); |
7436 | _resultobj = Py_None; | |
8ab979d7 | 7437 | { |
b1462dfa RD |
7438 | if (_obj2) |
7439 | delete _arg2; | |
8ab979d7 RD |
7440 | } |
7441 | return _resultobj; | |
7442 | } | |
7443 | ||
b1462dfa RD |
7444 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7445 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7446 | PyObject * _resultobj; |
7447 | wxString * _result; | |
7448 | wxMenu * _arg0; | |
7449 | int _arg1; | |
1d99702e | 7450 | PyObject * _argo0 = 0; |
efc5f224 | 7451 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7452 | |
7453 | self = self; | |
b1462dfa | 7454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7455 | return NULL; |
1d99702e RD |
7456 | if (_argo0) { |
7457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7460 | return NULL; |
7461 | } | |
7462 | } | |
8ab979d7 | 7463 | { |
cf694132 | 7464 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7465 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
7466 | |
7467 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7468 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7469 | }{ |
eec92d76 | 7470 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7471 | } |
7472 | { | |
7473 | delete _result; | |
7474 | } | |
7475 | return _resultobj; | |
7476 | } | |
7477 | ||
7478 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7479 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7480 | PyObject * _resultobj; |
7481 | wxMenu * _arg0; | |
7482 | int _arg1; | |
7483 | wxString * _arg2; | |
1d99702e | 7484 | PyObject * _argo0 = 0; |
8ab979d7 | 7485 | PyObject * _obj2 = 0; |
efc5f224 | 7486 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7487 | |
7488 | self = self; | |
efc5f224 | 7489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7490 | return NULL; |
1d99702e RD |
7491 | if (_argo0) { |
7492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7495 | return NULL; | |
7496 | } | |
7497 | } | |
7498 | { | |
185d7c3e RD |
7499 | #if PYTHON_API_VERSION >= 1009 |
7500 | char* tmpPtr; int tmpSize; | |
7501 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7502 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7503 | return NULL; |
7504 | } | |
7505 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7506 | return NULL; | |
7507 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7508 | #else | |
8ab979d7 RD |
7509 | if (!PyString_Check(_obj2)) { |
7510 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7511 | return NULL; | |
7512 | } | |
185d7c3e RD |
7513 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7514 | #endif | |
8ab979d7 | 7515 | } |
cf694132 RD |
7516 | { |
7517 | wxPy_BEGIN_ALLOW_THREADS; | |
7518 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
7519 | ||
7520 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7521 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7522 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7523 | _resultobj = Py_None; |
7524 | { | |
7525 | if (_obj2) | |
7526 | delete _arg2; | |
7527 | } | |
7528 | return _resultobj; | |
7529 | } | |
7530 | ||
b1462dfa RD |
7531 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7532 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7533 | PyObject * _resultobj; |
8ab979d7 | 7534 | wxMenu * _arg0; |
b1462dfa | 7535 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7536 | PyObject * _argo0 = 0; |
b1462dfa RD |
7537 | PyObject * _argo1 = 0; |
7538 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7539 | |
7540 | self = self; | |
b1462dfa | 7541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7542 | return NULL; |
1d99702e RD |
7543 | if (_argo0) { |
7544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
7546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7547 | return NULL; | |
7548 | } | |
7549 | } | |
7550 | if (_argo1) { | |
7551 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7552 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7554 | return NULL; |
7555 | } | |
7556 | } | |
cf694132 RD |
7557 | { |
7558 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7559 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 RD |
7560 | |
7561 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7562 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7563 | } Py_INCREF(Py_None); |
7564 | _resultobj = Py_None; | |
8ab979d7 RD |
7565 | return _resultobj; |
7566 | } | |
7567 | ||
b1462dfa RD |
7568 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7569 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7570 | PyObject * _resultobj; |
7571 | bool _result; | |
7572 | wxMenu * _arg0; | |
7573 | int _arg1; | |
1d99702e | 7574 | PyObject * _argo0 = 0; |
efc5f224 | 7575 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7576 | |
7577 | self = self; | |
b1462dfa | 7578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7579 | return NULL; |
1d99702e RD |
7580 | if (_argo0) { |
7581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
7584 | return NULL; |
7585 | } | |
7586 | } | |
cf694132 RD |
7587 | { |
7588 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7589 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 RD |
7590 | |
7591 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7592 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7593 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7594 | return _resultobj; |
7595 | } | |
7596 | ||
b1462dfa RD |
7597 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7598 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7599 | PyObject * _resultobj; |
b1462dfa | 7600 | bool _result; |
8ab979d7 | 7601 | wxMenu * _arg0; |
b1462dfa | 7602 | wxMenuItem * _arg1; |
1d99702e | 7603 | PyObject * _argo0 = 0; |
b1462dfa RD |
7604 | PyObject * _argo1 = 0; |
7605 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7606 | |
7607 | self = self; | |
b1462dfa | 7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7609 | return NULL; |
1d99702e RD |
7610 | if (_argo0) { |
7611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7614 | return NULL; |
7615 | } | |
7616 | } | |
b1462dfa RD |
7617 | if (_argo1) { |
7618 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7619 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7621 | return NULL; |
b1462dfa | 7622 | } |
8ab979d7 | 7623 | } |
cf694132 RD |
7624 | { |
7625 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7626 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 RD |
7627 | |
7628 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7629 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7630 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7631 | return _resultobj; |
7632 | } | |
7633 | ||
b1462dfa RD |
7634 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7635 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7636 | PyObject * _resultobj; |
b1462dfa | 7637 | bool _result; |
8bf5d46e | 7638 | wxMenu * _arg0; |
b1462dfa RD |
7639 | size_t _arg1; |
7640 | wxMenuItem * _arg2; | |
1d99702e | 7641 | PyObject * _argo0 = 0; |
b1462dfa RD |
7642 | PyObject * _argo2 = 0; |
7643 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7644 | |
7645 | self = self; | |
b1462dfa | 7646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7647 | return NULL; |
1d99702e RD |
7648 | if (_argo0) { |
7649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7652 | return NULL; |
7653 | } | |
7654 | } | |
b1462dfa RD |
7655 | if (_argo2) { |
7656 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7657 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7659 | return NULL; |
7660 | } | |
7661 | } | |
cf694132 RD |
7662 | { |
7663 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7664 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 RD |
7665 | |
7666 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7667 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7668 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7669 | return _resultobj; |
7670 | } | |
7671 | ||
b1462dfa RD |
7672 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7673 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7674 | PyObject * _resultobj; |
b1462dfa | 7675 | wxMenuItem * _result; |
efc5f224 | 7676 | wxMenu * _arg0; |
b1462dfa | 7677 | int _arg1; |
efc5f224 | 7678 | PyObject * _argo0 = 0; |
b1462dfa | 7679 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
7680 | |
7681 | self = self; | |
b1462dfa | 7682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7683 | return NULL; |
7684 | if (_argo0) { | |
7685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7688 | return NULL; |
7689 | } | |
7690 | } | |
7691 | { | |
7692 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7693 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 RD |
7694 | |
7695 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7696 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7697 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
7698 | return _resultobj; |
7699 | } | |
7700 | ||
b1462dfa RD |
7701 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7702 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7703 | PyObject * _resultobj; |
b1462dfa RD |
7704 | wxMenuItem * _result; |
7705 | wxMenu * _arg0; | |
7706 | wxMenuItem * _arg1; | |
7707 | PyObject * _argo0 = 0; | |
7708 | PyObject * _argo1 = 0; | |
7709 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7710 | |
7711 | self = self; | |
b1462dfa RD |
7712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7713 | return NULL; | |
7714 | if (_argo0) { | |
7715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7718 | return NULL; | |
7719 | } | |
7720 | } | |
7721 | if (_argo1) { | |
7722 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7723 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7725 | return NULL; |
b1462dfa RD |
7726 | } |
7727 | } | |
cf694132 RD |
7728 | { |
7729 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7730 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 RD |
7731 | |
7732 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7733 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7734 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7735 | return _resultobj; |
7736 | } | |
7737 | ||
eb715945 | 7738 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7739 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7740 | PyObject * _resultobj; |
b1462dfa | 7741 | wxMenu * _arg0; |
1d99702e | 7742 | PyObject * _argo0 = 0; |
b1462dfa | 7743 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7744 | |
7745 | self = self; | |
b1462dfa | 7746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7747 | return NULL; |
1d99702e RD |
7748 | if (_argo0) { |
7749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7752 | return NULL; |
7753 | } | |
7754 | } | |
cf694132 RD |
7755 | { |
7756 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7757 | wxMenu_Destroy(_arg0); |
cf694132 RD |
7758 | |
7759 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7760 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7761 | } Py_INCREF(Py_None); |
8ab979d7 | 7762 | _resultobj = Py_None; |
8ab979d7 RD |
7763 | return _resultobj; |
7764 | } | |
7765 | ||
b1462dfa RD |
7766 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7767 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7768 | PyObject * _resultobj; |
b1462dfa RD |
7769 | bool _result; |
7770 | wxMenu * _arg0; | |
8ab979d7 | 7771 | int _arg1; |
1d99702e | 7772 | PyObject * _argo0 = 0; |
b1462dfa | 7773 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7774 | |
7775 | self = self; | |
b1462dfa | 7776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7777 | return NULL; |
1d99702e RD |
7778 | if (_argo0) { |
7779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
7782 | return NULL; |
7783 | } | |
7784 | } | |
cf694132 RD |
7785 | { |
7786 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7787 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 RD |
7788 | |
7789 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7790 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7791 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7792 | return _resultobj; |
7793 | } | |
7794 | ||
b1462dfa RD |
7795 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7796 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7797 | PyObject * _resultobj; |
b1462dfa RD |
7798 | bool _result; |
7799 | wxMenu * _arg0; | |
7800 | wxMenuItem * _arg1; | |
1d99702e | 7801 | PyObject * _argo0 = 0; |
b1462dfa RD |
7802 | PyObject * _argo1 = 0; |
7803 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7804 | |
7805 | self = self; | |
b1462dfa | 7806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7807 | return NULL; |
1d99702e RD |
7808 | if (_argo0) { |
7809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7812 | return NULL; | |
7813 | } | |
7814 | } | |
7815 | if (_argo1) { | |
7816 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7817 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7819 | return NULL; |
7820 | } | |
7821 | } | |
cf694132 RD |
7822 | { |
7823 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7824 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 RD |
7825 | |
7826 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7827 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7828 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7829 | return _resultobj; |
7830 | } | |
7831 | ||
b1462dfa RD |
7832 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
7833 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7834 | PyObject * _resultobj; |
b1462dfa RD |
7835 | size_t _result; |
7836 | wxMenu * _arg0; | |
1d99702e | 7837 | PyObject * _argo0 = 0; |
b1462dfa | 7838 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7839 | |
7840 | self = self; | |
b1462dfa | 7841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 7842 | return NULL; |
1d99702e RD |
7843 | if (_argo0) { |
7844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
7847 | return NULL; |
7848 | } | |
7849 | } | |
cf694132 RD |
7850 | { |
7851 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7852 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 RD |
7853 | |
7854 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7855 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 7856 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7857 | return _resultobj; |
7858 | } | |
7859 | ||
b1462dfa RD |
7860 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
7861 | wxMenuItemList& list = self->GetMenuItems(); | |
7862 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
7863 | } | |
7864 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7865 | PyObject * _resultobj; |
b1462dfa RD |
7866 | PyObject * _result; |
7867 | wxMenu * _arg0; | |
1d99702e | 7868 | PyObject * _argo0 = 0; |
b1462dfa | 7869 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7870 | |
7871 | self = self; | |
b1462dfa | 7872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 7873 | return NULL; |
1d99702e RD |
7874 | if (_argo0) { |
7875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
7878 | return NULL; |
7879 | } | |
7880 | } | |
cf694132 RD |
7881 | { |
7882 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7883 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 RD |
7884 | |
7885 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7886 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7887 | }{ |
7888 | _resultobj = _result; | |
7889 | } | |
8ab979d7 RD |
7890 | return _resultobj; |
7891 | } | |
7892 | ||
b1462dfa RD |
7893 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
7894 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7895 | PyObject * _resultobj; |
b1462dfa RD |
7896 | wxMenu * _arg0; |
7897 | wxEvtHandler * _arg1; | |
1d99702e | 7898 | PyObject * _argo0 = 0; |
b1462dfa RD |
7899 | PyObject * _argo1 = 0; |
7900 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
7901 | |
7902 | self = self; | |
b1462dfa | 7903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7904 | return NULL; |
1d99702e RD |
7905 | if (_argo0) { |
7906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7909 | return NULL; |
7910 | } | |
7911 | } | |
b1462dfa RD |
7912 | if (_argo1) { |
7913 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7914 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 7916 | return NULL; |
b1462dfa | 7917 | } |
8ab979d7 | 7918 | } |
cf694132 RD |
7919 | { |
7920 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7921 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 RD |
7922 | |
7923 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7924 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7925 | } Py_INCREF(Py_None); |
7926 | _resultobj = Py_None; | |
8ab979d7 RD |
7927 | return _resultobj; |
7928 | } | |
7929 | ||
b1462dfa RD |
7930 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
7931 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7932 | PyObject * _resultobj; |
b1462dfa RD |
7933 | wxEvtHandler * _result; |
7934 | wxMenu * _arg0; | |
1d99702e | 7935 | PyObject * _argo0 = 0; |
b1462dfa | 7936 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7937 | |
7938 | self = self; | |
b1462dfa | 7939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 7940 | return NULL; |
1d99702e RD |
7941 | if (_argo0) { |
7942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7945 | return NULL; |
7946 | } | |
7947 | } | |
cf694132 RD |
7948 | { |
7949 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7950 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 RD |
7951 | |
7952 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7953 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7954 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7955 | return _resultobj; |
7956 | } | |
7957 | ||
b1462dfa RD |
7958 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
7959 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 7960 | PyObject * _resultobj; |
b1462dfa RD |
7961 | wxMenu * _arg0; |
7962 | wxWindow * _arg1; | |
2f90df85 | 7963 | PyObject * _argo0 = 0; |
b1462dfa RD |
7964 | PyObject * _argo1 = 0; |
7965 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
7966 | |
7967 | self = self; | |
b1462dfa | 7968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
7969 | return NULL; |
7970 | if (_argo0) { | |
7971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
7974 | return NULL; |
7975 | } | |
7976 | } | |
b1462dfa RD |
7977 | if (_argo1) { |
7978 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7979 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 7981 | return NULL; |
b1462dfa | 7982 | } |
2f90df85 | 7983 | } |
2f90df85 RD |
7984 | { |
7985 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7986 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 RD |
7987 | |
7988 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7989 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
7990 | } Py_INCREF(Py_None); |
7991 | _resultobj = Py_None; | |
2f90df85 RD |
7992 | return _resultobj; |
7993 | } | |
7994 | ||
b1462dfa RD |
7995 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
7996 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7997 | PyObject * _resultobj; |
b1462dfa RD |
7998 | wxWindow * _result; |
7999 | wxMenu * _arg0; | |
1d99702e | 8000 | PyObject * _argo0 = 0; |
b1462dfa | 8001 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8002 | |
8003 | self = self; | |
b1462dfa | 8004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 8005 | return NULL; |
1d99702e RD |
8006 | if (_argo0) { |
8007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
8010 | return NULL; |
8011 | } | |
8012 | } | |
cf694132 RD |
8013 | { |
8014 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8015 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 RD |
8016 | |
8017 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8018 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8019 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8020 | return _resultobj; |
8021 | } | |
8022 | ||
b1462dfa RD |
8023 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
8024 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8025 | PyObject * _resultobj; |
b1462dfa RD |
8026 | long _result; |
8027 | wxMenu * _arg0; | |
1d99702e | 8028 | PyObject * _argo0 = 0; |
b1462dfa | 8029 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8030 | |
8031 | self = self; | |
b1462dfa | 8032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 8033 | return NULL; |
1d99702e RD |
8034 | if (_argo0) { |
8035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
8038 | return NULL; |
8039 | } | |
8040 | } | |
8ab979d7 | 8041 | { |
cf694132 | 8042 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8043 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 RD |
8044 | |
8045 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8046 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8047 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8048 | return _resultobj; |
8049 | } | |
8050 | ||
b1462dfa RD |
8051 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
8052 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8053 | PyObject * _resultobj; |
b1462dfa RD |
8054 | bool _result; |
8055 | wxMenu * _arg0; | |
1d99702e | 8056 | PyObject * _argo0 = 0; |
b1462dfa | 8057 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8058 | |
8059 | self = self; | |
b1462dfa | 8060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 8061 | return NULL; |
1d99702e RD |
8062 | if (_argo0) { |
8063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
8066 | return NULL; |
8067 | } | |
8068 | } | |
8ab979d7 | 8069 | { |
cf694132 | 8070 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8071 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 RD |
8072 | |
8073 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8074 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8075 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8076 | return _resultobj; |
8077 | } | |
8078 | ||
b1462dfa RD |
8079 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
8080 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8081 | PyObject * _resultobj; |
b1462dfa RD |
8082 | wxMenu * _arg0; |
8083 | wxMenu * _arg1; | |
1d99702e | 8084 | PyObject * _argo0 = 0; |
b1462dfa RD |
8085 | PyObject * _argo1 = 0; |
8086 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
8087 | |
8088 | self = self; | |
b1462dfa | 8089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8090 | return NULL; |
1d99702e RD |
8091 | if (_argo0) { |
8092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8095 | return NULL; |
8096 | } | |
8097 | } | |
b1462dfa RD |
8098 | if (_argo1) { |
8099 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8100 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 8102 | return NULL; |
b1462dfa | 8103 | } |
8ab979d7 | 8104 | } |
cf694132 RD |
8105 | { |
8106 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8107 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 RD |
8108 | |
8109 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8110 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8111 | } Py_INCREF(Py_None); |
8ab979d7 | 8112 | _resultobj = Py_None; |
8ab979d7 RD |
8113 | return _resultobj; |
8114 | } | |
8115 | ||
b1462dfa RD |
8116 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
8117 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8118 | PyObject * _resultobj; |
b1462dfa RD |
8119 | wxMenu * _result; |
8120 | wxMenu * _arg0; | |
1d99702e | 8121 | PyObject * _argo0 = 0; |
b1462dfa | 8122 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8123 | |
8124 | self = self; | |
b1462dfa | 8125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 8126 | return NULL; |
1d99702e RD |
8127 | if (_argo0) { |
8128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8131 | return NULL; |
8132 | } | |
8133 | } | |
8ab979d7 | 8134 | { |
cf694132 | 8135 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8136 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 RD |
8137 | |
8138 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8139 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8140 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8141 | return _resultobj; |
8ab979d7 | 8142 | } |
b1462dfa RD |
8143 | |
8144 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8145 | wxMenuBar *src; | |
8146 | wxWindow *dest; | |
8147 | src = (wxMenuBar *) ptr; | |
8148 | dest = (wxWindow *) src; | |
8149 | return (void *) dest; | |
8150 | } | |
8151 | ||
8152 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8153 | wxMenuBar *src; | |
8154 | wxEvtHandler *dest; | |
8155 | src = (wxMenuBar *) ptr; | |
8156 | dest = (wxEvtHandler *) src; | |
8157 | return (void *) dest; | |
8ab979d7 | 8158 | } |
b1462dfa | 8159 | |
9416aa89 RD |
8160 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
8161 | wxMenuBar *src; | |
8162 | wxObject *dest; | |
8163 | src = (wxMenuBar *) ptr; | |
8164 | dest = (wxObject *) src; | |
8165 | return (void *) dest; | |
8166 | } | |
8167 | ||
c368d904 | 8168 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
8169 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8170 | PyObject * _resultobj; | |
8171 | wxMenuBar * _result; | |
c368d904 RD |
8172 | long _arg0 = (long ) 0; |
8173 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
8174 | char _ptemp[128]; |
8175 | ||
8176 | self = self; | |
c368d904 | 8177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
8178 | return NULL; |
8179 | { | |
8180 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 8181 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa RD |
8182 | |
8183 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8184 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8185 | } if (_result) { |
8186 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8187 | _resultobj = Py_BuildValue("s",_ptemp); | |
8188 | } else { | |
8189 | Py_INCREF(Py_None); | |
8190 | _resultobj = Py_None; | |
8191 | } | |
8ab979d7 RD |
8192 | return _resultobj; |
8193 | } | |
8194 | ||
b1462dfa RD |
8195 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
8196 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8197 | PyObject * _resultobj; |
b1462dfa | 8198 | bool _result; |
8ab979d7 | 8199 | wxMenuBar * _arg0; |
b1462dfa | 8200 | wxMenu * _arg1; |
8ab979d7 | 8201 | wxString * _arg2; |
1d99702e | 8202 | PyObject * _argo0 = 0; |
b1462dfa | 8203 | PyObject * _argo1 = 0; |
8ab979d7 | 8204 | PyObject * _obj2 = 0; |
b1462dfa | 8205 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
8206 | |
8207 | self = self; | |
b1462dfa | 8208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8209 | return NULL; |
1d99702e RD |
8210 | if (_argo0) { |
8211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
8214 | return NULL; | |
8215 | } | |
8216 | } | |
8217 | if (_argo1) { | |
8218 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8219 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
8221 | return NULL; |
8222 | } | |
8223 | } | |
8224 | { | |
185d7c3e RD |
8225 | #if PYTHON_API_VERSION >= 1009 |
8226 | char* tmpPtr; int tmpSize; | |
8227 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8228 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8229 | return NULL; |
8230 | } | |
8231 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8232 | return NULL; | |
8233 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8234 | #else | |
8ab979d7 RD |
8235 | if (!PyString_Check(_obj2)) { |
8236 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8237 | return NULL; | |
8238 | } | |
185d7c3e RD |
8239 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8240 | #endif | |
8ab979d7 | 8241 | } |
cf694132 RD |
8242 | { |
8243 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8244 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 RD |
8245 | |
8246 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8247 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8248 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8249 | { |
8250 | if (_obj2) | |
8251 | delete _arg2; | |
8252 | } | |
8253 | return _resultobj; | |
8254 | } | |
8255 | ||
b1462dfa RD |
8256 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
8257 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8258 | PyObject * _resultobj; |
b1462dfa | 8259 | bool _result; |
8ab979d7 | 8260 | wxMenuBar * _arg0; |
b1462dfa RD |
8261 | size_t _arg1; |
8262 | wxMenu * _arg2; | |
8263 | wxString * _arg3; | |
1d99702e | 8264 | PyObject * _argo0 = 0; |
b1462dfa RD |
8265 | PyObject * _argo2 = 0; |
8266 | PyObject * _obj3 = 0; | |
8267 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
8268 | |
8269 | self = self; | |
b1462dfa | 8270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 8271 | return NULL; |
1d99702e RD |
8272 | if (_argo0) { |
8273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
8276 | return NULL; | |
8277 | } | |
8278 | } | |
8279 | if (_argo2) { | |
8280 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8281 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
8283 | return NULL; |
8284 | } | |
8285 | } | |
b1462dfa | 8286 | { |
185d7c3e RD |
8287 | #if PYTHON_API_VERSION >= 1009 |
8288 | char* tmpPtr; int tmpSize; | |
8289 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8290 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8291 | return NULL; |
8292 | } | |
8293 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8294 | return NULL; | |
8295 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8296 | #else | |
b1462dfa RD |
8297 | if (!PyString_Check(_obj3)) { |
8298 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8299 | return NULL; | |
8300 | } | |
185d7c3e RD |
8301 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8302 | #endif | |
b1462dfa | 8303 | } |
cf694132 RD |
8304 | { |
8305 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8306 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
8307 | |
8308 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8309 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8310 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
8311 | { |
8312 | if (_obj3) | |
8313 | delete _arg3; | |
8314 | } | |
8ab979d7 RD |
8315 | return _resultobj; |
8316 | } | |
8317 | ||
b1462dfa RD |
8318 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8319 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8320 | PyObject * _resultobj; |
b1462dfa | 8321 | size_t _result; |
8ab979d7 | 8322 | wxMenuBar * _arg0; |
1d99702e | 8323 | PyObject * _argo0 = 0; |
b1462dfa | 8324 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8325 | |
8326 | self = self; | |
b1462dfa | 8327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8328 | return NULL; |
1d99702e RD |
8329 | if (_argo0) { |
8330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8333 | return NULL; |
8334 | } | |
8335 | } | |
cf694132 RD |
8336 | { |
8337 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8338 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 RD |
8339 | |
8340 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8341 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8342 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8343 | return _resultobj; |
8344 | } | |
8345 | ||
b1462dfa RD |
8346 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8347 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8348 | PyObject * _resultobj; |
b1462dfa | 8349 | wxMenu * _result; |
06c0fba4 | 8350 | wxMenuBar * _arg0; |
b1462dfa | 8351 | size_t _arg1; |
06c0fba4 | 8352 | PyObject * _argo0 = 0; |
b1462dfa | 8353 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
8354 | |
8355 | self = self; | |
b1462dfa | 8356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8357 | return NULL; |
8358 | if (_argo0) { | |
8359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8362 | return NULL; |
8363 | } | |
8364 | } | |
8365 | { | |
8366 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8367 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 RD |
8368 | |
8369 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8370 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8371 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
8372 | return _resultobj; |
8373 | } | |
8374 | ||
2abc0a0f RD |
8375 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8376 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8377 | PyObject * _resultobj; | |
8378 | wxMenu * _result; | |
8379 | wxMenuBar * _arg0; | |
8380 | size_t _arg1; | |
8381 | wxMenu * _arg2; | |
8382 | wxString * _arg3; | |
8383 | PyObject * _argo0 = 0; | |
8384 | PyObject * _argo2 = 0; | |
8385 | PyObject * _obj3 = 0; | |
8386 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
8387 | |
8388 | self = self; | |
8389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8390 | return NULL; | |
8391 | if (_argo0) { | |
8392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8395 | return NULL; | |
8396 | } | |
8397 | } | |
8398 | if (_argo2) { | |
8399 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8400 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8402 | return NULL; | |
8403 | } | |
8404 | } | |
8405 | { | |
185d7c3e RD |
8406 | #if PYTHON_API_VERSION >= 1009 |
8407 | char* tmpPtr; int tmpSize; | |
8408 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8409 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8410 | return NULL; |
8411 | } | |
8412 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8413 | return NULL; | |
8414 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8415 | #else | |
2abc0a0f RD |
8416 | if (!PyString_Check(_obj3)) { |
8417 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8418 | return NULL; | |
8419 | } | |
185d7c3e RD |
8420 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8421 | #endif | |
2abc0a0f RD |
8422 | } |
8423 | { | |
8424 | wxPy_BEGIN_ALLOW_THREADS; | |
8425 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
8426 | ||
8427 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8428 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8429 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8430 | { |
8431 | if (_obj3) | |
8432 | delete _arg3; | |
8433 | } | |
8434 | return _resultobj; | |
8435 | } | |
8436 | ||
8437 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8438 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8439 | PyObject * _resultobj; | |
8440 | wxMenu * _result; | |
8441 | wxMenuBar * _arg0; | |
8442 | size_t _arg1; | |
8443 | PyObject * _argo0 = 0; | |
8444 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
8445 | |
8446 | self = self; | |
8447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8448 | return NULL; | |
8449 | if (_argo0) { | |
8450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8453 | return NULL; | |
8454 | } | |
8455 | } | |
8456 | { | |
8457 | wxPy_BEGIN_ALLOW_THREADS; | |
8458 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
8459 | ||
8460 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8461 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8462 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8463 | return _resultobj; |
8464 | } | |
8465 | ||
b1462dfa RD |
8466 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8467 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8468 | PyObject * _resultobj; |
b1462dfa RD |
8469 | wxMenuBar * _arg0; |
8470 | size_t _arg1; | |
8471 | bool _arg2; | |
8472 | PyObject * _argo0 = 0; | |
8473 | int tempbool2; | |
8474 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8475 | ||
8476 | self = self; | |
8477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8478 | return NULL; | |
8479 | if (_argo0) { | |
8480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8483 | return NULL; | |
8484 | } | |
8485 | } | |
8486 | _arg2 = (bool ) tempbool2; | |
8487 | { | |
8488 | wxPy_BEGIN_ALLOW_THREADS; | |
8489 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
8490 | ||
8491 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8492 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8493 | } Py_INCREF(Py_None); |
8494 | _resultobj = Py_None; | |
8495 | return _resultobj; | |
8496 | } | |
8497 | ||
8498 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8499 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8500 | PyObject * _resultobj; | |
8501 | wxMenuBar * _arg0; | |
8502 | size_t _arg1; | |
8503 | wxString * _arg2; | |
1d99702e | 8504 | PyObject * _argo0 = 0; |
cf694132 | 8505 | PyObject * _obj2 = 0; |
b1462dfa | 8506 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8507 | |
8508 | self = self; | |
b1462dfa | 8509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8510 | return NULL; |
1d99702e RD |
8511 | if (_argo0) { |
8512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8515 | return NULL; |
8516 | } | |
8517 | } | |
cf694132 | 8518 | { |
185d7c3e RD |
8519 | #if PYTHON_API_VERSION >= 1009 |
8520 | char* tmpPtr; int tmpSize; | |
8521 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8522 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8523 | return NULL; |
8524 | } | |
8525 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8526 | return NULL; | |
8527 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8528 | #else | |
cf694132 RD |
8529 | if (!PyString_Check(_obj2)) { |
8530 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8531 | return NULL; | |
8532 | } | |
185d7c3e RD |
8533 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8534 | #endif | |
cf694132 | 8535 | } |
cf694132 | 8536 | { |
b1462dfa RD |
8537 | wxPy_BEGIN_ALLOW_THREADS; |
8538 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
8539 | ||
8540 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8541 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8542 | } Py_INCREF(Py_None); |
8543 | _resultobj = Py_None; | |
8544 | { | |
8545 | if (_obj2) | |
8546 | delete _arg2; | |
8547 | } | |
8548 | return _resultobj; | |
8549 | } | |
8550 | ||
8551 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8552 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8553 | PyObject * _resultobj; | |
8554 | wxString * _result; | |
8555 | wxMenuBar * _arg0; | |
8556 | size_t _arg1; | |
8557 | PyObject * _argo0 = 0; | |
8558 | char *_kwnames[] = { "self","pos", NULL }; | |
8559 | ||
8560 | self = self; | |
8561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8562 | return NULL; | |
8563 | if (_argo0) { | |
8564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8567 | return NULL; | |
8568 | } | |
8569 | } | |
8570 | { | |
8571 | wxPy_BEGIN_ALLOW_THREADS; | |
8572 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
8573 | ||
8574 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8575 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8576 | }{ |
eec92d76 | 8577 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8578 | } |
8579 | { | |
8580 | delete _result; | |
8581 | } | |
8582 | return _resultobj; | |
8583 | } | |
8584 | ||
8585 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
8586 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8587 | PyObject * _resultobj; | |
8588 | int _result; | |
8589 | wxMenuBar * _arg0; | |
8590 | wxString * _arg1; | |
8591 | wxString * _arg2; | |
8592 | PyObject * _argo0 = 0; | |
8593 | PyObject * _obj1 = 0; | |
8594 | PyObject * _obj2 = 0; | |
8595 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8596 | ||
8597 | self = self; | |
8598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8599 | return NULL; | |
8600 | if (_argo0) { | |
8601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8604 | return NULL; | |
8605 | } | |
8606 | } | |
8607 | { | |
185d7c3e RD |
8608 | #if PYTHON_API_VERSION >= 1009 |
8609 | char* tmpPtr; int tmpSize; | |
8610 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8611 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8612 | return NULL; |
8613 | } | |
8614 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8615 | return NULL; | |
8616 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8617 | #else | |
b1462dfa | 8618 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
8619 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
8620 | return NULL; | |
8621 | } | |
185d7c3e RD |
8622 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8623 | #endif | |
cf694132 | 8624 | } |
b1462dfa | 8625 | { |
185d7c3e RD |
8626 | #if PYTHON_API_VERSION >= 1009 |
8627 | char* tmpPtr; int tmpSize; | |
8628 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8629 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8630 | return NULL; |
8631 | } | |
8632 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8633 | return NULL; | |
8634 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8635 | #else | |
b1462dfa RD |
8636 | if (!PyString_Check(_obj2)) { |
8637 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8638 | return NULL; | |
8639 | } | |
185d7c3e RD |
8640 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8641 | #endif | |
b1462dfa RD |
8642 | } |
8643 | { | |
8644 | wxPy_BEGIN_ALLOW_THREADS; | |
8645 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
8646 | ||
8647 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8648 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8649 | } _resultobj = Py_BuildValue("i",_result); |
8650 | { | |
8651 | if (_obj1) | |
8652 | delete _arg1; | |
8653 | } | |
8654 | { | |
8655 | if (_obj2) | |
8656 | delete _arg2; | |
8657 | } | |
8658 | return _resultobj; | |
8659 | } | |
8660 | ||
8661 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8662 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8663 | PyObject * _resultobj; | |
8664 | wxMenuItem * _result; | |
8665 | wxMenuBar * _arg0; | |
8666 | int _arg1; | |
8667 | PyObject * _argo0 = 0; | |
8668 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8669 | |
8670 | self = self; | |
8671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8672 | return NULL; | |
8673 | if (_argo0) { | |
8674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8677 | return NULL; |
8678 | } | |
8679 | } | |
8680 | { | |
8681 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8682 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 RD |
8683 | |
8684 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8685 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8686 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8687 | return _resultobj; |
cf694132 | 8688 | } |
b1462dfa RD |
8689 | |
8690 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8691 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8692 | PyObject * _resultobj; | |
8693 | wxMenuBar * _arg0; | |
8694 | int _arg1; | |
8695 | bool _arg2; | |
8696 | PyObject * _argo0 = 0; | |
8697 | int tempbool2; | |
8698 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8699 | ||
8700 | self = self; | |
8701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8702 | return NULL; | |
8703 | if (_argo0) { | |
8704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8707 | return NULL; | |
8708 | } | |
8709 | } | |
8710 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8711 | { |
b1462dfa RD |
8712 | wxPy_BEGIN_ALLOW_THREADS; |
8713 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8714 | ||
8715 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8716 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8717 | } Py_INCREF(Py_None); |
8718 | _resultobj = Py_None; | |
8719 | return _resultobj; | |
cf694132 | 8720 | } |
b1462dfa RD |
8721 | |
8722 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8723 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8724 | PyObject * _resultobj; | |
8725 | wxMenuBar * _arg0; | |
8726 | int _arg1; | |
8727 | bool _arg2; | |
8728 | PyObject * _argo0 = 0; | |
8729 | int tempbool2; | |
8730 | char *_kwnames[] = { "self","id","check", NULL }; | |
8731 | ||
8732 | self = self; | |
8733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8734 | return NULL; | |
8735 | if (_argo0) { | |
8736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8739 | return NULL; | |
8740 | } | |
8741 | } | |
8742 | _arg2 = (bool ) tempbool2; | |
8743 | { | |
8744 | wxPy_BEGIN_ALLOW_THREADS; | |
8745 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8746 | ||
8747 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8748 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8749 | } Py_INCREF(Py_None); |
8750 | _resultobj = Py_None; | |
cf694132 RD |
8751 | return _resultobj; |
8752 | } | |
8753 | ||
b1462dfa RD |
8754 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8755 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8756 | PyObject * _resultobj; |
8757 | bool _result; | |
b1462dfa RD |
8758 | wxMenuBar * _arg0; |
8759 | int _arg1; | |
1d99702e | 8760 | PyObject * _argo0 = 0; |
b1462dfa | 8761 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8762 | |
8763 | self = self; | |
b1462dfa | 8764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8765 | return NULL; |
1d99702e RD |
8766 | if (_argo0) { |
8767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8770 | return NULL; |
8771 | } | |
8772 | } | |
cf694132 RD |
8773 | { |
8774 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8775 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 RD |
8776 | |
8777 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8778 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8779 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8780 | return _resultobj; |
8781 | } | |
8782 | ||
b1462dfa RD |
8783 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8784 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8785 | PyObject * _resultobj; |
8786 | bool _result; | |
b1462dfa RD |
8787 | wxMenuBar * _arg0; |
8788 | int _arg1; | |
1d99702e | 8789 | PyObject * _argo0 = 0; |
b1462dfa | 8790 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8791 | |
8792 | self = self; | |
b1462dfa | 8793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8794 | return NULL; |
1d99702e RD |
8795 | if (_argo0) { |
8796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8799 | return NULL; |
8800 | } | |
8801 | } | |
cf694132 RD |
8802 | { |
8803 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8804 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 RD |
8805 | |
8806 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8807 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8808 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8809 | return _resultobj; |
8810 | } | |
8811 | ||
b1462dfa RD |
8812 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8813 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8814 | PyObject * _resultobj; |
b1462dfa RD |
8815 | wxMenuBar * _arg0; |
8816 | int _arg1; | |
8817 | wxString * _arg2; | |
1d99702e | 8818 | PyObject * _argo0 = 0; |
b1462dfa RD |
8819 | PyObject * _obj2 = 0; |
8820 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8821 | |
8822 | self = self; | |
b1462dfa | 8823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8824 | return NULL; |
1d99702e RD |
8825 | if (_argo0) { |
8826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8829 | return NULL; |
8830 | } | |
8831 | } | |
b1462dfa | 8832 | { |
185d7c3e RD |
8833 | #if PYTHON_API_VERSION >= 1009 |
8834 | char* tmpPtr; int tmpSize; | |
8835 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8836 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8837 | return NULL; |
8838 | } | |
8839 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8840 | return NULL; | |
8841 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8842 | #else | |
b1462dfa RD |
8843 | if (!PyString_Check(_obj2)) { |
8844 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8845 | return NULL; | |
8846 | } | |
185d7c3e RD |
8847 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8848 | #endif | |
b1462dfa | 8849 | } |
cf694132 RD |
8850 | { |
8851 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8852 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
8853 | |
8854 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8855 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8856 | } Py_INCREF(Py_None); |
8857 | _resultobj = Py_None; | |
8858 | { | |
8859 | if (_obj2) | |
8860 | delete _arg2; | |
8861 | } | |
8ab979d7 RD |
8862 | return _resultobj; |
8863 | } | |
8864 | ||
b1462dfa RD |
8865 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8866 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8867 | PyObject * _resultobj; |
b1462dfa RD |
8868 | wxString * _result; |
8869 | wxMenuBar * _arg0; | |
8870 | int _arg1; | |
1d99702e | 8871 | PyObject * _argo0 = 0; |
b1462dfa | 8872 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8873 | |
8874 | self = self; | |
b1462dfa | 8875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8876 | return NULL; |
1d99702e RD |
8877 | if (_argo0) { |
8878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
8881 | return NULL; | |
8882 | } | |
8883 | } | |
8884 | { | |
8885 | wxPy_BEGIN_ALLOW_THREADS; | |
8886 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
8887 | ||
8888 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8889 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8890 | }{ |
eec92d76 | 8891 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8892 | } |
8893 | { | |
8894 | delete _result; | |
8895 | } | |
8896 | return _resultobj; | |
8897 | } | |
8898 | ||
8899 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
8900 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8901 | PyObject * _resultobj; | |
8902 | wxMenuBar * _arg0; | |
8903 | int _arg1; | |
8904 | wxString * _arg2; | |
8905 | PyObject * _argo0 = 0; | |
8906 | PyObject * _obj2 = 0; | |
8907 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
8908 | ||
8909 | self = self; | |
8910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8911 | return NULL; | |
8912 | if (_argo0) { | |
8913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
8916 | return NULL; | |
8917 | } | |
8918 | } | |
8919 | { | |
185d7c3e RD |
8920 | #if PYTHON_API_VERSION >= 1009 |
8921 | char* tmpPtr; int tmpSize; | |
8922 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8923 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8924 | return NULL; |
8925 | } | |
8926 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8927 | return NULL; | |
8928 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8929 | #else | |
b1462dfa RD |
8930 | if (!PyString_Check(_obj2)) { |
8931 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8932 | return NULL; | |
8933 | } | |
185d7c3e RD |
8934 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8935 | #endif | |
b1462dfa RD |
8936 | } |
8937 | { | |
8938 | wxPy_BEGIN_ALLOW_THREADS; | |
8939 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
8940 | ||
8941 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8942 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8943 | } Py_INCREF(Py_None); |
8944 | _resultobj = Py_None; | |
8945 | { | |
8946 | if (_obj2) | |
8947 | delete _arg2; | |
8948 | } | |
8949 | return _resultobj; | |
8950 | } | |
8951 | ||
8952 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
8953 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8954 | PyObject * _resultobj; | |
8955 | wxString * _result; | |
8956 | wxMenuBar * _arg0; | |
8957 | int _arg1; | |
8958 | PyObject * _argo0 = 0; | |
8959 | char *_kwnames[] = { "self","id", NULL }; | |
8960 | ||
8961 | self = self; | |
8962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
8963 | return NULL; | |
8964 | if (_argo0) { | |
8965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8968 | return NULL; |
8969 | } | |
8970 | } | |
cf694132 RD |
8971 | { |
8972 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8973 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
8974 | |
8975 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8976 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8977 | }{ |
eec92d76 | 8978 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8979 | } |
8980 | { | |
8981 | delete _result; | |
8982 | } | |
8ab979d7 RD |
8983 | return _resultobj; |
8984 | } | |
8985 | ||
9416aa89 RD |
8986 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
8987 | wxMenuItem *src; | |
8988 | wxObject *dest; | |
8989 | src = (wxMenuItem *) ptr; | |
8990 | dest = (wxObject *) src; | |
8991 | return (void *) dest; | |
8992 | } | |
8993 | ||
b1462dfa RD |
8994 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8995 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8996 | PyObject * _resultobj; |
b1462dfa RD |
8997 | wxMenuItem * _result; |
8998 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 8999 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
9000 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
9001 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
9002 | bool _arg4 = (bool ) FALSE; | |
9003 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 9004 | PyObject * _argo0 = 0; |
b1462dfa RD |
9005 | PyObject * _obj2 = 0; |
9006 | PyObject * _obj3 = 0; | |
9007 | int tempbool4 = (int) FALSE; | |
9008 | PyObject * _argo5 = 0; | |
9009 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
9010 | char _ptemp[128]; | |
8ab979d7 RD |
9011 | |
9012 | self = self; | |
b1462dfa | 9013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 9014 | return NULL; |
1d99702e RD |
9015 | if (_argo0) { |
9016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9019 | return NULL; | |
9020 | } | |
9021 | } | |
9022 | if (_obj2) | |
9023 | { | |
185d7c3e RD |
9024 | #if PYTHON_API_VERSION >= 1009 |
9025 | char* tmpPtr; int tmpSize; | |
9026 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9027 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9028 | return NULL; |
9029 | } | |
9030 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9031 | return NULL; | |
9032 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9033 | #else | |
b1462dfa RD |
9034 | if (!PyString_Check(_obj2)) { |
9035 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9036 | return NULL; | |
9037 | } | |
185d7c3e RD |
9038 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9039 | #endif | |
b1462dfa RD |
9040 | } |
9041 | if (_obj3) | |
9042 | { | |
185d7c3e RD |
9043 | #if PYTHON_API_VERSION >= 1009 |
9044 | char* tmpPtr; int tmpSize; | |
9045 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 9046 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9047 | return NULL; |
9048 | } | |
9049 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9050 | return NULL; | |
9051 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9052 | #else | |
b1462dfa RD |
9053 | if (!PyString_Check(_obj3)) { |
9054 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9055 | return NULL; | |
9056 | } | |
185d7c3e RD |
9057 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
9058 | #endif | |
b1462dfa RD |
9059 | } |
9060 | _arg4 = (bool ) tempbool4; | |
9061 | if (_argo5) { | |
9062 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9063 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
9065 | return NULL; |
9066 | } | |
9067 | } | |
cf694132 RD |
9068 | { |
9069 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9070 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 RD |
9071 | |
9072 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9073 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9074 | } if (_result) { |
9075 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9076 | _resultobj = Py_BuildValue("s",_ptemp); | |
9077 | } else { | |
9078 | Py_INCREF(Py_None); | |
9079 | _resultobj = Py_None; | |
9080 | } | |
9081 | { | |
9082 | if (_obj2) | |
9083 | delete _arg2; | |
9084 | } | |
9085 | { | |
9086 | if (_obj3) | |
9087 | delete _arg3; | |
9088 | } | |
8ab979d7 RD |
9089 | return _resultobj; |
9090 | } | |
9091 | ||
b1462dfa RD |
9092 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
9093 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9094 | PyObject * _resultobj; |
b1462dfa | 9095 | wxMenu * _result; |
8ab979d7 | 9096 | wxMenuItem * _arg0; |
1d99702e | 9097 | PyObject * _argo0 = 0; |
efc5f224 | 9098 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9099 | |
9100 | self = self; | |
b1462dfa | 9101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 9102 | return NULL; |
1d99702e RD |
9103 | if (_argo0) { |
9104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9107 | return NULL; |
9108 | } | |
9109 | } | |
cf694132 RD |
9110 | { |
9111 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9112 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 RD |
9113 | |
9114 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9115 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9116 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9117 | return _resultobj; |
9118 | } | |
9119 | ||
2abc0a0f RD |
9120 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
9121 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9122 | PyObject * _resultobj; |
9123 | wxMenuItem * _arg0; | |
2abc0a0f | 9124 | int _arg1; |
1d99702e | 9125 | PyObject * _argo0 = 0; |
2abc0a0f | 9126 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9127 | |
9128 | self = self; | |
2abc0a0f | 9129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9130 | return NULL; |
1d99702e RD |
9131 | if (_argo0) { |
9132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 9134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9135 | return NULL; |
9136 | } | |
9137 | } | |
cf694132 RD |
9138 | { |
9139 | wxPy_BEGIN_ALLOW_THREADS; | |
2abc0a0f | 9140 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 RD |
9141 | |
9142 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9143 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9144 | } Py_INCREF(Py_None); |
8ab979d7 | 9145 | _resultobj = Py_None; |
8ab979d7 RD |
9146 | return _resultobj; |
9147 | } | |
9148 | ||
b1462dfa RD |
9149 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
9150 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9151 | PyObject * _resultobj; |
b1462dfa | 9152 | int _result; |
8ab979d7 | 9153 | wxMenuItem * _arg0; |
1d99702e | 9154 | PyObject * _argo0 = 0; |
efc5f224 | 9155 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9156 | |
9157 | self = self; | |
b1462dfa | 9158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 9159 | return NULL; |
1d99702e RD |
9160 | if (_argo0) { |
9161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9164 | return NULL; |
9165 | } | |
9166 | } | |
8ab979d7 | 9167 | { |
cf694132 | 9168 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9169 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 RD |
9170 | |
9171 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9172 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9173 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9174 | return _resultobj; |
9175 | } | |
9176 | ||
b1462dfa RD |
9177 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
9178 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9179 | PyObject * _resultobj; |
b1462dfa | 9180 | bool _result; |
8ab979d7 | 9181 | wxMenuItem * _arg0; |
1d99702e | 9182 | PyObject * _argo0 = 0; |
efc5f224 | 9183 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9184 | |
9185 | self = self; | |
b1462dfa | 9186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 9187 | return NULL; |
1d99702e RD |
9188 | if (_argo0) { |
9189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9192 | return NULL; |
9193 | } | |
9194 | } | |
8ab979d7 | 9195 | { |
cf694132 | 9196 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9197 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 RD |
9198 | |
9199 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9200 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9201 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9202 | return _resultobj; |
9203 | } | |
9204 | ||
b1462dfa RD |
9205 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
9206 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9207 | PyObject * _resultobj; |
9208 | wxMenuItem * _arg0; | |
9209 | wxString * _arg1; | |
1d99702e | 9210 | PyObject * _argo0 = 0; |
8ab979d7 | 9211 | PyObject * _obj1 = 0; |
b1462dfa | 9212 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
9213 | |
9214 | self = self; | |
b1462dfa | 9215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9216 | return NULL; |
1d99702e RD |
9217 | if (_argo0) { |
9218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9221 | return NULL; |
9222 | } | |
9223 | } | |
9224 | { | |
185d7c3e RD |
9225 | #if PYTHON_API_VERSION >= 1009 |
9226 | char* tmpPtr; int tmpSize; | |
9227 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9228 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9229 | return NULL; |
9230 | } | |
9231 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9232 | return NULL; | |
9233 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9234 | #else | |
8ab979d7 RD |
9235 | if (!PyString_Check(_obj1)) { |
9236 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9237 | return NULL; | |
9238 | } | |
185d7c3e RD |
9239 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9240 | #endif | |
8ab979d7 | 9241 | } |
cf694132 RD |
9242 | { |
9243 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9244 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 RD |
9245 | |
9246 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9247 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9248 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9249 | _resultobj = Py_None; |
9250 | { | |
9251 | if (_obj1) | |
9252 | delete _arg1; | |
9253 | } | |
9254 | return _resultobj; | |
9255 | } | |
9256 | ||
b1462dfa RD |
9257 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
9258 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9259 | PyObject * _resultobj; |
b1462dfa | 9260 | wxString * _result; |
8ab979d7 | 9261 | wxMenuItem * _arg0; |
1d99702e | 9262 | PyObject * _argo0 = 0; |
b1462dfa | 9263 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9264 | |
9265 | self = self; | |
b1462dfa | 9266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 9267 | return NULL; |
1d99702e RD |
9268 | if (_argo0) { |
9269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9272 | return NULL; |
9273 | } | |
9274 | } | |
cf694132 RD |
9275 | { |
9276 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9277 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 RD |
9278 | |
9279 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9280 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9281 | }{ |
eec92d76 | 9282 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 9283 | } |
cf694132 | 9284 | { |
b1462dfa RD |
9285 | delete _result; |
9286 | } | |
cf694132 RD |
9287 | return _resultobj; |
9288 | } | |
9289 | ||
b1462dfa RD |
9290 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
9291 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9292 | PyObject * _resultobj; |
b1462dfa | 9293 | wxString * _result; |
cf694132 | 9294 | wxMenuItem * _arg0; |
1d99702e | 9295 | PyObject * _argo0 = 0; |
efc5f224 | 9296 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9297 | |
9298 | self = self; | |
b1462dfa | 9299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 9300 | return NULL; |
1d99702e RD |
9301 | if (_argo0) { |
9302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9305 | return NULL; |
9306 | } | |
9307 | } | |
9308 | { | |
9309 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9310 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
9311 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9312 | |
9313 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9314 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9315 | }{ |
eec92d76 | 9316 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 9317 | } |
cf694132 RD |
9318 | return _resultobj; |
9319 | } | |
9320 | ||
b1462dfa RD |
9321 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9322 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9323 | PyObject * _resultobj; |
cf694132 | 9324 | wxMenuItem * _arg0; |
b1462dfa | 9325 | bool _arg1; |
1d99702e | 9326 | PyObject * _argo0 = 0; |
b1462dfa RD |
9327 | int tempbool1; |
9328 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9329 | |
9330 | self = self; | |
b1462dfa | 9331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9332 | return NULL; |
1d99702e RD |
9333 | if (_argo0) { |
9334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9337 | return NULL; |
9338 | } | |
9339 | } | |
b1462dfa | 9340 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9341 | { |
9342 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9343 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 RD |
9344 | |
9345 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9346 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9347 | } Py_INCREF(Py_None); |
9348 | _resultobj = Py_None; | |
cf694132 RD |
9349 | return _resultobj; |
9350 | } | |
9351 | ||
b1462dfa RD |
9352 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9353 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9354 | PyObject * _resultobj; |
b1462dfa | 9355 | bool _result; |
cf694132 | 9356 | wxMenuItem * _arg0; |
1d99702e | 9357 | PyObject * _argo0 = 0; |
efc5f224 | 9358 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9359 | |
9360 | self = self; | |
b1462dfa | 9361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9362 | return NULL; |
1d99702e RD |
9363 | if (_argo0) { |
9364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9367 | return NULL; |
9368 | } | |
9369 | } | |
9370 | { | |
9371 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9372 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 RD |
9373 | |
9374 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9375 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9376 | } _resultobj = Py_BuildValue("i",_result); |
9377 | return _resultobj; | |
9378 | } | |
9379 | ||
b1462dfa RD |
9380 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9381 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9382 | PyObject * _resultobj; |
b1462dfa | 9383 | bool _result; |
cf694132 | 9384 | wxMenuItem * _arg0; |
1d99702e | 9385 | PyObject * _argo0 = 0; |
efc5f224 | 9386 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9387 | |
9388 | self = self; | |
b1462dfa | 9389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9390 | return NULL; |
1d99702e RD |
9391 | if (_argo0) { |
9392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9395 | return NULL; |
9396 | } | |
9397 | } | |
9398 | { | |
9399 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9400 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 RD |
9401 | |
9402 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9403 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9404 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9405 | return _resultobj; |
9406 | } | |
9407 | ||
b1462dfa RD |
9408 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9409 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9410 | PyObject * _resultobj; |
9411 | wxMenuItem * _arg0; | |
b1462dfa | 9412 | wxMenu * _arg1; |
1d99702e RD |
9413 | PyObject * _argo0 = 0; |
9414 | PyObject * _argo1 = 0; | |
b1462dfa | 9415 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9416 | |
9417 | self = self; | |
b1462dfa | 9418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9419 | return NULL; |
1d99702e RD |
9420 | if (_argo0) { |
9421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9424 | return NULL; |
9425 | } | |
9426 | } | |
1d99702e RD |
9427 | if (_argo1) { |
9428 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9429 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9431 | return NULL; |
9432 | } | |
9433 | } | |
9434 | { | |
9435 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9436 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 RD |
9437 | |
9438 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9439 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9440 | } Py_INCREF(Py_None); |
9441 | _resultobj = Py_None; | |
9442 | return _resultobj; | |
9443 | } | |
9444 | ||
b1462dfa RD |
9445 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9446 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9447 | PyObject * _resultobj; |
b1462dfa | 9448 | wxMenu * _result; |
cf694132 | 9449 | wxMenuItem * _arg0; |
1d99702e | 9450 | PyObject * _argo0 = 0; |
b1462dfa | 9451 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9452 | |
9453 | self = self; | |
b1462dfa | 9454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 9455 | return NULL; |
1d99702e RD |
9456 | if (_argo0) { |
9457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9460 | return NULL; |
9461 | } | |
9462 | } | |
b1462dfa RD |
9463 | { |
9464 | wxPy_BEGIN_ALLOW_THREADS; | |
9465 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
9466 | ||
9467 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9468 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9469 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
9470 | return _resultobj; |
9471 | } | |
9472 | ||
9473 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9474 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9475 | PyObject * _resultobj; | |
9476 | wxMenuItem * _arg0; | |
9477 | bool _arg1 = (bool ) TRUE; | |
9478 | PyObject * _argo0 = 0; | |
9479 | int tempbool1 = (int) TRUE; | |
9480 | char *_kwnames[] = { "self","enable", NULL }; | |
9481 | ||
9482 | self = self; | |
9483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9484 | return NULL; | |
9485 | if (_argo0) { | |
9486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
9489 | return NULL; |
9490 | } | |
9491 | } | |
b1462dfa | 9492 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9493 | { |
9494 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9495 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 RD |
9496 | |
9497 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9498 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9499 | } Py_INCREF(Py_None); |
9500 | _resultobj = Py_None; | |
9501 | return _resultobj; | |
9502 | } | |
9503 | ||
b1462dfa RD |
9504 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9505 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9506 | PyObject * _resultobj; |
b1462dfa | 9507 | bool _result; |
cf694132 | 9508 | wxMenuItem * _arg0; |
1d99702e | 9509 | PyObject * _argo0 = 0; |
b1462dfa | 9510 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9511 | |
9512 | self = self; | |
b1462dfa | 9513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9514 | return NULL; |
1d99702e RD |
9515 | if (_argo0) { |
9516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
9519 | return NULL; |
9520 | } | |
9521 | } | |
9522 | { | |
9523 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9524 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 RD |
9525 | |
9526 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9527 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9528 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9529 | return _resultobj; |
9530 | } | |
9531 | ||
b1462dfa RD |
9532 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
9533 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9534 | PyObject * _resultobj; |
9535 | wxMenuItem * _arg0; | |
b1462dfa | 9536 | bool _arg1 = (bool ) TRUE; |
1d99702e | 9537 | PyObject * _argo0 = 0; |
b1462dfa RD |
9538 | int tempbool1 = (int) TRUE; |
9539 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
9540 | |
9541 | self = self; | |
b1462dfa | 9542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9543 | return NULL; |
1d99702e RD |
9544 | if (_argo0) { |
9545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
9548 | return NULL; |
9549 | } | |
9550 | } | |
b1462dfa | 9551 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9552 | { |
9553 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9554 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 RD |
9555 | |
9556 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9557 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9558 | } Py_INCREF(Py_None); |
9559 | _resultobj = Py_None; | |
9560 | return _resultobj; | |
9561 | } | |
9562 | ||
b1462dfa RD |
9563 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
9564 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9565 | PyObject * _resultobj; |
b1462dfa | 9566 | bool _result; |
2abc0a0f | 9567 | wxMenuItem * _arg0; |
2abc0a0f | 9568 | PyObject * _argo0 = 0; |
b1462dfa | 9569 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
9570 | |
9571 | self = self; | |
b1462dfa | 9572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
9573 | return NULL; |
9574 | if (_argo0) { | |
9575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9578 | return NULL; |
9579 | } | |
9580 | } | |
2abc0a0f RD |
9581 | { |
9582 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9583 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f RD |
9584 | |
9585 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9586 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9587 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
9588 | return _resultobj; |
9589 | } | |
9590 | ||
b1462dfa RD |
9591 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
9592 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9593 | PyObject * _resultobj; |
2abc0a0f RD |
9594 | wxMenuItem * _arg0; |
9595 | PyObject * _argo0 = 0; | |
9596 | char *_kwnames[] = { "self", NULL }; | |
9597 | ||
9598 | self = self; | |
b1462dfa | 9599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
9600 | return NULL; |
9601 | if (_argo0) { | |
9602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9605 | return NULL; |
9606 | } | |
9607 | } | |
9608 | { | |
9609 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9610 | wxMenuItem_Toggle(_arg0); |
2abc0a0f RD |
9611 | |
9612 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9613 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9614 | } Py_INCREF(Py_None); |
9615 | _resultobj = Py_None; | |
2abc0a0f RD |
9616 | return _resultobj; |
9617 | } | |
9618 | ||
b1462dfa RD |
9619 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
9620 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9621 | PyObject * _resultobj; |
9622 | wxMenuItem * _arg0; | |
b1462dfa | 9623 | wxString * _arg1; |
1d99702e | 9624 | PyObject * _argo0 = 0; |
b1462dfa RD |
9625 | PyObject * _obj1 = 0; |
9626 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
9627 | |
9628 | self = self; | |
b1462dfa | 9629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 9630 | return NULL; |
1d99702e RD |
9631 | if (_argo0) { |
9632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
9635 | return NULL; |
9636 | } | |
9637 | } | |
b1462dfa | 9638 | { |
185d7c3e RD |
9639 | #if PYTHON_API_VERSION >= 1009 |
9640 | char* tmpPtr; int tmpSize; | |
9641 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9642 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9643 | return NULL; |
9644 | } | |
9645 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9646 | return NULL; | |
9647 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9648 | #else | |
b1462dfa RD |
9649 | if (!PyString_Check(_obj1)) { |
9650 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 9651 | return NULL; |
cf694132 | 9652 | } |
185d7c3e RD |
9653 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9654 | #endif | |
b1462dfa | 9655 | } |
cf694132 RD |
9656 | { |
9657 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9658 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 RD |
9659 | |
9660 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9661 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9662 | } Py_INCREF(Py_None); |
8ab979d7 | 9663 | _resultobj = Py_None; |
b1462dfa RD |
9664 | { |
9665 | if (_obj1) | |
9666 | delete _arg1; | |
9667 | } | |
8ab979d7 RD |
9668 | return _resultobj; |
9669 | } | |
9670 | ||
b1462dfa RD |
9671 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
9672 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 9673 | PyObject * _resultobj; |
b1462dfa | 9674 | wxString * _result; |
be4d9c1f | 9675 | wxMenuItem * _arg0; |
1d99702e | 9676 | PyObject * _argo0 = 0; |
efc5f224 | 9677 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
9678 | |
9679 | self = self; | |
b1462dfa | 9680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 9681 | return NULL; |
1d99702e RD |
9682 | if (_argo0) { |
9683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
9686 | return NULL; |
9687 | } | |
9688 | } | |
cf694132 RD |
9689 | { |
9690 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9691 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
9692 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9693 | |
9694 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9695 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9696 | }{ |
eec92d76 | 9697 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 9698 | } |
be4d9c1f RD |
9699 | return _resultobj; |
9700 | } | |
9701 | ||
b1462dfa RD |
9702 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
9703 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9704 | PyObject * _resultobj; |
b1462dfa | 9705 | wxAcceleratorEntry * _result; |
2abc0a0f | 9706 | wxMenuItem * _arg0; |
2abc0a0f | 9707 | PyObject * _argo0 = 0; |
b1462dfa RD |
9708 | char *_kwnames[] = { "self", NULL }; |
9709 | char _ptemp[128]; | |
2abc0a0f RD |
9710 | |
9711 | self = self; | |
b1462dfa | 9712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
9713 | return NULL; |
9714 | if (_argo0) { | |
9715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9718 | return NULL; |
9719 | } | |
9720 | } | |
2abc0a0f RD |
9721 | { |
9722 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9723 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f RD |
9724 | |
9725 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9726 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9727 | } if (_result) { |
9728 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9729 | _resultobj = Py_BuildValue("s",_ptemp); | |
9730 | } else { | |
9731 | Py_INCREF(Py_None); | |
9732 | _resultobj = Py_None; | |
9733 | } | |
2abc0a0f RD |
9734 | return _resultobj; |
9735 | } | |
9736 | ||
b1462dfa RD |
9737 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9738 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9739 | PyObject * _resultobj; |
9740 | wxMenuItem * _arg0; | |
b1462dfa | 9741 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9742 | PyObject * _argo0 = 0; |
9743 | PyObject * _argo1 = 0; | |
b1462dfa | 9744 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9745 | |
9746 | self = self; | |
b1462dfa | 9747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9748 | return NULL; |
9749 | if (_argo0) { | |
9750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9753 | return NULL; |
9754 | } | |
9755 | } | |
9756 | if (_argo1) { | |
9757 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9758 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
9759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
9760 | return NULL; |
9761 | } | |
9762 | } | |
9763 | { | |
9764 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9765 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f RD |
9766 | |
9767 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9768 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
9769 | } Py_INCREF(Py_None); |
9770 | _resultobj = Py_None; | |
9771 | return _resultobj; | |
9772 | } | |
9773 | ||
1b62f00d RD |
9774 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9775 | PyObject * _resultobj; | |
9776 | wxString * _result; | |
9777 | wxString * _arg0; | |
9778 | PyObject * _obj0 = 0; | |
9779 | char *_kwnames[] = { "text", NULL }; | |
9780 | ||
9781 | self = self; | |
9782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
9783 | return NULL; | |
9784 | { | |
9785 | #if PYTHON_API_VERSION >= 1009 | |
9786 | char* tmpPtr; int tmpSize; | |
9787 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 9788 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
9789 | return NULL; |
9790 | } | |
9791 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9792 | return NULL; | |
9793 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9794 | #else | |
9795 | if (!PyString_Check(_obj0)) { | |
9796 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9797 | return NULL; | |
9798 | } | |
9799 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9800 | #endif | |
9801 | } | |
9802 | { | |
9803 | wxPy_BEGIN_ALLOW_THREADS; | |
9804 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); | |
9805 | ||
9806 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9807 | if (PyErr_Occurred()) return NULL; |
1b62f00d RD |
9808 | }{ |
9809 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9810 | } | |
9811 | { | |
9812 | if (_obj0) | |
9813 | delete _arg0; | |
9814 | } | |
9815 | { | |
9816 | delete _result; | |
9817 | } | |
9818 | return _resultobj; | |
9819 | } | |
9820 | ||
f3d9dc1d RD |
9821 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
9822 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9823 | PyObject * _resultobj; | |
9824 | wxMenuItem * _arg0; | |
9825 | wxFont * _arg1; | |
9826 | PyObject * _argo0 = 0; | |
9827 | PyObject * _argo1 = 0; | |
9828 | char *_kwnames[] = { "self","font", NULL }; | |
9829 | ||
9830 | self = self; | |
9831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
9832 | return NULL; | |
9833 | if (_argo0) { | |
9834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p."); | |
9837 | return NULL; | |
9838 | } | |
9839 | } | |
9840 | if (_argo1) { | |
9841 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9842 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
9843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); | |
9844 | return NULL; | |
9845 | } | |
9846 | } | |
9847 | { | |
9848 | wxPy_BEGIN_ALLOW_THREADS; | |
9849 | wxMenuItem_SetFont(_arg0,*_arg1); | |
9850 | ||
9851 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9852 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
9853 | } Py_INCREF(Py_None); |
9854 | _resultobj = Py_None; | |
9855 | return _resultobj; | |
9856 | } | |
9857 | ||
9858 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
9859 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9860 | PyObject * _resultobj; | |
9861 | wxFont * _result; | |
9862 | wxMenuItem * _arg0; | |
9863 | PyObject * _argo0 = 0; | |
9864 | char *_kwnames[] = { "self", NULL }; | |
9865 | char _ptemp[128]; | |
9866 | ||
9867 | self = self; | |
9868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0)) | |
9869 | return NULL; | |
9870 | if (_argo0) { | |
9871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p."); | |
9874 | return NULL; | |
9875 | } | |
9876 | } | |
9877 | { | |
9878 | wxPy_BEGIN_ALLOW_THREADS; | |
9879 | wxFont & _result_ref = wxMenuItem_GetFont(_arg0); | |
9880 | _result = (wxFont *) &_result_ref; | |
9881 | ||
9882 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9883 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
9884 | } if (_result) { |
9885 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
9886 | _resultobj = Py_BuildValue("s",_ptemp); | |
9887 | } else { | |
9888 | Py_INCREF(Py_None); | |
9889 | _resultobj = Py_None; | |
9890 | } | |
9891 | return _resultobj; | |
9892 | } | |
9893 | ||
9894 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
9895 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9896 | PyObject * _resultobj; | |
9897 | wxMenuItem * _arg0; | |
9898 | wxColour * _arg1; | |
9899 | PyObject * _argo0 = 0; | |
9900 | wxColour temp; | |
9901 | PyObject * _obj1 = 0; | |
9902 | char *_kwnames[] = { "self","colText", NULL }; | |
9903 | ||
9904 | self = self; | |
9905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
9906 | return NULL; | |
9907 | if (_argo0) { | |
9908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
9911 | return NULL; | |
9912 | } | |
9913 | } | |
9914 | { | |
9915 | _arg1 = &temp; | |
9916 | if (! wxColour_helper(_obj1, &_arg1)) | |
9917 | return NULL; | |
9918 | } | |
9919 | { | |
9920 | wxPy_BEGIN_ALLOW_THREADS; | |
9921 | wxMenuItem_SetTextColour(_arg0,*_arg1); | |
9922 | ||
9923 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9924 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
9925 | } Py_INCREF(Py_None); |
9926 | _resultobj = Py_None; | |
9927 | return _resultobj; | |
9928 | } | |
9929 | ||
9930 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
9931 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9932 | PyObject * _resultobj; | |
9933 | wxColour * _result; | |
9934 | wxMenuItem * _arg0; | |
9935 | PyObject * _argo0 = 0; | |
9936 | char *_kwnames[] = { "self", NULL }; | |
9937 | char _ptemp[128]; | |
9938 | ||
9939 | self = self; | |
9940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
9941 | return NULL; | |
9942 | if (_argo0) { | |
9943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p."); | |
9946 | return NULL; | |
9947 | } | |
9948 | } | |
9949 | { | |
9950 | wxPy_BEGIN_ALLOW_THREADS; | |
9951 | wxColour & _result_ref = wxMenuItem_GetTextColour(_arg0); | |
9952 | _result = (wxColour *) &_result_ref; | |
9953 | ||
9954 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9955 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
9956 | } if (_result) { |
9957 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
9958 | _resultobj = Py_BuildValue("s",_ptemp); | |
9959 | } else { | |
9960 | Py_INCREF(Py_None); | |
9961 | _resultobj = Py_None; | |
9962 | } | |
9963 | return _resultobj; | |
9964 | } | |
9965 | ||
9966 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
9967 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9968 | PyObject * _resultobj; | |
9969 | wxMenuItem * _arg0; | |
9970 | wxColour * _arg1; | |
9971 | PyObject * _argo0 = 0; | |
9972 | wxColour temp; | |
9973 | PyObject * _obj1 = 0; | |
9974 | char *_kwnames[] = { "self","colBack", NULL }; | |
9975 | ||
9976 | self = self; | |
9977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
9978 | return NULL; | |
9979 | if (_argo0) { | |
9980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
9983 | return NULL; | |
9984 | } | |
9985 | } | |
9986 | { | |
9987 | _arg1 = &temp; | |
9988 | if (! wxColour_helper(_obj1, &_arg1)) | |
9989 | return NULL; | |
9990 | } | |
9991 | { | |
9992 | wxPy_BEGIN_ALLOW_THREADS; | |
9993 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); | |
9994 | ||
9995 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9996 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
9997 | } Py_INCREF(Py_None); |
9998 | _resultobj = Py_None; | |
9999 | return _resultobj; | |
10000 | } | |
10001 | ||
10002 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
10003 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10004 | PyObject * _resultobj; | |
10005 | wxColour * _result; | |
10006 | wxMenuItem * _arg0; | |
10007 | PyObject * _argo0 = 0; | |
10008 | char *_kwnames[] = { "self", NULL }; | |
10009 | char _ptemp[128]; | |
10010 | ||
10011 | self = self; | |
10012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
10013 | return NULL; | |
10014 | if (_argo0) { | |
10015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
10018 | return NULL; | |
10019 | } | |
10020 | } | |
10021 | { | |
10022 | wxPy_BEGIN_ALLOW_THREADS; | |
10023 | wxColour & _result_ref = wxMenuItem_GetBackgroundColour(_arg0); | |
10024 | _result = (wxColour *) &_result_ref; | |
10025 | ||
10026 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10027 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10028 | } if (_result) { |
10029 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
10030 | _resultobj = Py_BuildValue("s",_ptemp); | |
10031 | } else { | |
10032 | Py_INCREF(Py_None); | |
10033 | _resultobj = Py_None; | |
10034 | } | |
10035 | return _resultobj; | |
10036 | } | |
10037 | ||
10038 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
10039 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10040 | PyObject * _resultobj; | |
10041 | wxMenuItem * _arg0; | |
10042 | wxBitmap * _arg1; | |
10043 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
10044 | PyObject * _argo0 = 0; | |
10045 | PyObject * _argo1 = 0; | |
10046 | PyObject * _argo2 = 0; | |
10047 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
10048 | ||
10049 | self = self; | |
10050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
10051 | return NULL; | |
10052 | if (_argo0) { | |
10053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
10056 | return NULL; | |
10057 | } | |
10058 | } | |
10059 | if (_argo1) { | |
10060 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10061 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10063 | return NULL; | |
10064 | } | |
10065 | } | |
10066 | if (_argo2) { | |
10067 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10068 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10070 | return NULL; | |
10071 | } | |
10072 | } | |
10073 | { | |
10074 | wxPy_BEGIN_ALLOW_THREADS; | |
10075 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); | |
10076 | ||
10077 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10078 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10079 | } Py_INCREF(Py_None); |
10080 | _resultobj = Py_None; | |
10081 | return _resultobj; | |
10082 | } | |
10083 | ||
10084 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
10085 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10086 | PyObject * _resultobj; | |
10087 | wxMenuItem * _arg0; | |
10088 | wxBitmap * _arg1; | |
10089 | PyObject * _argo0 = 0; | |
10090 | PyObject * _argo1 = 0; | |
10091 | char *_kwnames[] = { "self","bmpChecked", NULL }; | |
10092 | ||
10093 | self = self; | |
10094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
10095 | return NULL; | |
10096 | if (_argo0) { | |
10097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
10100 | return NULL; | |
10101 | } | |
10102 | } | |
10103 | if (_argo1) { | |
10104 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10105 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); | |
10107 | return NULL; | |
10108 | } | |
10109 | } | |
10110 | { | |
10111 | wxPy_BEGIN_ALLOW_THREADS; | |
10112 | wxMenuItem_SetBitmap(_arg0,*_arg1); | |
10113 | ||
10114 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10115 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10116 | } Py_INCREF(Py_None); |
10117 | _resultobj = Py_None; | |
10118 | return _resultobj; | |
10119 | } | |
10120 | ||
10121 | #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0)) | |
10122 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10123 | PyObject * _resultobj; | |
10124 | wxBitmap * _result; | |
10125 | wxMenuItem * _arg0; | |
10126 | bool _arg1 = (bool ) TRUE; | |
10127 | PyObject * _argo0 = 0; | |
10128 | int tempbool1 = (int) TRUE; | |
10129 | char *_kwnames[] = { "self","bChecked", NULL }; | |
10130 | char _ptemp[128]; | |
10131 | ||
10132 | self = self; | |
10133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1)) | |
10134 | return NULL; | |
10135 | if (_argo0) { | |
10136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
10139 | return NULL; | |
10140 | } | |
10141 | } | |
10142 | _arg1 = (bool ) tempbool1; | |
10143 | { | |
10144 | wxPy_BEGIN_ALLOW_THREADS; | |
10145 | const wxBitmap & _result_ref = wxMenuItem_GetBitmap(_arg0,_arg1); | |
10146 | _result = (wxBitmap *) &_result_ref; | |
10147 | ||
10148 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10149 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10150 | } if (_result) { |
10151 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
10152 | _resultobj = Py_BuildValue("s",_ptemp); | |
10153 | } else { | |
10154 | Py_INCREF(Py_None); | |
10155 | _resultobj = Py_None; | |
10156 | } | |
10157 | return _resultobj; | |
10158 | } | |
10159 | ||
10160 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) | |
10161 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10162 | PyObject * _resultobj; | |
10163 | wxMenuItem * _arg0; | |
10164 | int _arg1; | |
10165 | PyObject * _argo0 = 0; | |
10166 | char *_kwnames[] = { "self","nWidth", NULL }; | |
10167 | ||
10168 | self = self; | |
10169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
10170 | return NULL; | |
10171 | if (_argo0) { | |
10172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
10175 | return NULL; | |
10176 | } | |
10177 | } | |
10178 | { | |
10179 | wxPy_BEGIN_ALLOW_THREADS; | |
10180 | wxMenuItem_SetMarginWidth(_arg0,_arg1); | |
10181 | ||
10182 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10183 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10184 | } Py_INCREF(Py_None); |
10185 | _resultobj = Py_None; | |
10186 | return _resultobj; | |
10187 | } | |
10188 | ||
10189 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
10190 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10191 | PyObject * _resultobj; | |
10192 | int _result; | |
10193 | wxMenuItem * _arg0; | |
10194 | PyObject * _argo0 = 0; | |
10195 | char *_kwnames[] = { "self", NULL }; | |
10196 | ||
10197 | self = self; | |
10198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
10199 | return NULL; | |
10200 | if (_argo0) { | |
10201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
10204 | return NULL; | |
10205 | } | |
10206 | } | |
10207 | { | |
10208 | wxPy_BEGIN_ALLOW_THREADS; | |
10209 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); | |
10210 | ||
10211 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10212 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10213 | } _resultobj = Py_BuildValue("i",_result); |
10214 | return _resultobj; | |
10215 | } | |
10216 | ||
10217 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10218 | PyObject * _resultobj; | |
10219 | int _result; | |
10220 | char *_kwnames[] = { NULL }; | |
10221 | ||
10222 | self = self; | |
10223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
10224 | return NULL; | |
10225 | { | |
10226 | wxPy_BEGIN_ALLOW_THREADS; | |
10227 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); | |
10228 | ||
10229 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10230 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10231 | } _resultobj = Py_BuildValue("i",_result); |
10232 | return _resultobj; | |
10233 | } | |
10234 | ||
10235 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
10236 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10237 | PyObject * _resultobj; | |
10238 | bool _result; | |
10239 | wxMenuItem * _arg0; | |
10240 | PyObject * _argo0 = 0; | |
10241 | char *_kwnames[] = { "self", NULL }; | |
10242 | ||
10243 | self = self; | |
10244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
10245 | return NULL; | |
10246 | if (_argo0) { | |
10247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
10250 | return NULL; | |
10251 | } | |
10252 | } | |
10253 | { | |
10254 | wxPy_BEGIN_ALLOW_THREADS; | |
10255 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); | |
10256 | ||
10257 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10258 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10259 | } _resultobj = Py_BuildValue("i",_result); |
10260 | return _resultobj; | |
10261 | } | |
10262 | ||
10263 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
10264 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10265 | PyObject * _resultobj; | |
10266 | wxMenuItem * _arg0; | |
10267 | PyObject * _argo0 = 0; | |
10268 | char *_kwnames[] = { "self", NULL }; | |
10269 | ||
10270 | self = self; | |
10271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
10272 | return NULL; | |
10273 | if (_argo0) { | |
10274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
10277 | return NULL; | |
10278 | } | |
10279 | } | |
10280 | { | |
10281 | wxPy_BEGIN_ALLOW_THREADS; | |
10282 | wxMenuItem_ResetOwnerDrawn(_arg0); | |
10283 | ||
10284 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10285 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10286 | } Py_INCREF(Py_None); |
10287 | _resultobj = Py_None; | |
10288 | return _resultobj; | |
10289 | } | |
10290 | ||
8ab979d7 | 10291 | static PyMethodDef windowscMethods[] = { |
f3d9dc1d RD |
10292 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, |
10293 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
10294 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10295 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10296 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10297 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10298 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10299 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
10300 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10301 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10302 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10303 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10304 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10305 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10306 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10307 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
10308 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10309 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10310 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10311 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10312 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10313 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10314 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10315 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10316 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10317 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 10318 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10319 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10320 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
10321 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10322 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10323 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10324 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10325 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
10326 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10327 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10328 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10329 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10330 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
10331 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10332 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
10333 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10334 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10335 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10336 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
10337 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10338 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10339 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10340 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10341 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
10342 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10343 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10344 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10345 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
10346 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10347 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
10348 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10349 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
10350 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
10351 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
10352 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10353 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10354 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10355 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10356 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10357 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
10358 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10359 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
10360 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10361 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10362 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
10363 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10364 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
10365 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10366 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10367 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10368 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10369 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10370 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
10371 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10372 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
10373 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 10374 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10375 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10376 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10377 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10378 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10379 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
10380 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
10381 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10382 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
10383 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
10384 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
10385 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
d1679124 RD |
10386 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10387 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
10388 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
10389 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
10390 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
10391 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10392 | { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS }, |
4c9993c3 | 10393 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10394 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10395 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10396 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10397 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
10398 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
10399 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10400 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10401 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10402 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10403 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10404 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
10405 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
f3d9dc1d RD |
10406 | { "wxDialog_CreateButtonSizer", (PyCFunction) _wrap_wxDialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, |
10407 | { "wxDialog_CreateTextSizer", (PyCFunction) _wrap_wxDialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10408 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, |
10409 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
10410 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
10411 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
10412 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10413 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
10414 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
10415 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
10416 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
10417 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10418 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
10419 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10420 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
10421 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10422 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10423 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10424 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10425 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
10426 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10427 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10428 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
10429 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10430 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
10431 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10432 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10433 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10434 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
10435 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10436 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10437 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10438 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10439 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10440 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10441 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10442 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10443 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10444 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
10445 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
10446 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10447 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10448 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
83b18bab | 10449 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10450 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10451 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
10452 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10453 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10454 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
dbbb98cd | 10455 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10456 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
10457 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10458 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10459 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10460 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10461 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10462 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10463 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10464 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10465 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10466 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10467 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10468 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10469 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 10470 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10471 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
10472 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
10473 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
10474 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10475 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10476 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10477 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10478 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
10479 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
10480 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10481 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10482 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10483 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10484 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10485 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
10486 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10487 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10488 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10489 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10490 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10491 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10492 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10493 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
10494 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
10495 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10496 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10497 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10498 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10499 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10500 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10501 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10502 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
10503 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10504 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10505 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10506 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10507 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10508 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10509 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10510 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10511 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10512 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10513 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10514 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10515 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10516 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10517 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10518 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10519 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 10520 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10521 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
10522 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10523 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10524 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10525 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10526 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10527 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10528 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10529 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10530 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10531 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10532 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
10533 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10534 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
10535 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10536 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
10537 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
10538 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10539 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
10540 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
10541 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
3ca6a5f0 BP |
10542 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
10543 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10544 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
10545 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
10546 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10547 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
10548 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
10549 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10550 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10551 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
10552 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
10553 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10554 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
10555 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10556 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
10557 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 10558 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10559 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
10560 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
10561 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10562 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
10563 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10564 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10565 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10566 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10567 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10568 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
a1df7a95 RD |
10569 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
10570 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10571 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10572 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
10573 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
10574 | { NULL, NULL } |
10575 | }; | |
1d99702e RD |
10576 | #ifdef __cplusplus |
10577 | } | |
10578 | #endif | |
10579 | /* | |
10580 | * This table is used by the pointer type-checker | |
10581 | */ | |
10582 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 10583 | { "_signed_long","_long",0}, |
b1462dfa | 10584 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10585 | { "_wxPrintQuality","_int",0}, |
10586 | { "_wxPrintQuality","_signed_int",0}, | |
10587 | { "_wxPrintQuality","_unsigned_int",0}, | |
10588 | { "_wxPrintQuality","_wxWindowID",0}, | |
10589 | { "_wxPrintQuality","_uint",0}, | |
10590 | { "_wxPrintQuality","_EBool",0}, | |
10591 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10592 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 10593 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10594 | { "_long","_unsigned_long",0}, |
10595 | { "_long","_signed_long",0}, | |
b1462dfa | 10596 | { "_size_t","_wxCoord",0}, |
1d99702e | 10597 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10598 | { "_size_t","_time_t",0}, |
1d99702e RD |
10599 | { "_size_t","_unsigned_int",0}, |
10600 | { "_size_t","_int",0}, | |
10601 | { "_size_t","_wxWindowID",0}, | |
10602 | { "_size_t","_uint",0}, | |
1d99702e | 10603 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
1d99702e | 10604 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, |
b1462dfa | 10605 | { "_uint","_wxCoord",0}, |
1d99702e | 10606 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10607 | { "_uint","_time_t",0}, |
1d99702e RD |
10608 | { "_uint","_size_t",0}, |
10609 | { "_uint","_unsigned_int",0}, | |
10610 | { "_uint","_int",0}, | |
10611 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10612 | { "_wxChar","_char",0}, |
f6bcfd97 | 10613 | { "_char","_wxChar",0}, |
b1462dfa | 10614 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10615 | { "_EBool","_wxPrintQuality",0}, |
10616 | { "_EBool","_signed_int",0}, | |
10617 | { "_EBool","_int",0}, | |
10618 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10619 | { "_unsigned_long","_long",0}, |
b1462dfa | 10620 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10621 | { "_signed_int","_wxPrintQuality",0}, |
10622 | { "_signed_int","_EBool",0}, | |
10623 | { "_signed_int","_wxWindowID",0}, | |
10624 | { "_signed_int","_int",0}, | |
1d99702e RD |
10625 | { "_WXTYPE","_short",0}, |
10626 | { "_WXTYPE","_signed_short",0}, | |
10627 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
10628 | { "_unsigned_short","_WXTYPE",0}, |
10629 | { "_unsigned_short","_short",0}, | |
9416aa89 | 10630 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9416aa89 | 10631 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9416aa89 | 10632 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9416aa89 | 10633 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9416aa89 | 10634 | { "_wxObject","_wxDialog",SwigwxDialogTowxObject}, |
9416aa89 | 10635 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9416aa89 | 10636 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9416aa89 | 10637 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9416aa89 | 10638 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9416aa89 | 10639 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
10640 | { "_signed_short","_WXTYPE",0}, |
10641 | { "_signed_short","_short",0}, | |
1d99702e | 10642 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10643 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10644 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10645 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10646 | { "_unsigned_int","_size_t",0}, |
10647 | { "_unsigned_int","_uint",0}, | |
10648 | { "_unsigned_int","_wxWindowID",0}, | |
10649 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
10650 | { "_short","_WXTYPE",0}, |
10651 | { "_short","_unsigned_short",0}, | |
10652 | { "_short","_signed_short",0}, | |
b1462dfa | 10653 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10654 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10655 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10656 | { "_wxWindowID","_size_t",0}, |
10657 | { "_wxWindowID","_EBool",0}, | |
10658 | { "_wxWindowID","_uint",0}, | |
10659 | { "_wxWindowID","_int",0}, | |
10660 | { "_wxWindowID","_signed_int",0}, | |
10661 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10662 | { "_int","_wxCoord",0}, |
1d99702e | 10663 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10664 | { "_int","_time_t",0}, |
1d99702e RD |
10665 | { "_int","_size_t",0}, |
10666 | { "_int","_EBool",0}, | |
10667 | { "_int","_uint",0}, | |
10668 | { "_int","_wxWindowID",0}, | |
10669 | { "_int","_unsigned_int",0}, | |
10670 | { "_int","_signed_int",0}, | |
c368d904 RD |
10671 | { "_time_t","_wxCoord",0}, |
10672 | { "_time_t","_wxPrintQuality",0}, | |
10673 | { "_time_t","_unsigned_int",0}, | |
10674 | { "_time_t","_int",0}, | |
10675 | { "_time_t","_wxWindowID",0}, | |
10676 | { "_time_t","_uint",0}, | |
10677 | { "_time_t","_size_t",0}, | |
2f90df85 | 10678 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
10679 | { "_wxCoord","_int",0}, |
10680 | { "_wxCoord","_signed_int",0}, | |
10681 | { "_wxCoord","_unsigned_int",0}, | |
10682 | { "_wxCoord","_wxWindowID",0}, | |
10683 | { "_wxCoord","_uint",0}, | |
10684 | { "_wxCoord","_EBool",0}, | |
10685 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10686 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10687 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 10688 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 10689 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 10690 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 10691 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, |
1d99702e | 10692 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 10693 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 10694 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 10695 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 10696 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 10697 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 10698 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, |
1d99702e | 10699 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
10700 | {0,0,0}}; |
10701 | ||
8ab979d7 RD |
10702 | static PyObject *SWIG_globals; |
10703 | #ifdef __cplusplus | |
10704 | extern "C" | |
10705 | #endif | |
1d99702e | 10706 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
10707 | PyObject *m, *d; |
10708 | SWIG_globals = SWIG_newvarlink(); | |
10709 | m = Py_InitModule("windowsc", windowscMethods); | |
10710 | d = PyModule_GetDict(m); | |
1d99702e RD |
10711 | { |
10712 | int i; | |
10713 | for (i = 0; _swig_mapping[i].n1; i++) | |
10714 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10715 | } | |
8ab979d7 | 10716 | } |