]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/windows.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 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__) | |
5e40f9dd | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
5e40f9dd | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
5e40f9dd | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
5e40f9dd RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
5e40f9dd | 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> |
9df61a29 | 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 | ||
5e40f9dd | 67 | if (!target) { |
8ab979d7 | 68 | target = o; |
5e40f9dd | 69 | } else if (target == Py_None) { |
8ab979d7 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
5e40f9dd | 72 | } else { |
8ab979d7 RD |
73 | if (!PyTuple_Check(target)) { |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
5e40f9dd RD |
78 | o3 = PyTuple_New(1); |
79 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
80 | |
81 | o2 = target; | |
5e40f9dd RD |
82 | target = PySequence_Concat(o2, o3); |
83 | Py_DECREF(o2); | |
8ab979d7 RD |
84 | Py_DECREF(o3); |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
7a446686 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 | |
b68dc582 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 | |
9df61a29 | 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 | 143 | |
c368d904 RD |
144 | wxWindow* wxWindow_FindFocus() { |
145 | return wxWindow::FindFocus(); | |
146 | } | |
147 | ||
a1df7a95 RD |
148 | int wxWindow_NewControlId() { |
149 | return wxWindow::NewControlId(); | |
150 | } | |
151 | int wxWindow_NextControlId(int id) { | |
152 | return wxWindow::NextControlId(id); | |
153 | } | |
154 | int wxWindow_PrevControlId(int id) { | |
155 | return wxWindow::PrevControlId(id); | |
156 | } | |
2f90df85 RD |
157 | #ifdef __cplusplus |
158 | extern "C" { | |
159 | #endif | |
c368d904 RD |
160 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
161 | PyObject * _resultobj; | |
162 | wxWindow * _result; | |
163 | char *_kwnames[] = { NULL }; | |
c368d904 RD |
164 | |
165 | self = self; | |
166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
167 | return NULL; | |
168 | { | |
169 | wxPy_BEGIN_ALLOW_THREADS; | |
170 | _result = (wxWindow *)wxWindow_FindFocus(); | |
171 | ||
172 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 173 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 174 | }{ _resultobj = wxPyMake_wxObject(_result); } |
c368d904 RD |
175 | return _resultobj; |
176 | } | |
177 | ||
a1df7a95 RD |
178 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { |
179 | PyObject * _resultobj; | |
180 | int _result; | |
181 | char *_kwnames[] = { NULL }; | |
182 | ||
183 | self = self; | |
184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
185 | return NULL; | |
186 | { | |
187 | wxPy_BEGIN_ALLOW_THREADS; | |
188 | _result = (int )wxWindow_NewControlId(); | |
189 | ||
190 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 191 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
192 | } _resultobj = Py_BuildValue("i",_result); |
193 | return _resultobj; | |
194 | } | |
195 | ||
196 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
197 | PyObject * _resultobj; | |
198 | int _result; | |
199 | int _arg0; | |
200 | char *_kwnames[] = { "id", NULL }; | |
201 | ||
202 | self = self; | |
203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
204 | return NULL; | |
205 | { | |
206 | wxPy_BEGIN_ALLOW_THREADS; | |
207 | _result = (int )wxWindow_NextControlId(_arg0); | |
208 | ||
209 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 210 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
211 | } _resultobj = Py_BuildValue("i",_result); |
212 | return _resultobj; | |
213 | } | |
214 | ||
215 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
216 | PyObject * _resultobj; | |
217 | int _result; | |
218 | int _arg0; | |
219 | char *_kwnames[] = { "id", NULL }; | |
220 | ||
221 | self = self; | |
222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
223 | return NULL; | |
224 | { | |
225 | wxPy_BEGIN_ALLOW_THREADS; | |
226 | _result = (int )wxWindow_PrevControlId(_arg0); | |
227 | ||
228 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 229 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
230 | } _resultobj = Py_BuildValue("i",_result); |
231 | return _resultobj; | |
232 | } | |
233 | ||
9df61a29 RD |
234 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
235 | wxEvtHandler *src; | |
236 | wxObject *dest; | |
237 | src = (wxEvtHandler *) ptr; | |
238 | dest = (wxObject *) src; | |
239 | return (void *) dest; | |
240 | } | |
241 | ||
c368d904 RD |
242 | #define new_wxEvtHandler() (new wxEvtHandler()) |
243 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
244 | PyObject * _resultobj; | |
245 | wxEvtHandler * _result; | |
246 | char *_kwnames[] = { NULL }; | |
247 | char _ptemp[128]; | |
248 | ||
249 | self = self; | |
250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
251 | return NULL; | |
252 | { | |
253 | wxPy_BEGIN_ALLOW_THREADS; | |
254 | _result = (wxEvtHandler *)new_wxEvtHandler(); | |
255 | ||
256 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 257 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
258 | } if (_result) { |
259 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
260 | _resultobj = Py_BuildValue("s",_ptemp); | |
261 | } else { | |
262 | Py_INCREF(Py_None); | |
263 | _resultobj = Py_None; | |
264 | } | |
265 | return _resultobj; | |
266 | } | |
267 | ||
2f90df85 RD |
268 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
269 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
270 | PyObject * _resultobj; | |
271 | bool _result; | |
272 | wxEvtHandler * _arg0; | |
273 | wxEvent * _arg1; | |
274 | PyObject * _argo0 = 0; | |
275 | PyObject * _argo1 = 0; | |
276 | char *_kwnames[] = { "self","event", NULL }; | |
277 | ||
278 | self = self; | |
279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
280 | return NULL; | |
281 | if (_argo0) { | |
282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
285 | return NULL; | |
286 | } | |
287 | } | |
288 | if (_argo1) { | |
289 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
290 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
292 | return NULL; | |
293 | } | |
294 | } | |
295 | { | |
296 | wxPy_BEGIN_ALLOW_THREADS; | |
297 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
298 | ||
299 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 300 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
301 | } _resultobj = Py_BuildValue("i",_result); |
302 | return _resultobj; | |
303 | } | |
304 | ||
f6bcfd97 BP |
305 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
306 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
307 | PyObject * _resultobj; | |
308 | wxEvtHandler * _arg0; | |
309 | wxEvent * _arg1; | |
310 | PyObject * _argo0 = 0; | |
311 | PyObject * _argo1 = 0; | |
312 | char *_kwnames[] = { "self","event", NULL }; | |
313 | ||
314 | self = self; | |
315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
316 | return NULL; | |
317 | if (_argo0) { | |
318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
321 | return NULL; | |
322 | } | |
323 | } | |
324 | if (_argo1) { | |
325 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
326 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
328 | return NULL; | |
329 | } | |
330 | } | |
331 | { | |
332 | wxPy_BEGIN_ALLOW_THREADS; | |
333 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); | |
334 | ||
335 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 336 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
337 | } Py_INCREF(Py_None); |
338 | _resultobj = Py_None; | |
339 | return _resultobj; | |
340 | } | |
341 | ||
2f90df85 RD |
342 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
343 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
344 | PyObject * _resultobj; | |
345 | bool _result; | |
346 | wxEvtHandler * _arg0; | |
347 | PyObject * _argo0 = 0; | |
348 | char *_kwnames[] = { "self", NULL }; | |
349 | ||
350 | self = self; | |
351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
352 | return NULL; | |
353 | if (_argo0) { | |
354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
357 | return NULL; | |
358 | } | |
359 | } | |
360 | { | |
361 | wxPy_BEGIN_ALLOW_THREADS; | |
362 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
363 | ||
364 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 365 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
366 | } _resultobj = Py_BuildValue("i",_result); |
367 | return _resultobj; | |
368 | } | |
369 | ||
370 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
371 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
372 | PyObject * _resultobj; | |
373 | wxEvtHandler * _arg0; | |
374 | bool _arg1; | |
375 | PyObject * _argo0 = 0; | |
376 | int tempbool1; | |
377 | char *_kwnames[] = { "self","enabled", NULL }; | |
378 | ||
379 | self = self; | |
380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
381 | return NULL; | |
382 | if (_argo0) { | |
383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
386 | return NULL; | |
387 | } | |
388 | } | |
389 | _arg1 = (bool ) tempbool1; | |
390 | { | |
391 | wxPy_BEGIN_ALLOW_THREADS; | |
392 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
393 | ||
394 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 395 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
396 | } Py_INCREF(Py_None); |
397 | _resultobj = Py_None; | |
398 | return _resultobj; | |
399 | } | |
400 | ||
401 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
402 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
403 | PyObject * _resultobj; | |
404 | wxEvtHandler * _result; | |
405 | wxEvtHandler * _arg0; | |
406 | PyObject * _argo0 = 0; | |
407 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
408 | |
409 | self = self; | |
410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
411 | return NULL; | |
412 | if (_argo0) { | |
413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
416 | return NULL; | |
417 | } | |
418 | } | |
419 | { | |
420 | wxPy_BEGIN_ALLOW_THREADS; | |
421 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
422 | ||
423 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 424 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 425 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
426 | return _resultobj; |
427 | } | |
428 | ||
429 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
430 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
431 | PyObject * _resultobj; | |
432 | wxEvtHandler * _result; | |
433 | wxEvtHandler * _arg0; | |
434 | PyObject * _argo0 = 0; | |
435 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
436 | |
437 | self = self; | |
438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
439 | return NULL; | |
440 | if (_argo0) { | |
441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
444 | return NULL; | |
445 | } | |
446 | } | |
447 | { | |
448 | wxPy_BEGIN_ALLOW_THREADS; | |
449 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
450 | ||
451 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 452 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 453 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
454 | return _resultobj; |
455 | } | |
456 | ||
457 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
458 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
459 | PyObject * _resultobj; | |
460 | wxEvtHandler * _arg0; | |
461 | wxEvtHandler * _arg1; | |
462 | PyObject * _argo0 = 0; | |
463 | PyObject * _argo1 = 0; | |
464 | char *_kwnames[] = { "self","handler", NULL }; | |
465 | ||
466 | self = self; | |
467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
468 | return NULL; | |
469 | if (_argo0) { | |
470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
473 | return NULL; | |
474 | } | |
475 | } | |
476 | if (_argo1) { | |
477 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
478 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
480 | return NULL; | |
481 | } | |
482 | } | |
483 | { | |
484 | wxPy_BEGIN_ALLOW_THREADS; | |
485 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
486 | ||
487 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 488 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
489 | } Py_INCREF(Py_None); |
490 | _resultobj = Py_None; | |
491 | return _resultobj; | |
492 | } | |
493 | ||
494 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
495 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
496 | PyObject * _resultobj; | |
497 | wxEvtHandler * _arg0; | |
498 | wxEvtHandler * _arg1; | |
499 | PyObject * _argo0 = 0; | |
500 | PyObject * _argo1 = 0; | |
501 | char *_kwnames[] = { "self","handler", NULL }; | |
502 | ||
503 | self = self; | |
504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
505 | return NULL; | |
506 | if (_argo0) { | |
507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
510 | return NULL; | |
511 | } | |
512 | } | |
513 | if (_argo1) { | |
514 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
515 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
517 | return NULL; | |
518 | } | |
519 | } | |
520 | { | |
521 | wxPy_BEGIN_ALLOW_THREADS; | |
522 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
523 | ||
524 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 525 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
526 | } Py_INCREF(Py_None); |
527 | _resultobj = Py_None; | |
528 | return _resultobj; | |
529 | } | |
530 | ||
531 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
532 | if (PyCallable_Check(func)) { | |
533 | self->Connect(id, lastId, eventType, | |
534 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
535 | new wxPyCallback(func)); | |
536 | } | |
537 | } | |
538 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
539 | PyObject * _resultobj; | |
540 | wxEvtHandler * _arg0; | |
541 | int _arg1; | |
542 | int _arg2; | |
543 | int _arg3; | |
544 | PyObject * _arg4; | |
545 | PyObject * _argo0 = 0; | |
546 | PyObject * _obj4 = 0; | |
547 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
548 | ||
549 | self = self; | |
550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
551 | return NULL; | |
552 | if (_argo0) { | |
553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
556 | return NULL; | |
557 | } | |
558 | } | |
559 | { | |
560 | _arg4 = _obj4; | |
561 | } | |
562 | { | |
563 | wxPy_BEGIN_ALLOW_THREADS; | |
564 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
565 | ||
566 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 567 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
568 | } Py_INCREF(Py_None); |
569 | _resultobj = Py_None; | |
570 | return _resultobj; | |
571 | } | |
572 | ||
6999b0d8 RD |
573 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
574 | return self->Disconnect(id, lastId, eventType, | |
575 | (wxObjectEventFunction) | |
576 | &wxPyCallback::EventThunker); | |
577 | } | |
578 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
579 | PyObject * _resultobj; | |
580 | bool _result; | |
581 | wxEvtHandler * _arg0; | |
582 | int _arg1; | |
583 | int _arg2 = (int ) -1; | |
584 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
585 | PyObject * _argo0 = 0; | |
586 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
587 | ||
588 | self = self; | |
589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
590 | return NULL; | |
591 | if (_argo0) { | |
592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
595 | return NULL; | |
596 | } | |
597 | } | |
598 | { | |
599 | wxPy_BEGIN_ALLOW_THREADS; | |
600 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
601 | ||
602 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 603 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
604 | } _resultobj = Py_BuildValue("i",_result); |
605 | return _resultobj; | |
606 | } | |
607 | ||
2f90df85 RD |
608 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
609 | wxValidator *src; | |
610 | wxEvtHandler *dest; | |
611 | src = (wxValidator *) ptr; | |
612 | dest = (wxEvtHandler *) src; | |
613 | return (void *) dest; | |
614 | } | |
615 | ||
9df61a29 RD |
616 | static void *SwigwxValidatorTowxObject(void *ptr) { |
617 | wxValidator *src; | |
618 | wxObject *dest; | |
619 | src = (wxValidator *) ptr; | |
620 | dest = (wxObject *) src; | |
621 | return (void *) dest; | |
622 | } | |
623 | ||
2f90df85 RD |
624 | #define new_wxValidator() (new wxValidator()) |
625 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
626 | PyObject * _resultobj; | |
627 | wxValidator * _result; | |
628 | char *_kwnames[] = { NULL }; | |
629 | char _ptemp[128]; | |
630 | ||
631 | self = self; | |
632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
633 | return NULL; | |
634 | { | |
635 | wxPy_BEGIN_ALLOW_THREADS; | |
636 | _result = (wxValidator *)new_wxValidator(); | |
637 | ||
638 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 639 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
640 | } if (_result) { |
641 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
642 | _resultobj = Py_BuildValue("s",_ptemp); | |
643 | } else { | |
644 | Py_INCREF(Py_None); | |
645 | _resultobj = Py_None; | |
646 | } | |
647 | return _resultobj; | |
af309447 | 648 | } |
2f90df85 RD |
649 | |
650 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
651 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 652 | PyObject * _resultobj; |
2f90df85 RD |
653 | wxValidator * _result; |
654 | wxValidator * _arg0; | |
655 | PyObject * _argo0 = 0; | |
656 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
657 | |
658 | self = self; | |
2f90df85 RD |
659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
660 | return NULL; | |
661 | if (_argo0) { | |
662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 665 | return NULL; |
2f90df85 RD |
666 | } |
667 | } | |
cf694132 RD |
668 | { |
669 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 670 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 RD |
671 | |
672 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 673 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 674 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
675 | return _resultobj; |
676 | } | |
677 | ||
2f90df85 RD |
678 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
679 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
680 | PyObject * _resultobj; |
681 | wxWindow * _result; | |
2f90df85 RD |
682 | wxValidator * _arg0; |
683 | PyObject * _argo0 = 0; | |
684 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
685 | |
686 | self = self; | |
2f90df85 RD |
687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
688 | return NULL; | |
689 | if (_argo0) { | |
690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 693 | return NULL; |
2f90df85 RD |
694 | } |
695 | } | |
cf694132 RD |
696 | { |
697 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 698 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 RD |
699 | |
700 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 701 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 702 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
703 | return _resultobj; |
704 | } | |
705 | ||
2f90df85 RD |
706 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
707 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 708 | PyObject * _resultobj; |
2f90df85 RD |
709 | wxValidator * _arg0; |
710 | wxWindow * _arg1; | |
1d99702e RD |
711 | PyObject * _argo0 = 0; |
712 | PyObject * _argo1 = 0; | |
2f90df85 | 713 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
714 | |
715 | self = self; | |
2f90df85 | 716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 717 | return NULL; |
1d99702e RD |
718 | if (_argo0) { |
719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
722 | return NULL; |
723 | } | |
724 | } | |
1d99702e RD |
725 | if (_argo1) { |
726 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
727 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
729 | return NULL; |
730 | } | |
731 | } | |
732 | { | |
733 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 734 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 RD |
735 | |
736 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 737 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
738 | } Py_INCREF(Py_None); |
739 | _resultobj = Py_None; | |
cf694132 RD |
740 | return _resultobj; |
741 | } | |
742 | ||
9df61a29 RD |
743 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
744 | PyObject * _resultobj; | |
745 | bool _result; | |
746 | char *_kwnames[] = { NULL }; | |
747 | ||
748 | self = self; | |
749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
750 | return NULL; | |
751 | { | |
752 | wxPy_BEGIN_ALLOW_THREADS; | |
753 | _result = (bool )wxValidator::IsSilent(); | |
754 | ||
755 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 756 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
757 | } _resultobj = Py_BuildValue("i",_result); |
758 | return _resultobj; | |
759 | } | |
760 | ||
761 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
762 | PyObject * _resultobj; | |
763 | int _arg0 = (int ) TRUE; | |
764 | char *_kwnames[] = { "doIt", NULL }; | |
765 | ||
766 | self = self; | |
767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
768 | return NULL; | |
769 | { | |
770 | wxPy_BEGIN_ALLOW_THREADS; | |
771 | wxValidator::SetBellOnError(_arg0); | |
772 | ||
773 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 774 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
775 | } Py_INCREF(Py_None); |
776 | _resultobj = Py_None; | |
777 | return _resultobj; | |
778 | } | |
779 | ||
2f90df85 RD |
780 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
781 | wxPyValidator *src; | |
782 | wxValidator *dest; | |
783 | src = (wxPyValidator *) ptr; | |
784 | dest = (wxValidator *) src; | |
785 | return (void *) dest; | |
786 | } | |
787 | ||
788 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
789 | wxPyValidator *src; | |
790 | wxEvtHandler *dest; | |
791 | src = (wxPyValidator *) ptr; | |
792 | dest = (wxEvtHandler *) src; | |
793 | return (void *) dest; | |
794 | } | |
795 | ||
9df61a29 RD |
796 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
797 | wxPyValidator *src; | |
798 | wxObject *dest; | |
799 | src = (wxPyValidator *) ptr; | |
800 | dest = (wxObject *) src; | |
801 | return (void *) dest; | |
802 | } | |
803 | ||
2f90df85 RD |
804 | #define new_wxPyValidator() (new wxPyValidator()) |
805 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
806 | PyObject * _resultobj; | |
807 | wxPyValidator * _result; | |
808 | char *_kwnames[] = { NULL }; | |
809 | char _ptemp[128]; | |
810 | ||
811 | self = self; | |
812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
813 | return NULL; | |
814 | { | |
815 | wxPy_BEGIN_ALLOW_THREADS; | |
816 | _result = (wxPyValidator *)new_wxPyValidator(); | |
817 | ||
818 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 819 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
820 | } if (_result) { |
821 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
822 | _resultobj = Py_BuildValue("s",_ptemp); | |
823 | } else { | |
824 | Py_INCREF(Py_None); | |
825 | _resultobj = Py_None; | |
826 | } | |
827 | return _resultobj; | |
828 | } | |
829 | ||
f6bcfd97 | 830 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2)) |
2f90df85 | 831 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 832 | PyObject * _resultobj; |
2f90df85 RD |
833 | wxPyValidator * _arg0; |
834 | PyObject * _arg1; | |
f6bcfd97 BP |
835 | PyObject * _arg2; |
836 | int _arg3 = (int ) TRUE; | |
1d99702e | 837 | PyObject * _argo0 = 0; |
2f90df85 | 838 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
839 | PyObject * _obj2 = 0; |
840 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
841 | |
842 | self = self; | |
f6bcfd97 | 843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 844 | return NULL; |
1d99702e RD |
845 | if (_argo0) { |
846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
8ab979d7 RD |
849 | return NULL; |
850 | } | |
851 | } | |
852 | { | |
2f90df85 | 853 | _arg1 = _obj1; |
8ab979d7 | 854 | } |
f6bcfd97 BP |
855 | { |
856 | _arg2 = _obj2; | |
857 | } | |
cf694132 RD |
858 | { |
859 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 860 | wxPyValidator__setSelf(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
861 | |
862 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 863 | if (PyErr_Occurred()) return NULL; |
cf694132 | 864 | } Py_INCREF(Py_None); |
8ab979d7 RD |
865 | _resultobj = Py_None; |
866 | return _resultobj; | |
867 | } | |
868 | ||
869 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
870 | wxWindow *src; | |
871 | wxEvtHandler *dest; | |
872 | src = (wxWindow *) ptr; | |
873 | dest = (wxEvtHandler *) src; | |
874 | return (void *) dest; | |
875 | } | |
876 | ||
9df61a29 RD |
877 | static void *SwigwxWindowTowxObject(void *ptr) { |
878 | wxWindow *src; | |
879 | wxObject *dest; | |
880 | src = (wxWindow *) ptr; | |
881 | dest = (wxObject *) src; | |
882 | return (void *) dest; | |
883 | } | |
884 | ||
8ab979d7 | 885 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 886 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
887 | PyObject * _resultobj; |
888 | wxWindow * _result; | |
889 | wxWindow * _arg0; | |
890 | wxWindowID _arg1; | |
b68dc582 RD |
891 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
892 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
893 | long _arg4 = (long ) 0; |
894 | char * _arg5 = (char *) "panel"; | |
895 | PyObject * _argo0 = 0; | |
2f90df85 RD |
896 | wxPoint temp; |
897 | PyObject * _obj2 = 0; | |
898 | wxSize temp0; | |
899 | PyObject * _obj3 = 0; | |
efc5f224 | 900 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
901 | char _ptemp[128]; |
902 | ||
903 | self = self; | |
2f90df85 | 904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 905 | return NULL; |
1d99702e RD |
906 | if (_argo0) { |
907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
910 | return NULL; | |
911 | } | |
912 | } | |
2f90df85 RD |
913 | if (_obj2) |
914 | { | |
915 | _arg2 = &temp; | |
916 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 917 | return NULL; |
2f90df85 RD |
918 | } |
919 | if (_obj3) | |
920 | { | |
921 | _arg3 = &temp0; | |
922 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 923 | return NULL; |
2f90df85 | 924 | } |
cf694132 RD |
925 | { |
926 | wxPy_BEGIN_ALLOW_THREADS; | |
927 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
928 | ||
929 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 930 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
931 | } if (_result) { |
932 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
933 | _resultobj = Py_BuildValue("s",_ptemp); | |
934 | } else { | |
935 | Py_INCREF(Py_None); | |
936 | _resultobj = Py_None; | |
937 | } | |
8ab979d7 RD |
938 | return _resultobj; |
939 | } | |
940 | ||
941 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
efc5f224 | 942 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
943 | PyObject * _resultobj; |
944 | wxWindow * _arg0; | |
1d99702e | 945 | PyObject * _argo0 = 0; |
efc5f224 | 946 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
947 | |
948 | self = self; | |
efc5f224 | 949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
8ab979d7 | 950 | return NULL; |
1d99702e RD |
951 | if (_argo0) { |
952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
955 | return NULL; | |
956 | } | |
957 | } | |
cf694132 RD |
958 | { |
959 | wxPy_BEGIN_ALLOW_THREADS; | |
960 | wxWindow_CaptureMouse(_arg0); | |
961 | ||
962 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 963 | if (PyErr_Occurred()) return NULL; |
cf694132 | 964 | } Py_INCREF(Py_None); |
8ab979d7 RD |
965 | _resultobj = Py_None; |
966 | return _resultobj; | |
967 | } | |
968 | ||
969 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 970 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
971 | PyObject * _resultobj; |
972 | wxWindow * _arg0; | |
1d99702e RD |
973 | int _arg1 = (int ) wxBOTH; |
974 | PyObject * _argo0 = 0; | |
efc5f224 | 975 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
976 | |
977 | self = self; | |
efc5f224 | 978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 979 | return NULL; |
1d99702e RD |
980 | if (_argo0) { |
981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
984 | return NULL; | |
985 | } | |
986 | } | |
cf694132 RD |
987 | { |
988 | wxPy_BEGIN_ALLOW_THREADS; | |
989 | wxWindow_Center(_arg0,_arg1); | |
990 | ||
991 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 992 | if (PyErr_Occurred()) return NULL; |
cf694132 | 993 | } Py_INCREF(Py_None); |
8ab979d7 RD |
994 | _resultobj = Py_None; |
995 | return _resultobj; | |
996 | } | |
997 | ||
998 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 999 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1000 | PyObject * _resultobj; |
1001 | wxWindow * _arg0; | |
1d99702e RD |
1002 | int _arg1 = (int ) wxBOTH; |
1003 | PyObject * _argo0 = 0; | |
efc5f224 | 1004 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1005 | |
1006 | self = self; | |
efc5f224 | 1007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1008 | return NULL; |
1d99702e RD |
1009 | if (_argo0) { |
1010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1013 | return NULL; | |
1014 | } | |
1015 | } | |
cf694132 RD |
1016 | { |
1017 | wxPy_BEGIN_ALLOW_THREADS; | |
1018 | wxWindow_Centre(_arg0,_arg1); | |
1019 | ||
1020 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1021 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1022 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1023 | _resultobj = Py_None; |
1024 | return _resultobj; | |
1025 | } | |
1026 | ||
bb0054cd | 1027 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1028 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1029 | PyObject * _resultobj; |
1030 | wxWindow * _arg0; | |
1d99702e RD |
1031 | int _arg1 = (int ) wxBOTH; |
1032 | PyObject * _argo0 = 0; | |
efc5f224 | 1033 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1034 | |
1035 | self = self; | |
efc5f224 | 1036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1037 | return NULL; |
1d99702e RD |
1038 | if (_argo0) { |
1039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1042 | return NULL; | |
1043 | } | |
1044 | } | |
1045 | { | |
1046 | wxPy_BEGIN_ALLOW_THREADS; | |
1047 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1048 | ||
1049 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1050 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1051 | } Py_INCREF(Py_None); |
1052 | _resultobj = Py_None; | |
1053 | return _resultobj; | |
1054 | } | |
1055 | ||
1056 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1057 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1058 | PyObject * _resultobj; |
1059 | wxWindow * _arg0; | |
1d99702e RD |
1060 | int _arg1 = (int ) wxBOTH; |
1061 | PyObject * _argo0 = 0; | |
efc5f224 | 1062 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1063 | |
1064 | self = self; | |
efc5f224 | 1065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1066 | return NULL; |
1d99702e RD |
1067 | if (_argo0) { |
1068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1071 | return NULL; | |
1072 | } | |
1073 | } | |
1074 | { | |
1075 | wxPy_BEGIN_ALLOW_THREADS; | |
1076 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1077 | ||
1078 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1079 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1080 | } Py_INCREF(Py_None); |
1081 | _resultobj = Py_None; | |
1082 | return _resultobj; | |
1083 | } | |
1084 | ||
3ca6a5f0 BP |
1085 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1086 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1087 | PyObject * _resultobj; | |
1088 | wxWindow * _arg0; | |
1089 | int _arg1 = (int ) wxBOTH; | |
1090 | PyObject * _argo0 = 0; | |
1091 | char *_kwnames[] = { "self","direction", NULL }; | |
1092 | ||
1093 | self = self; | |
1094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1095 | return NULL; | |
1096 | if (_argo0) { | |
1097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1100 | return NULL; | |
1101 | } | |
1102 | } | |
1103 | { | |
1104 | wxPy_BEGIN_ALLOW_THREADS; | |
1105 | wxWindow_CentreOnScreen(_arg0,_arg1); | |
1106 | ||
1107 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1108 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1109 | } Py_INCREF(Py_None); |
1110 | _resultobj = Py_None; | |
1111 | return _resultobj; | |
1112 | } | |
1113 | ||
1114 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1115 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1116 | PyObject * _resultobj; | |
1117 | wxWindow * _arg0; | |
1118 | int _arg1 = (int ) wxBOTH; | |
1119 | PyObject * _argo0 = 0; | |
1120 | char *_kwnames[] = { "self","direction", NULL }; | |
1121 | ||
1122 | self = self; | |
1123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1124 | return NULL; | |
1125 | if (_argo0) { | |
1126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1129 | return NULL; | |
1130 | } | |
1131 | } | |
1132 | { | |
1133 | wxPy_BEGIN_ALLOW_THREADS; | |
1134 | wxWindow_CenterOnScreen(_arg0,_arg1); | |
1135 | ||
1136 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1137 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1138 | } Py_INCREF(Py_None); |
1139 | _resultobj = Py_None; | |
1140 | return _resultobj; | |
1141 | } | |
1142 | ||
9d6da64a RD |
1143 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) |
1144 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1145 | PyObject * _resultobj; | |
1146 | wxWindow * _arg0; | |
1147 | PyObject * _argo0 = 0; | |
1148 | char *_kwnames[] = { "self", NULL }; | |
1149 | ||
1150 | self = self; | |
1151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1152 | return NULL; | |
1153 | if (_argo0) { | |
1154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1157 | return NULL; | |
1158 | } | |
1159 | } | |
1160 | { | |
1161 | wxPy_BEGIN_ALLOW_THREADS; | |
1162 | wxWindow_Clear(_arg0); | |
1163 | ||
1164 | wxPy_END_ALLOW_THREADS; | |
1165 | if (PyErr_Occurred()) return NULL; | |
1166 | } Py_INCREF(Py_None); | |
1167 | _resultobj = Py_None; | |
1168 | return _resultobj; | |
1169 | } | |
1170 | ||
af309447 | 1171 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1172 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1173 | PyObject * _resultobj; |
1174 | wxWindow * _arg0; | |
1175 | int * _arg1; | |
1176 | int * _arg2; | |
1d99702e | 1177 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1178 | int temp; |
1179 | PyObject * _obj1 = 0; | |
1180 | int temp0; | |
1181 | PyObject * _obj2 = 0; | |
efc5f224 | 1182 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1183 | |
1184 | self = self; | |
efc5f224 | 1185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1186 | return NULL; |
1d99702e RD |
1187 | if (_argo0) { |
1188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1191 | return NULL; |
1192 | } | |
1193 | } | |
1194 | { | |
1195 | temp = (int) PyInt_AsLong(_obj1); | |
1196 | _arg1 = &temp; | |
1197 | } | |
1198 | { | |
1199 | temp0 = (int) PyInt_AsLong(_obj2); | |
1200 | _arg2 = &temp0; | |
1201 | } | |
cf694132 RD |
1202 | { |
1203 | wxPy_BEGIN_ALLOW_THREADS; | |
1204 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1205 | ||
1206 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1207 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1208 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1209 | _resultobj = Py_None; |
1210 | { | |
1211 | PyObject *o; | |
1212 | o = PyInt_FromLong((long) (*_arg1)); | |
1213 | _resultobj = t_output_helper(_resultobj, o); | |
1214 | } | |
1215 | { | |
1216 | PyObject *o; | |
1217 | o = PyInt_FromLong((long) (*_arg2)); | |
1218 | _resultobj = t_output_helper(_resultobj, o); | |
1219 | } | |
1220 | return _resultobj; | |
1221 | } | |
1222 | ||
af309447 | 1223 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1224 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1225 | PyObject * _resultobj; |
1226 | wxPoint * _result; | |
1227 | wxWindow * _arg0; | |
1228 | wxPoint * _arg1; | |
1d99702e | 1229 | PyObject * _argo0 = 0; |
2f90df85 RD |
1230 | wxPoint temp; |
1231 | PyObject * _obj1 = 0; | |
efc5f224 | 1232 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1233 | char _ptemp[128]; |
1234 | ||
1235 | self = self; | |
2f90df85 | 1236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1237 | return NULL; |
1d99702e RD |
1238 | if (_argo0) { |
1239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1242 | return NULL; | |
1243 | } | |
1244 | } | |
2f90df85 RD |
1245 | { |
1246 | _arg1 = &temp; | |
1247 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1248 | return NULL; |
2f90df85 | 1249 | } |
cf694132 RD |
1250 | { |
1251 | wxPy_BEGIN_ALLOW_THREADS; | |
1252 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1253 | ||
1254 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1255 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1256 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1257 | _resultobj = Py_BuildValue("s",_ptemp); |
1258 | return _resultobj; | |
1259 | } | |
1260 | ||
8ab979d7 | 1261 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1262 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1263 | PyObject * _resultobj; |
1264 | bool _result; | |
1265 | wxWindow * _arg0; | |
1d99702e RD |
1266 | int _arg1 = (int ) FALSE; |
1267 | PyObject * _argo0 = 0; | |
efc5f224 | 1268 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1269 | |
1270 | self = self; | |
efc5f224 | 1271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1272 | return NULL; |
1d99702e RD |
1273 | if (_argo0) { |
1274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1277 | return NULL; | |
1278 | } | |
1279 | } | |
cf694132 RD |
1280 | { |
1281 | wxPy_BEGIN_ALLOW_THREADS; | |
1282 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1283 | ||
1284 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1285 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1286 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1287 | return _resultobj; |
1288 | } | |
1289 | ||
1290 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1291 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1292 | PyObject * _resultobj; |
1293 | bool _result; | |
1294 | wxWindow * _arg0; | |
1d99702e | 1295 | PyObject * _argo0 = 0; |
efc5f224 | 1296 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1297 | |
1298 | self = self; | |
efc5f224 | 1299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1300 | return NULL; |
1d99702e RD |
1301 | if (_argo0) { |
1302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1305 | return NULL; | |
1306 | } | |
1307 | } | |
cf694132 RD |
1308 | { |
1309 | wxPy_BEGIN_ALLOW_THREADS; | |
1310 | _result = (bool )wxWindow_Destroy(_arg0); | |
1311 | ||
1312 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1313 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1314 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1315 | return _resultobj; |
1316 | } | |
1317 | ||
1318 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1319 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1320 | PyObject * _resultobj; |
1321 | wxWindow * _arg0; | |
1d99702e | 1322 | PyObject * _argo0 = 0; |
efc5f224 | 1323 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1324 | |
1325 | self = self; | |
efc5f224 | 1326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1327 | return NULL; |
1d99702e RD |
1328 | if (_argo0) { |
1329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1332 | return NULL; | |
1333 | } | |
1334 | } | |
cf694132 RD |
1335 | { |
1336 | wxPy_BEGIN_ALLOW_THREADS; | |
1337 | wxWindow_DestroyChildren(_arg0); | |
1338 | ||
1339 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1340 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1341 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1342 | _resultobj = Py_None; |
1343 | return _resultobj; | |
1344 | } | |
1345 | ||
4dfaa61e RD |
1346 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1347 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1348 | PyObject * _resultobj; | |
1349 | bool _result; | |
1350 | wxWindow * _arg0; | |
1351 | PyObject * _argo0 = 0; | |
1352 | char *_kwnames[] = { "self", NULL }; | |
1353 | ||
1354 | self = self; | |
1355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1356 | return NULL; | |
1357 | if (_argo0) { | |
1358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1361 | return NULL; | |
1362 | } | |
1363 | } | |
1364 | { | |
1365 | wxPy_BEGIN_ALLOW_THREADS; | |
1366 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); | |
1367 | ||
1368 | wxPy_END_ALLOW_THREADS; | |
1369 | if (PyErr_Occurred()) return NULL; | |
1370 | } _resultobj = Py_BuildValue("i",_result); | |
1371 | return _resultobj; | |
1372 | } | |
1373 | ||
8ab979d7 | 1374 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
efc5f224 | 1375 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1376 | PyObject * _resultobj; |
1377 | wxWindow * _arg0; | |
1378 | bool _arg1; | |
1d99702e | 1379 | PyObject * _argo0 = 0; |
8ab979d7 | 1380 | int tempbool1; |
efc5f224 | 1381 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1382 | |
1383 | self = self; | |
efc5f224 | 1384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1385 | return NULL; |
1d99702e RD |
1386 | if (_argo0) { |
1387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1390 | return NULL; | |
1391 | } | |
1392 | } | |
1393 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1394 | { |
1395 | wxPy_BEGIN_ALLOW_THREADS; | |
1396 | wxWindow_Enable(_arg0,_arg1); | |
1397 | ||
1398 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1399 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1400 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1401 | _resultobj = Py_None; |
1402 | return _resultobj; | |
1403 | } | |
1404 | ||
af309447 | 1405 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1406 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1407 | PyObject * _resultobj; |
1408 | wxWindow * _result; | |
1409 | wxWindow * _arg0; | |
1410 | long _arg1; | |
1d99702e | 1411 | PyObject * _argo0 = 0; |
efc5f224 | 1412 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1413 | |
1414 | self = self; | |
efc5f224 | 1415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1416 | return NULL; |
1d99702e RD |
1417 | if (_argo0) { |
1418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1421 | return NULL; |
1422 | } | |
1423 | } | |
cf694132 RD |
1424 | { |
1425 | wxPy_BEGIN_ALLOW_THREADS; | |
1426 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1427 | ||
1428 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1429 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1430 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1431 | return _resultobj; |
1432 | } | |
1433 | ||
1434 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1435 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1436 | PyObject * _resultobj; |
1437 | wxWindow * _result; | |
1438 | wxWindow * _arg0; | |
1439 | wxString * _arg1; | |
1d99702e | 1440 | PyObject * _argo0 = 0; |
8ab979d7 | 1441 | PyObject * _obj1 = 0; |
efc5f224 | 1442 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1443 | |
1444 | self = self; | |
efc5f224 | 1445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1446 | return NULL; |
1d99702e RD |
1447 | if (_argo0) { |
1448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1451 | return NULL; | |
1452 | } | |
1453 | } | |
1454 | { | |
2cd2fac8 RD |
1455 | #if PYTHON_API_VERSION >= 1009 |
1456 | char* tmpPtr; int tmpSize; | |
1457 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1458 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1459 | return NULL; |
1460 | } | |
1461 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1462 | return NULL; | |
1463 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1464 | #else | |
8ab979d7 RD |
1465 | if (!PyString_Check(_obj1)) { |
1466 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1467 | return NULL; | |
1468 | } | |
2cd2fac8 RD |
1469 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1470 | #endif | |
8ab979d7 | 1471 | } |
cf694132 RD |
1472 | { |
1473 | wxPy_BEGIN_ALLOW_THREADS; | |
1474 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1475 | ||
1476 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1477 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1478 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1479 | { |
1480 | if (_obj1) | |
1481 | delete _arg1; | |
1482 | } | |
1483 | return _resultobj; | |
1484 | } | |
1485 | ||
1486 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1487 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1488 | PyObject * _resultobj; |
1489 | wxWindow * _arg0; | |
1d99702e | 1490 | PyObject * _argo0 = 0; |
efc5f224 | 1491 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1492 | |
1493 | self = self; | |
efc5f224 | 1494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1495 | return NULL; |
1d99702e RD |
1496 | if (_argo0) { |
1497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1500 | return NULL; | |
1501 | } | |
1502 | } | |
cf694132 RD |
1503 | { |
1504 | wxPy_BEGIN_ALLOW_THREADS; | |
1505 | wxWindow_Fit(_arg0); | |
1506 | ||
1507 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1508 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1509 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1510 | _resultobj = Py_None; |
1511 | return _resultobj; | |
1512 | } | |
1513 | ||
1514 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1515 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1516 | PyObject * _resultobj; |
1517 | wxColour * _result; | |
1518 | wxWindow * _arg0; | |
1d99702e | 1519 | PyObject * _argo0 = 0; |
efc5f224 | 1520 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1521 | char _ptemp[128]; |
1522 | ||
1523 | self = self; | |
efc5f224 | 1524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1525 | return NULL; |
1d99702e RD |
1526 | if (_argo0) { |
1527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1530 | return NULL; | |
1531 | } | |
1532 | } | |
cf694132 RD |
1533 | { |
1534 | wxPy_BEGIN_ALLOW_THREADS; | |
1535 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1536 | ||
1537 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1538 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1539 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1540 | _resultobj = Py_BuildValue("s",_ptemp); |
1541 | return _resultobj; | |
1542 | } | |
1543 | ||
d426c97e RD |
1544 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1545 | wxWindowList& list = self->GetChildren(); | |
1546 | return wxPy_ConvertList(&list, "wxWindow"); | |
1547 | } | |
1548 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1549 | PyObject * _resultobj; | |
1550 | PyObject * _result; | |
1551 | wxWindow * _arg0; | |
1552 | PyObject * _argo0 = 0; | |
1553 | char *_kwnames[] = { "self", NULL }; | |
1554 | ||
1555 | self = self; | |
1556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1557 | return NULL; | |
1558 | if (_argo0) { | |
1559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1562 | return NULL; | |
1563 | } | |
1564 | } | |
1565 | { | |
1566 | wxPy_BEGIN_ALLOW_THREADS; | |
1567 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1568 | ||
1569 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1570 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1571 | }{ |
1572 | _resultobj = _result; | |
1573 | } | |
1574 | return _resultobj; | |
1575 | } | |
1576 | ||
8ab979d7 | 1577 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1578 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1579 | PyObject * _resultobj; |
1580 | int _result; | |
1581 | wxWindow * _arg0; | |
1d99702e | 1582 | PyObject * _argo0 = 0; |
efc5f224 | 1583 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1584 | |
1585 | self = self; | |
efc5f224 | 1586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1587 | return NULL; |
1d99702e RD |
1588 | if (_argo0) { |
1589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1592 | return NULL; | |
1593 | } | |
1594 | } | |
cf694132 RD |
1595 | { |
1596 | wxPy_BEGIN_ALLOW_THREADS; | |
1597 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1598 | ||
1599 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1600 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1601 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1602 | return _resultobj; |
1603 | } | |
1604 | ||
1605 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1606 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1607 | PyObject * _resultobj; |
1608 | int _result; | |
1609 | wxWindow * _arg0; | |
1d99702e | 1610 | PyObject * _argo0 = 0; |
efc5f224 | 1611 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1612 | |
1613 | self = self; | |
efc5f224 | 1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1615 | return NULL; |
1d99702e RD |
1616 | if (_argo0) { |
1617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1620 | return NULL; | |
1621 | } | |
1622 | } | |
cf694132 RD |
1623 | { |
1624 | wxPy_BEGIN_ALLOW_THREADS; | |
1625 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1626 | ||
1627 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1628 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1629 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1630 | return _resultobj; |
1631 | } | |
1632 | ||
b8b8dda7 | 1633 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1634 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1635 | PyObject * _resultobj; |
1636 | wxWindow * _arg0; | |
1637 | int * _arg1; | |
1638 | int temp; | |
1639 | int * _arg2; | |
1640 | int temp0; | |
1d99702e | 1641 | PyObject * _argo0 = 0; |
efc5f224 | 1642 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1643 | |
1644 | self = self; | |
1645 | { | |
1646 | _arg1 = &temp; | |
1647 | } | |
1648 | { | |
1649 | _arg2 = &temp0; | |
1650 | } | |
efc5f224 | 1651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1652 | return NULL; |
1d99702e RD |
1653 | if (_argo0) { |
1654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1657 | return NULL; |
1658 | } | |
1659 | } | |
cf694132 RD |
1660 | { |
1661 | wxPy_BEGIN_ALLOW_THREADS; | |
1662 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1663 | ||
1664 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1665 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1666 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1667 | _resultobj = Py_None; |
1668 | { | |
1669 | PyObject *o; | |
1670 | o = PyInt_FromLong((long) (*_arg1)); | |
1671 | _resultobj = t_output_helper(_resultobj, o); | |
1672 | } | |
1673 | { | |
1674 | PyObject *o; | |
1675 | o = PyInt_FromLong((long) (*_arg2)); | |
1676 | _resultobj = t_output_helper(_resultobj, o); | |
1677 | } | |
1678 | return _resultobj; | |
1679 | } | |
1680 | ||
b8b8dda7 | 1681 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1682 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1683 | PyObject * _resultobj; |
1684 | wxSize * _result; | |
1685 | wxWindow * _arg0; | |
1d99702e | 1686 | PyObject * _argo0 = 0; |
efc5f224 | 1687 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1688 | char _ptemp[128]; |
1689 | ||
1690 | self = self; | |
efc5f224 | 1691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1692 | return NULL; |
1d99702e RD |
1693 | if (_argo0) { |
1694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1697 | return NULL; | |
1698 | } | |
1699 | } | |
cf694132 RD |
1700 | { |
1701 | wxPy_BEGIN_ALLOW_THREADS; | |
1702 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1703 | ||
1704 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1705 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1706 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1707 | _resultobj = Py_BuildValue("s",_ptemp); |
1708 | return _resultobj; | |
1709 | } | |
1710 | ||
8ab979d7 | 1711 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1712 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1713 | PyObject * _resultobj; |
1714 | wxLayoutConstraints * _result; | |
1715 | wxWindow * _arg0; | |
1d99702e | 1716 | PyObject * _argo0 = 0; |
efc5f224 | 1717 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1718 | char _ptemp[128]; |
1719 | ||
1720 | self = self; | |
efc5f224 | 1721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1722 | return NULL; |
1d99702e RD |
1723 | if (_argo0) { |
1724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1727 | return NULL; | |
1728 | } | |
1729 | } | |
cf694132 RD |
1730 | { |
1731 | wxPy_BEGIN_ALLOW_THREADS; | |
1732 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1733 | ||
1734 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1735 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1736 | } if (_result) { |
1737 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1738 | _resultobj = Py_BuildValue("s",_ptemp); | |
1739 | } else { | |
1740 | Py_INCREF(Py_None); | |
1741 | _resultobj = Py_None; | |
1742 | } | |
8ab979d7 RD |
1743 | return _resultobj; |
1744 | } | |
1745 | ||
1afc06c2 RD |
1746 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1747 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1748 | PyObject * _resultobj; | |
1749 | wxEvtHandler * _result; | |
1750 | wxWindow * _arg0; | |
1751 | PyObject * _argo0 = 0; | |
1752 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
1753 | |
1754 | self = self; | |
1755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1756 | return NULL; | |
1757 | if (_argo0) { | |
1758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1761 | return NULL; | |
1762 | } | |
1763 | } | |
1764 | { | |
1765 | wxPy_BEGIN_ALLOW_THREADS; | |
1766 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1767 | ||
1768 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1769 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1770 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
1771 | return _resultobj; |
1772 | } | |
1773 | ||
8ab979d7 | 1774 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1775 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1776 | PyObject * _resultobj; |
1777 | wxFont * _result; | |
1778 | wxWindow * _arg0; | |
1d99702e | 1779 | PyObject * _argo0 = 0; |
efc5f224 | 1780 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1781 | char _ptemp[128]; |
1782 | ||
1783 | self = self; | |
efc5f224 | 1784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1785 | return NULL; |
1d99702e RD |
1786 | if (_argo0) { |
1787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1790 | return NULL; | |
1791 | } | |
1792 | } | |
cf694132 RD |
1793 | { |
1794 | wxPy_BEGIN_ALLOW_THREADS; | |
1795 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
b8b8dda7 | 1796 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
1797 | |
1798 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1799 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1800 | } if (_result) { |
1801 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1802 | _resultobj = Py_BuildValue("s",_ptemp); | |
1803 | } else { | |
1804 | Py_INCREF(Py_None); | |
1805 | _resultobj = Py_None; | |
1806 | } | |
8ab979d7 RD |
1807 | return _resultobj; |
1808 | } | |
1809 | ||
1810 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1811 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1812 | PyObject * _resultobj; |
1813 | wxColour * _result; | |
1814 | wxWindow * _arg0; | |
1d99702e | 1815 | PyObject * _argo0 = 0; |
efc5f224 | 1816 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1817 | char _ptemp[128]; |
1818 | ||
1819 | self = self; | |
efc5f224 | 1820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1821 | return NULL; |
1d99702e RD |
1822 | if (_argo0) { |
1823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1826 | return NULL; | |
1827 | } | |
1828 | } | |
cf694132 RD |
1829 | { |
1830 | wxPy_BEGIN_ALLOW_THREADS; | |
1831 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1832 | ||
1833 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1834 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1835 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1836 | _resultobj = Py_BuildValue("s",_ptemp); |
1837 | return _resultobj; | |
1838 | } | |
1839 | ||
1840 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1841 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1842 | PyObject * _resultobj; |
1843 | wxWindow * _result; | |
1844 | wxWindow * _arg0; | |
1d99702e | 1845 | PyObject * _argo0 = 0; |
efc5f224 | 1846 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1847 | |
1848 | self = self; | |
efc5f224 | 1849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1850 | return NULL; |
1d99702e RD |
1851 | if (_argo0) { |
1852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1855 | return NULL; | |
1856 | } | |
1857 | } | |
cf694132 RD |
1858 | { |
1859 | wxPy_BEGIN_ALLOW_THREADS; | |
1860 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1861 | ||
1862 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1863 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1864 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1865 | return _resultobj; |
1866 | } | |
1867 | ||
2abc0a0f | 1868 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1869 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1870 | } |
1871 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1872 | PyObject * _resultobj; | |
1873 | long _result; | |
1874 | wxWindow * _arg0; | |
1875 | PyObject * _argo0 = 0; | |
1876 | char *_kwnames[] = { "self", NULL }; | |
1877 | ||
1878 | self = self; | |
1879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1880 | return NULL; | |
1881 | if (_argo0) { | |
1882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1885 | return NULL; | |
1886 | } | |
1887 | } | |
1888 | { | |
1889 | wxPy_BEGIN_ALLOW_THREADS; | |
1890 | _result = (long )wxWindow_GetHandle(_arg0); | |
1891 | ||
1892 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1893 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
1894 | } _resultobj = Py_BuildValue("l",_result); |
1895 | return _resultobj; | |
1896 | } | |
1897 | ||
8ab979d7 | 1898 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 1899 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1900 | PyObject * _resultobj; |
1901 | int _result; | |
1902 | wxWindow * _arg0; | |
1d99702e | 1903 | PyObject * _argo0 = 0; |
efc5f224 | 1904 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1905 | |
1906 | self = self; | |
efc5f224 | 1907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 1908 | return NULL; |
1d99702e RD |
1909 | if (_argo0) { |
1910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
1913 | return NULL; | |
1914 | } | |
1915 | } | |
cf694132 RD |
1916 | { |
1917 | wxPy_BEGIN_ALLOW_THREADS; | |
1918 | _result = (int )wxWindow_GetId(_arg0); | |
1919 | ||
1920 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1921 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1922 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1923 | return _resultobj; |
1924 | } | |
1925 | ||
8ab979d7 | 1926 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 1927 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1928 | PyObject * _resultobj; |
1929 | wxString * _result; | |
1930 | wxWindow * _arg0; | |
1d99702e | 1931 | PyObject * _argo0 = 0; |
efc5f224 | 1932 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1933 | |
1934 | self = self; | |
efc5f224 | 1935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 1936 | return NULL; |
1d99702e RD |
1937 | if (_argo0) { |
1938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
1941 | return NULL; | |
1942 | } | |
1943 | } | |
8ab979d7 | 1944 | { |
cf694132 RD |
1945 | wxPy_BEGIN_ALLOW_THREADS; |
1946 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
1947 | ||
1948 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1949 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1950 | }{ |
eec92d76 | 1951 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1952 | } |
1953 | { | |
1954 | delete _result; | |
1955 | } | |
1956 | return _resultobj; | |
1957 | } | |
1958 | ||
bb0054cd | 1959 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 1960 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1961 | PyObject * _resultobj; |
1962 | wxWindow * _arg0; | |
1963 | wxString * _arg1; | |
1d99702e | 1964 | PyObject * _argo0 = 0; |
bb0054cd | 1965 | PyObject * _obj1 = 0; |
efc5f224 | 1966 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
1967 | |
1968 | self = self; | |
efc5f224 | 1969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 1970 | return NULL; |
1d99702e RD |
1971 | if (_argo0) { |
1972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
1975 | return NULL; | |
1976 | } | |
1977 | } | |
1978 | { | |
2cd2fac8 RD |
1979 | #if PYTHON_API_VERSION >= 1009 |
1980 | char* tmpPtr; int tmpSize; | |
1981 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1982 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1983 | return NULL; |
1984 | } | |
1985 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1986 | return NULL; | |
1987 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1988 | #else | |
bb0054cd RD |
1989 | if (!PyString_Check(_obj1)) { |
1990 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1991 | return NULL; | |
1992 | } | |
2cd2fac8 RD |
1993 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1994 | #endif | |
bb0054cd RD |
1995 | } |
1996 | { | |
1997 | wxPy_BEGIN_ALLOW_THREADS; | |
1998 | wxWindow_SetLabel(_arg0,*_arg1); | |
1999 | ||
2000 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2001 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2002 | } Py_INCREF(Py_None); |
2003 | _resultobj = Py_None; | |
2004 | { | |
2005 | if (_obj1) | |
2006 | delete _arg1; | |
2007 | } | |
2008 | return _resultobj; | |
2009 | } | |
2010 | ||
8ab979d7 | 2011 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2012 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2013 | PyObject * _resultobj; |
2014 | wxString * _result; | |
2015 | wxWindow * _arg0; | |
1d99702e | 2016 | PyObject * _argo0 = 0; |
efc5f224 | 2017 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2018 | |
2019 | self = self; | |
efc5f224 | 2020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2021 | return NULL; |
1d99702e RD |
2022 | if (_argo0) { |
2023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2026 | return NULL; | |
2027 | } | |
2028 | } | |
8ab979d7 | 2029 | { |
cf694132 RD |
2030 | wxPy_BEGIN_ALLOW_THREADS; |
2031 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2032 | ||
2033 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2034 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2035 | }{ |
eec92d76 | 2036 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2037 | } |
2038 | { | |
2039 | delete _result; | |
2040 | } | |
2041 | return _resultobj; | |
2042 | } | |
2043 | ||
2044 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2045 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2046 | PyObject * _resultobj; |
2047 | wxWindow * _result; | |
2048 | wxWindow * _arg0; | |
1d99702e | 2049 | PyObject * _argo0 = 0; |
efc5f224 | 2050 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2051 | |
2052 | self = self; | |
efc5f224 | 2053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2054 | return NULL; |
1d99702e RD |
2055 | if (_argo0) { |
2056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2059 | return NULL; | |
2060 | } | |
2061 | } | |
cf694132 RD |
2062 | { |
2063 | wxPy_BEGIN_ALLOW_THREADS; | |
2064 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2065 | ||
2066 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2067 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2068 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2069 | return _resultobj; |
2070 | } | |
2071 | ||
b8b8dda7 | 2072 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2073 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2074 | PyObject * _resultobj; |
2075 | wxWindow * _arg0; | |
2076 | int * _arg1; | |
2077 | int temp; | |
2078 | int * _arg2; | |
2079 | int temp0; | |
1d99702e | 2080 | PyObject * _argo0 = 0; |
efc5f224 | 2081 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2082 | |
2083 | self = self; | |
2084 | { | |
2085 | _arg1 = &temp; | |
2086 | } | |
2087 | { | |
2088 | _arg2 = &temp0; | |
2089 | } | |
efc5f224 | 2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2091 | return NULL; |
1d99702e RD |
2092 | if (_argo0) { |
2093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2096 | return NULL; | |
2097 | } | |
2098 | } | |
cf694132 RD |
2099 | { |
2100 | wxPy_BEGIN_ALLOW_THREADS; | |
2101 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2102 | ||
2103 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2104 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2105 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2106 | _resultobj = Py_None; |
2107 | { | |
2108 | PyObject *o; | |
2109 | o = PyInt_FromLong((long) (*_arg1)); | |
2110 | _resultobj = t_output_helper(_resultobj, o); | |
2111 | } | |
2112 | { | |
2113 | PyObject *o; | |
2114 | o = PyInt_FromLong((long) (*_arg2)); | |
2115 | _resultobj = t_output_helper(_resultobj, o); | |
2116 | } | |
2117 | return _resultobj; | |
2118 | } | |
2119 | ||
2120 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2121 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2122 | PyObject * _resultobj; |
2123 | wxPoint * _result; | |
2124 | wxWindow * _arg0; | |
1d99702e | 2125 | PyObject * _argo0 = 0; |
efc5f224 | 2126 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2127 | char _ptemp[128]; |
2128 | ||
2129 | self = self; | |
efc5f224 | 2130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2131 | return NULL; |
1d99702e RD |
2132 | if (_argo0) { |
2133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2136 | return NULL; | |
2137 | } | |
2138 | } | |
cf694132 RD |
2139 | { |
2140 | wxPy_BEGIN_ALLOW_THREADS; | |
2141 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2142 | ||
2143 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2144 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2145 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2146 | _resultobj = Py_BuildValue("s",_ptemp); |
2147 | return _resultobj; | |
2148 | } | |
2149 | ||
2150 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2151 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2152 | PyObject * _resultobj; |
2153 | wxRect * _result; | |
2154 | wxWindow * _arg0; | |
1d99702e | 2155 | PyObject * _argo0 = 0; |
efc5f224 | 2156 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2157 | char _ptemp[128]; |
2158 | ||
2159 | self = self; | |
efc5f224 | 2160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2161 | return NULL; |
1d99702e RD |
2162 | if (_argo0) { |
2163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2166 | return NULL; | |
2167 | } | |
2168 | } | |
cf694132 RD |
2169 | { |
2170 | wxPy_BEGIN_ALLOW_THREADS; | |
2171 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2172 | ||
2173 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2174 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2175 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2176 | _resultobj = Py_BuildValue("s",_ptemp); |
2177 | return _resultobj; | |
2178 | } | |
2179 | ||
8ab979d7 | 2180 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2181 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2182 | PyObject * _resultobj; |
2183 | int _result; | |
2184 | wxWindow * _arg0; | |
2185 | int _arg1; | |
1d99702e | 2186 | PyObject * _argo0 = 0; |
efc5f224 | 2187 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2188 | |
2189 | self = self; | |
efc5f224 | 2190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2191 | return NULL; |
1d99702e RD |
2192 | if (_argo0) { |
2193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2196 | return NULL; | |
2197 | } | |
2198 | } | |
cf694132 RD |
2199 | { |
2200 | wxPy_BEGIN_ALLOW_THREADS; | |
2201 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2202 | ||
2203 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2204 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2205 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2206 | return _resultobj; |
2207 | } | |
2208 | ||
2209 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2210 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2211 | PyObject * _resultobj; |
2212 | int _result; | |
2213 | wxWindow * _arg0; | |
2214 | int _arg1; | |
1d99702e | 2215 | PyObject * _argo0 = 0; |
efc5f224 | 2216 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2217 | |
2218 | self = self; | |
efc5f224 | 2219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2220 | return NULL; |
1d99702e RD |
2221 | if (_argo0) { |
2222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2225 | return NULL; | |
2226 | } | |
2227 | } | |
cf694132 RD |
2228 | { |
2229 | wxPy_BEGIN_ALLOW_THREADS; | |
2230 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2231 | ||
2232 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2233 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2234 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2235 | return _resultobj; |
2236 | } | |
2237 | ||
2238 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2239 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2240 | PyObject * _resultobj; |
2241 | int _result; | |
2242 | wxWindow * _arg0; | |
2243 | int _arg1; | |
1d99702e | 2244 | PyObject * _argo0 = 0; |
efc5f224 | 2245 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2246 | |
2247 | self = self; | |
efc5f224 | 2248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2249 | return NULL; |
1d99702e RD |
2250 | if (_argo0) { |
2251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2254 | return NULL; | |
2255 | } | |
2256 | } | |
cf694132 RD |
2257 | { |
2258 | wxPy_BEGIN_ALLOW_THREADS; | |
2259 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2260 | ||
2261 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2262 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2263 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2264 | return _resultobj; |
2265 | } | |
2266 | ||
b8b8dda7 | 2267 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2268 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2269 | PyObject * _resultobj; |
2270 | wxWindow * _arg0; | |
2271 | int * _arg1; | |
2272 | int temp; | |
2273 | int * _arg2; | |
2274 | int temp0; | |
1d99702e | 2275 | PyObject * _argo0 = 0; |
efc5f224 | 2276 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2277 | |
2278 | self = self; | |
2279 | { | |
2280 | _arg1 = &temp; | |
2281 | } | |
2282 | { | |
2283 | _arg2 = &temp0; | |
2284 | } | |
efc5f224 | 2285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2286 | return NULL; |
1d99702e RD |
2287 | if (_argo0) { |
2288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2291 | return NULL; |
2292 | } | |
2293 | } | |
cf694132 RD |
2294 | { |
2295 | wxPy_BEGIN_ALLOW_THREADS; | |
2296 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2297 | ||
2298 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2299 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2300 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2301 | _resultobj = Py_None; |
2302 | { | |
2303 | PyObject *o; | |
2304 | o = PyInt_FromLong((long) (*_arg1)); | |
2305 | _resultobj = t_output_helper(_resultobj, o); | |
2306 | } | |
2307 | { | |
2308 | PyObject *o; | |
2309 | o = PyInt_FromLong((long) (*_arg2)); | |
2310 | _resultobj = t_output_helper(_resultobj, o); | |
2311 | } | |
2312 | return _resultobj; | |
2313 | } | |
2314 | ||
b8b8dda7 | 2315 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2316 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2317 | PyObject * _resultobj; |
2318 | wxSize * _result; | |
2319 | wxWindow * _arg0; | |
1d99702e | 2320 | PyObject * _argo0 = 0; |
efc5f224 | 2321 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2322 | char _ptemp[128]; |
2323 | ||
2324 | self = self; | |
efc5f224 | 2325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2326 | return NULL; |
1d99702e RD |
2327 | if (_argo0) { |
2328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2331 | return NULL; | |
2332 | } | |
2333 | } | |
cf694132 RD |
2334 | { |
2335 | wxPy_BEGIN_ALLOW_THREADS; | |
2336 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2337 | ||
2338 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2339 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2340 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2341 | _resultobj = Py_BuildValue("s",_ptemp); |
2342 | return _resultobj; | |
2343 | } | |
2344 | ||
8ab979d7 | 2345 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2346 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2347 | PyObject * _resultobj; |
2348 | wxWindow * _arg0; | |
2349 | wxString * _arg1; | |
2350 | int * _arg2; | |
2351 | int temp; | |
2352 | int * _arg3; | |
2353 | int temp0; | |
1d99702e | 2354 | PyObject * _argo0 = 0; |
8ab979d7 | 2355 | PyObject * _obj1 = 0; |
efc5f224 | 2356 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2357 | |
2358 | self = self; | |
2359 | { | |
2360 | _arg2 = &temp; | |
2361 | } | |
2362 | { | |
2363 | _arg3 = &temp0; | |
2364 | } | |
efc5f224 | 2365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2366 | return NULL; |
1d99702e RD |
2367 | if (_argo0) { |
2368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2371 | return NULL; | |
2372 | } | |
2373 | } | |
2374 | { | |
2cd2fac8 RD |
2375 | #if PYTHON_API_VERSION >= 1009 |
2376 | char* tmpPtr; int tmpSize; | |
2377 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2378 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2379 | return NULL; |
2380 | } | |
2381 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2382 | return NULL; | |
2383 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2384 | #else | |
8ab979d7 RD |
2385 | if (!PyString_Check(_obj1)) { |
2386 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2387 | return NULL; | |
2388 | } | |
2cd2fac8 RD |
2389 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2390 | #endif | |
8ab979d7 | 2391 | } |
cf694132 RD |
2392 | { |
2393 | wxPy_BEGIN_ALLOW_THREADS; | |
2394 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2395 | ||
2396 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2397 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2398 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2399 | _resultobj = Py_None; |
2400 | { | |
2401 | PyObject *o; | |
2402 | o = PyInt_FromLong((long) (*_arg2)); | |
2403 | _resultobj = t_output_helper(_resultobj, o); | |
2404 | } | |
2405 | { | |
2406 | PyObject *o; | |
2407 | o = PyInt_FromLong((long) (*_arg3)); | |
2408 | _resultobj = t_output_helper(_resultobj, o); | |
2409 | } | |
2410 | { | |
2411 | if (_obj1) | |
2412 | delete _arg1; | |
2413 | } | |
2414 | return _resultobj; | |
2415 | } | |
2416 | ||
af309447 | 2417 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2418 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2419 | PyObject * _resultobj; |
2420 | wxWindow * _arg0; | |
2421 | wxString * _arg1; | |
2422 | int * _arg2; | |
2423 | int temp; | |
2424 | int * _arg3; | |
2425 | int temp0; | |
2426 | int * _arg4; | |
2427 | int temp1; | |
2428 | int * _arg5; | |
2429 | int temp2; | |
1d99702e RD |
2430 | wxFont * _arg6 = (wxFont *) NULL; |
2431 | PyObject * _argo0 = 0; | |
af309447 | 2432 | PyObject * _obj1 = 0; |
1d99702e | 2433 | PyObject * _argo6 = 0; |
efc5f224 | 2434 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2435 | |
2436 | self = self; | |
2437 | { | |
2438 | _arg2 = &temp; | |
2439 | } | |
2440 | { | |
2441 | _arg3 = &temp0; | |
2442 | } | |
2443 | { | |
2444 | _arg4 = &temp1; | |
2445 | } | |
2446 | { | |
2447 | _arg5 = &temp2; | |
2448 | } | |
efc5f224 | 2449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2450 | return NULL; |
1d99702e RD |
2451 | if (_argo0) { |
2452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2455 | return NULL; | |
2456 | } | |
2457 | } | |
2458 | { | |
2cd2fac8 RD |
2459 | #if PYTHON_API_VERSION >= 1009 |
2460 | char* tmpPtr; int tmpSize; | |
2461 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2462 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2463 | return NULL; |
2464 | } | |
2465 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2466 | return NULL; | |
2467 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2468 | #else | |
af309447 RD |
2469 | if (!PyString_Check(_obj1)) { |
2470 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2471 | return NULL; | |
2472 | } | |
2cd2fac8 RD |
2473 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2474 | #endif | |
af309447 | 2475 | } |
1d99702e RD |
2476 | if (_argo6) { |
2477 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2478 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2480 | return NULL; | |
2481 | } | |
2482 | } | |
cf694132 RD |
2483 | { |
2484 | wxPy_BEGIN_ALLOW_THREADS; | |
2485 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2486 | ||
2487 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2488 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2489 | } Py_INCREF(Py_None); |
af309447 RD |
2490 | _resultobj = Py_None; |
2491 | { | |
2492 | PyObject *o; | |
2493 | o = PyInt_FromLong((long) (*_arg2)); | |
2494 | _resultobj = t_output_helper(_resultobj, o); | |
2495 | } | |
2496 | { | |
2497 | PyObject *o; | |
2498 | o = PyInt_FromLong((long) (*_arg3)); | |
2499 | _resultobj = t_output_helper(_resultobj, o); | |
2500 | } | |
2501 | { | |
2502 | PyObject *o; | |
2503 | o = PyInt_FromLong((long) (*_arg4)); | |
2504 | _resultobj = t_output_helper(_resultobj, o); | |
2505 | } | |
2506 | { | |
2507 | PyObject *o; | |
2508 | o = PyInt_FromLong((long) (*_arg5)); | |
2509 | _resultobj = t_output_helper(_resultobj, o); | |
2510 | } | |
2511 | { | |
2512 | if (_obj1) | |
2513 | delete _arg1; | |
2514 | } | |
2515 | return _resultobj; | |
2516 | } | |
2517 | ||
8ab979d7 | 2518 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2519 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2520 | PyObject * _resultobj; |
2521 | wxString * _result; | |
2522 | wxWindow * _arg0; | |
1d99702e | 2523 | PyObject * _argo0 = 0; |
efc5f224 | 2524 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2525 | |
2526 | self = self; | |
efc5f224 | 2527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2528 | return NULL; |
1d99702e RD |
2529 | if (_argo0) { |
2530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2533 | return NULL; | |
2534 | } | |
2535 | } | |
8ab979d7 | 2536 | { |
cf694132 RD |
2537 | wxPy_BEGIN_ALLOW_THREADS; |
2538 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2539 | ||
2540 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2541 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2542 | }{ |
eec92d76 | 2543 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2544 | } |
2545 | { | |
2546 | delete _result; | |
2547 | } | |
2548 | return _resultobj; | |
2549 | } | |
2550 | ||
8bf5d46e | 2551 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2552 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2553 | PyObject * _resultobj; |
2554 | wxRegion * _result; | |
2555 | wxWindow * _arg0; | |
1d99702e | 2556 | PyObject * _argo0 = 0; |
efc5f224 | 2557 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2558 | char _ptemp[128]; |
2559 | ||
2560 | self = self; | |
efc5f224 | 2561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2562 | return NULL; |
1d99702e RD |
2563 | if (_argo0) { |
2564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2567 | return NULL; | |
2568 | } | |
2569 | } | |
2570 | { | |
2571 | wxPy_BEGIN_ALLOW_THREADS; | |
2572 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2573 | ||
2574 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2575 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2576 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2577 | _resultobj = Py_BuildValue("s",_ptemp); | |
2578 | return _resultobj; | |
2579 | } | |
2580 | ||
8ab979d7 | 2581 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2582 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2583 | PyObject * _resultobj; |
2584 | long _result; | |
2585 | wxWindow * _arg0; | |
1d99702e | 2586 | PyObject * _argo0 = 0; |
efc5f224 | 2587 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2588 | |
2589 | self = self; | |
efc5f224 | 2590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2591 | return NULL; |
1d99702e RD |
2592 | if (_argo0) { |
2593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2596 | return NULL; | |
2597 | } | |
2598 | } | |
cf694132 RD |
2599 | { |
2600 | wxPy_BEGIN_ALLOW_THREADS; | |
2601 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2602 | ||
2603 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2604 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2605 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2606 | return _resultobj; |
2607 | } | |
2608 | ||
f6bcfd97 BP |
2609 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2610 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2611 | PyObject * _resultobj; | |
2612 | wxWindow * _arg0; | |
2613 | long _arg1; | |
2614 | PyObject * _argo0 = 0; | |
2615 | char *_kwnames[] = { "self","style", NULL }; | |
2616 | ||
2617 | self = self; | |
2618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2619 | return NULL; | |
2620 | if (_argo0) { | |
2621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2624 | return NULL; | |
2625 | } | |
2626 | } | |
2627 | { | |
2628 | wxPy_BEGIN_ALLOW_THREADS; | |
2629 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2630 | ||
2631 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2632 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2633 | } Py_INCREF(Py_None); |
2634 | _resultobj = Py_None; | |
2635 | return _resultobj; | |
2636 | } | |
2637 | ||
2638 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2639 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2640 | PyObject * _resultobj; | |
2641 | wxWindow * _arg0; | |
2642 | long _arg1; | |
2643 | PyObject * _argo0 = 0; | |
2644 | char *_kwnames[] = { "self","style", NULL }; | |
2645 | ||
2646 | self = self; | |
2647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2648 | return NULL; | |
2649 | if (_argo0) { | |
2650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2653 | return NULL; | |
2654 | } | |
2655 | } | |
2656 | { | |
2657 | wxPy_BEGIN_ALLOW_THREADS; | |
2658 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2659 | ||
2660 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2661 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2662 | } Py_INCREF(Py_None); |
2663 | _resultobj = Py_None; | |
2664 | return _resultobj; | |
2665 | } | |
2666 | ||
bb0054cd | 2667 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2668 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2669 | PyObject * _resultobj; |
2670 | bool _result; | |
2671 | wxWindow * _arg0; | |
1d99702e | 2672 | PyObject * _argo0 = 0; |
efc5f224 | 2673 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2674 | |
2675 | self = self; | |
efc5f224 | 2676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2677 | return NULL; |
1d99702e RD |
2678 | if (_argo0) { |
2679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2682 | return NULL; | |
2683 | } | |
2684 | } | |
2685 | { | |
2686 | wxPy_BEGIN_ALLOW_THREADS; | |
2687 | _result = (bool )wxWindow_Hide(_arg0); | |
2688 | ||
2689 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2690 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2691 | } _resultobj = Py_BuildValue("i",_result); |
2692 | return _resultobj; | |
2693 | } | |
2694 | ||
8ab979d7 | 2695 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2696 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2697 | PyObject * _resultobj; |
2698 | wxWindow * _arg0; | |
1d99702e | 2699 | PyObject * _argo0 = 0; |
efc5f224 | 2700 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2701 | |
2702 | self = self; | |
efc5f224 | 2703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2704 | return NULL; |
1d99702e RD |
2705 | if (_argo0) { |
2706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2709 | return NULL; | |
2710 | } | |
2711 | } | |
cf694132 RD |
2712 | { |
2713 | wxPy_BEGIN_ALLOW_THREADS; | |
2714 | wxWindow_InitDialog(_arg0); | |
2715 | ||
2716 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2717 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2718 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2719 | _resultobj = Py_None; |
2720 | return _resultobj; | |
2721 | } | |
2722 | ||
2723 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2724 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2725 | PyObject * _resultobj; |
2726 | bool _result; | |
2727 | wxWindow * _arg0; | |
1d99702e | 2728 | PyObject * _argo0 = 0; |
efc5f224 | 2729 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2730 | |
2731 | self = self; | |
efc5f224 | 2732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2733 | return NULL; |
1d99702e RD |
2734 | if (_argo0) { |
2735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2738 | return NULL; | |
2739 | } | |
2740 | } | |
cf694132 RD |
2741 | { |
2742 | wxPy_BEGIN_ALLOW_THREADS; | |
2743 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2744 | ||
2745 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2746 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2747 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2748 | return _resultobj; |
2749 | } | |
2750 | ||
1b55cabf RD |
2751 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2752 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2753 | PyObject * _resultobj; | |
2754 | bool _result; | |
2755 | wxWindow * _arg0; | |
2756 | int _arg1; | |
2757 | int _arg2; | |
2758 | int _arg3 = (int ) 0; | |
2759 | int _arg4 = (int ) 0; | |
2760 | PyObject * _argo0 = 0; | |
2761 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2762 | ||
2763 | self = self; | |
2764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2765 | return NULL; | |
2766 | if (_argo0) { | |
2767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2770 | return NULL; | |
2771 | } | |
2772 | } | |
2773 | { | |
2774 | wxPy_BEGIN_ALLOW_THREADS; | |
2775 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2776 | ||
2777 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2778 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2779 | } _resultobj = Py_BuildValue("i",_result); |
2780 | return _resultobj; | |
2781 | } | |
2782 | ||
2783 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2784 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2785 | PyObject * _resultobj; | |
2786 | bool _result; | |
2787 | wxWindow * _arg0; | |
2788 | wxPoint * _arg1; | |
2789 | PyObject * _argo0 = 0; | |
2790 | wxPoint temp; | |
2791 | PyObject * _obj1 = 0; | |
2792 | char *_kwnames[] = { "self","pt", NULL }; | |
2793 | ||
2794 | self = self; | |
2795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2796 | return NULL; | |
2797 | if (_argo0) { | |
2798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2801 | return NULL; | |
2802 | } | |
2803 | } | |
2804 | { | |
2805 | _arg1 = &temp; | |
2806 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2807 | return NULL; | |
2808 | } | |
2809 | { | |
2810 | wxPy_BEGIN_ALLOW_THREADS; | |
2811 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2812 | ||
2813 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2814 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2815 | } _resultobj = Py_BuildValue("i",_result); |
2816 | return _resultobj; | |
2817 | } | |
2818 | ||
2819 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2820 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2821 | PyObject * _resultobj; | |
2822 | bool _result; | |
2823 | wxWindow * _arg0; | |
2824 | wxRect * _arg1; | |
2825 | PyObject * _argo0 = 0; | |
2826 | wxRect temp; | |
2827 | PyObject * _obj1 = 0; | |
2828 | char *_kwnames[] = { "self","rect", NULL }; | |
2829 | ||
2830 | self = self; | |
2831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2832 | return NULL; | |
2833 | if (_argo0) { | |
2834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2837 | return NULL; | |
2838 | } | |
2839 | } | |
2840 | { | |
2841 | _arg1 = &temp; | |
2842 | if (! wxRect_helper(_obj1, &_arg1)) | |
2843 | return NULL; | |
2844 | } | |
2845 | { | |
2846 | wxPy_BEGIN_ALLOW_THREADS; | |
2847 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2848 | ||
2849 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2850 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2851 | } _resultobj = Py_BuildValue("i",_result); |
2852 | return _resultobj; | |
2853 | } | |
2854 | ||
8ab979d7 | 2855 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 2856 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2857 | PyObject * _resultobj; |
2858 | bool _result; | |
2859 | wxWindow * _arg0; | |
1d99702e | 2860 | PyObject * _argo0 = 0; |
efc5f224 | 2861 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2862 | |
2863 | self = self; | |
efc5f224 | 2864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 2865 | return NULL; |
1d99702e RD |
2866 | if (_argo0) { |
2867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
2870 | return NULL; | |
2871 | } | |
2872 | } | |
cf694132 RD |
2873 | { |
2874 | wxPy_BEGIN_ALLOW_THREADS; | |
2875 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2876 | ||
2877 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2878 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2879 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2880 | return _resultobj; |
2881 | } | |
2882 | ||
2883 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 2884 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2885 | PyObject * _resultobj; |
2886 | bool _result; | |
2887 | wxWindow * _arg0; | |
1d99702e | 2888 | PyObject * _argo0 = 0; |
efc5f224 | 2889 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2890 | |
2891 | self = self; | |
efc5f224 | 2892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 2893 | return NULL; |
1d99702e RD |
2894 | if (_argo0) { |
2895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
2898 | return NULL; | |
2899 | } | |
2900 | } | |
cf694132 RD |
2901 | { |
2902 | wxPy_BEGIN_ALLOW_THREADS; | |
2903 | _result = (bool )wxWindow_IsShown(_arg0); | |
2904 | ||
2905 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2906 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2907 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2908 | return _resultobj; |
2909 | } | |
2910 | ||
bb0054cd | 2911 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 2912 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2913 | PyObject * _resultobj; |
2914 | bool _result; | |
2915 | wxWindow * _arg0; | |
1d99702e | 2916 | PyObject * _argo0 = 0; |
efc5f224 | 2917 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2918 | |
2919 | self = self; | |
efc5f224 | 2920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 2921 | return NULL; |
1d99702e RD |
2922 | if (_argo0) { |
2923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
2926 | return NULL; | |
2927 | } | |
2928 | } | |
2929 | { | |
2930 | wxPy_BEGIN_ALLOW_THREADS; | |
2931 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2932 | ||
2933 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2934 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2935 | } _resultobj = Py_BuildValue("i",_result); |
2936 | return _resultobj; | |
2937 | } | |
2938 | ||
8ab979d7 | 2939 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 2940 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2941 | PyObject * _resultobj; |
2942 | wxWindow * _arg0; | |
1d99702e | 2943 | PyObject * _argo0 = 0; |
efc5f224 | 2944 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2945 | |
2946 | self = self; | |
efc5f224 | 2947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 2948 | return NULL; |
1d99702e RD |
2949 | if (_argo0) { |
2950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
2953 | return NULL; | |
2954 | } | |
2955 | } | |
cf694132 RD |
2956 | { |
2957 | wxPy_BEGIN_ALLOW_THREADS; | |
2958 | wxWindow_Layout(_arg0); | |
2959 | ||
2960 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2961 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2962 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2963 | _resultobj = Py_None; |
2964 | return _resultobj; | |
2965 | } | |
2966 | ||
2967 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2968 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2969 | PyObject * _resultobj; |
2970 | bool _result; | |
2971 | wxWindow * _arg0; | |
2972 | wxWindow * _arg1; | |
2973 | wxString * _arg2; | |
1d99702e RD |
2974 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
2975 | PyObject * _argo0 = 0; | |
2976 | PyObject * _argo1 = 0; | |
8ab979d7 | 2977 | PyObject * _obj2 = 0; |
1d99702e | 2978 | PyObject * _argo3 = 0; |
efc5f224 | 2979 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
2980 | |
2981 | self = self; | |
efc5f224 | 2982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 2983 | return NULL; |
1d99702e RD |
2984 | if (_argo0) { |
2985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
2988 | return NULL; | |
2989 | } | |
2990 | } | |
1d99702e RD |
2991 | if (_argo1) { |
2992 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2993 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
2994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
2995 | return NULL; | |
2996 | } | |
2997 | } | |
2998 | { | |
2cd2fac8 RD |
2999 | #if PYTHON_API_VERSION >= 1009 |
3000 | char* tmpPtr; int tmpSize; | |
3001 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 3002 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3003 | return NULL; |
3004 | } | |
3005 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3006 | return NULL; | |
3007 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3008 | #else | |
8ab979d7 RD |
3009 | if (!PyString_Check(_obj2)) { |
3010 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3011 | return NULL; | |
3012 | } | |
2cd2fac8 RD |
3013 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3014 | #endif | |
8ab979d7 | 3015 | } |
1d99702e RD |
3016 | if (_argo3) { |
3017 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3018 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3020 | return NULL; | |
3021 | } | |
3022 | } | |
cf694132 RD |
3023 | { |
3024 | wxPy_BEGIN_ALLOW_THREADS; | |
3025 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
3026 | ||
3027 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3028 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3029 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3030 | { |
3031 | if (_obj2) | |
3032 | delete _arg2; | |
3033 | } | |
3034 | return _resultobj; | |
3035 | } | |
3036 | ||
3037 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3038 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3039 | PyObject * _resultobj; |
3040 | wxWindow * _arg0; | |
1d99702e | 3041 | PyObject * _argo0 = 0; |
efc5f224 | 3042 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3043 | |
3044 | self = self; | |
efc5f224 | 3045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3046 | return NULL; |
1d99702e RD |
3047 | if (_argo0) { |
3048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3051 | return NULL; | |
3052 | } | |
3053 | } | |
cf694132 RD |
3054 | { |
3055 | wxPy_BEGIN_ALLOW_THREADS; | |
3056 | wxWindow_Lower(_arg0); | |
3057 | ||
3058 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3059 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3060 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3061 | _resultobj = Py_None; |
3062 | return _resultobj; | |
3063 | } | |
3064 | ||
3065 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3066 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3067 | PyObject * _resultobj; |
3068 | wxWindow * _arg0; | |
3069 | bool _arg1; | |
1d99702e | 3070 | PyObject * _argo0 = 0; |
8ab979d7 | 3071 | int tempbool1; |
efc5f224 | 3072 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3073 | |
3074 | self = self; | |
efc5f224 | 3075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3076 | return NULL; |
1d99702e RD |
3077 | if (_argo0) { |
3078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3081 | return NULL; | |
3082 | } | |
3083 | } | |
3084 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3085 | { |
3086 | wxPy_BEGIN_ALLOW_THREADS; | |
3087 | wxWindow_MakeModal(_arg0,_arg1); | |
3088 | ||
3089 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3090 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3091 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3092 | _resultobj = Py_None; |
3093 | return _resultobj; | |
3094 | } | |
3095 | ||
af309447 | 3096 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3097 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3098 | PyObject * _resultobj; |
3099 | wxWindow * _arg0; | |
3100 | int _arg1; | |
3101 | int _arg2; | |
1d99702e | 3102 | PyObject * _argo0 = 0; |
efc5f224 | 3103 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3104 | |
3105 | self = self; | |
efc5f224 | 3106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 3107 | return NULL; |
1d99702e RD |
3108 | if (_argo0) { |
3109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3112 | return NULL; | |
3113 | } | |
3114 | } | |
cf694132 RD |
3115 | { |
3116 | wxPy_BEGIN_ALLOW_THREADS; | |
3117 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
3118 | ||
3119 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3120 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3121 | } Py_INCREF(Py_None); |
af309447 RD |
3122 | _resultobj = Py_None; |
3123 | return _resultobj; | |
3124 | } | |
3125 | ||
3126 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
efc5f224 | 3127 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3128 | PyObject * _resultobj; |
3129 | wxWindow * _arg0; | |
3130 | wxPoint * _arg1; | |
1d99702e | 3131 | PyObject * _argo0 = 0; |
2f90df85 RD |
3132 | wxPoint temp; |
3133 | PyObject * _obj1 = 0; | |
efc5f224 | 3134 | char *_kwnames[] = { "self","point", NULL }; |
af309447 RD |
3135 | |
3136 | self = self; | |
2f90df85 | 3137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3138 | return NULL; |
1d99702e RD |
3139 | if (_argo0) { |
3140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3143 | return NULL; | |
3144 | } | |
3145 | } | |
2f90df85 RD |
3146 | { |
3147 | _arg1 = &temp; | |
3148 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3149 | return NULL; |
2f90df85 | 3150 | } |
cf694132 RD |
3151 | { |
3152 | wxPy_BEGIN_ALLOW_THREADS; | |
3153 | wxWindow_Move(_arg0,*_arg1); | |
3154 | ||
3155 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3156 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3157 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3158 | _resultobj = Py_None; |
3159 | return _resultobj; | |
3160 | } | |
3161 | ||
1afc06c2 RD |
3162 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3163 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3164 | PyObject * _resultobj; | |
3165 | wxEvtHandler * _result; | |
3166 | wxWindow * _arg0; | |
3167 | bool _arg1 = (bool ) FALSE; | |
3168 | PyObject * _argo0 = 0; | |
3169 | int tempbool1 = (int) FALSE; | |
3170 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3171 | |
3172 | self = self; | |
3173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3174 | return NULL; | |
3175 | if (_argo0) { | |
3176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3179 | return NULL; | |
3180 | } | |
3181 | } | |
3182 | _arg1 = (bool ) tempbool1; | |
3183 | { | |
3184 | wxPy_BEGIN_ALLOW_THREADS; | |
3185 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3186 | ||
3187 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3188 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 3189 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3190 | return _resultobj; |
3191 | } | |
3192 | ||
3193 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3194 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3195 | PyObject * _resultobj; | |
3196 | wxWindow * _arg0; | |
3197 | wxEvtHandler * _arg1; | |
3198 | PyObject * _argo0 = 0; | |
3199 | PyObject * _argo1 = 0; | |
3200 | char *_kwnames[] = { "self","handler", NULL }; | |
3201 | ||
3202 | self = self; | |
3203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3204 | return NULL; | |
3205 | if (_argo0) { | |
3206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3209 | return NULL; | |
3210 | } | |
3211 | } | |
3212 | if (_argo1) { | |
3213 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3214 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3216 | return NULL; | |
3217 | } | |
3218 | } | |
3219 | { | |
3220 | wxPy_BEGIN_ALLOW_THREADS; | |
3221 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3222 | ||
3223 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3224 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3225 | } Py_INCREF(Py_None); |
3226 | _resultobj = Py_None; | |
3227 | return _resultobj; | |
3228 | } | |
3229 | ||
8bf5d46e | 3230 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3231 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3232 | PyObject * _resultobj; |
3233 | bool _result; | |
3234 | wxWindow * _arg0; | |
3235 | wxMenu * _arg1; | |
3236 | int _arg2; | |
3237 | int _arg3; | |
1d99702e RD |
3238 | PyObject * _argo0 = 0; |
3239 | PyObject * _argo1 = 0; | |
efc5f224 | 3240 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3241 | |
3242 | self = self; | |
efc5f224 | 3243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3244 | return NULL; |
1d99702e RD |
3245 | if (_argo0) { |
3246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3249 | return NULL; | |
3250 | } | |
3251 | } | |
1d99702e RD |
3252 | if (_argo1) { |
3253 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3254 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3256 | return NULL; | |
3257 | } | |
3258 | } | |
3259 | { | |
3260 | wxPy_BEGIN_ALLOW_THREADS; | |
3261 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3262 | ||
3263 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3264 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3265 | } _resultobj = Py_BuildValue("i",_result); |
3266 | return _resultobj; | |
3267 | } | |
3268 | ||
3269 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3270 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3271 | PyObject * _resultobj; |
3272 | bool _result; | |
3273 | wxWindow * _arg0; | |
3274 | wxMenu * _arg1; | |
3275 | wxPoint * _arg2; | |
1d99702e RD |
3276 | PyObject * _argo0 = 0; |
3277 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3278 | wxPoint temp; |
3279 | PyObject * _obj2 = 0; | |
efc5f224 | 3280 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3281 | |
3282 | self = self; | |
2f90df85 | 3283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3284 | return NULL; |
1d99702e RD |
3285 | if (_argo0) { |
3286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3289 | return NULL; | |
3290 | } | |
3291 | } | |
1d99702e RD |
3292 | if (_argo1) { |
3293 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3294 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3296 | return NULL; | |
3297 | } | |
3298 | } | |
2f90df85 RD |
3299 | { |
3300 | _arg2 = &temp; | |
3301 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3302 | return NULL; |
2f90df85 | 3303 | } |
cf694132 RD |
3304 | { |
3305 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 3306 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 RD |
3307 | |
3308 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3309 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3310 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3311 | return _resultobj; |
3312 | } | |
3313 | ||
3314 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3315 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3316 | PyObject * _resultobj; |
3317 | wxWindow * _arg0; | |
1d99702e | 3318 | PyObject * _argo0 = 0; |
efc5f224 | 3319 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3320 | |
3321 | self = self; | |
efc5f224 | 3322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3323 | return NULL; |
1d99702e RD |
3324 | if (_argo0) { |
3325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3328 | return NULL; | |
3329 | } | |
3330 | } | |
cf694132 RD |
3331 | { |
3332 | wxPy_BEGIN_ALLOW_THREADS; | |
3333 | wxWindow_Raise(_arg0); | |
3334 | ||
3335 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3336 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3337 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3338 | _resultobj = Py_None; |
3339 | return _resultobj; | |
3340 | } | |
3341 | ||
3342 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3343 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3344 | PyObject * _resultobj; |
3345 | wxWindow * _arg0; | |
1d99702e RD |
3346 | bool _arg1 = (bool ) TRUE; |
3347 | wxRect * _arg2 = (wxRect *) NULL; | |
3348 | PyObject * _argo0 = 0; | |
3349 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3350 | wxRect temp; |
3351 | PyObject * _obj2 = 0; | |
efc5f224 | 3352 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3353 | |
3354 | self = self; | |
2f90df85 | 3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3356 | return NULL; |
1d99702e RD |
3357 | if (_argo0) { |
3358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3361 | return NULL; | |
3362 | } | |
3363 | } | |
3364 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3365 | if (_obj2) |
3366 | { | |
3367 | _arg2 = &temp; | |
3368 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3369 | return NULL; |
2f90df85 | 3370 | } |
cf694132 RD |
3371 | { |
3372 | wxPy_BEGIN_ALLOW_THREADS; | |
3373 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3374 | ||
3375 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3376 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3377 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3378 | _resultobj = Py_None; |
3379 | return _resultobj; | |
3380 | } | |
3381 | ||
3382 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
efc5f224 | 3383 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3384 | PyObject * _resultobj; |
3385 | wxWindow * _arg0; | |
1d99702e | 3386 | PyObject * _argo0 = 0; |
efc5f224 | 3387 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3388 | |
3389 | self = self; | |
efc5f224 | 3390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3391 | return NULL; |
1d99702e RD |
3392 | if (_argo0) { |
3393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3396 | return NULL; | |
3397 | } | |
3398 | } | |
cf694132 RD |
3399 | { |
3400 | wxPy_BEGIN_ALLOW_THREADS; | |
3401 | wxWindow_ReleaseMouse(_arg0); | |
3402 | ||
3403 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3404 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3405 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3406 | _resultobj = Py_None; |
3407 | return _resultobj; | |
3408 | } | |
3409 | ||
b7e72427 RD |
3410 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3411 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3412 | PyObject * _resultobj; | |
3413 | wxWindow * _arg0; | |
3414 | wxWindow * _arg1; | |
3415 | PyObject * _argo0 = 0; | |
3416 | PyObject * _argo1 = 0; | |
3417 | char *_kwnames[] = { "self","child", NULL }; | |
3418 | ||
3419 | self = self; | |
3420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3421 | return NULL; | |
3422 | if (_argo0) { | |
3423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3426 | return NULL; | |
3427 | } | |
3428 | } | |
3429 | if (_argo1) { | |
3430 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3431 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3433 | return NULL; | |
3434 | } | |
3435 | } | |
3436 | { | |
3437 | wxPy_BEGIN_ALLOW_THREADS; | |
3438 | wxWindow_RemoveChild(_arg0,_arg1); | |
3439 | ||
3440 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3441 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3442 | } Py_INCREF(Py_None); |
3443 | _resultobj = Py_None; | |
3444 | return _resultobj; | |
3445 | } | |
3446 | ||
bb0054cd | 3447 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3448 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3449 | PyObject * _resultobj; |
3450 | bool _result; | |
3451 | wxWindow * _arg0; | |
3452 | wxWindow * _arg1; | |
1d99702e RD |
3453 | PyObject * _argo0 = 0; |
3454 | PyObject * _argo1 = 0; | |
efc5f224 | 3455 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3456 | |
3457 | self = self; | |
efc5f224 | 3458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3459 | return NULL; |
1d99702e RD |
3460 | if (_argo0) { |
3461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3464 | return NULL; | |
3465 | } | |
3466 | } | |
1d99702e RD |
3467 | if (_argo1) { |
3468 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3469 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3471 | return NULL; | |
3472 | } | |
3473 | } | |
3474 | { | |
3475 | wxPy_BEGIN_ALLOW_THREADS; | |
3476 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3477 | ||
3478 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3479 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3480 | } _resultobj = Py_BuildValue("i",_result); |
3481 | return _resultobj; | |
3482 | } | |
3483 | ||
af309447 | 3484 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3485 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3486 | PyObject * _resultobj; |
3487 | wxWindow * _arg0; | |
3488 | int * _arg1; | |
3489 | int * _arg2; | |
1d99702e | 3490 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3491 | int temp; |
3492 | PyObject * _obj1 = 0; | |
3493 | int temp0; | |
3494 | PyObject * _obj2 = 0; | |
efc5f224 | 3495 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3496 | |
3497 | self = self; | |
efc5f224 | 3498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3499 | return NULL; |
1d99702e RD |
3500 | if (_argo0) { |
3501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3504 | return NULL; |
3505 | } | |
3506 | } | |
3507 | { | |
3508 | temp = (int) PyInt_AsLong(_obj1); | |
3509 | _arg1 = &temp; | |
3510 | } | |
3511 | { | |
3512 | temp0 = (int) PyInt_AsLong(_obj2); | |
3513 | _arg2 = &temp0; | |
3514 | } | |
cf694132 RD |
3515 | { |
3516 | wxPy_BEGIN_ALLOW_THREADS; | |
3517 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3518 | ||
3519 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3520 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3521 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3522 | _resultobj = Py_None; |
3523 | { | |
3524 | PyObject *o; | |
3525 | o = PyInt_FromLong((long) (*_arg1)); | |
3526 | _resultobj = t_output_helper(_resultobj, o); | |
3527 | } | |
3528 | { | |
3529 | PyObject *o; | |
3530 | o = PyInt_FromLong((long) (*_arg2)); | |
3531 | _resultobj = t_output_helper(_resultobj, o); | |
3532 | } | |
3533 | return _resultobj; | |
3534 | } | |
3535 | ||
af309447 | 3536 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3537 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3538 | PyObject * _resultobj; |
3539 | wxPoint * _result; | |
3540 | wxWindow * _arg0; | |
3541 | wxPoint * _arg1; | |
1d99702e | 3542 | PyObject * _argo0 = 0; |
2f90df85 RD |
3543 | wxPoint temp; |
3544 | PyObject * _obj1 = 0; | |
efc5f224 | 3545 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3546 | char _ptemp[128]; |
3547 | ||
3548 | self = self; | |
2f90df85 | 3549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3550 | return NULL; |
1d99702e RD |
3551 | if (_argo0) { |
3552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3555 | return NULL; | |
3556 | } | |
3557 | } | |
2f90df85 RD |
3558 | { |
3559 | _arg1 = &temp; | |
3560 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3561 | return NULL; |
2f90df85 | 3562 | } |
cf694132 RD |
3563 | { |
3564 | wxPy_BEGIN_ALLOW_THREADS; | |
3565 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3566 | ||
3567 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3568 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3569 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3570 | _resultobj = Py_BuildValue("s",_ptemp); |
3571 | return _resultobj; | |
3572 | } | |
3573 | ||
8ab979d7 | 3574 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3575 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3576 | PyObject * _resultobj; |
3577 | wxWindow * _arg0; | |
3578 | int _arg1; | |
3579 | int _arg2; | |
1d99702e RD |
3580 | wxRect * _arg3 = (wxRect *) NULL; |
3581 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3582 | wxRect temp; |
3583 | PyObject * _obj3 = 0; | |
efc5f224 | 3584 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3585 | |
3586 | self = self; | |
2f90df85 | 3587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3588 | return NULL; |
1d99702e RD |
3589 | if (_argo0) { |
3590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3593 | return NULL; | |
3594 | } | |
3595 | } | |
2f90df85 RD |
3596 | if (_obj3) |
3597 | { | |
3598 | _arg3 = &temp; | |
3599 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3600 | return NULL; |
2f90df85 | 3601 | } |
cf694132 RD |
3602 | { |
3603 | wxPy_BEGIN_ALLOW_THREADS; | |
3604 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3605 | ||
3606 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3607 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3608 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3609 | _resultobj = Py_None; |
3610 | return _resultobj; | |
3611 | } | |
3612 | ||
b8b8dda7 | 3613 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
efc5f224 | 3614 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
3615 | PyObject * _resultobj; |
3616 | wxWindow * _arg0; | |
3617 | wxAcceleratorTable * _arg1; | |
1d99702e RD |
3618 | PyObject * _argo0 = 0; |
3619 | PyObject * _argo1 = 0; | |
efc5f224 | 3620 | char *_kwnames[] = { "self","accel", NULL }; |
b8b8dda7 RD |
3621 | |
3622 | self = self; | |
efc5f224 | 3623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 3624 | return NULL; |
1d99702e RD |
3625 | if (_argo0) { |
3626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
3628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); |
3629 | return NULL; | |
3630 | } | |
3631 | } | |
1d99702e RD |
3632 | if (_argo1) { |
3633 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3634 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
b8b8dda7 RD |
3635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
3636 | return NULL; | |
3637 | } | |
3638 | } | |
cf694132 RD |
3639 | { |
3640 | wxPy_BEGIN_ALLOW_THREADS; | |
3641 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
3642 | ||
3643 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3644 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3645 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
3646 | _resultobj = Py_None; |
3647 | return _resultobj; | |
3648 | } | |
3649 | ||
8ab979d7 | 3650 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) |
efc5f224 | 3651 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3652 | PyObject * _resultobj; |
3653 | wxWindow * _arg0; | |
3654 | bool _arg1; | |
1d99702e | 3655 | PyObject * _argo0 = 0; |
8ab979d7 | 3656 | int tempbool1; |
efc5f224 | 3657 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3658 | |
3659 | self = self; | |
efc5f224 | 3660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3661 | return NULL; |
1d99702e RD |
3662 | if (_argo0) { |
3663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3666 | return NULL; | |
3667 | } | |
3668 | } | |
3669 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3670 | { |
3671 | wxPy_BEGIN_ALLOW_THREADS; | |
3672 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3673 | ||
3674 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3675 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3676 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3677 | _resultobj = Py_None; |
3678 | return _resultobj; | |
3679 | } | |
3680 | ||
9d8bd15f RD |
3681 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3682 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3683 | PyObject * _resultobj; | |
3684 | bool _result; | |
3685 | wxWindow * _arg0; | |
3686 | PyObject * _argo0 = 0; | |
3687 | char *_kwnames[] = { "self", NULL }; | |
3688 | ||
3689 | self = self; | |
3690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3691 | return NULL; | |
3692 | if (_argo0) { | |
3693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3696 | return NULL; | |
3697 | } | |
3698 | } | |
3699 | { | |
3700 | wxPy_BEGIN_ALLOW_THREADS; | |
3701 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3702 | ||
3703 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3704 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3705 | } _resultobj = Py_BuildValue("i",_result); |
3706 | return _resultobj; | |
3707 | } | |
3708 | ||
8ab979d7 | 3709 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3710 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3711 | PyObject * _resultobj; |
3712 | wxWindow * _arg0; | |
3713 | wxColour * _arg1; | |
1d99702e | 3714 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3715 | wxColour temp; |
3716 | PyObject * _obj1 = 0; | |
efc5f224 | 3717 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3718 | |
3719 | self = self; | |
f6bcfd97 | 3720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3721 | return NULL; |
1d99702e RD |
3722 | if (_argo0) { |
3723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3726 | return NULL; | |
3727 | } | |
3728 | } | |
f6bcfd97 BP |
3729 | { |
3730 | _arg1 = &temp; | |
3731 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3732 | return NULL; |
f6bcfd97 | 3733 | } |
cf694132 RD |
3734 | { |
3735 | wxPy_BEGIN_ALLOW_THREADS; | |
3736 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3737 | ||
3738 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3739 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3740 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3741 | _resultobj = Py_None; |
3742 | return _resultobj; | |
3743 | } | |
3744 | ||
3745 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3746 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3747 | PyObject * _resultobj; |
3748 | wxWindow * _arg0; | |
3749 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3750 | PyObject * _argo0 = 0; |
3751 | PyObject * _argo1 = 0; | |
efc5f224 | 3752 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3753 | |
3754 | self = self; | |
efc5f224 | 3755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3756 | return NULL; |
1d99702e RD |
3757 | if (_argo0) { |
3758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3761 | return NULL; | |
3762 | } | |
3763 | } | |
1d99702e RD |
3764 | if (_argo1) { |
3765 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3766 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3768 | return NULL; | |
3769 | } | |
3770 | } | |
cf694132 RD |
3771 | { |
3772 | wxPy_BEGIN_ALLOW_THREADS; | |
3773 | wxWindow_SetConstraints(_arg0,_arg1); | |
3774 | ||
3775 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3776 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3777 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3778 | _resultobj = Py_None; |
3779 | return _resultobj; | |
3780 | } | |
3781 | ||
2f90df85 RD |
3782 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3783 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3784 | PyObject * _resultobj; | |
3785 | wxWindow * _arg0; | |
3786 | wxLayoutConstraints * _arg1; | |
3787 | PyObject * _argo0 = 0; | |
3788 | PyObject * _argo1 = 0; | |
3789 | char *_kwnames[] = { "self","constraints", NULL }; | |
3790 | ||
3791 | self = self; | |
3792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3793 | return NULL; | |
3794 | if (_argo0) { | |
3795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3798 | return NULL; | |
3799 | } | |
3800 | } | |
3801 | if (_argo1) { | |
3802 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3803 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3805 | return NULL; | |
3806 | } | |
3807 | } | |
3808 | { | |
3809 | wxPy_BEGIN_ALLOW_THREADS; | |
3810 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3811 | ||
3812 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3813 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3814 | } Py_INCREF(Py_None); |
3815 | _resultobj = Py_None; | |
3816 | return _resultobj; | |
3817 | } | |
3818 | ||
8ab979d7 | 3819 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3820 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3821 | PyObject * _resultobj; |
3822 | wxWindow * _arg0; | |
1d99702e | 3823 | PyObject * _argo0 = 0; |
efc5f224 | 3824 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3825 | |
3826 | self = self; | |
efc5f224 | 3827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3828 | return NULL; |
1d99702e RD |
3829 | if (_argo0) { |
3830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3833 | return NULL; | |
3834 | } | |
3835 | } | |
cf694132 RD |
3836 | { |
3837 | wxPy_BEGIN_ALLOW_THREADS; | |
3838 | wxWindow_SetFocus(_arg0); | |
3839 | ||
3840 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3841 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3842 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3843 | _resultobj = Py_None; |
3844 | return _resultobj; | |
3845 | } | |
3846 | ||
2f90df85 RD |
3847 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3848 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3849 | PyObject * _resultobj; | |
3850 | bool _result; | |
3851 | wxWindow * _arg0; | |
3852 | PyObject * _argo0 = 0; | |
3853 | char *_kwnames[] = { "self", NULL }; | |
3854 | ||
3855 | self = self; | |
3856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3857 | return NULL; | |
3858 | if (_argo0) { | |
3859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3862 | return NULL; | |
3863 | } | |
3864 | } | |
3865 | { | |
3866 | wxPy_BEGIN_ALLOW_THREADS; | |
3867 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3868 | ||
3869 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3870 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3871 | } _resultobj = Py_BuildValue("i",_result); |
3872 | return _resultobj; | |
3873 | } | |
3874 | ||
8ab979d7 | 3875 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 3876 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3877 | PyObject * _resultobj; |
3878 | wxWindow * _arg0; | |
3879 | wxFont * _arg1; | |
1d99702e RD |
3880 | PyObject * _argo0 = 0; |
3881 | PyObject * _argo1 = 0; | |
efc5f224 | 3882 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
3883 | |
3884 | self = self; | |
efc5f224 | 3885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3886 | return NULL; |
1d99702e RD |
3887 | if (_argo0) { |
3888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3891 | return NULL; | |
3892 | } | |
3893 | } | |
1d99702e RD |
3894 | if (_argo1) { |
3895 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3896 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
3897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3898 | return NULL; | |
3899 | } | |
3900 | } | |
cf694132 RD |
3901 | { |
3902 | wxPy_BEGIN_ALLOW_THREADS; | |
3903 | wxWindow_SetFont(_arg0,*_arg1); | |
3904 | ||
3905 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3906 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3907 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3908 | _resultobj = Py_None; |
3909 | return _resultobj; | |
3910 | } | |
3911 | ||
3912 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 3913 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3914 | PyObject * _resultobj; |
3915 | wxWindow * _arg0; | |
3916 | wxColour * _arg1; | |
1d99702e | 3917 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3918 | wxColour temp; |
3919 | PyObject * _obj1 = 0; | |
efc5f224 | 3920 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3921 | |
3922 | self = self; | |
f6bcfd97 | 3923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3924 | return NULL; |
1d99702e RD |
3925 | if (_argo0) { |
3926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
3929 | return NULL; | |
3930 | } | |
3931 | } | |
f6bcfd97 BP |
3932 | { |
3933 | _arg1 = &temp; | |
3934 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3935 | return NULL; |
f6bcfd97 | 3936 | } |
cf694132 RD |
3937 | { |
3938 | wxPy_BEGIN_ALLOW_THREADS; | |
3939 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3940 | ||
3941 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3942 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3943 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3944 | _resultobj = Py_None; |
3945 | return _resultobj; | |
3946 | } | |
3947 | ||
3948 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 3949 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3950 | PyObject * _resultobj; |
3951 | wxWindow * _arg0; | |
3952 | int _arg1; | |
1d99702e | 3953 | PyObject * _argo0 = 0; |
efc5f224 | 3954 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
3955 | |
3956 | self = self; | |
efc5f224 | 3957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3958 | return NULL; |
1d99702e RD |
3959 | if (_argo0) { |
3960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
3963 | return NULL; | |
3964 | } | |
3965 | } | |
cf694132 RD |
3966 | { |
3967 | wxPy_BEGIN_ALLOW_THREADS; | |
3968 | wxWindow_SetId(_arg0,_arg1); | |
3969 | ||
3970 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3971 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3972 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3973 | _resultobj = Py_None; |
3974 | return _resultobj; | |
3975 | } | |
3976 | ||
3977 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 3978 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3979 | PyObject * _resultobj; |
3980 | wxWindow * _arg0; | |
3981 | wxString * _arg1; | |
1d99702e | 3982 | PyObject * _argo0 = 0; |
8ab979d7 | 3983 | PyObject * _obj1 = 0; |
efc5f224 | 3984 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
3985 | |
3986 | self = self; | |
efc5f224 | 3987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3988 | return NULL; |
1d99702e RD |
3989 | if (_argo0) { |
3990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
3993 | return NULL; | |
3994 | } | |
3995 | } | |
3996 | { | |
2cd2fac8 RD |
3997 | #if PYTHON_API_VERSION >= 1009 |
3998 | char* tmpPtr; int tmpSize; | |
3999 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4000 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4001 | return NULL; |
4002 | } | |
4003 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4004 | return NULL; | |
4005 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4006 | #else | |
8ab979d7 RD |
4007 | if (!PyString_Check(_obj1)) { |
4008 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4009 | return NULL; | |
4010 | } | |
2cd2fac8 RD |
4011 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4012 | #endif | |
8ab979d7 | 4013 | } |
cf694132 RD |
4014 | { |
4015 | wxPy_BEGIN_ALLOW_THREADS; | |
4016 | wxWindow_SetName(_arg0,*_arg1); | |
4017 | ||
4018 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4019 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4020 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4021 | _resultobj = Py_None; |
4022 | { | |
4023 | if (_obj1) | |
4024 | delete _arg1; | |
4025 | } | |
4026 | return _resultobj; | |
4027 | } | |
4028 | ||
8ab979d7 | 4029 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4030 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4031 | PyObject * _resultobj; |
4032 | wxWindow * _arg0; | |
4033 | int _arg1; | |
4034 | int _arg2; | |
4035 | int _arg3; | |
4036 | int _arg4; | |
eb715945 | 4037 | int _arg5 = (int ) TRUE; |
1d99702e | 4038 | PyObject * _argo0 = 0; |
efc5f224 | 4039 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4040 | |
4041 | self = self; | |
eb715945 | 4042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4043 | return NULL; |
1d99702e RD |
4044 | if (_argo0) { |
4045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4048 | return NULL; | |
4049 | } | |
4050 | } | |
cf694132 RD |
4051 | { |
4052 | wxPy_BEGIN_ALLOW_THREADS; | |
4053 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4054 | ||
4055 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4056 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4057 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4058 | _resultobj = Py_None; |
4059 | return _resultobj; | |
4060 | } | |
4061 | ||
4062 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4063 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4064 | PyObject * _resultobj; |
4065 | wxWindow * _arg0; | |
4066 | int _arg1; | |
4067 | int _arg2; | |
1d99702e RD |
4068 | bool _arg3 = (bool ) TRUE; |
4069 | PyObject * _argo0 = 0; | |
4070 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4071 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4072 | |
4073 | self = self; | |
efc5f224 | 4074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4075 | return NULL; |
1d99702e RD |
4076 | if (_argo0) { |
4077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4080 | return NULL; | |
4081 | } | |
4082 | } | |
4083 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
4084 | { |
4085 | wxPy_BEGIN_ALLOW_THREADS; | |
4086 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4087 | ||
4088 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4089 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4090 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4091 | _resultobj = Py_None; |
4092 | return _resultobj; | |
4093 | } | |
4094 | ||
4095 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4096 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4097 | PyObject * _resultobj; |
4098 | wxWindow * _arg0; | |
4099 | int _arg1; | |
4100 | int _arg2; | |
4101 | int _arg3; | |
4102 | int _arg4; | |
1d99702e RD |
4103 | int _arg5 = (int ) wxSIZE_AUTO; |
4104 | PyObject * _argo0 = 0; | |
efc5f224 | 4105 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4106 | |
4107 | self = self; | |
efc5f224 | 4108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4109 | return NULL; |
1d99702e RD |
4110 | if (_argo0) { |
4111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4114 | return NULL; | |
4115 | } | |
4116 | } | |
cf694132 RD |
4117 | { |
4118 | wxPy_BEGIN_ALLOW_THREADS; | |
4119 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4120 | ||
4121 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4122 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4123 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4124 | _resultobj = Py_None; |
4125 | return _resultobj; | |
4126 | } | |
4127 | ||
4128 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4129 | self->SetSize(size); |
8ab979d7 | 4130 | } |
efc5f224 | 4131 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4132 | PyObject * _resultobj; |
4133 | wxWindow * _arg0; | |
4134 | wxSize * _arg1; | |
1d99702e | 4135 | PyObject * _argo0 = 0; |
2f90df85 RD |
4136 | wxSize temp; |
4137 | PyObject * _obj1 = 0; | |
efc5f224 | 4138 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4139 | |
4140 | self = self; | |
2f90df85 | 4141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4142 | return NULL; |
1d99702e RD |
4143 | if (_argo0) { |
4144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4147 | return NULL; | |
4148 | } | |
4149 | } | |
2f90df85 RD |
4150 | { |
4151 | _arg1 = &temp; | |
4152 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4153 | return NULL; |
2f90df85 | 4154 | } |
cf694132 RD |
4155 | { |
4156 | wxPy_BEGIN_ALLOW_THREADS; | |
4157 | wxWindow_SetSize(_arg0,*_arg1); | |
4158 | ||
4159 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4160 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4161 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4162 | _resultobj = Py_None; |
4163 | return _resultobj; | |
4164 | } | |
4165 | ||
4166 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
b7e72427 | 4167 | self->Move(pos); |
8ab979d7 | 4168 | } |
efc5f224 | 4169 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4170 | PyObject * _resultobj; |
4171 | wxWindow * _arg0; | |
4172 | wxPoint * _arg1; | |
1d99702e | 4173 | PyObject * _argo0 = 0; |
2f90df85 RD |
4174 | wxPoint temp; |
4175 | PyObject * _obj1 = 0; | |
efc5f224 | 4176 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4177 | |
4178 | self = self; | |
2f90df85 | 4179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4180 | return NULL; |
1d99702e RD |
4181 | if (_argo0) { |
4182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4185 | return NULL; | |
4186 | } | |
4187 | } | |
2f90df85 RD |
4188 | { |
4189 | _arg1 = &temp; | |
4190 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4191 | return NULL; |
2f90df85 | 4192 | } |
cf694132 RD |
4193 | { |
4194 | wxPy_BEGIN_ALLOW_THREADS; | |
4195 | wxWindow_SetPosition(_arg0,*_arg1); | |
4196 | ||
4197 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4198 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4199 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4200 | _resultobj = Py_None; |
4201 | return _resultobj; | |
4202 | } | |
4203 | ||
2cd2fac8 RD |
4204 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4205 | self->SetSize(rect, sizeFlags); | |
4206 | } | |
4207 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4208 | PyObject * _resultobj; | |
4209 | wxWindow * _arg0; | |
4210 | wxRect * _arg1; | |
4211 | int _arg2 = (int ) wxSIZE_AUTO; | |
4212 | PyObject * _argo0 = 0; | |
4213 | wxRect temp; | |
4214 | PyObject * _obj1 = 0; | |
4215 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4216 | ||
4217 | self = self; | |
4218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4219 | return NULL; | |
4220 | if (_argo0) { | |
4221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4224 | return NULL; | |
4225 | } | |
4226 | } | |
4227 | { | |
4228 | _arg1 = &temp; | |
4229 | if (! wxRect_helper(_obj1, &_arg1)) | |
4230 | return NULL; | |
4231 | } | |
4232 | { | |
4233 | wxPy_BEGIN_ALLOW_THREADS; | |
4234 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4235 | ||
4236 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4237 | if (PyErr_Occurred()) return NULL; |
2cd2fac8 RD |
4238 | } Py_INCREF(Py_None); |
4239 | _resultobj = Py_None; | |
4240 | return _resultobj; | |
4241 | } | |
4242 | ||
8ab979d7 | 4243 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4244 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4245 | PyObject * _resultobj; |
4246 | wxWindow * _arg0; | |
1d99702e RD |
4247 | int _arg1 = (int ) -1; |
4248 | int _arg2 = (int ) -1; | |
4249 | int _arg3 = (int ) -1; | |
4250 | int _arg4 = (int ) -1; | |
4251 | int _arg5 = (int ) -1; | |
4252 | int _arg6 = (int ) -1; | |
4253 | PyObject * _argo0 = 0; | |
efc5f224 | 4254 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4255 | |
4256 | self = self; | |
efc5f224 | 4257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4258 | return NULL; |
1d99702e RD |
4259 | if (_argo0) { |
4260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4263 | return NULL; | |
4264 | } | |
4265 | } | |
cf694132 RD |
4266 | { |
4267 | wxPy_BEGIN_ALLOW_THREADS; | |
4268 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4269 | ||
4270 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4271 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4272 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4273 | _resultobj = Py_None; |
4274 | return _resultobj; | |
4275 | } | |
4276 | ||
af309447 | 4277 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4278 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4279 | PyObject * _resultobj; |
4280 | wxWindow * _arg0; | |
4281 | int _arg1; | |
4282 | int _arg2; | |
1d99702e | 4283 | PyObject * _argo0 = 0; |
efc5f224 | 4284 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4285 | |
4286 | self = self; | |
efc5f224 | 4287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4288 | return NULL; |
1d99702e RD |
4289 | if (_argo0) { |
4290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4293 | return NULL; | |
4294 | } | |
4295 | } | |
cf694132 RD |
4296 | { |
4297 | wxPy_BEGIN_ALLOW_THREADS; | |
4298 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4299 | ||
4300 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4301 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4302 | } Py_INCREF(Py_None); |
af309447 RD |
4303 | _resultobj = Py_None; |
4304 | return _resultobj; | |
4305 | } | |
4306 | ||
4307 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4308 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4309 | PyObject * _resultobj; |
4310 | wxWindow * _arg0; | |
4311 | wxSize * _arg1; | |
1d99702e | 4312 | PyObject * _argo0 = 0; |
2f90df85 RD |
4313 | wxSize temp; |
4314 | PyObject * _obj1 = 0; | |
efc5f224 | 4315 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4316 | |
4317 | self = self; | |
2f90df85 | 4318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4319 | return NULL; |
1d99702e RD |
4320 | if (_argo0) { |
4321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4324 | return NULL; | |
4325 | } | |
4326 | } | |
2f90df85 RD |
4327 | { |
4328 | _arg1 = &temp; | |
4329 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4330 | return NULL; |
2f90df85 | 4331 | } |
cf694132 RD |
4332 | { |
4333 | wxPy_BEGIN_ALLOW_THREADS; | |
4334 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4335 | ||
4336 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4337 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4338 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4339 | _resultobj = Py_None; |
4340 | return _resultobj; | |
4341 | } | |
4342 | ||
4343 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4344 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4345 | PyObject * _resultobj; |
4346 | wxWindow * _arg0; | |
4347 | wxCursor * _arg1; | |
1d99702e RD |
4348 | PyObject * _argo0 = 0; |
4349 | PyObject * _argo1 = 0; | |
efc5f224 | 4350 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4351 | |
4352 | self = self; | |
efc5f224 | 4353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4354 | return NULL; |
1d99702e RD |
4355 | if (_argo0) { |
4356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4359 | return NULL; | |
4360 | } | |
4361 | } | |
1d99702e RD |
4362 | if (_argo1) { |
4363 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4364 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4366 | return NULL; | |
4367 | } | |
4368 | } | |
cf694132 RD |
4369 | { |
4370 | wxPy_BEGIN_ALLOW_THREADS; | |
4371 | wxWindow_SetCursor(_arg0,*_arg1); | |
4372 | ||
4373 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4374 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4375 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4376 | _resultobj = Py_None; |
4377 | return _resultobj; | |
4378 | } | |
4379 | ||
1afc06c2 RD |
4380 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4381 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4382 | PyObject * _resultobj; | |
4383 | wxWindow * _arg0; | |
4384 | wxEvtHandler * _arg1; | |
4385 | PyObject * _argo0 = 0; | |
4386 | PyObject * _argo1 = 0; | |
4387 | char *_kwnames[] = { "self","handler", NULL }; | |
4388 | ||
4389 | self = self; | |
4390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4391 | return NULL; | |
4392 | if (_argo0) { | |
4393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4396 | return NULL; | |
4397 | } | |
4398 | } | |
4399 | if (_argo1) { | |
4400 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4401 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4403 | return NULL; | |
4404 | } | |
4405 | } | |
4406 | { | |
4407 | wxPy_BEGIN_ALLOW_THREADS; | |
4408 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4409 | ||
4410 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4411 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4412 | } Py_INCREF(Py_None); |
4413 | _resultobj = Py_None; | |
4414 | return _resultobj; | |
4415 | } | |
4416 | ||
5e40f9dd RD |
4417 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4418 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4419 | PyObject * _resultobj; | |
4420 | wxWindow * _arg0; | |
4421 | long _arg1; | |
4422 | PyObject * _argo0 = 0; | |
4423 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4424 | ||
4425 | self = self; | |
4426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4427 | return NULL; | |
4428 | if (_argo0) { | |
4429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4432 | return NULL; | |
4433 | } | |
4434 | } | |
4435 | { | |
4436 | wxPy_BEGIN_ALLOW_THREADS; | |
4437 | wxWindow_SetExtraStyle(_arg0,_arg1); | |
4438 | ||
4439 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4440 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4441 | } Py_INCREF(Py_None); |
4442 | _resultobj = Py_None; | |
4443 | return _resultobj; | |
4444 | } | |
4445 | ||
8ab979d7 | 4446 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4447 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4448 | PyObject * _resultobj; |
4449 | wxWindow * _arg0; | |
4450 | wxString * _arg1; | |
1d99702e | 4451 | PyObject * _argo0 = 0; |
8ab979d7 | 4452 | PyObject * _obj1 = 0; |
efc5f224 | 4453 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4454 | |
4455 | self = self; | |
efc5f224 | 4456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4457 | return NULL; |
1d99702e RD |
4458 | if (_argo0) { |
4459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4462 | return NULL; | |
4463 | } | |
4464 | } | |
4465 | { | |
2cd2fac8 RD |
4466 | #if PYTHON_API_VERSION >= 1009 |
4467 | char* tmpPtr; int tmpSize; | |
4468 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4469 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4470 | return NULL; |
4471 | } | |
4472 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4473 | return NULL; | |
4474 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4475 | #else | |
8ab979d7 RD |
4476 | if (!PyString_Check(_obj1)) { |
4477 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4478 | return NULL; | |
4479 | } | |
2cd2fac8 RD |
4480 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4481 | #endif | |
8ab979d7 | 4482 | } |
cf694132 RD |
4483 | { |
4484 | wxPy_BEGIN_ALLOW_THREADS; | |
4485 | wxWindow_SetTitle(_arg0,*_arg1); | |
4486 | ||
4487 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4488 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4489 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4490 | _resultobj = Py_None; |
4491 | { | |
4492 | if (_obj1) | |
4493 | delete _arg1; | |
4494 | } | |
4495 | return _resultobj; | |
4496 | } | |
4497 | ||
4498 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4499 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4500 | PyObject * _resultobj; |
4501 | bool _result; | |
4502 | wxWindow * _arg0; | |
4503 | bool _arg1; | |
1d99702e | 4504 | PyObject * _argo0 = 0; |
8ab979d7 | 4505 | int tempbool1; |
efc5f224 | 4506 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4507 | |
4508 | self = self; | |
efc5f224 | 4509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4510 | return NULL; |
1d99702e RD |
4511 | if (_argo0) { |
4512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4515 | return NULL; | |
4516 | } | |
4517 | } | |
4518 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4519 | { |
4520 | wxPy_BEGIN_ALLOW_THREADS; | |
4521 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4522 | ||
4523 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4524 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4525 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4526 | return _resultobj; |
4527 | } | |
4528 | ||
4529 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4530 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4531 | PyObject * _resultobj; |
4532 | bool _result; | |
4533 | wxWindow * _arg0; | |
1d99702e | 4534 | PyObject * _argo0 = 0; |
efc5f224 | 4535 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4536 | |
4537 | self = self; | |
efc5f224 | 4538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4539 | return NULL; |
1d99702e RD |
4540 | if (_argo0) { |
4541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4544 | return NULL; | |
4545 | } | |
4546 | } | |
cf694132 RD |
4547 | { |
4548 | wxPy_BEGIN_ALLOW_THREADS; | |
4549 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4550 | ||
4551 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4552 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4553 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4554 | return _resultobj; |
4555 | } | |
4556 | ||
4557 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4558 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4559 | PyObject * _resultobj; |
4560 | bool _result; | |
4561 | wxWindow * _arg0; | |
1d99702e | 4562 | PyObject * _argo0 = 0; |
efc5f224 | 4563 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4564 | |
4565 | self = self; | |
efc5f224 | 4566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4567 | return NULL; |
1d99702e RD |
4568 | if (_argo0) { |
4569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4572 | return NULL; | |
4573 | } | |
4574 | } | |
cf694132 RD |
4575 | { |
4576 | wxPy_BEGIN_ALLOW_THREADS; | |
4577 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4578 | ||
4579 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4580 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4581 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4582 | return _resultobj; |
4583 | } | |
4584 | ||
4585 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4586 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4587 | PyObject * _resultobj; |
4588 | bool _result; | |
4589 | wxWindow * _arg0; | |
1d99702e | 4590 | PyObject * _argo0 = 0; |
efc5f224 | 4591 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4592 | |
4593 | self = self; | |
efc5f224 | 4594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4595 | return NULL; |
1d99702e RD |
4596 | if (_argo0) { |
4597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4600 | return NULL; | |
4601 | } | |
4602 | } | |
cf694132 RD |
4603 | { |
4604 | wxPy_BEGIN_ALLOW_THREADS; | |
4605 | _result = (bool )wxWindow_Validate(_arg0); | |
4606 | ||
4607 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4608 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4609 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4610 | return _resultobj; |
4611 | } | |
4612 | ||
4613 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4614 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4615 | PyObject * _resultobj; |
4616 | wxWindow * _arg0; | |
4617 | int _arg1; | |
4618 | int _arg2; | |
1d99702e | 4619 | PyObject * _argo0 = 0; |
efc5f224 | 4620 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4621 | |
4622 | self = self; | |
efc5f224 | 4623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4624 | return NULL; |
1d99702e RD |
4625 | if (_argo0) { |
4626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4629 | return NULL; | |
4630 | } | |
4631 | } | |
cf694132 RD |
4632 | { |
4633 | wxPy_BEGIN_ALLOW_THREADS; | |
4634 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4635 | ||
4636 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4637 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4638 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4639 | _resultobj = Py_None; |
4640 | return _resultobj; | |
4641 | } | |
4642 | ||
b8b8dda7 | 4643 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4644 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4645 | PyObject * _resultobj; |
4646 | wxPoint * _result; | |
4647 | wxWindow * _arg0; | |
4648 | wxPoint * _arg1; | |
1d99702e | 4649 | PyObject * _argo0 = 0; |
2f90df85 RD |
4650 | wxPoint temp; |
4651 | PyObject * _obj1 = 0; | |
efc5f224 | 4652 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4653 | char _ptemp[128]; |
4654 | ||
4655 | self = self; | |
2f90df85 | 4656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4657 | return NULL; |
1d99702e RD |
4658 | if (_argo0) { |
4659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4662 | return NULL; | |
4663 | } | |
4664 | } | |
2f90df85 RD |
4665 | { |
4666 | _arg1 = &temp; | |
4667 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4668 | return NULL; |
2f90df85 | 4669 | } |
cf694132 RD |
4670 | { |
4671 | wxPy_BEGIN_ALLOW_THREADS; | |
4672 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4673 | ||
4674 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4675 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4676 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4677 | _resultobj = Py_BuildValue("s",_ptemp); |
4678 | return _resultobj; | |
4679 | } | |
4680 | ||
4681 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4682 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4683 | PyObject * _resultobj; |
4684 | wxSize * _result; | |
4685 | wxWindow * _arg0; | |
4686 | wxSize * _arg1; | |
1d99702e | 4687 | PyObject * _argo0 = 0; |
2f90df85 RD |
4688 | wxSize temp; |
4689 | PyObject * _obj1 = 0; | |
efc5f224 | 4690 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4691 | char _ptemp[128]; |
4692 | ||
4693 | self = self; | |
2f90df85 | 4694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4695 | return NULL; |
1d99702e RD |
4696 | if (_argo0) { |
4697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4700 | return NULL; | |
4701 | } | |
4702 | } | |
2f90df85 RD |
4703 | { |
4704 | _arg1 = &temp; | |
4705 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4706 | return NULL; |
2f90df85 | 4707 | } |
cf694132 RD |
4708 | { |
4709 | wxPy_BEGIN_ALLOW_THREADS; | |
4710 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4711 | ||
4712 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4713 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4714 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4715 | _resultobj = Py_BuildValue("s",_ptemp); |
4716 | return _resultobj; | |
4717 | } | |
4718 | ||
4719 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4720 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4721 | PyObject * _resultobj; |
4722 | wxPoint * _result; | |
4723 | wxWindow * _arg0; | |
4724 | wxPoint * _arg1; | |
1d99702e | 4725 | PyObject * _argo0 = 0; |
2f90df85 RD |
4726 | wxPoint temp; |
4727 | PyObject * _obj1 = 0; | |
efc5f224 | 4728 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4729 | char _ptemp[128]; |
4730 | ||
4731 | self = self; | |
2f90df85 | 4732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4733 | return NULL; |
1d99702e RD |
4734 | if (_argo0) { |
4735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4738 | return NULL; | |
4739 | } | |
4740 | } | |
2f90df85 RD |
4741 | { |
4742 | _arg1 = &temp; | |
4743 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4744 | return NULL; |
2f90df85 | 4745 | } |
cf694132 RD |
4746 | { |
4747 | wxPy_BEGIN_ALLOW_THREADS; | |
4748 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4749 | ||
4750 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4751 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4752 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4753 | _resultobj = Py_BuildValue("s",_ptemp); |
4754 | return _resultobj; | |
4755 | } | |
4756 | ||
4757 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4758 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4759 | PyObject * _resultobj; |
4760 | wxSize * _result; | |
4761 | wxWindow * _arg0; | |
4762 | wxSize * _arg1; | |
1d99702e | 4763 | PyObject * _argo0 = 0; |
2f90df85 RD |
4764 | wxSize temp; |
4765 | PyObject * _obj1 = 0; | |
efc5f224 | 4766 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4767 | char _ptemp[128]; |
4768 | ||
4769 | self = self; | |
2f90df85 | 4770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4771 | return NULL; |
1d99702e RD |
4772 | if (_argo0) { |
4773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4776 | return NULL; | |
4777 | } | |
4778 | } | |
2f90df85 RD |
4779 | { |
4780 | _arg1 = &temp; | |
4781 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4782 | return NULL; |
2f90df85 | 4783 | } |
cf694132 RD |
4784 | { |
4785 | wxPy_BEGIN_ALLOW_THREADS; | |
4786 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4787 | ||
4788 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4789 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4790 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4791 | _resultobj = Py_BuildValue("s",_ptemp); |
4792 | return _resultobj; | |
4793 | } | |
4794 | ||
af309447 | 4795 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4796 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4797 | PyObject * _resultobj; |
4798 | wxWindow * _arg0; | |
4799 | wxString * _arg1; | |
1d99702e | 4800 | PyObject * _argo0 = 0; |
af309447 | 4801 | PyObject * _obj1 = 0; |
efc5f224 | 4802 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4803 | |
4804 | self = self; | |
efc5f224 | 4805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4806 | return NULL; |
1d99702e RD |
4807 | if (_argo0) { |
4808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4811 | return NULL; | |
4812 | } | |
4813 | } | |
4814 | { | |
2cd2fac8 RD |
4815 | #if PYTHON_API_VERSION >= 1009 |
4816 | char* tmpPtr; int tmpSize; | |
4817 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4818 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4819 | return NULL; |
4820 | } | |
4821 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4822 | return NULL; | |
4823 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4824 | #else | |
af309447 RD |
4825 | if (!PyString_Check(_obj1)) { |
4826 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4827 | return NULL; | |
4828 | } | |
2cd2fac8 RD |
4829 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4830 | #endif | |
af309447 | 4831 | } |
cf694132 RD |
4832 | { |
4833 | wxPy_BEGIN_ALLOW_THREADS; | |
4834 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4835 | ||
4836 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4837 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4838 | } Py_INCREF(Py_None); |
af309447 RD |
4839 | _resultobj = Py_None; |
4840 | { | |
4841 | if (_obj1) | |
4842 | delete _arg1; | |
4843 | } | |
4844 | return _resultobj; | |
4845 | } | |
4846 | ||
4847 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4848 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4849 | PyObject * _resultobj; |
4850 | wxWindow * _arg0; | |
4851 | wxToolTip * _arg1; | |
1d99702e RD |
4852 | PyObject * _argo0 = 0; |
4853 | PyObject * _argo1 = 0; | |
efc5f224 | 4854 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4855 | |
4856 | self = self; | |
efc5f224 | 4857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4858 | return NULL; |
1d99702e RD |
4859 | if (_argo0) { |
4860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4863 | return NULL; | |
4864 | } | |
4865 | } | |
1d99702e RD |
4866 | if (_argo1) { |
4867 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4868 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4870 | return NULL; | |
4871 | } | |
4872 | } | |
cf694132 RD |
4873 | { |
4874 | wxPy_BEGIN_ALLOW_THREADS; | |
4875 | wxWindow_SetToolTip(_arg0,_arg1); | |
4876 | ||
4877 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4878 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4879 | } Py_INCREF(Py_None); |
af309447 RD |
4880 | _resultobj = Py_None; |
4881 | return _resultobj; | |
4882 | } | |
4883 | ||
4884 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 4885 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4886 | PyObject * _resultobj; |
4887 | wxToolTip * _result; | |
4888 | wxWindow * _arg0; | |
1d99702e | 4889 | PyObject * _argo0 = 0; |
efc5f224 | 4890 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
4891 | |
4892 | self = self; | |
efc5f224 | 4893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 4894 | return NULL; |
1d99702e RD |
4895 | if (_argo0) { |
4896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4899 | return NULL; | |
4900 | } | |
4901 | } | |
cf694132 RD |
4902 | { |
4903 | wxPy_BEGIN_ALLOW_THREADS; | |
4904 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4905 | ||
4906 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4907 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 4908 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
4909 | return _resultobj; |
4910 | } | |
4911 | ||
2f90df85 RD |
4912 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
4913 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4914 | PyObject * _resultobj; | |
4915 | wxWindow * _arg0; | |
4916 | wxSizer * _arg1; | |
4917 | PyObject * _argo0 = 0; | |
4918 | PyObject * _argo1 = 0; | |
4919 | char *_kwnames[] = { "self","sizer", NULL }; | |
4920 | ||
4921 | self = self; | |
4922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4923 | return NULL; | |
4924 | if (_argo0) { | |
4925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4928 | return NULL; | |
4929 | } | |
4930 | } | |
4931 | if (_argo1) { | |
4932 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4933 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4935 | return NULL; | |
4936 | } | |
4937 | } | |
4938 | { | |
4939 | wxPy_BEGIN_ALLOW_THREADS; | |
4940 | wxWindow_SetSizer(_arg0,_arg1); | |
4941 | ||
4942 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4943 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4944 | } Py_INCREF(Py_None); |
4945 | _resultobj = Py_None; | |
4946 | return _resultobj; | |
4947 | } | |
4948 | ||
f6bcfd97 BP |
4949 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
4950 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4951 | PyObject * _resultobj; | |
4952 | wxSizer * _result; | |
4953 | wxWindow * _arg0; | |
4954 | PyObject * _argo0 = 0; | |
4955 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
4956 | |
4957 | self = self; | |
4958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
4959 | return NULL; | |
4960 | if (_argo0) { | |
4961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
4964 | return NULL; | |
4965 | } | |
4966 | } | |
4967 | { | |
4968 | wxPy_BEGIN_ALLOW_THREADS; | |
4969 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
4970 | ||
4971 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4972 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 4973 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
4974 | return _resultobj; |
4975 | } | |
4976 | ||
2f90df85 RD |
4977 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
4978 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4979 | PyObject * _resultobj; | |
4980 | wxValidator * _result; | |
4981 | wxWindow * _arg0; | |
4982 | PyObject * _argo0 = 0; | |
4983 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
4984 | |
4985 | self = self; | |
4986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
4987 | return NULL; | |
4988 | if (_argo0) { | |
4989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
4992 | return NULL; | |
4993 | } | |
4994 | } | |
4995 | { | |
4996 | wxPy_BEGIN_ALLOW_THREADS; | |
4997 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
4998 | ||
4999 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5000 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5001 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5002 | return _resultobj; |
5003 | } | |
5004 | ||
5005 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5006 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5007 | PyObject * _resultobj; | |
5008 | wxWindow * _arg0; | |
5009 | wxValidator * _arg1; | |
5010 | PyObject * _argo0 = 0; | |
5011 | PyObject * _argo1 = 0; | |
5012 | char *_kwnames[] = { "self","validator", NULL }; | |
5013 | ||
5014 | self = self; | |
5015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5016 | return NULL; | |
5017 | if (_argo0) { | |
5018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5021 | return NULL; | |
5022 | } | |
5023 | } | |
5024 | if (_argo1) { | |
5025 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5026 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5028 | return NULL; | |
5029 | } | |
5030 | } | |
5031 | { | |
5032 | wxPy_BEGIN_ALLOW_THREADS; | |
5033 | wxWindow_SetValidator(_arg0,*_arg1); | |
5034 | ||
5035 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5036 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5037 | } Py_INCREF(Py_None); |
5038 | _resultobj = Py_None; | |
5039 | return _resultobj; | |
5040 | } | |
5041 | ||
b1462dfa RD |
5042 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5043 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5044 | PyObject * _resultobj; | |
5045 | wxWindow * _arg0; | |
5046 | wxDropTarget * _arg1; | |
5047 | PyObject * _argo0 = 0; | |
5048 | PyObject * _argo1 = 0; | |
5049 | char *_kwnames[] = { "self","target", NULL }; | |
5050 | ||
5051 | self = self; | |
5052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5053 | return NULL; | |
5054 | if (_argo0) { | |
5055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5058 | return NULL; | |
5059 | } | |
5060 | } | |
5061 | if (_argo1) { | |
5062 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5063 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5065 | return NULL; | |
5066 | } | |
5067 | } | |
5068 | { | |
5069 | wxPy_BEGIN_ALLOW_THREADS; | |
5070 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5071 | ||
5072 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5073 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5074 | } Py_INCREF(Py_None); |
5075 | _resultobj = Py_None; | |
5076 | return _resultobj; | |
5077 | } | |
5078 | ||
5079 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5080 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5081 | PyObject * _resultobj; | |
5082 | wxDropTarget * _result; | |
5083 | wxWindow * _arg0; | |
5084 | PyObject * _argo0 = 0; | |
5085 | char *_kwnames[] = { "self", NULL }; | |
5086 | char _ptemp[128]; | |
5087 | ||
5088 | self = self; | |
5089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5090 | return NULL; | |
5091 | if (_argo0) { | |
5092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5095 | return NULL; | |
5096 | } | |
5097 | } | |
5098 | { | |
5099 | wxPy_BEGIN_ALLOW_THREADS; | |
5100 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5101 | ||
5102 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5103 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5104 | } if (_result) { |
5105 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5106 | _resultobj = Py_BuildValue("s",_ptemp); | |
5107 | } else { | |
5108 | Py_INCREF(Py_None); | |
5109 | _resultobj = Py_None; | |
5110 | } | |
5111 | return _resultobj; | |
5112 | } | |
5113 | ||
694759cf RD |
5114 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5115 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5116 | PyObject * _resultobj; | |
5117 | wxSize * _result; | |
5118 | wxWindow * _arg0; | |
5119 | PyObject * _argo0 = 0; | |
5120 | char *_kwnames[] = { "self", NULL }; | |
5121 | char _ptemp[128]; | |
5122 | ||
5123 | self = self; | |
5124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5125 | return NULL; | |
5126 | if (_argo0) { | |
5127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5130 | return NULL; | |
5131 | } | |
5132 | } | |
5133 | { | |
5134 | wxPy_BEGIN_ALLOW_THREADS; | |
5135 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5136 | ||
5137 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5138 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5139 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5140 | _resultobj = Py_BuildValue("s",_ptemp); | |
5141 | return _resultobj; | |
5142 | } | |
5143 | ||
a1df7a95 RD |
5144 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5145 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5146 | PyObject * _resultobj; | |
5147 | wxWindow * _arg0; | |
5148 | wxCaret * _arg1; | |
5149 | PyObject * _argo0 = 0; | |
5150 | PyObject * _argo1 = 0; | |
5151 | char *_kwnames[] = { "self","caret", NULL }; | |
5152 | ||
5153 | self = self; | |
5154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5155 | return NULL; | |
5156 | if (_argo0) { | |
5157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5160 | return NULL; | |
5161 | } | |
5162 | } | |
5163 | if (_argo1) { | |
5164 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5165 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5167 | return NULL; | |
5168 | } | |
5169 | } | |
5170 | { | |
5171 | wxPy_BEGIN_ALLOW_THREADS; | |
5172 | wxWindow_SetCaret(_arg0,_arg1); | |
5173 | ||
5174 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5175 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5176 | } Py_INCREF(Py_None); |
5177 | _resultobj = Py_None; | |
5178 | return _resultobj; | |
5179 | } | |
5180 | ||
5181 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5182 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5183 | PyObject * _resultobj; | |
5184 | wxCaret * _result; | |
5185 | wxWindow * _arg0; | |
5186 | PyObject * _argo0 = 0; | |
5187 | char *_kwnames[] = { "self", NULL }; | |
5188 | char _ptemp[128]; | |
5189 | ||
5190 | self = self; | |
5191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5192 | return NULL; | |
5193 | if (_argo0) { | |
5194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5197 | return NULL; | |
5198 | } | |
5199 | } | |
5200 | { | |
5201 | wxPy_BEGIN_ALLOW_THREADS; | |
5202 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5203 | ||
5204 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5205 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5206 | } if (_result) { |
5207 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5208 | _resultobj = Py_BuildValue("s",_ptemp); | |
5209 | } else { | |
5210 | Py_INCREF(Py_None); | |
5211 | _resultobj = Py_None; | |
5212 | } | |
5213 | return _resultobj; | |
5214 | } | |
5215 | ||
10be44ac RD |
5216 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5217 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5218 | PyObject * _resultobj; | |
5219 | wxWindow * _arg0; | |
5220 | PyObject * _argo0 = 0; | |
5221 | char *_kwnames[] = { "self", NULL }; | |
5222 | ||
5223 | self = self; | |
5224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5225 | return NULL; | |
5226 | if (_argo0) { | |
5227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5230 | return NULL; | |
5231 | } | |
5232 | } | |
5233 | { | |
5234 | wxPy_BEGIN_ALLOW_THREADS; | |
5235 | wxWindow_Freeze(_arg0); | |
5236 | ||
5237 | wxPy_END_ALLOW_THREADS; | |
5238 | if (PyErr_Occurred()) return NULL; | |
5239 | } Py_INCREF(Py_None); | |
5240 | _resultobj = Py_None; | |
5241 | return _resultobj; | |
5242 | } | |
5243 | ||
5244 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5245 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5246 | PyObject * _resultobj; | |
5247 | wxWindow * _arg0; | |
5248 | PyObject * _argo0 = 0; | |
5249 | char *_kwnames[] = { "self", NULL }; | |
5250 | ||
5251 | self = self; | |
5252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5253 | return NULL; | |
5254 | if (_argo0) { | |
5255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5258 | return NULL; | |
5259 | } | |
5260 | } | |
5261 | { | |
5262 | wxPy_BEGIN_ALLOW_THREADS; | |
5263 | wxWindow_Thaw(_arg0); | |
5264 | ||
5265 | wxPy_END_ALLOW_THREADS; | |
5266 | if (PyErr_Occurred()) return NULL; | |
5267 | } Py_INCREF(Py_None); | |
5268 | _resultobj = Py_None; | |
5269 | return _resultobj; | |
5270 | } | |
5271 | ||
8ab979d7 RD |
5272 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5273 | wxPanel *src; | |
5274 | wxWindow *dest; | |
5275 | src = (wxPanel *) ptr; | |
5276 | dest = (wxWindow *) src; | |
5277 | return (void *) dest; | |
5278 | } | |
5279 | ||
5280 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5281 | wxPanel *src; | |
5282 | wxEvtHandler *dest; | |
5283 | src = (wxPanel *) ptr; | |
5284 | dest = (wxEvtHandler *) src; | |
5285 | return (void *) dest; | |
5286 | } | |
5287 | ||
9df61a29 RD |
5288 | static void *SwigwxPanelTowxObject(void *ptr) { |
5289 | wxPanel *src; | |
5290 | wxObject *dest; | |
5291 | src = (wxPanel *) ptr; | |
5292 | dest = (wxObject *) src; | |
5293 | return (void *) dest; | |
5294 | } | |
5295 | ||
8ab979d7 | 5296 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 5297 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5298 | PyObject * _resultobj; |
5299 | wxPanel * _result; | |
5300 | wxWindow * _arg0; | |
5301 | wxWindowID _arg1; | |
b68dc582 RD |
5302 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5303 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5304 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
5305 | char * _arg5 = (char *) "panel"; | |
5306 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5307 | wxPoint temp; |
5308 | PyObject * _obj2 = 0; | |
5309 | wxSize temp0; | |
5310 | PyObject * _obj3 = 0; | |
efc5f224 | 5311 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5312 | char _ptemp[128]; |
5313 | ||
5314 | self = self; | |
2f90df85 | 5315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5316 | return NULL; |
1d99702e RD |
5317 | if (_argo0) { |
5318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5321 | return NULL; | |
5322 | } | |
5323 | } | |
2f90df85 RD |
5324 | if (_obj2) |
5325 | { | |
5326 | _arg2 = &temp; | |
5327 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5328 | return NULL; |
2f90df85 RD |
5329 | } |
5330 | if (_obj3) | |
5331 | { | |
5332 | _arg3 = &temp0; | |
5333 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5334 | return NULL; |
2f90df85 | 5335 | } |
cf694132 RD |
5336 | { |
5337 | wxPy_BEGIN_ALLOW_THREADS; | |
5338 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5339 | ||
5340 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5341 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5342 | } if (_result) { |
5343 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5344 | _resultobj = Py_BuildValue("s",_ptemp); | |
5345 | } else { | |
5346 | Py_INCREF(Py_None); | |
5347 | _resultobj = Py_None; | |
5348 | } | |
8ab979d7 RD |
5349 | return _resultobj; |
5350 | } | |
5351 | ||
5352 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
efc5f224 | 5353 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5354 | PyObject * _resultobj; |
5355 | wxPanel * _arg0; | |
1d99702e | 5356 | PyObject * _argo0 = 0; |
efc5f224 | 5357 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5358 | |
5359 | self = self; | |
efc5f224 | 5360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 5361 | return NULL; |
1d99702e RD |
5362 | if (_argo0) { |
5363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
5365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
5366 | return NULL; | |
5367 | } | |
5368 | } | |
cf694132 RD |
5369 | { |
5370 | wxPy_BEGIN_ALLOW_THREADS; | |
5371 | wxPanel_InitDialog(_arg0); | |
5372 | ||
5373 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5374 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5375 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5376 | _resultobj = Py_None; |
5377 | return _resultobj; | |
5378 | } | |
5379 | ||
bb0054cd | 5380 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
efc5f224 | 5381 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5382 | PyObject * _resultobj; |
5383 | wxButton * _result; | |
5384 | wxPanel * _arg0; | |
1d99702e | 5385 | PyObject * _argo0 = 0; |
efc5f224 | 5386 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5387 | |
5388 | self = self; | |
efc5f224 | 5389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
bb0054cd | 5390 | return NULL; |
1d99702e RD |
5391 | if (_argo0) { |
5392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
5395 | return NULL; | |
5396 | } | |
5397 | } | |
5398 | { | |
5399 | wxPy_BEGIN_ALLOW_THREADS; | |
5400 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
5401 | ||
5402 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5403 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5404 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
5405 | return _resultobj; |
5406 | } | |
5407 | ||
5408 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
efc5f224 | 5409 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5410 | PyObject * _resultobj; |
5411 | wxPanel * _arg0; | |
5412 | wxButton * _arg1; | |
1d99702e RD |
5413 | PyObject * _argo0 = 0; |
5414 | PyObject * _argo1 = 0; | |
efc5f224 | 5415 | char *_kwnames[] = { "self","btn", NULL }; |
bb0054cd RD |
5416 | |
5417 | self = self; | |
efc5f224 | 5418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 5419 | return NULL; |
1d99702e RD |
5420 | if (_argo0) { |
5421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
5424 | return NULL; | |
5425 | } | |
5426 | } | |
1d99702e RD |
5427 | if (_argo1) { |
5428 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5429 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
bb0054cd RD |
5430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
5431 | return NULL; | |
5432 | } | |
5433 | } | |
5434 | { | |
5435 | wxPy_BEGIN_ALLOW_THREADS; | |
5436 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
5437 | ||
5438 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5439 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5440 | } Py_INCREF(Py_None); |
5441 | _resultobj = Py_None; | |
5442 | return _resultobj; | |
5443 | } | |
5444 | ||
8ab979d7 RD |
5445 | static void *SwigwxDialogTowxPanel(void *ptr) { |
5446 | wxDialog *src; | |
5447 | wxPanel *dest; | |
5448 | src = (wxDialog *) ptr; | |
5449 | dest = (wxPanel *) src; | |
5450 | return (void *) dest; | |
5451 | } | |
5452 | ||
5453 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
5454 | wxDialog *src; | |
5455 | wxWindow *dest; | |
5456 | src = (wxDialog *) ptr; | |
5457 | dest = (wxWindow *) src; | |
5458 | return (void *) dest; | |
5459 | } | |
5460 | ||
5461 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
5462 | wxDialog *src; | |
5463 | wxEvtHandler *dest; | |
5464 | src = (wxDialog *) ptr; | |
5465 | dest = (wxEvtHandler *) src; | |
5466 | return (void *) dest; | |
5467 | } | |
5468 | ||
9df61a29 RD |
5469 | static void *SwigwxDialogTowxObject(void *ptr) { |
5470 | wxDialog *src; | |
5471 | wxObject *dest; | |
5472 | src = (wxDialog *) ptr; | |
5473 | dest = (wxObject *) src; | |
5474 | return (void *) dest; | |
5475 | } | |
5476 | ||
8ab979d7 | 5477 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 5478 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5479 | PyObject * _resultobj; |
5480 | wxDialog * _result; | |
5481 | wxWindow * _arg0; | |
5482 | wxWindowID _arg1; | |
5483 | wxString * _arg2; | |
b68dc582 RD |
5484 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
5485 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5486 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; |
5487 | char * _arg6 = (char *) "dialogBox"; | |
5488 | PyObject * _argo0 = 0; | |
8ab979d7 | 5489 | PyObject * _obj2 = 0; |
2f90df85 RD |
5490 | wxPoint temp; |
5491 | PyObject * _obj3 = 0; | |
5492 | wxSize temp0; | |
5493 | PyObject * _obj4 = 0; | |
efc5f224 | 5494 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
8ab979d7 RD |
5495 | char _ptemp[128]; |
5496 | ||
5497 | self = self; | |
2f90df85 | 5498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 5499 | return NULL; |
1d99702e RD |
5500 | if (_argo0) { |
5501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); |
5504 | return NULL; | |
5505 | } | |
5506 | } | |
5507 | { | |
2cd2fac8 RD |
5508 | #if PYTHON_API_VERSION >= 1009 |
5509 | char* tmpPtr; int tmpSize; | |
5510 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 5511 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5512 | return NULL; |
5513 | } | |
5514 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5515 | return NULL; | |
5516 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5517 | #else | |
8ab979d7 RD |
5518 | if (!PyString_Check(_obj2)) { |
5519 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5520 | return NULL; | |
5521 | } | |
2cd2fac8 RD |
5522 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5523 | #endif | |
8ab979d7 | 5524 | } |
2f90df85 RD |
5525 | if (_obj3) |
5526 | { | |
5527 | _arg3 = &temp; | |
5528 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 5529 | return NULL; |
2f90df85 RD |
5530 | } |
5531 | if (_obj4) | |
5532 | { | |
5533 | _arg4 = &temp0; | |
5534 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 5535 | return NULL; |
2f90df85 | 5536 | } |
cf694132 RD |
5537 | { |
5538 | wxPy_BEGIN_ALLOW_THREADS; | |
5539 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5540 | ||
5541 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5542 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5543 | } if (_result) { |
5544 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
5545 | _resultobj = Py_BuildValue("s",_ptemp); | |
5546 | } else { | |
5547 | Py_INCREF(Py_None); | |
5548 | _resultobj = Py_None; | |
5549 | } | |
8ab979d7 RD |
5550 | { |
5551 | if (_obj2) | |
5552 | delete _arg2; | |
5553 | } | |
5554 | return _resultobj; | |
5555 | } | |
5556 | ||
5557 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 5558 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5559 | PyObject * _resultobj; |
5560 | wxDialog * _arg0; | |
1d99702e RD |
5561 | int _arg1 = (int ) wxBOTH; |
5562 | PyObject * _argo0 = 0; | |
efc5f224 | 5563 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
5564 | |
5565 | self = self; | |
efc5f224 | 5566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5567 | return NULL; |
1d99702e RD |
5568 | if (_argo0) { |
5569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); |
5572 | return NULL; | |
5573 | } | |
5574 | } | |
cf694132 RD |
5575 | { |
5576 | wxPy_BEGIN_ALLOW_THREADS; | |
5577 | wxDialog_Centre(_arg0,_arg1); | |
5578 | ||
5579 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5580 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5581 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5582 | _resultobj = Py_None; |
5583 | return _resultobj; | |
5584 | } | |
5585 | ||
5586 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
efc5f224 | 5587 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5588 | PyObject * _resultobj; |
5589 | wxDialog * _arg0; | |
5590 | int _arg1; | |
1d99702e | 5591 | PyObject * _argo0 = 0; |
efc5f224 | 5592 | char *_kwnames[] = { "self","retCode", NULL }; |
8ab979d7 RD |
5593 | |
5594 | self = self; | |
efc5f224 | 5595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5596 | return NULL; |
1d99702e RD |
5597 | if (_argo0) { |
5598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); |
5601 | return NULL; | |
5602 | } | |
5603 | } | |
cf694132 RD |
5604 | { |
5605 | wxPy_BEGIN_ALLOW_THREADS; | |
5606 | wxDialog_EndModal(_arg0,_arg1); | |
5607 | ||
5608 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5609 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5610 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5611 | _resultobj = Py_None; |
5612 | return _resultobj; | |
5613 | } | |
5614 | ||
5615 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
efc5f224 | 5616 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5617 | PyObject * _resultobj; |
5618 | wxString * _result; | |
5619 | wxDialog * _arg0; | |
1d99702e | 5620 | PyObject * _argo0 = 0; |
efc5f224 | 5621 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5622 | |
5623 | self = self; | |
efc5f224 | 5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 5625 | return NULL; |
1d99702e RD |
5626 | if (_argo0) { |
5627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); |
5630 | return NULL; | |
5631 | } | |
5632 | } | |
8ab979d7 | 5633 | { |
cf694132 RD |
5634 | wxPy_BEGIN_ALLOW_THREADS; |
5635 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
5636 | ||
5637 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5638 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5639 | }{ |
eec92d76 | 5640 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
5641 | } |
5642 | { | |
5643 | delete _result; | |
5644 | } | |
5645 | return _resultobj; | |
5646 | } | |
5647 | ||
5648 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
efc5f224 | 5649 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5650 | PyObject * _resultobj; |
5651 | wxDialog * _arg0; | |
5652 | bool _arg1; | |
1d99702e | 5653 | PyObject * _argo0 = 0; |
8ab979d7 | 5654 | int tempbool1; |
efc5f224 | 5655 | char *_kwnames[] = { "self","iconize", NULL }; |
8ab979d7 RD |
5656 | |
5657 | self = self; | |
efc5f224 | 5658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5659 | return NULL; |
1d99702e RD |
5660 | if (_argo0) { |
5661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p."); |
5664 | return NULL; | |
5665 | } | |
5666 | } | |
5667 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5668 | { |
5669 | wxPy_BEGIN_ALLOW_THREADS; | |
5670 | wxDialog_Iconize(_arg0,_arg1); | |
5671 | ||
5672 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5673 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5674 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5675 | _resultobj = Py_None; |
5676 | return _resultobj; | |
5677 | } | |
5678 | ||
5679 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
efc5f224 | 5680 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5681 | PyObject * _resultobj; |
5682 | bool _result; | |
5683 | wxDialog * _arg0; | |
1d99702e | 5684 | PyObject * _argo0 = 0; |
efc5f224 | 5685 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5686 | |
5687 | self = self; | |
efc5f224 | 5688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) |
8ab979d7 | 5689 | return NULL; |
1d99702e RD |
5690 | if (_argo0) { |
5691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); |
5694 | return NULL; | |
5695 | } | |
5696 | } | |
cf694132 RD |
5697 | { |
5698 | wxPy_BEGIN_ALLOW_THREADS; | |
5699 | _result = (bool )wxDialog_IsIconized(_arg0); | |
5700 | ||
5701 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5702 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5703 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5704 | return _resultobj; |
5705 | } | |
5706 | ||
5707 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
efc5f224 | 5708 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5709 | PyObject * _resultobj; |
5710 | wxDialog * _arg0; | |
5711 | bool _arg1; | |
1d99702e | 5712 | PyObject * _argo0 = 0; |
8ab979d7 | 5713 | int tempbool1; |
efc5f224 | 5714 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
5715 | |
5716 | self = self; | |
efc5f224 | 5717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5718 | return NULL; |
1d99702e RD |
5719 | if (_argo0) { |
5720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); |
5723 | return NULL; | |
5724 | } | |
5725 | } | |
5726 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5727 | { |
5728 | wxPy_BEGIN_ALLOW_THREADS; | |
5729 | wxDialog_SetModal(_arg0,_arg1); | |
5730 | ||
5731 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5732 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5733 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5734 | _resultobj = Py_None; |
5735 | return _resultobj; | |
5736 | } | |
5737 | ||
5738 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
efc5f224 | 5739 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5740 | PyObject * _resultobj; |
5741 | bool _result; | |
5742 | wxDialog * _arg0; | |
1d99702e | 5743 | PyObject * _argo0 = 0; |
efc5f224 | 5744 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5745 | |
5746 | self = self; | |
efc5f224 | 5747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) |
8ab979d7 | 5748 | return NULL; |
1d99702e RD |
5749 | if (_argo0) { |
5750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); |
5753 | return NULL; | |
5754 | } | |
5755 | } | |
cf694132 RD |
5756 | { |
5757 | wxPy_BEGIN_ALLOW_THREADS; | |
5758 | _result = (bool )wxDialog_IsModal(_arg0); | |
5759 | ||
5760 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5761 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5762 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5763 | return _resultobj; |
5764 | } | |
5765 | ||
5766 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 5767 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5768 | PyObject * _resultobj; |
5769 | wxDialog * _arg0; | |
5770 | wxString * _arg1; | |
1d99702e | 5771 | PyObject * _argo0 = 0; |
8ab979d7 | 5772 | PyObject * _obj1 = 0; |
efc5f224 | 5773 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
5774 | |
5775 | self = self; | |
efc5f224 | 5776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5777 | return NULL; |
1d99702e RD |
5778 | if (_argo0) { |
5779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); |
5782 | return NULL; | |
5783 | } | |
5784 | } | |
5785 | { | |
2cd2fac8 RD |
5786 | #if PYTHON_API_VERSION >= 1009 |
5787 | char* tmpPtr; int tmpSize; | |
5788 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5789 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5790 | return NULL; |
5791 | } | |
5792 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5793 | return NULL; | |
5794 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5795 | #else | |
8ab979d7 RD |
5796 | if (!PyString_Check(_obj1)) { |
5797 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5798 | return NULL; | |
5799 | } | |
2cd2fac8 RD |
5800 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5801 | #endif | |
8ab979d7 | 5802 | } |
cf694132 RD |
5803 | { |
5804 | wxPy_BEGIN_ALLOW_THREADS; | |
5805 | wxDialog_SetTitle(_arg0,*_arg1); | |
5806 | ||
5807 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5808 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5809 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5810 | _resultobj = Py_None; |
5811 | { | |
5812 | if (_obj1) | |
5813 | delete _arg1; | |
5814 | } | |
5815 | return _resultobj; | |
5816 | } | |
5817 | ||
5818 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 5819 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5820 | PyObject * _resultobj; |
5821 | bool _result; | |
5822 | wxDialog * _arg0; | |
5823 | bool _arg1; | |
1d99702e | 5824 | PyObject * _argo0 = 0; |
8ab979d7 | 5825 | int tempbool1; |
efc5f224 | 5826 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
5827 | |
5828 | self = self; | |
efc5f224 | 5829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5830 | return NULL; |
1d99702e RD |
5831 | if (_argo0) { |
5832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); |
5835 | return NULL; | |
5836 | } | |
5837 | } | |
5838 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5839 | { |
5840 | wxPy_BEGIN_ALLOW_THREADS; | |
5841 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
5842 | ||
5843 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5844 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5845 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5846 | return _resultobj; |
5847 | } | |
5848 | ||
5849 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 5850 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5851 | PyObject * _resultobj; |
5852 | int _result; | |
5853 | wxDialog * _arg0; | |
1d99702e | 5854 | PyObject * _argo0 = 0; |
efc5f224 | 5855 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5856 | |
5857 | self = self; | |
efc5f224 | 5858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 5859 | return NULL; |
1d99702e RD |
5860 | if (_argo0) { |
5861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); |
5864 | return NULL; | |
5865 | } | |
5866 | } | |
cf694132 RD |
5867 | { |
5868 | wxPy_BEGIN_ALLOW_THREADS; | |
5869 | _result = (int )wxDialog_ShowModal(_arg0); | |
5870 | ||
5871 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5872 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5873 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5874 | return _resultobj; |
5875 | } | |
5876 | ||
bb0054cd | 5877 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) |
efc5f224 | 5878 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5879 | PyObject * _resultobj; |
5880 | int _result; | |
5881 | wxDialog * _arg0; | |
1d99702e | 5882 | PyObject * _argo0 = 0; |
efc5f224 | 5883 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5884 | |
5885 | self = self; | |
efc5f224 | 5886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) |
bb0054cd | 5887 | return NULL; |
1d99702e RD |
5888 | if (_argo0) { |
5889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); |
5892 | return NULL; | |
5893 | } | |
5894 | } | |
5895 | { | |
5896 | wxPy_BEGIN_ALLOW_THREADS; | |
5897 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
5898 | ||
5899 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5900 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5901 | } _resultobj = Py_BuildValue("i",_result); |
5902 | return _resultobj; | |
5903 | } | |
5904 | ||
5905 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
efc5f224 | 5906 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5907 | PyObject * _resultobj; |
5908 | wxDialog * _arg0; | |
5909 | int _arg1; | |
1d99702e | 5910 | PyObject * _argo0 = 0; |
efc5f224 | 5911 | char *_kwnames[] = { "self","retCode", NULL }; |
bb0054cd RD |
5912 | |
5913 | self = self; | |
efc5f224 | 5914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 5915 | return NULL; |
1d99702e RD |
5916 | if (_argo0) { |
5917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); |
5920 | return NULL; | |
5921 | } | |
5922 | } | |
5923 | { | |
5924 | wxPy_BEGIN_ALLOW_THREADS; | |
5925 | wxDialog_SetReturnCode(_arg0,_arg1); | |
5926 | ||
5927 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5928 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5929 | } Py_INCREF(Py_None); |
5930 | _resultobj = Py_None; | |
5931 | return _resultobj; | |
5932 | } | |
5933 | ||
4662be59 RD |
5934 | #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0)) |
5935 | static PyObject *_wrap_wxDialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5936 | PyObject * _resultobj; | |
5937 | wxSizer * _result; | |
5938 | wxDialog * _arg0; | |
5939 | wxString * _arg1; | |
5940 | PyObject * _argo0 = 0; | |
5941 | PyObject * _obj1 = 0; | |
5942 | char *_kwnames[] = { "self","message", NULL }; | |
4662be59 RD |
5943 | |
5944 | self = self; | |
5945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_CreateTextSizer",_kwnames,&_argo0,&_obj1)) | |
5946 | return NULL; | |
5947 | if (_argo0) { | |
5948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p."); | |
5951 | return NULL; | |
5952 | } | |
5953 | } | |
5954 | { | |
5955 | #if PYTHON_API_VERSION >= 1009 | |
5956 | char* tmpPtr; int tmpSize; | |
5957 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5958 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
4662be59 RD |
5959 | return NULL; |
5960 | } | |
5961 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5962 | return NULL; | |
5963 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5964 | #else | |
5965 | if (!PyString_Check(_obj1)) { | |
5966 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5967 | return NULL; | |
5968 | } | |
5969 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5970 | #endif | |
5971 | } | |
5972 | { | |
5973 | wxPy_BEGIN_ALLOW_THREADS; | |
5974 | _result = (wxSizer *)wxDialog_CreateTextSizer(_arg0,*_arg1); | |
5975 | ||
5976 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5977 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5978 | }{ _resultobj = wxPyMake_wxObject(_result); } |
4662be59 RD |
5979 | { |
5980 | if (_obj1) | |
5981 | delete _arg1; | |
5982 | } | |
5983 | return _resultobj; | |
5984 | } | |
5985 | ||
5986 | #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0)) | |
5987 | static PyObject *_wrap_wxDialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5988 | PyObject * _resultobj; | |
5989 | wxSizer * _result; | |
5990 | wxDialog * _arg0; | |
5991 | long _arg1; | |
5992 | PyObject * _argo0 = 0; | |
5993 | char *_kwnames[] = { "self","flags", NULL }; | |
4662be59 RD |
5994 | |
5995 | self = self; | |
5996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDialog_CreateButtonSizer",_kwnames,&_argo0,&_arg1)) | |
5997 | return NULL; | |
5998 | if (_argo0) { | |
5999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
6001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p."); | |
6002 | return NULL; | |
6003 | } | |
6004 | } | |
6005 | { | |
6006 | wxPy_BEGIN_ALLOW_THREADS; | |
6007 | _result = (wxSizer *)wxDialog_CreateButtonSizer(_arg0,_arg1); | |
6008 | ||
6009 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6010 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6011 | }{ _resultobj = wxPyMake_wxObject(_result); } |
4662be59 RD |
6012 | return _resultobj; |
6013 | } | |
6014 | ||
bb0054cd RD |
6015 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6016 | wxScrolledWindow *src; | |
6017 | wxPanel *dest; | |
6018 | src = (wxScrolledWindow *) ptr; | |
6019 | dest = (wxPanel *) src; | |
6020 | return (void *) dest; | |
6021 | } | |
6022 | ||
8ab979d7 RD |
6023 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6024 | wxScrolledWindow *src; | |
6025 | wxWindow *dest; | |
6026 | src = (wxScrolledWindow *) ptr; | |
6027 | dest = (wxWindow *) src; | |
6028 | return (void *) dest; | |
6029 | } | |
6030 | ||
6031 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6032 | wxScrolledWindow *src; | |
6033 | wxEvtHandler *dest; | |
6034 | src = (wxScrolledWindow *) ptr; | |
6035 | dest = (wxEvtHandler *) src; | |
6036 | return (void *) dest; | |
6037 | } | |
6038 | ||
9df61a29 RD |
6039 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6040 | wxScrolledWindow *src; | |
6041 | wxObject *dest; | |
6042 | src = (wxScrolledWindow *) ptr; | |
6043 | dest = (wxObject *) src; | |
6044 | return (void *) dest; | |
6045 | } | |
6046 | ||
8ab979d7 | 6047 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6048 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6049 | PyObject * _resultobj; |
6050 | wxScrolledWindow * _result; | |
6051 | wxWindow * _arg0; | |
1d99702e | 6052 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6053 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6054 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6055 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
6056 | char * _arg5 = (char *) "scrolledWindow"; | |
6057 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6058 | wxPoint temp; |
6059 | PyObject * _obj2 = 0; | |
6060 | wxSize temp0; | |
6061 | PyObject * _obj3 = 0; | |
efc5f224 | 6062 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6063 | char _ptemp[128]; |
6064 | ||
6065 | self = self; | |
2f90df85 | 6066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6067 | return NULL; |
1d99702e RD |
6068 | if (_argo0) { |
6069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6072 | return NULL; | |
6073 | } | |
6074 | } | |
2f90df85 RD |
6075 | if (_obj2) |
6076 | { | |
6077 | _arg2 = &temp; | |
6078 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6079 | return NULL; |
2f90df85 RD |
6080 | } |
6081 | if (_obj3) | |
6082 | { | |
6083 | _arg3 = &temp0; | |
6084 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6085 | return NULL; |
2f90df85 | 6086 | } |
cf694132 RD |
6087 | { |
6088 | wxPy_BEGIN_ALLOW_THREADS; | |
6089 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
6090 | ||
6091 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6092 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6093 | } if (_result) { |
6094 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6095 | _resultobj = Py_BuildValue("s",_ptemp); | |
6096 | } else { | |
6097 | Py_INCREF(Py_None); | |
6098 | _resultobj = Py_None; | |
6099 | } | |
8ab979d7 RD |
6100 | return _resultobj; |
6101 | } | |
6102 | ||
6103 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
efc5f224 | 6104 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6105 | PyObject * _resultobj; |
6106 | wxScrolledWindow * _arg0; | |
6107 | bool _arg1; | |
6108 | bool _arg2; | |
1d99702e | 6109 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6110 | int tempbool1; |
6111 | int tempbool2; | |
efc5f224 | 6112 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6113 | |
6114 | self = self; | |
efc5f224 | 6115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6116 | return NULL; |
1d99702e RD |
6117 | if (_argo0) { |
6118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6121 | return NULL; | |
6122 | } | |
6123 | } | |
6124 | _arg1 = (bool ) tempbool1; | |
6125 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6126 | { |
6127 | wxPy_BEGIN_ALLOW_THREADS; | |
6128 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
6129 | ||
6130 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6131 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6132 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6133 | _resultobj = Py_None; |
6134 | return _resultobj; | |
6135 | } | |
6136 | ||
b7e72427 RD |
6137 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6138 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6139 | PyObject * _resultobj; | |
6140 | int _result; | |
6141 | wxScrolledWindow * _arg0; | |
6142 | int _arg1; | |
6143 | PyObject * _argo0 = 0; | |
6144 | char *_kwnames[] = { "self","orient", NULL }; | |
6145 | ||
6146 | self = self; | |
6147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6148 | return NULL; | |
6149 | if (_argo0) { | |
6150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6153 | return NULL; | |
6154 | } | |
6155 | } | |
6156 | { | |
6157 | wxPy_BEGIN_ALLOW_THREADS; | |
6158 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
6159 | ||
6160 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6161 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6162 | } _resultobj = Py_BuildValue("i",_result); |
6163 | return _resultobj; | |
6164 | } | |
6165 | ||
8ab979d7 | 6166 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6167 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6168 | PyObject * _resultobj; |
6169 | wxScrolledWindow * _arg0; | |
6170 | int * _arg1; | |
6171 | int temp; | |
6172 | int * _arg2; | |
6173 | int temp0; | |
1d99702e | 6174 | PyObject * _argo0 = 0; |
efc5f224 | 6175 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6176 | |
6177 | self = self; | |
6178 | { | |
6179 | _arg1 = &temp; | |
6180 | } | |
6181 | { | |
6182 | _arg2 = &temp0; | |
6183 | } | |
efc5f224 | 6184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6185 | return NULL; |
1d99702e RD |
6186 | if (_argo0) { |
6187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6190 | return NULL; | |
6191 | } | |
6192 | } | |
cf694132 RD |
6193 | { |
6194 | wxPy_BEGIN_ALLOW_THREADS; | |
6195 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
6196 | ||
6197 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6198 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6199 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6200 | _resultobj = Py_None; |
6201 | { | |
6202 | PyObject *o; | |
6203 | o = PyInt_FromLong((long) (*_arg1)); | |
6204 | _resultobj = t_output_helper(_resultobj, o); | |
6205 | } | |
6206 | { | |
6207 | PyObject *o; | |
6208 | o = PyInt_FromLong((long) (*_arg2)); | |
6209 | _resultobj = t_output_helper(_resultobj, o); | |
6210 | } | |
6211 | return _resultobj; | |
6212 | } | |
6213 | ||
b7e72427 RD |
6214 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6215 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6216 | PyObject * _resultobj; | |
6217 | wxWindow * _result; | |
6218 | wxScrolledWindow * _arg0; | |
6219 | PyObject * _argo0 = 0; | |
6220 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6221 | |
6222 | self = self; | |
6223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6224 | return NULL; | |
6225 | if (_argo0) { | |
6226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6229 | return NULL; | |
6230 | } | |
6231 | } | |
6232 | { | |
6233 | wxPy_BEGIN_ALLOW_THREADS; | |
6234 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6235 | ||
6236 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6237 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6238 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
6239 | return _resultobj; |
6240 | } | |
6241 | ||
8ab979d7 | 6242 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6243 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6244 | PyObject * _resultobj; |
6245 | wxScrolledWindow * _arg0; | |
6246 | int * _arg1; | |
6247 | int temp; | |
6248 | int * _arg2; | |
6249 | int temp0; | |
1d99702e | 6250 | PyObject * _argo0 = 0; |
efc5f224 | 6251 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6252 | |
6253 | self = self; | |
6254 | { | |
6255 | _arg1 = &temp; | |
6256 | } | |
6257 | { | |
6258 | _arg2 = &temp0; | |
6259 | } | |
efc5f224 | 6260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6261 | return NULL; |
1d99702e RD |
6262 | if (_argo0) { |
6263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6266 | return NULL; | |
6267 | } | |
6268 | } | |
cf694132 RD |
6269 | { |
6270 | wxPy_BEGIN_ALLOW_THREADS; | |
6271 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6272 | ||
6273 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6274 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6275 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6276 | _resultobj = Py_None; |
6277 | { | |
6278 | PyObject *o; | |
6279 | o = PyInt_FromLong((long) (*_arg1)); | |
6280 | _resultobj = t_output_helper(_resultobj, o); | |
6281 | } | |
6282 | { | |
6283 | PyObject *o; | |
6284 | o = PyInt_FromLong((long) (*_arg2)); | |
6285 | _resultobj = t_output_helper(_resultobj, o); | |
6286 | } | |
6287 | return _resultobj; | |
6288 | } | |
6289 | ||
6290 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6291 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6292 | PyObject * _resultobj; |
6293 | bool _result; | |
6294 | wxScrolledWindow * _arg0; | |
1d99702e | 6295 | PyObject * _argo0 = 0; |
efc5f224 | 6296 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6297 | |
6298 | self = self; | |
efc5f224 | 6299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6300 | return NULL; |
1d99702e RD |
6301 | if (_argo0) { |
6302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6305 | return NULL; | |
6306 | } | |
6307 | } | |
cf694132 RD |
6308 | { |
6309 | wxPy_BEGIN_ALLOW_THREADS; | |
6310 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6311 | ||
6312 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6313 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6314 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6315 | return _resultobj; |
6316 | } | |
6317 | ||
6318 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6319 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6320 | PyObject * _resultobj; |
6321 | wxScrolledWindow * _arg0; | |
6322 | wxDC * _arg1; | |
1d99702e RD |
6323 | PyObject * _argo0 = 0; |
6324 | PyObject * _argo1 = 0; | |
efc5f224 | 6325 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6326 | |
6327 | self = self; | |
efc5f224 | 6328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6329 | return NULL; |
1d99702e RD |
6330 | if (_argo0) { |
6331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6334 | return NULL; | |
6335 | } | |
6336 | } | |
1d99702e RD |
6337 | if (_argo1) { |
6338 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6339 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6341 | return NULL; | |
6342 | } | |
6343 | } | |
cf694132 RD |
6344 | { |
6345 | wxPy_BEGIN_ALLOW_THREADS; | |
6346 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
6347 | ||
6348 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6349 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6350 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6351 | _resultobj = Py_None; |
6352 | return _resultobj; | |
6353 | } | |
6354 | ||
6355 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6356 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6357 | PyObject * _resultobj; |
6358 | wxScrolledWindow * _arg0; | |
6359 | int _arg1; | |
6360 | int _arg2; | |
1d99702e | 6361 | PyObject * _argo0 = 0; |
efc5f224 | 6362 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6363 | |
6364 | self = self; | |
efc5f224 | 6365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6366 | return NULL; |
1d99702e RD |
6367 | if (_argo0) { |
6368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6371 | return NULL; | |
6372 | } | |
6373 | } | |
cf694132 RD |
6374 | { |
6375 | wxPy_BEGIN_ALLOW_THREADS; | |
6376 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
6377 | ||
6378 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6379 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6380 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6381 | _resultobj = Py_None; |
6382 | return _resultobj; | |
6383 | } | |
6384 | ||
f6bcfd97 | 6385 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6386 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6387 | PyObject * _resultobj; |
6388 | wxScrolledWindow * _arg0; | |
6389 | int _arg1; | |
6390 | int _arg2; | |
6391 | int _arg3; | |
6392 | int _arg4; | |
1d99702e RD |
6393 | int _arg5 = (int ) 0; |
6394 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6395 | int _arg7 = (int ) FALSE; |
1d99702e | 6396 | PyObject * _argo0 = 0; |
f6bcfd97 | 6397 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6398 | |
6399 | self = self; | |
f6bcfd97 | 6400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6401 | return NULL; |
1d99702e RD |
6402 | if (_argo0) { |
6403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6406 | return NULL; | |
6407 | } | |
6408 | } | |
cf694132 RD |
6409 | { |
6410 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6411 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 RD |
6412 | |
6413 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6414 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6415 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6416 | _resultobj = Py_None; |
6417 | return _resultobj; | |
6418 | } | |
6419 | ||
b7e72427 RD |
6420 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6421 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6422 | PyObject * _resultobj; | |
6423 | wxScrolledWindow * _arg0; | |
6424 | int _arg1; | |
6425 | int _arg2; | |
6426 | PyObject * _argo0 = 0; | |
6427 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6428 | ||
6429 | self = self; | |
6430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6431 | return NULL; | |
6432 | if (_argo0) { | |
6433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6436 | return NULL; | |
6437 | } | |
6438 | } | |
6439 | { | |
6440 | wxPy_BEGIN_ALLOW_THREADS; | |
6441 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6442 | ||
6443 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6444 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6445 | } Py_INCREF(Py_None); |
6446 | _resultobj = Py_None; | |
6447 | return _resultobj; | |
6448 | } | |
6449 | ||
eb715945 RD |
6450 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6451 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6452 | PyObject * _resultobj; | |
6453 | wxScrolledWindow * _arg0; | |
6454 | wxWindow * _arg1; | |
6455 | PyObject * _argo0 = 0; | |
6456 | PyObject * _argo1 = 0; | |
6457 | char *_kwnames[] = { "self","window", NULL }; | |
6458 | ||
6459 | self = self; | |
6460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6461 | return NULL; | |
6462 | if (_argo0) { | |
6463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6466 | return NULL; | |
6467 | } | |
6468 | } | |
6469 | if (_argo1) { | |
6470 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6471 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6473 | return NULL; | |
6474 | } | |
6475 | } | |
6476 | { | |
6477 | wxPy_BEGIN_ALLOW_THREADS; | |
6478 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6479 | ||
6480 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6481 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
6482 | } Py_INCREF(Py_None); |
6483 | _resultobj = Py_None; | |
6484 | return _resultobj; | |
6485 | } | |
6486 | ||
4c9993c3 RD |
6487 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6488 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6489 | PyObject * _resultobj; | |
6490 | wxScrolledWindow * _arg0; | |
6491 | int * _arg1; | |
6492 | int temp; | |
6493 | int * _arg2; | |
6494 | int temp0; | |
6495 | PyObject * _argo0 = 0; | |
6496 | char *_kwnames[] = { "self", NULL }; | |
6497 | ||
6498 | self = self; | |
6499 | { | |
6500 | _arg1 = &temp; | |
6501 | } | |
6502 | { | |
6503 | _arg2 = &temp0; | |
6504 | } | |
6505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6506 | return NULL; | |
6507 | if (_argo0) { | |
6508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6511 | return NULL; | |
6512 | } | |
6513 | } | |
6514 | { | |
6515 | wxPy_BEGIN_ALLOW_THREADS; | |
6516 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6517 | ||
6518 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6519 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
6520 | } Py_INCREF(Py_None); |
6521 | _resultobj = Py_None; | |
6522 | { | |
6523 | PyObject *o; | |
6524 | o = PyInt_FromLong((long) (*_arg1)); | |
6525 | _resultobj = t_output_helper(_resultobj, o); | |
6526 | } | |
6527 | { | |
6528 | PyObject *o; | |
6529 | o = PyInt_FromLong((long) (*_arg2)); | |
6530 | _resultobj = t_output_helper(_resultobj, o); | |
6531 | } | |
6532 | return _resultobj; | |
6533 | } | |
6534 | ||
9d8bd15f RD |
6535 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6536 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6537 | PyObject * _resultobj; | |
6538 | wxScrolledWindow * _arg0; | |
6539 | int _arg1; | |
6540 | int _arg2; | |
6541 | int * _arg3; | |
6542 | int temp; | |
6543 | int * _arg4; | |
6544 | int temp0; | |
6545 | PyObject * _argo0 = 0; | |
6546 | char *_kwnames[] = { "self","x","y", NULL }; | |
6547 | ||
6548 | self = self; | |
6549 | { | |
6550 | _arg3 = &temp; | |
6551 | } | |
6552 | { | |
6553 | _arg4 = &temp0; | |
6554 | } | |
6555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6556 | return NULL; | |
6557 | if (_argo0) { | |
6558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6561 | return NULL; | |
6562 | } | |
6563 | } | |
6564 | { | |
6565 | wxPy_BEGIN_ALLOW_THREADS; | |
6566 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6567 | ||
6568 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6569 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6570 | } Py_INCREF(Py_None); |
6571 | _resultobj = Py_None; | |
6572 | { | |
6573 | PyObject *o; | |
6574 | o = PyInt_FromLong((long) (*_arg3)); | |
6575 | _resultobj = t_output_helper(_resultobj, o); | |
6576 | } | |
6577 | { | |
6578 | PyObject *o; | |
6579 | o = PyInt_FromLong((long) (*_arg4)); | |
6580 | _resultobj = t_output_helper(_resultobj, o); | |
6581 | } | |
6582 | return _resultobj; | |
6583 | } | |
6584 | ||
6585 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6586 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6587 | PyObject * _resultobj; | |
6588 | wxScrolledWindow * _arg0; | |
6589 | int _arg1; | |
6590 | int _arg2; | |
6591 | int * _arg3; | |
6592 | int temp; | |
6593 | int * _arg4; | |
6594 | int temp0; | |
6595 | PyObject * _argo0 = 0; | |
6596 | char *_kwnames[] = { "self","x","y", NULL }; | |
6597 | ||
6598 | self = self; | |
6599 | { | |
6600 | _arg3 = &temp; | |
6601 | } | |
6602 | { | |
6603 | _arg4 = &temp0; | |
6604 | } | |
6605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6606 | return NULL; | |
6607 | if (_argo0) { | |
6608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6611 | return NULL; | |
6612 | } | |
6613 | } | |
6614 | { | |
6615 | wxPy_BEGIN_ALLOW_THREADS; | |
6616 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6617 | ||
6618 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6619 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6620 | } Py_INCREF(Py_None); |
6621 | _resultobj = Py_None; | |
6622 | { | |
6623 | PyObject *o; | |
6624 | o = PyInt_FromLong((long) (*_arg3)); | |
6625 | _resultobj = t_output_helper(_resultobj, o); | |
6626 | } | |
6627 | { | |
6628 | PyObject *o; | |
6629 | o = PyInt_FromLong((long) (*_arg4)); | |
6630 | _resultobj = t_output_helper(_resultobj, o); | |
6631 | } | |
6632 | return _resultobj; | |
6633 | } | |
6634 | ||
7a446686 RD |
6635 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
6636 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6637 | PyObject * _resultobj; | |
6638 | wxScrolledWindow * _arg0; | |
6639 | double _arg1; | |
6640 | double _arg2; | |
6641 | PyObject * _argo0 = 0; | |
6642 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
6643 | ||
6644 | self = self; | |
6645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6646 | return NULL; | |
6647 | if (_argo0) { | |
6648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
6651 | return NULL; | |
6652 | } | |
6653 | } | |
6654 | { | |
6655 | wxPy_BEGIN_ALLOW_THREADS; | |
6656 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); | |
6657 | ||
6658 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6659 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
6660 | } Py_INCREF(Py_None); |
6661 | _resultobj = Py_None; | |
6662 | return _resultobj; | |
6663 | } | |
6664 | ||
6665 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
6666 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6667 | PyObject * _resultobj; | |
6668 | double _result; | |
6669 | wxScrolledWindow * _arg0; | |
6670 | PyObject * _argo0 = 0; | |
6671 | char *_kwnames[] = { "self", NULL }; | |
6672 | ||
6673 | self = self; | |
6674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
6675 | return NULL; | |
6676 | if (_argo0) { | |
6677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
6680 | return NULL; | |
6681 | } | |
6682 | } | |
6683 | { | |
6684 | wxPy_BEGIN_ALLOW_THREADS; | |
6685 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); | |
6686 | ||
6687 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6688 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
6689 | } _resultobj = Py_BuildValue("d",_result); |
6690 | return _resultobj; | |
6691 | } | |
6692 | ||
6693 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
6694 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6695 | PyObject * _resultobj; | |
6696 | double _result; | |
6697 | wxScrolledWindow * _arg0; | |
6698 | PyObject * _argo0 = 0; | |
6699 | char *_kwnames[] = { "self", NULL }; | |
6700 | ||
6701 | self = self; | |
6702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
6703 | return NULL; | |
6704 | if (_argo0) { | |
6705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
6708 | return NULL; | |
6709 | } | |
6710 | } | |
6711 | { | |
6712 | wxPy_BEGIN_ALLOW_THREADS; | |
6713 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
6714 | ||
6715 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6716 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
6717 | } _resultobj = Py_BuildValue("d",_result); |
6718 | return _resultobj; | |
6719 | } | |
6720 | ||
6721 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
6722 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6723 | PyObject * _resultobj; | |
6724 | wxScrolledWindow * _arg0; | |
6725 | PyObject * _argo0 = 0; | |
6726 | char *_kwnames[] = { "self", NULL }; | |
6727 | ||
6728 | self = self; | |
6729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
6730 | return NULL; | |
6731 | if (_argo0) { | |
6732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
6735 | return NULL; | |
6736 | } | |
6737 | } | |
6738 | { | |
6739 | wxPy_BEGIN_ALLOW_THREADS; | |
6740 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
6741 | ||
6742 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6743 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
6744 | } Py_INCREF(Py_None); |
6745 | _resultobj = Py_None; | |
6746 | return _resultobj; | |
6747 | } | |
6748 | ||
8ab979d7 RD |
6749 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
6750 | wxMenu *src; | |
6751 | wxEvtHandler *dest; | |
6752 | src = (wxMenu *) ptr; | |
6753 | dest = (wxEvtHandler *) src; | |
6754 | return (void *) dest; | |
6755 | } | |
6756 | ||
9df61a29 RD |
6757 | static void *SwigwxMenuTowxObject(void *ptr) { |
6758 | wxMenu *src; | |
6759 | wxObject *dest; | |
6760 | src = (wxMenu *) ptr; | |
6761 | dest = (wxObject *) src; | |
6762 | return (void *) dest; | |
6763 | } | |
6764 | ||
8bf5d46e | 6765 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 6766 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6767 | PyObject * _resultobj; |
6768 | wxMenu * _result; | |
1d99702e RD |
6769 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
6770 | long _arg1 = (long ) 0; | |
8ab979d7 | 6771 | PyObject * _obj0 = 0; |
efc5f224 | 6772 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
6773 | char _ptemp[128]; |
6774 | ||
6775 | self = self; | |
efc5f224 | 6776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
6777 | return NULL; |
6778 | if (_obj0) | |
6779 | { | |
2cd2fac8 RD |
6780 | #if PYTHON_API_VERSION >= 1009 |
6781 | char* tmpPtr; int tmpSize; | |
6782 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 6783 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6784 | return NULL; |
6785 | } | |
6786 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6787 | return NULL; | |
6788 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6789 | #else | |
8ab979d7 RD |
6790 | if (!PyString_Check(_obj0)) { |
6791 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6792 | return NULL; | |
6793 | } | |
2cd2fac8 RD |
6794 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
6795 | #endif | |
8ab979d7 | 6796 | } |
cf694132 RD |
6797 | { |
6798 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 6799 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 RD |
6800 | |
6801 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6802 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6803 | } if (_result) { |
6804 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6805 | _resultobj = Py_BuildValue("s",_ptemp); | |
6806 | } else { | |
6807 | Py_INCREF(Py_None); | |
6808 | _resultobj = Py_None; | |
6809 | } | |
8ab979d7 RD |
6810 | { |
6811 | if (_obj0) | |
6812 | delete _arg0; | |
6813 | } | |
6814 | return _resultobj; | |
6815 | } | |
6816 | ||
6817 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6818 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6819 | PyObject * _resultobj; |
6820 | wxMenu * _arg0; | |
6821 | int _arg1; | |
6822 | wxString * _arg2; | |
1d99702e | 6823 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
9e689c06 | 6824 | int _arg4 = (int ) FALSE; |
1d99702e | 6825 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6826 | PyObject * _obj2 = 0; |
6827 | PyObject * _obj3 = 0; | |
efc5f224 | 6828 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
6829 | |
6830 | self = self; | |
9e689c06 | 6831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 6832 | return NULL; |
1d99702e RD |
6833 | if (_argo0) { |
6834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
6837 | return NULL; | |
6838 | } | |
6839 | } | |
6840 | { | |
2cd2fac8 RD |
6841 | #if PYTHON_API_VERSION >= 1009 |
6842 | char* tmpPtr; int tmpSize; | |
6843 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 6844 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6845 | return NULL; |
6846 | } | |
6847 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6848 | return NULL; | |
6849 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6850 | #else | |
8ab979d7 RD |
6851 | if (!PyString_Check(_obj2)) { |
6852 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6853 | return NULL; | |
6854 | } | |
2cd2fac8 RD |
6855 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6856 | #endif | |
8ab979d7 RD |
6857 | } |
6858 | if (_obj3) | |
6859 | { | |
2cd2fac8 RD |
6860 | #if PYTHON_API_VERSION >= 1009 |
6861 | char* tmpPtr; int tmpSize; | |
6862 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 6863 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6864 | return NULL; |
6865 | } | |
6866 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6867 | return NULL; | |
6868 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6869 | #else | |
8ab979d7 RD |
6870 | if (!PyString_Check(_obj3)) { |
6871 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6872 | return NULL; | |
6873 | } | |
2cd2fac8 RD |
6874 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6875 | #endif | |
8ab979d7 | 6876 | } |
cf694132 RD |
6877 | { |
6878 | wxPy_BEGIN_ALLOW_THREADS; | |
6879 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
6880 | ||
6881 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6882 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6883 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6884 | _resultobj = Py_None; |
6885 | { | |
6886 | if (_obj2) | |
6887 | delete _arg2; | |
6888 | } | |
6889 | { | |
6890 | if (_obj3) | |
6891 | delete _arg3; | |
6892 | } | |
6893 | return _resultobj; | |
6894 | } | |
6895 | ||
6896 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6897 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6898 | PyObject * _resultobj; |
6899 | wxMenu * _arg0; | |
6900 | int _arg1; | |
6901 | wxString * _arg2; | |
6902 | wxMenu * _arg3; | |
1d99702e RD |
6903 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
6904 | PyObject * _argo0 = 0; | |
8ab979d7 | 6905 | PyObject * _obj2 = 0; |
1d99702e | 6906 | PyObject * _argo3 = 0; |
8ab979d7 | 6907 | PyObject * _obj4 = 0; |
efc5f224 | 6908 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
6909 | |
6910 | self = self; | |
efc5f224 | 6911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 6912 | return NULL; |
1d99702e RD |
6913 | if (_argo0) { |
6914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6917 | return NULL; | |
6918 | } | |
6919 | } | |
6920 | { | |
2cd2fac8 RD |
6921 | #if PYTHON_API_VERSION >= 1009 |
6922 | char* tmpPtr; int tmpSize; | |
6923 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 6924 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6925 | return NULL; |
6926 | } | |
6927 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6928 | return NULL; | |
6929 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6930 | #else | |
8ab979d7 RD |
6931 | if (!PyString_Check(_obj2)) { |
6932 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6933 | return NULL; | |
6934 | } | |
2cd2fac8 RD |
6935 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6936 | #endif | |
8ab979d7 | 6937 | } |
1d99702e RD |
6938 | if (_argo3) { |
6939 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6940 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
6941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6942 | return NULL; | |
6943 | } | |
6944 | } | |
6945 | if (_obj4) | |
6946 | { | |
2cd2fac8 RD |
6947 | #if PYTHON_API_VERSION >= 1009 |
6948 | char* tmpPtr; int tmpSize; | |
6949 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
7a446686 | 6950 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6951 | return NULL; |
6952 | } | |
6953 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
6954 | return NULL; | |
6955 | _arg4 = new wxString(tmpPtr, tmpSize); | |
6956 | #else | |
8ab979d7 RD |
6957 | if (!PyString_Check(_obj4)) { |
6958 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6959 | return NULL; | |
6960 | } | |
2cd2fac8 RD |
6961 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
6962 | #endif | |
8ab979d7 | 6963 | } |
cf694132 RD |
6964 | { |
6965 | wxPy_BEGIN_ALLOW_THREADS; | |
6966 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
6967 | ||
6968 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6969 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6970 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6971 | _resultobj = Py_None; |
6972 | { | |
6973 | if (_obj2) | |
6974 | delete _arg2; | |
6975 | } | |
6976 | { | |
6977 | if (_obj4) | |
6978 | delete _arg4; | |
6979 | } | |
6980 | return _resultobj; | |
6981 | } | |
6982 | ||
af309447 | 6983 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 6984 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
6985 | PyObject * _resultobj; |
6986 | wxMenu * _arg0; | |
6987 | wxMenuItem * _arg1; | |
1d99702e RD |
6988 | PyObject * _argo0 = 0; |
6989 | PyObject * _argo1 = 0; | |
efc5f224 | 6990 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
6991 | |
6992 | self = self; | |
efc5f224 | 6993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 6994 | return NULL; |
1d99702e RD |
6995 | if (_argo0) { |
6996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
6998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
6999 | return NULL; | |
7000 | } | |
7001 | } | |
1d99702e RD |
7002 | if (_argo1) { |
7003 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7004 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
7005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
7006 | return NULL; | |
7007 | } | |
7008 | } | |
cf694132 RD |
7009 | { |
7010 | wxPy_BEGIN_ALLOW_THREADS; | |
7011 | wxMenu_AppendItem(_arg0,_arg1); | |
7012 | ||
7013 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7014 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7015 | } Py_INCREF(Py_None); |
af309447 RD |
7016 | _resultobj = Py_None; |
7017 | return _resultobj; | |
7018 | } | |
7019 | ||
8ab979d7 | 7020 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 7021 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7022 | PyObject * _resultobj; |
7023 | wxMenu * _arg0; | |
1d99702e | 7024 | PyObject * _argo0 = 0; |
efc5f224 | 7025 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7026 | |
7027 | self = self; | |
efc5f224 | 7028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 7029 | return NULL; |
1d99702e RD |
7030 | if (_argo0) { |
7031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
7034 | return NULL; | |
7035 | } | |
7036 | } | |
cf694132 RD |
7037 | { |
7038 | wxPy_BEGIN_ALLOW_THREADS; | |
7039 | wxMenu_AppendSeparator(_arg0); | |
7040 | ||
7041 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7042 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7043 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7044 | _resultobj = Py_None; |
7045 | return _resultobj; | |
7046 | } | |
7047 | ||
7048 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 7049 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7050 | PyObject * _resultobj; |
7051 | wxMenu * _arg0; | |
1d99702e | 7052 | PyObject * _argo0 = 0; |
efc5f224 | 7053 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7054 | |
7055 | self = self; | |
efc5f224 | 7056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 7057 | return NULL; |
1d99702e RD |
7058 | if (_argo0) { |
7059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
7062 | return NULL; | |
7063 | } | |
7064 | } | |
cf694132 RD |
7065 | { |
7066 | wxPy_BEGIN_ALLOW_THREADS; | |
7067 | wxMenu_Break(_arg0); | |
7068 | ||
7069 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7070 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7071 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7072 | _resultobj = Py_None; |
7073 | return _resultobj; | |
7074 | } | |
7075 | ||
7076 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 7077 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7078 | PyObject * _resultobj; |
7079 | wxMenu * _arg0; | |
7080 | int _arg1; | |
7081 | bool _arg2; | |
1d99702e | 7082 | PyObject * _argo0 = 0; |
8ab979d7 | 7083 | int tempbool2; |
efc5f224 | 7084 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
7085 | |
7086 | self = self; | |
efc5f224 | 7087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7088 | return NULL; |
1d99702e RD |
7089 | if (_argo0) { |
7090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
7093 | return NULL; | |
7094 | } | |
7095 | } | |
7096 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7097 | { |
7098 | wxPy_BEGIN_ALLOW_THREADS; | |
7099 | wxMenu_Check(_arg0,_arg1,_arg2); | |
7100 | ||
7101 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7102 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7103 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7104 | _resultobj = Py_None; |
7105 | return _resultobj; | |
7106 | } | |
7107 | ||
b1462dfa RD |
7108 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
7109 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7110 | PyObject * _resultobj; | |
7111 | bool _result; | |
7112 | wxMenu * _arg0; | |
7113 | int _arg1; | |
7114 | PyObject * _argo0 = 0; | |
7115 | char *_kwnames[] = { "self","id", NULL }; | |
7116 | ||
7117 | self = self; | |
7118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7119 | return NULL; | |
7120 | if (_argo0) { | |
7121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7124 | return NULL; | |
7125 | } | |
7126 | } | |
7127 | { | |
7128 | wxPy_BEGIN_ALLOW_THREADS; | |
7129 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
7130 | ||
7131 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7132 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7133 | } _resultobj = Py_BuildValue("i",_result); |
7134 | return _resultobj; | |
7135 | } | |
7136 | ||
8ab979d7 | 7137 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 7138 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7139 | PyObject * _resultobj; |
7140 | wxMenu * _arg0; | |
7141 | int _arg1; | |
7142 | bool _arg2; | |
1d99702e | 7143 | PyObject * _argo0 = 0; |
8ab979d7 | 7144 | int tempbool2; |
efc5f224 | 7145 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
7146 | |
7147 | self = self; | |
efc5f224 | 7148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7149 | return NULL; |
1d99702e RD |
7150 | if (_argo0) { |
7151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
7154 | return NULL; | |
7155 | } | |
7156 | } | |
7157 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7158 | { |
7159 | wxPy_BEGIN_ALLOW_THREADS; | |
7160 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
7161 | ||
7162 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7163 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7164 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7165 | _resultobj = Py_None; |
7166 | return _resultobj; | |
7167 | } | |
7168 | ||
b1462dfa RD |
7169 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
7170 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7171 | PyObject * _resultobj; | |
7172 | bool _result; | |
7173 | wxMenu * _arg0; | |
7174 | int _arg1; | |
7175 | PyObject * _argo0 = 0; | |
7176 | char *_kwnames[] = { "self","id", NULL }; | |
7177 | ||
7178 | self = self; | |
7179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7180 | return NULL; | |
7181 | if (_argo0) { | |
7182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7185 | return NULL; | |
7186 | } | |
7187 | } | |
7188 | { | |
7189 | wxPy_BEGIN_ALLOW_THREADS; | |
7190 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
7191 | ||
7192 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7193 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7194 | } _resultobj = Py_BuildValue("i",_result); |
7195 | return _resultobj; | |
7196 | } | |
7197 | ||
8ab979d7 | 7198 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 7199 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7200 | PyObject * _resultobj; |
7201 | int _result; | |
7202 | wxMenu * _arg0; | |
7203 | wxString * _arg1; | |
1d99702e | 7204 | PyObject * _argo0 = 0; |
8ab979d7 | 7205 | PyObject * _obj1 = 0; |
efc5f224 | 7206 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
7207 | |
7208 | self = self; | |
efc5f224 | 7209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7210 | return NULL; |
1d99702e RD |
7211 | if (_argo0) { |
7212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
7215 | return NULL; | |
7216 | } | |
7217 | } | |
7218 | { | |
2cd2fac8 RD |
7219 | #if PYTHON_API_VERSION >= 1009 |
7220 | char* tmpPtr; int tmpSize; | |
7221 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7222 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7223 | return NULL; |
7224 | } | |
7225 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7226 | return NULL; | |
7227 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7228 | #else | |
8ab979d7 RD |
7229 | if (!PyString_Check(_obj1)) { |
7230 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7231 | return NULL; | |
7232 | } | |
2cd2fac8 RD |
7233 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7234 | #endif | |
8ab979d7 | 7235 | } |
cf694132 RD |
7236 | { |
7237 | wxPy_BEGIN_ALLOW_THREADS; | |
7238 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
7239 | ||
7240 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7241 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7242 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7243 | { |
7244 | if (_obj1) | |
7245 | delete _arg1; | |
7246 | } | |
7247 | return _resultobj; | |
7248 | } | |
7249 | ||
b1462dfa RD |
7250 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
7251 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7252 | PyObject * _resultobj; | |
7253 | wxMenuItem * _result; | |
7254 | wxMenu * _arg0; | |
7255 | int _arg1; | |
7256 | PyObject * _argo0 = 0; | |
7257 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
7258 | |
7259 | self = self; | |
7260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7261 | return NULL; | |
7262 | if (_argo0) { | |
7263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7266 | return NULL; | |
7267 | } | |
7268 | } | |
7269 | { | |
7270 | wxPy_BEGIN_ALLOW_THREADS; | |
7271 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
7272 | ||
7273 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7274 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7275 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
7276 | return _resultobj; |
7277 | } | |
7278 | ||
8ab979d7 | 7279 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 7280 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7281 | PyObject * _resultobj; |
7282 | wxString * _result; | |
7283 | wxMenu * _arg0; | |
1d99702e | 7284 | PyObject * _argo0 = 0; |
efc5f224 | 7285 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7286 | |
7287 | self = self; | |
efc5f224 | 7288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 7289 | return NULL; |
1d99702e RD |
7290 | if (_argo0) { |
7291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
7294 | return NULL; | |
7295 | } | |
7296 | } | |
8ab979d7 | 7297 | { |
cf694132 RD |
7298 | wxPy_BEGIN_ALLOW_THREADS; |
7299 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
7300 | ||
7301 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7302 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7303 | }{ |
eec92d76 | 7304 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7305 | } |
7306 | { | |
7307 | delete _result; | |
7308 | } | |
7309 | return _resultobj; | |
7310 | } | |
7311 | ||
7312 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7313 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7314 | PyObject * _resultobj; |
7315 | wxMenu * _arg0; | |
7316 | wxString * _arg1; | |
1d99702e | 7317 | PyObject * _argo0 = 0; |
8ab979d7 | 7318 | PyObject * _obj1 = 0; |
efc5f224 | 7319 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7320 | |
7321 | self = self; | |
efc5f224 | 7322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7323 | return NULL; |
1d99702e RD |
7324 | if (_argo0) { |
7325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7328 | return NULL; | |
7329 | } | |
7330 | } | |
7331 | { | |
2cd2fac8 RD |
7332 | #if PYTHON_API_VERSION >= 1009 |
7333 | char* tmpPtr; int tmpSize; | |
7334 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7335 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7336 | return NULL; |
7337 | } | |
7338 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7339 | return NULL; | |
7340 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7341 | #else | |
8ab979d7 RD |
7342 | if (!PyString_Check(_obj1)) { |
7343 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7344 | return NULL; | |
7345 | } | |
2cd2fac8 RD |
7346 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7347 | #endif | |
8ab979d7 | 7348 | } |
cf694132 RD |
7349 | { |
7350 | wxPy_BEGIN_ALLOW_THREADS; | |
7351 | wxMenu_SetTitle(_arg0,*_arg1); | |
7352 | ||
7353 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7354 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7355 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7356 | _resultobj = Py_None; |
7357 | { | |
7358 | if (_obj1) | |
7359 | delete _arg1; | |
7360 | } | |
7361 | return _resultobj; | |
7362 | } | |
7363 | ||
b1462dfa RD |
7364 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7365 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7366 | PyObject * _resultobj; |
b1462dfa | 7367 | wxString * _result; |
8ab979d7 RD |
7368 | wxMenu * _arg0; |
7369 | int _arg1; | |
1d99702e | 7370 | PyObject * _argo0 = 0; |
efc5f224 | 7371 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7372 | |
7373 | self = self; | |
b1462dfa | 7374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7375 | return NULL; |
1d99702e RD |
7376 | if (_argo0) { |
7377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7380 | return NULL; |
7381 | } | |
7382 | } | |
cf694132 RD |
7383 | { |
7384 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7385 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 RD |
7386 | |
7387 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7388 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7389 | }{ |
eec92d76 | 7390 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7391 | } |
7392 | { | |
7393 | delete _result; | |
7394 | } | |
8ab979d7 RD |
7395 | return _resultobj; |
7396 | } | |
7397 | ||
b1462dfa RD |
7398 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7399 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7400 | PyObject * _resultobj; |
8ab979d7 RD |
7401 | wxMenu * _arg0; |
7402 | int _arg1; | |
b1462dfa | 7403 | wxString * _arg2; |
1d99702e | 7404 | PyObject * _argo0 = 0; |
b1462dfa RD |
7405 | PyObject * _obj2 = 0; |
7406 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7407 | |
7408 | self = self; | |
b1462dfa | 7409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7410 | return NULL; |
1d99702e RD |
7411 | if (_argo0) { |
7412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7415 | return NULL; |
7416 | } | |
7417 | } | |
b1462dfa | 7418 | { |
2cd2fac8 RD |
7419 | #if PYTHON_API_VERSION >= 1009 |
7420 | char* tmpPtr; int tmpSize; | |
7421 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7422 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7423 | return NULL; |
7424 | } | |
7425 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7426 | return NULL; | |
7427 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7428 | #else | |
b1462dfa RD |
7429 | if (!PyString_Check(_obj2)) { |
7430 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7431 | return NULL; | |
7432 | } | |
2cd2fac8 RD |
7433 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7434 | #endif | |
b1462dfa | 7435 | } |
8ab979d7 | 7436 | { |
cf694132 | 7437 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7438 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
7439 | |
7440 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7441 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7442 | } Py_INCREF(Py_None); |
7443 | _resultobj = Py_None; | |
8ab979d7 | 7444 | { |
b1462dfa RD |
7445 | if (_obj2) |
7446 | delete _arg2; | |
8ab979d7 RD |
7447 | } |
7448 | return _resultobj; | |
7449 | } | |
7450 | ||
b1462dfa RD |
7451 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7452 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7453 | PyObject * _resultobj; |
7454 | wxString * _result; | |
7455 | wxMenu * _arg0; | |
7456 | int _arg1; | |
1d99702e | 7457 | PyObject * _argo0 = 0; |
efc5f224 | 7458 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7459 | |
7460 | self = self; | |
b1462dfa | 7461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7462 | return NULL; |
1d99702e RD |
7463 | if (_argo0) { |
7464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7467 | return NULL; |
7468 | } | |
7469 | } | |
8ab979d7 | 7470 | { |
cf694132 | 7471 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7472 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
7473 | |
7474 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7475 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7476 | }{ |
eec92d76 | 7477 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7478 | } |
7479 | { | |
7480 | delete _result; | |
7481 | } | |
7482 | return _resultobj; | |
7483 | } | |
7484 | ||
7485 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7486 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7487 | PyObject * _resultobj; |
7488 | wxMenu * _arg0; | |
7489 | int _arg1; | |
7490 | wxString * _arg2; | |
1d99702e | 7491 | PyObject * _argo0 = 0; |
8ab979d7 | 7492 | PyObject * _obj2 = 0; |
efc5f224 | 7493 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7494 | |
7495 | self = self; | |
efc5f224 | 7496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7497 | return NULL; |
1d99702e RD |
7498 | if (_argo0) { |
7499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7502 | return NULL; | |
7503 | } | |
7504 | } | |
7505 | { | |
2cd2fac8 RD |
7506 | #if PYTHON_API_VERSION >= 1009 |
7507 | char* tmpPtr; int tmpSize; | |
7508 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7509 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7510 | return NULL; |
7511 | } | |
7512 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7513 | return NULL; | |
7514 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7515 | #else | |
8ab979d7 RD |
7516 | if (!PyString_Check(_obj2)) { |
7517 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7518 | return NULL; | |
7519 | } | |
2cd2fac8 RD |
7520 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7521 | #endif | |
8ab979d7 | 7522 | } |
cf694132 RD |
7523 | { |
7524 | wxPy_BEGIN_ALLOW_THREADS; | |
7525 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
7526 | ||
7527 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7528 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7529 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7530 | _resultobj = Py_None; |
7531 | { | |
7532 | if (_obj2) | |
7533 | delete _arg2; | |
7534 | } | |
7535 | return _resultobj; | |
7536 | } | |
7537 | ||
b1462dfa RD |
7538 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7539 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7540 | PyObject * _resultobj; |
8ab979d7 | 7541 | wxMenu * _arg0; |
b1462dfa | 7542 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7543 | PyObject * _argo0 = 0; |
b1462dfa RD |
7544 | PyObject * _argo1 = 0; |
7545 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7546 | |
7547 | self = self; | |
b1462dfa | 7548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7549 | return NULL; |
1d99702e RD |
7550 | if (_argo0) { |
7551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
7553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7554 | return NULL; | |
7555 | } | |
7556 | } | |
7557 | if (_argo1) { | |
7558 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7559 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7561 | return NULL; |
7562 | } | |
7563 | } | |
cf694132 RD |
7564 | { |
7565 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7566 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 RD |
7567 | |
7568 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7569 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7570 | } Py_INCREF(Py_None); |
7571 | _resultobj = Py_None; | |
8ab979d7 RD |
7572 | return _resultobj; |
7573 | } | |
7574 | ||
b1462dfa RD |
7575 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7576 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7577 | PyObject * _resultobj; |
7578 | bool _result; | |
7579 | wxMenu * _arg0; | |
7580 | int _arg1; | |
1d99702e | 7581 | PyObject * _argo0 = 0; |
efc5f224 | 7582 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7583 | |
7584 | self = self; | |
b1462dfa | 7585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7586 | return NULL; |
1d99702e RD |
7587 | if (_argo0) { |
7588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
7591 | return NULL; |
7592 | } | |
7593 | } | |
cf694132 RD |
7594 | { |
7595 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7596 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 RD |
7597 | |
7598 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7599 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7600 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7601 | return _resultobj; |
7602 | } | |
7603 | ||
b1462dfa RD |
7604 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7605 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7606 | PyObject * _resultobj; |
b1462dfa | 7607 | bool _result; |
8ab979d7 | 7608 | wxMenu * _arg0; |
b1462dfa | 7609 | wxMenuItem * _arg1; |
1d99702e | 7610 | PyObject * _argo0 = 0; |
b1462dfa RD |
7611 | PyObject * _argo1 = 0; |
7612 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7613 | |
7614 | self = self; | |
b1462dfa | 7615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7616 | return NULL; |
1d99702e RD |
7617 | if (_argo0) { |
7618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7621 | return NULL; |
7622 | } | |
7623 | } | |
b1462dfa RD |
7624 | if (_argo1) { |
7625 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7626 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7628 | return NULL; |
b1462dfa | 7629 | } |
8ab979d7 | 7630 | } |
cf694132 RD |
7631 | { |
7632 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7633 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 RD |
7634 | |
7635 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7636 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7637 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7638 | return _resultobj; |
7639 | } | |
7640 | ||
b1462dfa RD |
7641 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7642 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7643 | PyObject * _resultobj; |
b1462dfa | 7644 | bool _result; |
8bf5d46e | 7645 | wxMenu * _arg0; |
b1462dfa RD |
7646 | size_t _arg1; |
7647 | wxMenuItem * _arg2; | |
1d99702e | 7648 | PyObject * _argo0 = 0; |
b1462dfa RD |
7649 | PyObject * _argo2 = 0; |
7650 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7651 | |
7652 | self = self; | |
b1462dfa | 7653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7654 | return NULL; |
1d99702e RD |
7655 | if (_argo0) { |
7656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7659 | return NULL; |
7660 | } | |
7661 | } | |
b1462dfa RD |
7662 | if (_argo2) { |
7663 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7664 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7666 | return NULL; |
7667 | } | |
7668 | } | |
cf694132 RD |
7669 | { |
7670 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7671 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 RD |
7672 | |
7673 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7674 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7675 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7676 | return _resultobj; |
7677 | } | |
7678 | ||
b1462dfa RD |
7679 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7680 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7681 | PyObject * _resultobj; |
b1462dfa | 7682 | wxMenuItem * _result; |
efc5f224 | 7683 | wxMenu * _arg0; |
b1462dfa | 7684 | int _arg1; |
efc5f224 | 7685 | PyObject * _argo0 = 0; |
b1462dfa | 7686 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
7687 | |
7688 | self = self; | |
b1462dfa | 7689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7690 | return NULL; |
7691 | if (_argo0) { | |
7692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7695 | return NULL; |
7696 | } | |
7697 | } | |
7698 | { | |
7699 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7700 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 RD |
7701 | |
7702 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7703 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7704 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
7705 | return _resultobj; |
7706 | } | |
7707 | ||
b1462dfa RD |
7708 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7709 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7710 | PyObject * _resultobj; |
b1462dfa RD |
7711 | wxMenuItem * _result; |
7712 | wxMenu * _arg0; | |
7713 | wxMenuItem * _arg1; | |
7714 | PyObject * _argo0 = 0; | |
7715 | PyObject * _argo1 = 0; | |
7716 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7717 | |
7718 | self = self; | |
b1462dfa RD |
7719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7720 | return NULL; | |
7721 | if (_argo0) { | |
7722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7725 | return NULL; | |
7726 | } | |
7727 | } | |
7728 | if (_argo1) { | |
7729 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7730 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7732 | return NULL; |
b1462dfa RD |
7733 | } |
7734 | } | |
cf694132 RD |
7735 | { |
7736 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7737 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 RD |
7738 | |
7739 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7740 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7741 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7742 | return _resultobj; |
7743 | } | |
7744 | ||
eb715945 | 7745 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7746 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7747 | PyObject * _resultobj; |
b1462dfa | 7748 | wxMenu * _arg0; |
1d99702e | 7749 | PyObject * _argo0 = 0; |
b1462dfa | 7750 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7751 | |
7752 | self = self; | |
b1462dfa | 7753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7754 | return NULL; |
1d99702e RD |
7755 | if (_argo0) { |
7756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7759 | return NULL; |
7760 | } | |
7761 | } | |
cf694132 RD |
7762 | { |
7763 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7764 | wxMenu_Destroy(_arg0); |
cf694132 RD |
7765 | |
7766 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7767 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7768 | } Py_INCREF(Py_None); |
8ab979d7 | 7769 | _resultobj = Py_None; |
8ab979d7 RD |
7770 | return _resultobj; |
7771 | } | |
7772 | ||
b1462dfa RD |
7773 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7774 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7775 | PyObject * _resultobj; |
b1462dfa RD |
7776 | bool _result; |
7777 | wxMenu * _arg0; | |
8ab979d7 | 7778 | int _arg1; |
1d99702e | 7779 | PyObject * _argo0 = 0; |
b1462dfa | 7780 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7781 | |
7782 | self = self; | |
b1462dfa | 7783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7784 | return NULL; |
1d99702e RD |
7785 | if (_argo0) { |
7786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
7789 | return NULL; |
7790 | } | |
7791 | } | |
cf694132 RD |
7792 | { |
7793 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7794 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 RD |
7795 | |
7796 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7797 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7798 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7799 | return _resultobj; |
7800 | } | |
7801 | ||
b1462dfa RD |
7802 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7803 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7804 | PyObject * _resultobj; |
b1462dfa RD |
7805 | bool _result; |
7806 | wxMenu * _arg0; | |
7807 | wxMenuItem * _arg1; | |
1d99702e | 7808 | PyObject * _argo0 = 0; |
b1462dfa RD |
7809 | PyObject * _argo1 = 0; |
7810 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7811 | |
7812 | self = self; | |
b1462dfa | 7813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7814 | return NULL; |
1d99702e RD |
7815 | if (_argo0) { |
7816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7819 | return NULL; | |
7820 | } | |
7821 | } | |
7822 | if (_argo1) { | |
7823 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7824 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7826 | return NULL; |
7827 | } | |
7828 | } | |
cf694132 RD |
7829 | { |
7830 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7831 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 RD |
7832 | |
7833 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7834 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7835 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7836 | return _resultobj; |
7837 | } | |
7838 | ||
b1462dfa RD |
7839 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
7840 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7841 | PyObject * _resultobj; |
b1462dfa RD |
7842 | size_t _result; |
7843 | wxMenu * _arg0; | |
1d99702e | 7844 | PyObject * _argo0 = 0; |
b1462dfa | 7845 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7846 | |
7847 | self = self; | |
b1462dfa | 7848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 7849 | return NULL; |
1d99702e RD |
7850 | if (_argo0) { |
7851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
7854 | return NULL; |
7855 | } | |
7856 | } | |
cf694132 RD |
7857 | { |
7858 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7859 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 RD |
7860 | |
7861 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7862 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 7863 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7864 | return _resultobj; |
7865 | } | |
7866 | ||
b1462dfa RD |
7867 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
7868 | wxMenuItemList& list = self->GetMenuItems(); | |
7869 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
7870 | } | |
7871 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7872 | PyObject * _resultobj; |
b1462dfa RD |
7873 | PyObject * _result; |
7874 | wxMenu * _arg0; | |
1d99702e | 7875 | PyObject * _argo0 = 0; |
b1462dfa | 7876 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7877 | |
7878 | self = self; | |
b1462dfa | 7879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 7880 | return NULL; |
1d99702e RD |
7881 | if (_argo0) { |
7882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
7885 | return NULL; |
7886 | } | |
7887 | } | |
cf694132 RD |
7888 | { |
7889 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7890 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 RD |
7891 | |
7892 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7893 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7894 | }{ |
7895 | _resultobj = _result; | |
7896 | } | |
8ab979d7 RD |
7897 | return _resultobj; |
7898 | } | |
7899 | ||
b1462dfa RD |
7900 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
7901 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7902 | PyObject * _resultobj; |
b1462dfa RD |
7903 | wxMenu * _arg0; |
7904 | wxEvtHandler * _arg1; | |
1d99702e | 7905 | PyObject * _argo0 = 0; |
b1462dfa RD |
7906 | PyObject * _argo1 = 0; |
7907 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
7908 | |
7909 | self = self; | |
b1462dfa | 7910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7911 | return NULL; |
1d99702e RD |
7912 | if (_argo0) { |
7913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7916 | return NULL; |
7917 | } | |
7918 | } | |
b1462dfa RD |
7919 | if (_argo1) { |
7920 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7921 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 7923 | return NULL; |
b1462dfa | 7924 | } |
8ab979d7 | 7925 | } |
cf694132 RD |
7926 | { |
7927 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7928 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 RD |
7929 | |
7930 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7931 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7932 | } Py_INCREF(Py_None); |
7933 | _resultobj = Py_None; | |
8ab979d7 RD |
7934 | return _resultobj; |
7935 | } | |
7936 | ||
b1462dfa RD |
7937 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
7938 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7939 | PyObject * _resultobj; |
b1462dfa RD |
7940 | wxEvtHandler * _result; |
7941 | wxMenu * _arg0; | |
1d99702e | 7942 | PyObject * _argo0 = 0; |
b1462dfa | 7943 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7944 | |
7945 | self = self; | |
b1462dfa | 7946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 7947 | return NULL; |
1d99702e RD |
7948 | if (_argo0) { |
7949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7952 | return NULL; |
7953 | } | |
7954 | } | |
cf694132 RD |
7955 | { |
7956 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7957 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 RD |
7958 | |
7959 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7960 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7961 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7962 | return _resultobj; |
7963 | } | |
7964 | ||
b1462dfa RD |
7965 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
7966 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 7967 | PyObject * _resultobj; |
b1462dfa RD |
7968 | wxMenu * _arg0; |
7969 | wxWindow * _arg1; | |
2f90df85 | 7970 | PyObject * _argo0 = 0; |
b1462dfa RD |
7971 | PyObject * _argo1 = 0; |
7972 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
7973 | |
7974 | self = self; | |
b1462dfa | 7975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
7976 | return NULL; |
7977 | if (_argo0) { | |
7978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
7981 | return NULL; |
7982 | } | |
7983 | } | |
b1462dfa RD |
7984 | if (_argo1) { |
7985 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7986 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 7988 | return NULL; |
b1462dfa | 7989 | } |
2f90df85 | 7990 | } |
2f90df85 RD |
7991 | { |
7992 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7993 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 RD |
7994 | |
7995 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7996 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
7997 | } Py_INCREF(Py_None); |
7998 | _resultobj = Py_None; | |
2f90df85 RD |
7999 | return _resultobj; |
8000 | } | |
8001 | ||
b1462dfa RD |
8002 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
8003 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8004 | PyObject * _resultobj; |
b1462dfa RD |
8005 | wxWindow * _result; |
8006 | wxMenu * _arg0; | |
1d99702e | 8007 | PyObject * _argo0 = 0; |
b1462dfa | 8008 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8009 | |
8010 | self = self; | |
b1462dfa | 8011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 8012 | return NULL; |
1d99702e RD |
8013 | if (_argo0) { |
8014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
8017 | return NULL; |
8018 | } | |
8019 | } | |
cf694132 RD |
8020 | { |
8021 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8022 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 RD |
8023 | |
8024 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8025 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8026 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8027 | return _resultobj; |
8028 | } | |
8029 | ||
b1462dfa RD |
8030 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
8031 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8032 | PyObject * _resultobj; |
b1462dfa RD |
8033 | long _result; |
8034 | wxMenu * _arg0; | |
1d99702e | 8035 | PyObject * _argo0 = 0; |
b1462dfa | 8036 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8037 | |
8038 | self = self; | |
b1462dfa | 8039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 8040 | return NULL; |
1d99702e RD |
8041 | if (_argo0) { |
8042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
8045 | return NULL; |
8046 | } | |
8047 | } | |
8ab979d7 | 8048 | { |
cf694132 | 8049 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8050 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 RD |
8051 | |
8052 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8053 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8054 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8055 | return _resultobj; |
8056 | } | |
8057 | ||
b1462dfa RD |
8058 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
8059 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8060 | PyObject * _resultobj; |
b1462dfa RD |
8061 | bool _result; |
8062 | wxMenu * _arg0; | |
1d99702e | 8063 | PyObject * _argo0 = 0; |
b1462dfa | 8064 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8065 | |
8066 | self = self; | |
b1462dfa | 8067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 8068 | return NULL; |
1d99702e RD |
8069 | if (_argo0) { |
8070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
8073 | return NULL; |
8074 | } | |
8075 | } | |
8ab979d7 | 8076 | { |
cf694132 | 8077 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8078 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 RD |
8079 | |
8080 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8081 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8082 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8083 | return _resultobj; |
8084 | } | |
8085 | ||
b1462dfa RD |
8086 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
8087 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8088 | PyObject * _resultobj; |
b1462dfa RD |
8089 | wxMenu * _arg0; |
8090 | wxMenu * _arg1; | |
1d99702e | 8091 | PyObject * _argo0 = 0; |
b1462dfa RD |
8092 | PyObject * _argo1 = 0; |
8093 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
8094 | |
8095 | self = self; | |
b1462dfa | 8096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8097 | return NULL; |
1d99702e RD |
8098 | if (_argo0) { |
8099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8102 | return NULL; |
8103 | } | |
8104 | } | |
b1462dfa RD |
8105 | if (_argo1) { |
8106 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8107 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 8109 | return NULL; |
b1462dfa | 8110 | } |
8ab979d7 | 8111 | } |
cf694132 RD |
8112 | { |
8113 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8114 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 RD |
8115 | |
8116 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8117 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8118 | } Py_INCREF(Py_None); |
8ab979d7 | 8119 | _resultobj = Py_None; |
8ab979d7 RD |
8120 | return _resultobj; |
8121 | } | |
8122 | ||
b1462dfa RD |
8123 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
8124 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8125 | PyObject * _resultobj; |
b1462dfa RD |
8126 | wxMenu * _result; |
8127 | wxMenu * _arg0; | |
1d99702e | 8128 | PyObject * _argo0 = 0; |
b1462dfa | 8129 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8130 | |
8131 | self = self; | |
b1462dfa | 8132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 8133 | return NULL; |
1d99702e RD |
8134 | if (_argo0) { |
8135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8138 | return NULL; |
8139 | } | |
8140 | } | |
8ab979d7 | 8141 | { |
cf694132 | 8142 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8143 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 RD |
8144 | |
8145 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8146 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8147 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8148 | return _resultobj; |
8ab979d7 | 8149 | } |
b1462dfa RD |
8150 | |
8151 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8152 | wxMenuBar *src; | |
8153 | wxWindow *dest; | |
8154 | src = (wxMenuBar *) ptr; | |
8155 | dest = (wxWindow *) src; | |
8156 | return (void *) dest; | |
8157 | } | |
8158 | ||
8159 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8160 | wxMenuBar *src; | |
8161 | wxEvtHandler *dest; | |
8162 | src = (wxMenuBar *) ptr; | |
8163 | dest = (wxEvtHandler *) src; | |
8164 | return (void *) dest; | |
8ab979d7 | 8165 | } |
b1462dfa | 8166 | |
9df61a29 RD |
8167 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
8168 | wxMenuBar *src; | |
8169 | wxObject *dest; | |
8170 | src = (wxMenuBar *) ptr; | |
8171 | dest = (wxObject *) src; | |
8172 | return (void *) dest; | |
8173 | } | |
8174 | ||
c368d904 | 8175 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
8176 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8177 | PyObject * _resultobj; | |
8178 | wxMenuBar * _result; | |
c368d904 RD |
8179 | long _arg0 = (long ) 0; |
8180 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
8181 | char _ptemp[128]; |
8182 | ||
8183 | self = self; | |
c368d904 | 8184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
8185 | return NULL; |
8186 | { | |
8187 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 8188 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa RD |
8189 | |
8190 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8191 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8192 | } if (_result) { |
8193 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8194 | _resultobj = Py_BuildValue("s",_ptemp); | |
8195 | } else { | |
8196 | Py_INCREF(Py_None); | |
8197 | _resultobj = Py_None; | |
8198 | } | |
8ab979d7 RD |
8199 | return _resultobj; |
8200 | } | |
8201 | ||
b1462dfa RD |
8202 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
8203 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8204 | PyObject * _resultobj; |
b1462dfa | 8205 | bool _result; |
8ab979d7 | 8206 | wxMenuBar * _arg0; |
b1462dfa | 8207 | wxMenu * _arg1; |
8ab979d7 | 8208 | wxString * _arg2; |
1d99702e | 8209 | PyObject * _argo0 = 0; |
b1462dfa | 8210 | PyObject * _argo1 = 0; |
8ab979d7 | 8211 | PyObject * _obj2 = 0; |
b1462dfa | 8212 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
8213 | |
8214 | self = self; | |
b1462dfa | 8215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8216 | return NULL; |
1d99702e RD |
8217 | if (_argo0) { |
8218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
8221 | return NULL; | |
8222 | } | |
8223 | } | |
8224 | if (_argo1) { | |
8225 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8226 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
8228 | return NULL; |
8229 | } | |
8230 | } | |
8231 | { | |
2cd2fac8 RD |
8232 | #if PYTHON_API_VERSION >= 1009 |
8233 | char* tmpPtr; int tmpSize; | |
8234 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8235 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8236 | return NULL; |
8237 | } | |
8238 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8239 | return NULL; | |
8240 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8241 | #else | |
8ab979d7 RD |
8242 | if (!PyString_Check(_obj2)) { |
8243 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8244 | return NULL; | |
8245 | } | |
2cd2fac8 RD |
8246 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8247 | #endif | |
8ab979d7 | 8248 | } |
cf694132 RD |
8249 | { |
8250 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8251 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 RD |
8252 | |
8253 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8254 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8255 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8256 | { |
8257 | if (_obj2) | |
8258 | delete _arg2; | |
8259 | } | |
8260 | return _resultobj; | |
8261 | } | |
8262 | ||
b1462dfa RD |
8263 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
8264 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8265 | PyObject * _resultobj; |
b1462dfa | 8266 | bool _result; |
8ab979d7 | 8267 | wxMenuBar * _arg0; |
b1462dfa RD |
8268 | size_t _arg1; |
8269 | wxMenu * _arg2; | |
8270 | wxString * _arg3; | |
1d99702e | 8271 | PyObject * _argo0 = 0; |
b1462dfa RD |
8272 | PyObject * _argo2 = 0; |
8273 | PyObject * _obj3 = 0; | |
8274 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
8275 | |
8276 | self = self; | |
b1462dfa | 8277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 8278 | return NULL; |
1d99702e RD |
8279 | if (_argo0) { |
8280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
8283 | return NULL; | |
8284 | } | |
8285 | } | |
8286 | if (_argo2) { | |
8287 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8288 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
8290 | return NULL; |
8291 | } | |
8292 | } | |
b1462dfa | 8293 | { |
2cd2fac8 RD |
8294 | #if PYTHON_API_VERSION >= 1009 |
8295 | char* tmpPtr; int tmpSize; | |
8296 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 8297 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8298 | return NULL; |
8299 | } | |
8300 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8301 | return NULL; | |
8302 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8303 | #else | |
b1462dfa RD |
8304 | if (!PyString_Check(_obj3)) { |
8305 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8306 | return NULL; | |
8307 | } | |
2cd2fac8 RD |
8308 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8309 | #endif | |
b1462dfa | 8310 | } |
cf694132 RD |
8311 | { |
8312 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8313 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
8314 | |
8315 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8316 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8317 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
8318 | { |
8319 | if (_obj3) | |
8320 | delete _arg3; | |
8321 | } | |
8ab979d7 RD |
8322 | return _resultobj; |
8323 | } | |
8324 | ||
b1462dfa RD |
8325 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8326 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8327 | PyObject * _resultobj; |
b1462dfa | 8328 | size_t _result; |
8ab979d7 | 8329 | wxMenuBar * _arg0; |
1d99702e | 8330 | PyObject * _argo0 = 0; |
b1462dfa | 8331 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8332 | |
8333 | self = self; | |
b1462dfa | 8334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8335 | return NULL; |
1d99702e RD |
8336 | if (_argo0) { |
8337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8340 | return NULL; |
8341 | } | |
8342 | } | |
cf694132 RD |
8343 | { |
8344 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8345 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 RD |
8346 | |
8347 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8348 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8349 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8350 | return _resultobj; |
8351 | } | |
8352 | ||
b1462dfa RD |
8353 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8354 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8355 | PyObject * _resultobj; |
b1462dfa | 8356 | wxMenu * _result; |
06c0fba4 | 8357 | wxMenuBar * _arg0; |
b1462dfa | 8358 | size_t _arg1; |
06c0fba4 | 8359 | PyObject * _argo0 = 0; |
b1462dfa | 8360 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
8361 | |
8362 | self = self; | |
b1462dfa | 8363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8364 | return NULL; |
8365 | if (_argo0) { | |
8366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8369 | return NULL; |
8370 | } | |
8371 | } | |
8372 | { | |
8373 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8374 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 RD |
8375 | |
8376 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8377 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8378 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
8379 | return _resultobj; |
8380 | } | |
8381 | ||
2abc0a0f RD |
8382 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8383 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8384 | PyObject * _resultobj; | |
8385 | wxMenu * _result; | |
8386 | wxMenuBar * _arg0; | |
8387 | size_t _arg1; | |
8388 | wxMenu * _arg2; | |
8389 | wxString * _arg3; | |
8390 | PyObject * _argo0 = 0; | |
8391 | PyObject * _argo2 = 0; | |
8392 | PyObject * _obj3 = 0; | |
8393 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
8394 | |
8395 | self = self; | |
8396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8397 | return NULL; | |
8398 | if (_argo0) { | |
8399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8402 | return NULL; | |
8403 | } | |
8404 | } | |
8405 | if (_argo2) { | |
8406 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8407 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8409 | return NULL; | |
8410 | } | |
8411 | } | |
8412 | { | |
2cd2fac8 RD |
8413 | #if PYTHON_API_VERSION >= 1009 |
8414 | char* tmpPtr; int tmpSize; | |
8415 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 8416 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8417 | return NULL; |
8418 | } | |
8419 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8420 | return NULL; | |
8421 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8422 | #else | |
2abc0a0f RD |
8423 | if (!PyString_Check(_obj3)) { |
8424 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8425 | return NULL; | |
8426 | } | |
2cd2fac8 RD |
8427 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8428 | #endif | |
2abc0a0f RD |
8429 | } |
8430 | { | |
8431 | wxPy_BEGIN_ALLOW_THREADS; | |
8432 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
8433 | ||
8434 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8435 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8436 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8437 | { |
8438 | if (_obj3) | |
8439 | delete _arg3; | |
8440 | } | |
8441 | return _resultobj; | |
8442 | } | |
8443 | ||
8444 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8445 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8446 | PyObject * _resultobj; | |
8447 | wxMenu * _result; | |
8448 | wxMenuBar * _arg0; | |
8449 | size_t _arg1; | |
8450 | PyObject * _argo0 = 0; | |
8451 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
8452 | |
8453 | self = self; | |
8454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8455 | return NULL; | |
8456 | if (_argo0) { | |
8457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8460 | return NULL; | |
8461 | } | |
8462 | } | |
8463 | { | |
8464 | wxPy_BEGIN_ALLOW_THREADS; | |
8465 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
8466 | ||
8467 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8468 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8469 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8470 | return _resultobj; |
8471 | } | |
8472 | ||
b1462dfa RD |
8473 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8474 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8475 | PyObject * _resultobj; |
b1462dfa RD |
8476 | wxMenuBar * _arg0; |
8477 | size_t _arg1; | |
8478 | bool _arg2; | |
8479 | PyObject * _argo0 = 0; | |
8480 | int tempbool2; | |
8481 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8482 | ||
8483 | self = self; | |
8484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8485 | return NULL; | |
8486 | if (_argo0) { | |
8487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8490 | return NULL; | |
8491 | } | |
8492 | } | |
8493 | _arg2 = (bool ) tempbool2; | |
8494 | { | |
8495 | wxPy_BEGIN_ALLOW_THREADS; | |
8496 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
8497 | ||
8498 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8499 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8500 | } Py_INCREF(Py_None); |
8501 | _resultobj = Py_None; | |
8502 | return _resultobj; | |
8503 | } | |
8504 | ||
8505 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8506 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8507 | PyObject * _resultobj; | |
8508 | wxMenuBar * _arg0; | |
8509 | size_t _arg1; | |
8510 | wxString * _arg2; | |
1d99702e | 8511 | PyObject * _argo0 = 0; |
cf694132 | 8512 | PyObject * _obj2 = 0; |
b1462dfa | 8513 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8514 | |
8515 | self = self; | |
b1462dfa | 8516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8517 | return NULL; |
1d99702e RD |
8518 | if (_argo0) { |
8519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8522 | return NULL; |
8523 | } | |
8524 | } | |
cf694132 | 8525 | { |
2cd2fac8 RD |
8526 | #if PYTHON_API_VERSION >= 1009 |
8527 | char* tmpPtr; int tmpSize; | |
8528 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8529 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8530 | return NULL; |
8531 | } | |
8532 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8533 | return NULL; | |
8534 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8535 | #else | |
cf694132 RD |
8536 | if (!PyString_Check(_obj2)) { |
8537 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8538 | return NULL; | |
8539 | } | |
2cd2fac8 RD |
8540 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8541 | #endif | |
cf694132 | 8542 | } |
cf694132 | 8543 | { |
b1462dfa RD |
8544 | wxPy_BEGIN_ALLOW_THREADS; |
8545 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
8546 | ||
8547 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8548 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8549 | } Py_INCREF(Py_None); |
8550 | _resultobj = Py_None; | |
8551 | { | |
8552 | if (_obj2) | |
8553 | delete _arg2; | |
8554 | } | |
8555 | return _resultobj; | |
8556 | } | |
8557 | ||
8558 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8559 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8560 | PyObject * _resultobj; | |
8561 | wxString * _result; | |
8562 | wxMenuBar * _arg0; | |
8563 | size_t _arg1; | |
8564 | PyObject * _argo0 = 0; | |
8565 | char *_kwnames[] = { "self","pos", NULL }; | |
8566 | ||
8567 | self = self; | |
8568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8569 | return NULL; | |
8570 | if (_argo0) { | |
8571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8574 | return NULL; | |
8575 | } | |
8576 | } | |
8577 | { | |
8578 | wxPy_BEGIN_ALLOW_THREADS; | |
8579 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
8580 | ||
8581 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8582 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8583 | }{ |
eec92d76 | 8584 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8585 | } |
8586 | { | |
8587 | delete _result; | |
8588 | } | |
8589 | return _resultobj; | |
8590 | } | |
8591 | ||
10be44ac RD |
8592 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
8593 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8594 | PyObject * _resultobj; | |
8595 | int _result; | |
8596 | wxMenuBar * _arg0; | |
8597 | wxString * _arg1; | |
8598 | PyObject * _argo0 = 0; | |
8599 | PyObject * _obj1 = 0; | |
8600 | char *_kwnames[] = { "self","title", NULL }; | |
8601 | ||
8602 | self = self; | |
8603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
8604 | return NULL; | |
8605 | if (_argo0) { | |
8606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
8609 | return NULL; | |
8610 | } | |
8611 | } | |
8612 | { | |
8613 | #if PYTHON_API_VERSION >= 1009 | |
8614 | char* tmpPtr; int tmpSize; | |
8615 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8616 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8617 | return NULL; | |
8618 | } | |
8619 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8620 | return NULL; | |
8621 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8622 | #else | |
8623 | if (!PyString_Check(_obj1)) { | |
8624 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8625 | return NULL; | |
8626 | } | |
8627 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8628 | #endif | |
8629 | } | |
8630 | { | |
8631 | wxPy_BEGIN_ALLOW_THREADS; | |
8632 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); | |
8633 | ||
8634 | wxPy_END_ALLOW_THREADS; | |
8635 | if (PyErr_Occurred()) return NULL; | |
8636 | } _resultobj = Py_BuildValue("i",_result); | |
8637 | { | |
8638 | if (_obj1) | |
8639 | delete _arg1; | |
8640 | } | |
8641 | return _resultobj; | |
8642 | } | |
8643 | ||
b1462dfa RD |
8644 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
8645 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8646 | PyObject * _resultobj; | |
8647 | int _result; | |
8648 | wxMenuBar * _arg0; | |
8649 | wxString * _arg1; | |
8650 | wxString * _arg2; | |
8651 | PyObject * _argo0 = 0; | |
8652 | PyObject * _obj1 = 0; | |
8653 | PyObject * _obj2 = 0; | |
8654 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8655 | ||
8656 | self = self; | |
8657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8658 | return NULL; | |
8659 | if (_argo0) { | |
8660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8663 | return NULL; | |
8664 | } | |
8665 | } | |
8666 | { | |
2cd2fac8 RD |
8667 | #if PYTHON_API_VERSION >= 1009 |
8668 | char* tmpPtr; int tmpSize; | |
8669 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 8670 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8671 | return NULL; |
8672 | } | |
8673 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8674 | return NULL; | |
8675 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8676 | #else | |
b1462dfa | 8677 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
8678 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
8679 | return NULL; | |
8680 | } | |
2cd2fac8 RD |
8681 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8682 | #endif | |
cf694132 | 8683 | } |
b1462dfa | 8684 | { |
2cd2fac8 RD |
8685 | #if PYTHON_API_VERSION >= 1009 |
8686 | char* tmpPtr; int tmpSize; | |
8687 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8688 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8689 | return NULL; |
8690 | } | |
8691 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8692 | return NULL; | |
8693 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8694 | #else | |
b1462dfa RD |
8695 | if (!PyString_Check(_obj2)) { |
8696 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8697 | return NULL; | |
8698 | } | |
2cd2fac8 RD |
8699 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8700 | #endif | |
b1462dfa RD |
8701 | } |
8702 | { | |
8703 | wxPy_BEGIN_ALLOW_THREADS; | |
8704 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
8705 | ||
8706 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8707 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8708 | } _resultobj = Py_BuildValue("i",_result); |
8709 | { | |
8710 | if (_obj1) | |
8711 | delete _arg1; | |
8712 | } | |
8713 | { | |
8714 | if (_obj2) | |
8715 | delete _arg2; | |
8716 | } | |
8717 | return _resultobj; | |
8718 | } | |
8719 | ||
8720 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8721 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8722 | PyObject * _resultobj; | |
8723 | wxMenuItem * _result; | |
8724 | wxMenuBar * _arg0; | |
8725 | int _arg1; | |
8726 | PyObject * _argo0 = 0; | |
8727 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8728 | |
8729 | self = self; | |
8730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8731 | return NULL; | |
8732 | if (_argo0) { | |
8733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8736 | return NULL; |
8737 | } | |
8738 | } | |
8739 | { | |
8740 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8741 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 RD |
8742 | |
8743 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8744 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8745 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8746 | return _resultobj; |
cf694132 | 8747 | } |
b1462dfa RD |
8748 | |
8749 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8750 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8751 | PyObject * _resultobj; | |
8752 | wxMenuBar * _arg0; | |
8753 | int _arg1; | |
8754 | bool _arg2; | |
8755 | PyObject * _argo0 = 0; | |
8756 | int tempbool2; | |
8757 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8758 | ||
8759 | self = self; | |
8760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8761 | return NULL; | |
8762 | if (_argo0) { | |
8763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8766 | return NULL; | |
8767 | } | |
8768 | } | |
8769 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8770 | { |
b1462dfa RD |
8771 | wxPy_BEGIN_ALLOW_THREADS; |
8772 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8773 | ||
8774 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8775 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8776 | } Py_INCREF(Py_None); |
8777 | _resultobj = Py_None; | |
8778 | return _resultobj; | |
cf694132 | 8779 | } |
b1462dfa RD |
8780 | |
8781 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8782 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8783 | PyObject * _resultobj; | |
8784 | wxMenuBar * _arg0; | |
8785 | int _arg1; | |
8786 | bool _arg2; | |
8787 | PyObject * _argo0 = 0; | |
8788 | int tempbool2; | |
8789 | char *_kwnames[] = { "self","id","check", NULL }; | |
8790 | ||
8791 | self = self; | |
8792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8793 | return NULL; | |
8794 | if (_argo0) { | |
8795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8798 | return NULL; | |
8799 | } | |
8800 | } | |
8801 | _arg2 = (bool ) tempbool2; | |
8802 | { | |
8803 | wxPy_BEGIN_ALLOW_THREADS; | |
8804 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8805 | ||
8806 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8807 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8808 | } Py_INCREF(Py_None); |
8809 | _resultobj = Py_None; | |
cf694132 RD |
8810 | return _resultobj; |
8811 | } | |
8812 | ||
b1462dfa RD |
8813 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8814 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8815 | PyObject * _resultobj; |
8816 | bool _result; | |
b1462dfa RD |
8817 | wxMenuBar * _arg0; |
8818 | int _arg1; | |
1d99702e | 8819 | PyObject * _argo0 = 0; |
b1462dfa | 8820 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8821 | |
8822 | self = self; | |
b1462dfa | 8823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
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_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8829 | return NULL; |
8830 | } | |
8831 | } | |
cf694132 RD |
8832 | { |
8833 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8834 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 RD |
8835 | |
8836 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8837 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8838 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8839 | return _resultobj; |
8840 | } | |
8841 | ||
b1462dfa RD |
8842 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8843 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8844 | PyObject * _resultobj; |
8845 | bool _result; | |
b1462dfa RD |
8846 | wxMenuBar * _arg0; |
8847 | int _arg1; | |
1d99702e | 8848 | PyObject * _argo0 = 0; |
b1462dfa | 8849 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8850 | |
8851 | self = self; | |
b1462dfa | 8852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8853 | return NULL; |
1d99702e RD |
8854 | if (_argo0) { |
8855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8858 | return NULL; |
8859 | } | |
8860 | } | |
cf694132 RD |
8861 | { |
8862 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8863 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 RD |
8864 | |
8865 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8866 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8867 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8868 | return _resultobj; |
8869 | } | |
8870 | ||
b1462dfa RD |
8871 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8872 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8873 | PyObject * _resultobj; |
b1462dfa RD |
8874 | wxMenuBar * _arg0; |
8875 | int _arg1; | |
8876 | wxString * _arg2; | |
1d99702e | 8877 | PyObject * _argo0 = 0; |
b1462dfa RD |
8878 | PyObject * _obj2 = 0; |
8879 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8880 | |
8881 | self = self; | |
b1462dfa | 8882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8883 | return NULL; |
1d99702e RD |
8884 | if (_argo0) { |
8885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8888 | return NULL; |
8889 | } | |
8890 | } | |
b1462dfa | 8891 | { |
2cd2fac8 RD |
8892 | #if PYTHON_API_VERSION >= 1009 |
8893 | char* tmpPtr; int tmpSize; | |
8894 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8895 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8896 | return NULL; |
8897 | } | |
8898 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8899 | return NULL; | |
8900 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8901 | #else | |
b1462dfa RD |
8902 | if (!PyString_Check(_obj2)) { |
8903 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8904 | return NULL; | |
8905 | } | |
2cd2fac8 RD |
8906 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8907 | #endif | |
b1462dfa | 8908 | } |
cf694132 RD |
8909 | { |
8910 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8911 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
8912 | |
8913 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8914 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8915 | } Py_INCREF(Py_None); |
8916 | _resultobj = Py_None; | |
8917 | { | |
8918 | if (_obj2) | |
8919 | delete _arg2; | |
8920 | } | |
8ab979d7 RD |
8921 | return _resultobj; |
8922 | } | |
8923 | ||
b1462dfa RD |
8924 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8925 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8926 | PyObject * _resultobj; |
b1462dfa RD |
8927 | wxString * _result; |
8928 | wxMenuBar * _arg0; | |
8929 | int _arg1; | |
1d99702e | 8930 | PyObject * _argo0 = 0; |
b1462dfa | 8931 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8932 | |
8933 | self = self; | |
b1462dfa | 8934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8935 | return NULL; |
1d99702e RD |
8936 | if (_argo0) { |
8937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
8940 | return NULL; | |
8941 | } | |
8942 | } | |
8943 | { | |
8944 | wxPy_BEGIN_ALLOW_THREADS; | |
8945 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
8946 | ||
8947 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8948 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8949 | }{ |
eec92d76 | 8950 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8951 | } |
8952 | { | |
8953 | delete _result; | |
8954 | } | |
8955 | return _resultobj; | |
8956 | } | |
8957 | ||
8958 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
8959 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8960 | PyObject * _resultobj; | |
8961 | wxMenuBar * _arg0; | |
8962 | int _arg1; | |
8963 | wxString * _arg2; | |
8964 | PyObject * _argo0 = 0; | |
8965 | PyObject * _obj2 = 0; | |
8966 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
8967 | ||
8968 | self = self; | |
8969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8970 | return NULL; | |
8971 | if (_argo0) { | |
8972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
8975 | return NULL; | |
8976 | } | |
8977 | } | |
8978 | { | |
2cd2fac8 RD |
8979 | #if PYTHON_API_VERSION >= 1009 |
8980 | char* tmpPtr; int tmpSize; | |
8981 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8982 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8983 | return NULL; |
8984 | } | |
8985 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8986 | return NULL; | |
8987 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8988 | #else | |
b1462dfa RD |
8989 | if (!PyString_Check(_obj2)) { |
8990 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8991 | return NULL; | |
8992 | } | |
2cd2fac8 RD |
8993 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8994 | #endif | |
b1462dfa RD |
8995 | } |
8996 | { | |
8997 | wxPy_BEGIN_ALLOW_THREADS; | |
8998 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
8999 | ||
9000 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9001 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9002 | } Py_INCREF(Py_None); |
9003 | _resultobj = Py_None; | |
9004 | { | |
9005 | if (_obj2) | |
9006 | delete _arg2; | |
9007 | } | |
9008 | return _resultobj; | |
9009 | } | |
9010 | ||
9011 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
9012 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9013 | PyObject * _resultobj; | |
9014 | wxString * _result; | |
9015 | wxMenuBar * _arg0; | |
9016 | int _arg1; | |
9017 | PyObject * _argo0 = 0; | |
9018 | char *_kwnames[] = { "self","id", NULL }; | |
9019 | ||
9020 | self = self; | |
9021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
9022 | return NULL; | |
9023 | if (_argo0) { | |
9024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9027 | return NULL; |
9028 | } | |
9029 | } | |
cf694132 RD |
9030 | { |
9031 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9032 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
9033 | |
9034 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9035 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9036 | }{ |
eec92d76 | 9037 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9038 | } |
9039 | { | |
9040 | delete _result; | |
9041 | } | |
8ab979d7 RD |
9042 | return _resultobj; |
9043 | } | |
9044 | ||
9df61a29 RD |
9045 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
9046 | wxMenuItem *src; | |
9047 | wxObject *dest; | |
9048 | src = (wxMenuItem *) ptr; | |
9049 | dest = (wxObject *) src; | |
9050 | return (void *) dest; | |
9051 | } | |
9052 | ||
b1462dfa RD |
9053 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
9054 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9055 | PyObject * _resultobj; |
b1462dfa RD |
9056 | wxMenuItem * _result; |
9057 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 9058 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
9059 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
9060 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
9061 | bool _arg4 = (bool ) FALSE; | |
9062 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 9063 | PyObject * _argo0 = 0; |
b1462dfa RD |
9064 | PyObject * _obj2 = 0; |
9065 | PyObject * _obj3 = 0; | |
9066 | int tempbool4 = (int) FALSE; | |
9067 | PyObject * _argo5 = 0; | |
9068 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
9069 | char _ptemp[128]; | |
8ab979d7 RD |
9070 | |
9071 | self = self; | |
b1462dfa | 9072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 9073 | return NULL; |
1d99702e RD |
9074 | if (_argo0) { |
9075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9078 | return NULL; | |
9079 | } | |
9080 | } | |
9081 | if (_obj2) | |
9082 | { | |
2cd2fac8 RD |
9083 | #if PYTHON_API_VERSION >= 1009 |
9084 | char* tmpPtr; int tmpSize; | |
9085 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 9086 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9087 | return NULL; |
9088 | } | |
9089 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9090 | return NULL; | |
9091 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9092 | #else | |
b1462dfa RD |
9093 | if (!PyString_Check(_obj2)) { |
9094 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9095 | return NULL; | |
9096 | } | |
2cd2fac8 RD |
9097 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9098 | #endif | |
b1462dfa RD |
9099 | } |
9100 | if (_obj3) | |
9101 | { | |
2cd2fac8 RD |
9102 | #if PYTHON_API_VERSION >= 1009 |
9103 | char* tmpPtr; int tmpSize; | |
9104 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 9105 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9106 | return NULL; |
9107 | } | |
9108 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9109 | return NULL; | |
9110 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9111 | #else | |
b1462dfa RD |
9112 | if (!PyString_Check(_obj3)) { |
9113 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9114 | return NULL; | |
9115 | } | |
2cd2fac8 RD |
9116 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
9117 | #endif | |
b1462dfa RD |
9118 | } |
9119 | _arg4 = (bool ) tempbool4; | |
9120 | if (_argo5) { | |
9121 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9122 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
9124 | return NULL; |
9125 | } | |
9126 | } | |
cf694132 RD |
9127 | { |
9128 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9129 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 RD |
9130 | |
9131 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9132 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9133 | } if (_result) { |
9134 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9135 | _resultobj = Py_BuildValue("s",_ptemp); | |
9136 | } else { | |
9137 | Py_INCREF(Py_None); | |
9138 | _resultobj = Py_None; | |
9139 | } | |
9140 | { | |
9141 | if (_obj2) | |
9142 | delete _arg2; | |
9143 | } | |
9144 | { | |
9145 | if (_obj3) | |
9146 | delete _arg3; | |
9147 | } | |
8ab979d7 RD |
9148 | return _resultobj; |
9149 | } | |
9150 | ||
b1462dfa RD |
9151 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
9152 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9153 | PyObject * _resultobj; |
b1462dfa | 9154 | wxMenu * _result; |
8ab979d7 | 9155 | wxMenuItem * _arg0; |
1d99702e | 9156 | PyObject * _argo0 = 0; |
efc5f224 | 9157 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9158 | |
9159 | self = self; | |
b1462dfa | 9160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 9161 | return NULL; |
1d99702e RD |
9162 | if (_argo0) { |
9163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9166 | return NULL; |
9167 | } | |
9168 | } | |
cf694132 RD |
9169 | { |
9170 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9171 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 RD |
9172 | |
9173 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9174 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9175 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9176 | return _resultobj; |
9177 | } | |
9178 | ||
2abc0a0f RD |
9179 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
9180 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9181 | PyObject * _resultobj; |
9182 | wxMenuItem * _arg0; | |
2abc0a0f | 9183 | int _arg1; |
1d99702e | 9184 | PyObject * _argo0 = 0; |
2abc0a0f | 9185 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9186 | |
9187 | self = self; | |
2abc0a0f | 9188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9189 | return NULL; |
1d99702e RD |
9190 | if (_argo0) { |
9191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 9193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9194 | return NULL; |
9195 | } | |
9196 | } | |
cf694132 RD |
9197 | { |
9198 | wxPy_BEGIN_ALLOW_THREADS; | |
2abc0a0f | 9199 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 RD |
9200 | |
9201 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9202 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9203 | } Py_INCREF(Py_None); |
8ab979d7 | 9204 | _resultobj = Py_None; |
8ab979d7 RD |
9205 | return _resultobj; |
9206 | } | |
9207 | ||
b1462dfa RD |
9208 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
9209 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9210 | PyObject * _resultobj; |
b1462dfa | 9211 | int _result; |
8ab979d7 | 9212 | wxMenuItem * _arg0; |
1d99702e | 9213 | PyObject * _argo0 = 0; |
efc5f224 | 9214 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9215 | |
9216 | self = self; | |
b1462dfa | 9217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 9218 | return NULL; |
1d99702e RD |
9219 | if (_argo0) { |
9220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9223 | return NULL; |
9224 | } | |
9225 | } | |
8ab979d7 | 9226 | { |
cf694132 | 9227 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9228 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 RD |
9229 | |
9230 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9231 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9232 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9233 | return _resultobj; |
9234 | } | |
9235 | ||
b1462dfa RD |
9236 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
9237 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9238 | PyObject * _resultobj; |
b1462dfa | 9239 | bool _result; |
8ab979d7 | 9240 | wxMenuItem * _arg0; |
1d99702e | 9241 | PyObject * _argo0 = 0; |
efc5f224 | 9242 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9243 | |
9244 | self = self; | |
b1462dfa | 9245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 9246 | return NULL; |
1d99702e RD |
9247 | if (_argo0) { |
9248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9251 | return NULL; |
9252 | } | |
9253 | } | |
8ab979d7 | 9254 | { |
cf694132 | 9255 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9256 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 RD |
9257 | |
9258 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9259 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9260 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9261 | return _resultobj; |
9262 | } | |
9263 | ||
b1462dfa RD |
9264 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
9265 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9266 | PyObject * _resultobj; |
9267 | wxMenuItem * _arg0; | |
9268 | wxString * _arg1; | |
1d99702e | 9269 | PyObject * _argo0 = 0; |
8ab979d7 | 9270 | PyObject * _obj1 = 0; |
b1462dfa | 9271 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
9272 | |
9273 | self = self; | |
b1462dfa | 9274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9275 | return NULL; |
1d99702e RD |
9276 | if (_argo0) { |
9277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9280 | return NULL; |
9281 | } | |
9282 | } | |
9283 | { | |
2cd2fac8 RD |
9284 | #if PYTHON_API_VERSION >= 1009 |
9285 | char* tmpPtr; int tmpSize; | |
9286 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 9287 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9288 | return NULL; |
9289 | } | |
9290 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9291 | return NULL; | |
9292 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9293 | #else | |
8ab979d7 RD |
9294 | if (!PyString_Check(_obj1)) { |
9295 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9296 | return NULL; | |
9297 | } | |
2cd2fac8 RD |
9298 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9299 | #endif | |
8ab979d7 | 9300 | } |
cf694132 RD |
9301 | { |
9302 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9303 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 RD |
9304 | |
9305 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9306 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9307 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9308 | _resultobj = Py_None; |
9309 | { | |
9310 | if (_obj1) | |
9311 | delete _arg1; | |
9312 | } | |
9313 | return _resultobj; | |
9314 | } | |
9315 | ||
b1462dfa RD |
9316 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
9317 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9318 | PyObject * _resultobj; |
b1462dfa | 9319 | wxString * _result; |
8ab979d7 | 9320 | wxMenuItem * _arg0; |
1d99702e | 9321 | PyObject * _argo0 = 0; |
b1462dfa | 9322 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9323 | |
9324 | self = self; | |
b1462dfa | 9325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 9326 | return NULL; |
1d99702e RD |
9327 | if (_argo0) { |
9328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9331 | return NULL; |
9332 | } | |
9333 | } | |
cf694132 RD |
9334 | { |
9335 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9336 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 RD |
9337 | |
9338 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9339 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9340 | }{ |
eec92d76 | 9341 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 9342 | } |
cf694132 | 9343 | { |
b1462dfa RD |
9344 | delete _result; |
9345 | } | |
cf694132 RD |
9346 | return _resultobj; |
9347 | } | |
9348 | ||
b1462dfa RD |
9349 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
9350 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9351 | PyObject * _resultobj; |
b1462dfa | 9352 | wxString * _result; |
cf694132 | 9353 | wxMenuItem * _arg0; |
1d99702e | 9354 | PyObject * _argo0 = 0; |
efc5f224 | 9355 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9356 | |
9357 | self = self; | |
b1462dfa | 9358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 9359 | return NULL; |
1d99702e RD |
9360 | if (_argo0) { |
9361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9364 | return NULL; |
9365 | } | |
9366 | } | |
9367 | { | |
9368 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9369 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
9370 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9371 | |
9372 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9373 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9374 | }{ |
eec92d76 | 9375 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 9376 | } |
cf694132 RD |
9377 | return _resultobj; |
9378 | } | |
9379 | ||
b1462dfa RD |
9380 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9381 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9382 | PyObject * _resultobj; |
cf694132 | 9383 | wxMenuItem * _arg0; |
b1462dfa | 9384 | bool _arg1; |
1d99702e | 9385 | PyObject * _argo0 = 0; |
b1462dfa RD |
9386 | int tempbool1; |
9387 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9388 | |
9389 | self = self; | |
b1462dfa | 9390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9391 | return NULL; |
1d99702e RD |
9392 | if (_argo0) { |
9393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9396 | return NULL; |
9397 | } | |
9398 | } | |
b1462dfa | 9399 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9400 | { |
9401 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9402 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 RD |
9403 | |
9404 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9405 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9406 | } Py_INCREF(Py_None); |
9407 | _resultobj = Py_None; | |
cf694132 RD |
9408 | return _resultobj; |
9409 | } | |
9410 | ||
b1462dfa RD |
9411 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9412 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9413 | PyObject * _resultobj; |
b1462dfa | 9414 | bool _result; |
cf694132 | 9415 | wxMenuItem * _arg0; |
1d99702e | 9416 | PyObject * _argo0 = 0; |
efc5f224 | 9417 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9418 | |
9419 | self = self; | |
b1462dfa | 9420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9421 | return NULL; |
1d99702e RD |
9422 | if (_argo0) { |
9423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9426 | return NULL; |
9427 | } | |
9428 | } | |
9429 | { | |
9430 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9431 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 RD |
9432 | |
9433 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9434 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9435 | } _resultobj = Py_BuildValue("i",_result); |
9436 | return _resultobj; | |
9437 | } | |
9438 | ||
b1462dfa RD |
9439 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9440 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9441 | PyObject * _resultobj; |
b1462dfa | 9442 | bool _result; |
cf694132 | 9443 | wxMenuItem * _arg0; |
1d99702e | 9444 | PyObject * _argo0 = 0; |
efc5f224 | 9445 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9446 | |
9447 | self = self; | |
b1462dfa | 9448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9449 | return NULL; |
1d99702e RD |
9450 | if (_argo0) { |
9451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9454 | return NULL; |
9455 | } | |
9456 | } | |
9457 | { | |
9458 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9459 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 RD |
9460 | |
9461 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9462 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9463 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9464 | return _resultobj; |
9465 | } | |
9466 | ||
b1462dfa RD |
9467 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9468 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9469 | PyObject * _resultobj; |
9470 | wxMenuItem * _arg0; | |
b1462dfa | 9471 | wxMenu * _arg1; |
1d99702e RD |
9472 | PyObject * _argo0 = 0; |
9473 | PyObject * _argo1 = 0; | |
b1462dfa | 9474 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9475 | |
9476 | self = self; | |
b1462dfa | 9477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9478 | return NULL; |
1d99702e RD |
9479 | if (_argo0) { |
9480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9483 | return NULL; |
9484 | } | |
9485 | } | |
1d99702e RD |
9486 | if (_argo1) { |
9487 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9488 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9490 | return NULL; |
9491 | } | |
9492 | } | |
9493 | { | |
9494 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9495 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 RD |
9496 | |
9497 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 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_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9505 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9506 | PyObject * _resultobj; |
b1462dfa | 9507 | wxMenu * _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_GetSubMenu",_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_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9519 | return NULL; |
9520 | } | |
9521 | } | |
b1462dfa RD |
9522 | { |
9523 | wxPy_BEGIN_ALLOW_THREADS; | |
9524 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
9525 | ||
9526 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9527 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9528 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
9529 | return _resultobj; |
9530 | } | |
9531 | ||
9532 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9533 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9534 | PyObject * _resultobj; | |
9535 | wxMenuItem * _arg0; | |
9536 | bool _arg1 = (bool ) TRUE; | |
9537 | PyObject * _argo0 = 0; | |
9538 | int tempbool1 = (int) TRUE; | |
9539 | char *_kwnames[] = { "self","enable", NULL }; | |
9540 | ||
9541 | self = self; | |
9542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9543 | return NULL; | |
9544 | if (_argo0) { | |
9545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. 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_Enable(_arg0,_arg1); |
cf694132 RD |
9555 | |
9556 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 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_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9564 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9565 | PyObject * _resultobj; |
b1462dfa | 9566 | bool _result; |
cf694132 | 9567 | wxMenuItem * _arg0; |
1d99702e | 9568 | PyObject * _argo0 = 0; |
b1462dfa | 9569 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9570 | |
9571 | self = self; | |
b1462dfa | 9572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9573 | return NULL; |
1d99702e RD |
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_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
9578 | return NULL; |
9579 | } | |
9580 | } | |
9581 | { | |
9582 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9583 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 RD |
9584 | |
9585 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9586 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9587 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9588 | return _resultobj; |
9589 | } | |
9590 | ||
b1462dfa RD |
9591 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
9592 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9593 | PyObject * _resultobj; |
9594 | wxMenuItem * _arg0; | |
b1462dfa | 9595 | bool _arg1 = (bool ) TRUE; |
1d99702e | 9596 | PyObject * _argo0 = 0; |
b1462dfa RD |
9597 | int tempbool1 = (int) TRUE; |
9598 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
9599 | |
9600 | self = self; | |
b1462dfa | 9601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9602 | return NULL; |
1d99702e RD |
9603 | if (_argo0) { |
9604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
9607 | return NULL; |
9608 | } | |
9609 | } | |
b1462dfa | 9610 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9611 | { |
9612 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9613 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 RD |
9614 | |
9615 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9616 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9617 | } Py_INCREF(Py_None); |
9618 | _resultobj = Py_None; | |
9619 | return _resultobj; | |
9620 | } | |
9621 | ||
b1462dfa RD |
9622 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
9623 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9624 | PyObject * _resultobj; |
b1462dfa | 9625 | bool _result; |
2abc0a0f | 9626 | wxMenuItem * _arg0; |
2abc0a0f | 9627 | PyObject * _argo0 = 0; |
b1462dfa | 9628 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
9629 | |
9630 | self = self; | |
b1462dfa | 9631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
9632 | return NULL; |
9633 | if (_argo0) { | |
9634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9637 | return NULL; |
9638 | } | |
9639 | } | |
2abc0a0f RD |
9640 | { |
9641 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9642 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f RD |
9643 | |
9644 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9645 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9646 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
9647 | return _resultobj; |
9648 | } | |
9649 | ||
b1462dfa RD |
9650 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
9651 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9652 | PyObject * _resultobj; |
2abc0a0f RD |
9653 | wxMenuItem * _arg0; |
9654 | PyObject * _argo0 = 0; | |
9655 | char *_kwnames[] = { "self", NULL }; | |
9656 | ||
9657 | self = self; | |
b1462dfa | 9658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
9659 | return NULL; |
9660 | if (_argo0) { | |
9661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9664 | return NULL; |
9665 | } | |
9666 | } | |
9667 | { | |
9668 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9669 | wxMenuItem_Toggle(_arg0); |
2abc0a0f RD |
9670 | |
9671 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9672 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9673 | } Py_INCREF(Py_None); |
9674 | _resultobj = Py_None; | |
2abc0a0f RD |
9675 | return _resultobj; |
9676 | } | |
9677 | ||
b1462dfa RD |
9678 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
9679 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9680 | PyObject * _resultobj; |
9681 | wxMenuItem * _arg0; | |
b1462dfa | 9682 | wxString * _arg1; |
1d99702e | 9683 | PyObject * _argo0 = 0; |
b1462dfa RD |
9684 | PyObject * _obj1 = 0; |
9685 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
9686 | |
9687 | self = self; | |
b1462dfa | 9688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 9689 | return NULL; |
1d99702e RD |
9690 | if (_argo0) { |
9691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
9694 | return NULL; |
9695 | } | |
9696 | } | |
b1462dfa | 9697 | { |
2cd2fac8 RD |
9698 | #if PYTHON_API_VERSION >= 1009 |
9699 | char* tmpPtr; int tmpSize; | |
9700 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 9701 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9702 | return NULL; |
9703 | } | |
9704 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9705 | return NULL; | |
9706 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9707 | #else | |
b1462dfa RD |
9708 | if (!PyString_Check(_obj1)) { |
9709 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 9710 | return NULL; |
cf694132 | 9711 | } |
2cd2fac8 RD |
9712 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9713 | #endif | |
b1462dfa | 9714 | } |
cf694132 RD |
9715 | { |
9716 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9717 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 RD |
9718 | |
9719 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9720 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9721 | } Py_INCREF(Py_None); |
8ab979d7 | 9722 | _resultobj = Py_None; |
b1462dfa RD |
9723 | { |
9724 | if (_obj1) | |
9725 | delete _arg1; | |
9726 | } | |
8ab979d7 RD |
9727 | return _resultobj; |
9728 | } | |
9729 | ||
b1462dfa RD |
9730 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
9731 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 9732 | PyObject * _resultobj; |
b1462dfa | 9733 | wxString * _result; |
be4d9c1f | 9734 | wxMenuItem * _arg0; |
1d99702e | 9735 | PyObject * _argo0 = 0; |
efc5f224 | 9736 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
9737 | |
9738 | self = self; | |
b1462dfa | 9739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 9740 | return NULL; |
1d99702e RD |
9741 | if (_argo0) { |
9742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
9745 | return NULL; |
9746 | } | |
9747 | } | |
cf694132 RD |
9748 | { |
9749 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9750 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
9751 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9752 | |
9753 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9754 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9755 | }{ |
eec92d76 | 9756 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 9757 | } |
be4d9c1f RD |
9758 | return _resultobj; |
9759 | } | |
9760 | ||
b1462dfa RD |
9761 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
9762 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9763 | PyObject * _resultobj; |
b1462dfa | 9764 | wxAcceleratorEntry * _result; |
2abc0a0f | 9765 | wxMenuItem * _arg0; |
2abc0a0f | 9766 | PyObject * _argo0 = 0; |
b1462dfa RD |
9767 | char *_kwnames[] = { "self", NULL }; |
9768 | char _ptemp[128]; | |
2abc0a0f RD |
9769 | |
9770 | self = self; | |
b1462dfa | 9771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
9772 | return NULL; |
9773 | if (_argo0) { | |
9774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9777 | return NULL; |
9778 | } | |
9779 | } | |
2abc0a0f RD |
9780 | { |
9781 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9782 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f RD |
9783 | |
9784 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9785 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9786 | } if (_result) { |
9787 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9788 | _resultobj = Py_BuildValue("s",_ptemp); | |
9789 | } else { | |
9790 | Py_INCREF(Py_None); | |
9791 | _resultobj = Py_None; | |
9792 | } | |
2abc0a0f RD |
9793 | return _resultobj; |
9794 | } | |
9795 | ||
b1462dfa RD |
9796 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9797 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9798 | PyObject * _resultobj; |
9799 | wxMenuItem * _arg0; | |
b1462dfa | 9800 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9801 | PyObject * _argo0 = 0; |
9802 | PyObject * _argo1 = 0; | |
b1462dfa | 9803 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9804 | |
9805 | self = self; | |
b1462dfa | 9806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9807 | return NULL; |
9808 | if (_argo0) { | |
9809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9812 | return NULL; |
9813 | } | |
9814 | } | |
9815 | if (_argo1) { | |
9816 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9817 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
9818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
9819 | return NULL; |
9820 | } | |
9821 | } | |
9822 | { | |
9823 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9824 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f RD |
9825 | |
9826 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9827 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
9828 | } Py_INCREF(Py_None); |
9829 | _resultobj = Py_None; | |
9830 | return _resultobj; | |
9831 | } | |
9832 | ||
9c4165ad RD |
9833 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9834 | PyObject * _resultobj; | |
9835 | wxString * _result; | |
9836 | wxString * _arg0; | |
9837 | PyObject * _obj0 = 0; | |
9838 | char *_kwnames[] = { "text", NULL }; | |
9839 | ||
9840 | self = self; | |
9841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
9842 | return NULL; | |
9843 | { | |
9844 | #if PYTHON_API_VERSION >= 1009 | |
9845 | char* tmpPtr; int tmpSize; | |
9846 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 9847 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
9c4165ad RD |
9848 | return NULL; |
9849 | } | |
9850 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9851 | return NULL; | |
9852 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9853 | #else | |
9854 | if (!PyString_Check(_obj0)) { | |
9855 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9856 | return NULL; | |
9857 | } | |
9858 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9859 | #endif | |
9860 | } | |
9861 | { | |
9862 | wxPy_BEGIN_ALLOW_THREADS; | |
9863 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); | |
9864 | ||
9865 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9866 | if (PyErr_Occurred()) return NULL; |
9c4165ad RD |
9867 | }{ |
9868 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9869 | } | |
9870 | { | |
9871 | if (_obj0) | |
9872 | delete _arg0; | |
9873 | } | |
9874 | { | |
9875 | delete _result; | |
9876 | } | |
9877 | return _resultobj; | |
9878 | } | |
9879 | ||
8ab979d7 | 9880 | static PyMethodDef windowscMethods[] = { |
9c4165ad | 9881 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9882 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
9883 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
9884 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9885 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9886 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
9887 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9888 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9889 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9890 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9891 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9892 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 9893 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9894 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9895 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
9896 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9897 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9898 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9899 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9900 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
9901 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9902 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9903 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9904 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9905 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
9906 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 9907 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
9908 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
9909 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9910 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9911 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
9912 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
9913 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10be44ac | 9914 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9915 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
9916 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9917 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
9918 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9919 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
9920 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
9921 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
9922 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9923 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
9924 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
9925 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
9926 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
9927 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
9928 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
9929 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9930 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9931 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9932 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9933 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
9934 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9935 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
9936 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9937 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9938 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
9939 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9940 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
9941 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
9942 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9943 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9944 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9945 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9946 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
9947 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9948 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
9949 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 9950 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9951 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9952 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9953 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9954 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9955 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
9956 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
9957 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
9958 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
9959 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
9960 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
9961 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
7a446686 RD |
9962 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
9963 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
9964 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
9965 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
9966 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
9967 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 9968 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 9969 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 9970 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9971 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
9972 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
9973 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
9974 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
9975 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 9976 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9977 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 9978 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9979 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
9980 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
4662be59 RD |
9981 | { "wxDialog_CreateButtonSizer", (PyCFunction) _wrap_wxDialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, |
9982 | { "wxDialog_CreateTextSizer", (PyCFunction) _wrap_wxDialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9983 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, |
9984 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
9985 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
9986 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
9987 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9988 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
9989 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
9990 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
9991 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
9992 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9993 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
9994 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
9995 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
9996 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
9997 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
9998 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
9999 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
10be44ac RD |
10000 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
10001 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10002 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
10003 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10004 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10005 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
10006 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10007 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
10008 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10009 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10010 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10011 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
10012 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10013 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10014 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10015 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10016 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10017 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10018 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10019 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10020 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10021 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
10022 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
10023 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10024 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10025 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 10026 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10027 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10028 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
10029 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10030 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10031 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
2cd2fac8 | 10032 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10033 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
10034 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10035 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10036 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10037 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10038 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10039 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10040 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10041 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10042 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10043 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10044 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10045 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10046 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 10047 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10048 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
10049 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
10050 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
10051 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10052 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10053 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10054 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10055 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
10056 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
10057 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10058 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10059 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10060 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10061 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10062 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
10063 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10064 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10065 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10066 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10067 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10068 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10069 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10070 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
10071 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
10072 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10073 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10074 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10075 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10076 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10077 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10078 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10079 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
10080 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10081 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10082 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10083 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10084 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10085 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10086 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10087 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10088 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10089 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10090 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10091 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10092 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10093 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10094 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10095 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10096 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 10097 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10098 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
10099 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10100 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10101 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10102 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10103 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10104 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10105 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10106 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10107 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10108 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10109 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
10110 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10111 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
10112 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
4dfaa61e | 10113 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10114 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
10115 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10116 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
10117 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
10118 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
9d6da64a | 10119 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
10120 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
10121 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10122 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
10123 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
10124 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10125 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
10126 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
10127 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10128 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10129 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9df61a29 RD |
10130 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
10131 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10132 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
10133 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10134 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
10135 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 10136 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10137 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
10138 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
10139 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10140 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
10141 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10142 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10143 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10144 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10145 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10146 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
a1df7a95 RD |
10147 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
10148 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10149 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 | 10150 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
10151 | { NULL, NULL } |
10152 | }; | |
1d99702e RD |
10153 | #ifdef __cplusplus |
10154 | } | |
10155 | #endif | |
10156 | /* | |
10157 | * This table is used by the pointer type-checker | |
10158 | */ | |
10159 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 10160 | { "_signed_long","_long",0}, |
b1462dfa | 10161 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10162 | { "_wxPrintQuality","_int",0}, |
10163 | { "_wxPrintQuality","_signed_int",0}, | |
10164 | { "_wxPrintQuality","_unsigned_int",0}, | |
10165 | { "_wxPrintQuality","_wxWindowID",0}, | |
10166 | { "_wxPrintQuality","_uint",0}, | |
10167 | { "_wxPrintQuality","_EBool",0}, | |
10168 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10169 | { "_wxPrintQuality","_time_t",0}, |
1d99702e RD |
10170 | { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
10171 | { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10172 | { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10173 | { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10174 | { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10175 | { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10176 | { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10177 | { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10178 | { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10179 | { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10180 | { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
10181 | { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
10182 | { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
10183 | { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
10184 | { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
10185 | { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e | 10186 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10187 | { "_long","_unsigned_long",0}, |
10188 | { "_long","_signed_long",0}, | |
9df61a29 RD |
10189 | { "_class_wxObject","_class_wxMenuItem",SwigwxMenuItemTowxObject}, |
10190 | { "_class_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, | |
10191 | { "_class_wxObject","_class_wxMenuBar",SwigwxMenuBarTowxObject}, | |
10192 | { "_class_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, | |
10193 | { "_class_wxObject","_class_wxMenu",SwigwxMenuTowxObject}, | |
10194 | { "_class_wxObject","_wxMenu",SwigwxMenuTowxObject}, | |
10195 | { "_class_wxObject","_class_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
10196 | { "_class_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
10197 | { "_class_wxObject","_class_wxDialog",SwigwxDialogTowxObject}, | |
10198 | { "_class_wxObject","_wxDialog",SwigwxDialogTowxObject}, | |
10199 | { "_class_wxObject","_class_wxPanel",SwigwxPanelTowxObject}, | |
10200 | { "_class_wxObject","_wxPanel",SwigwxPanelTowxObject}, | |
10201 | { "_class_wxObject","_class_wxWindow",SwigwxWindowTowxObject}, | |
10202 | { "_class_wxObject","_wxWindow",SwigwxWindowTowxObject}, | |
10203 | { "_class_wxObject","_class_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
10204 | { "_class_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
10205 | { "_class_wxObject","_class_wxValidator",SwigwxValidatorTowxObject}, | |
10206 | { "_class_wxObject","_wxValidator",SwigwxValidatorTowxObject}, | |
10207 | { "_class_wxObject","_class_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
10208 | { "_class_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
b1462dfa | 10209 | { "_size_t","_wxCoord",0}, |
1d99702e | 10210 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10211 | { "_size_t","_time_t",0}, |
1d99702e RD |
10212 | { "_size_t","_unsigned_int",0}, |
10213 | { "_size_t","_int",0}, | |
10214 | { "_size_t","_wxWindowID",0}, | |
10215 | { "_size_t","_uint",0}, | |
1d99702e RD |
10216 | { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
10217 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
10218 | { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
10219 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
b1462dfa | 10220 | { "_uint","_wxCoord",0}, |
1d99702e | 10221 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10222 | { "_uint","_time_t",0}, |
1d99702e RD |
10223 | { "_uint","_size_t",0}, |
10224 | { "_uint","_unsigned_int",0}, | |
10225 | { "_uint","_int",0}, | |
10226 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10227 | { "_wxChar","_char",0}, |
f6bcfd97 | 10228 | { "_char","_wxChar",0}, |
2f90df85 RD |
10229 | { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
10230 | { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
b1462dfa | 10231 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10232 | { "_EBool","_wxPrintQuality",0}, |
10233 | { "_EBool","_signed_int",0}, | |
10234 | { "_EBool","_int",0}, | |
10235 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10236 | { "_unsigned_long","_long",0}, |
1d99702e RD |
10237 | { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
10238 | { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
10239 | { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
10240 | { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
b1462dfa | 10241 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10242 | { "_signed_int","_wxPrintQuality",0}, |
10243 | { "_signed_int","_EBool",0}, | |
10244 | { "_signed_int","_wxWindowID",0}, | |
10245 | { "_signed_int","_int",0}, | |
1d99702e RD |
10246 | { "_WXTYPE","_short",0}, |
10247 | { "_WXTYPE","_signed_short",0}, | |
10248 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
10249 | { "_unsigned_short","_WXTYPE",0}, |
10250 | { "_unsigned_short","_short",0}, | |
b1462dfa RD |
10251 | { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, |
10252 | { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
10253 | { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
10254 | { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
10255 | { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
10256 | { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
10257 | { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
10258 | { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
9df61a29 RD |
10259 | { "_wxObject","_class_wxMenuItem",SwigwxMenuItemTowxObject}, |
10260 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, | |
10261 | { "_wxObject","_class_wxMenuBar",SwigwxMenuBarTowxObject}, | |
10262 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, | |
10263 | { "_wxObject","_class_wxMenu",SwigwxMenuTowxObject}, | |
10264 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, | |
10265 | { "_wxObject","_class_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
10266 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
10267 | { "_wxObject","_class_wxDialog",SwigwxDialogTowxObject}, | |
10268 | { "_wxObject","_wxDialog",SwigwxDialogTowxObject}, | |
10269 | { "_wxObject","_class_wxPanel",SwigwxPanelTowxObject}, | |
10270 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, | |
10271 | { "_wxObject","_class_wxWindow",SwigwxWindowTowxObject}, | |
10272 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, | |
10273 | { "_wxObject","_class_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
10274 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
10275 | { "_wxObject","_class_wxValidator",SwigwxValidatorTowxObject}, | |
10276 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, | |
10277 | { "_wxObject","_class_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
10278 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
1d99702e RD |
10279 | { "_signed_short","_WXTYPE",0}, |
10280 | { "_signed_short","_short",0}, | |
1d99702e | 10281 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10282 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10283 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10284 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10285 | { "_unsigned_int","_size_t",0}, |
10286 | { "_unsigned_int","_uint",0}, | |
10287 | { "_unsigned_int","_wxWindowID",0}, | |
10288 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
10289 | { "_short","_WXTYPE",0}, |
10290 | { "_short","_unsigned_short",0}, | |
10291 | { "_short","_signed_short",0}, | |
b1462dfa | 10292 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10293 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10294 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10295 | { "_wxWindowID","_size_t",0}, |
10296 | { "_wxWindowID","_EBool",0}, | |
10297 | { "_wxWindowID","_uint",0}, | |
10298 | { "_wxWindowID","_int",0}, | |
10299 | { "_wxWindowID","_signed_int",0}, | |
10300 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10301 | { "_int","_wxCoord",0}, |
1d99702e | 10302 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10303 | { "_int","_time_t",0}, |
1d99702e RD |
10304 | { "_int","_size_t",0}, |
10305 | { "_int","_EBool",0}, | |
10306 | { "_int","_uint",0}, | |
10307 | { "_int","_wxWindowID",0}, | |
10308 | { "_int","_unsigned_int",0}, | |
10309 | { "_int","_signed_int",0}, | |
c368d904 RD |
10310 | { "_time_t","_wxCoord",0}, |
10311 | { "_time_t","_wxPrintQuality",0}, | |
10312 | { "_time_t","_unsigned_int",0}, | |
10313 | { "_time_t","_int",0}, | |
10314 | { "_time_t","_wxWindowID",0}, | |
10315 | { "_time_t","_uint",0}, | |
10316 | { "_time_t","_size_t",0}, | |
2f90df85 RD |
10317 | { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
10318 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
b1462dfa RD |
10319 | { "_wxCoord","_int",0}, |
10320 | { "_wxCoord","_signed_int",0}, | |
10321 | { "_wxCoord","_unsigned_int",0}, | |
10322 | { "_wxCoord","_wxWindowID",0}, | |
10323 | { "_wxCoord","_uint",0}, | |
10324 | { "_wxCoord","_EBool",0}, | |
10325 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10326 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10327 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e RD |
10328 | { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
10329 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10330 | { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10331 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10332 | { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10333 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10334 | { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10335 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10336 | { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10337 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10338 | { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
10339 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
10340 | { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
10341 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
10342 | { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
10343 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
b1462dfa RD |
10344 | { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, |
10345 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
10346 | { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
10347 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
10348 | { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
10349 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
10350 | { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
10351 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
1d99702e RD |
10352 | {0,0,0}}; |
10353 | ||
8ab979d7 RD |
10354 | static PyObject *SWIG_globals; |
10355 | #ifdef __cplusplus | |
10356 | extern "C" | |
10357 | #endif | |
1d99702e | 10358 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
10359 | PyObject *m, *d; |
10360 | SWIG_globals = SWIG_newvarlink(); | |
10361 | m = Py_InitModule("windowsc", windowscMethods); | |
10362 | d = PyModule_GetDict(m); | |
1d99702e RD |
10363 | { |
10364 | int i; | |
10365 | for (i = 0; _swig_mapping[i].n1; i++) | |
10366 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10367 | } | |
8ab979d7 | 10368 | } |