]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/windows.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
dbbb98cd | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
dbbb98cd | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initwindowsc |
55 | ||
56 | #define SWIG_name "windowsc" | |
57 | ||
58 | #include "helpers.h" | |
8ab979d7 | 59 | #include <wx/menuitem.h> |
8ab979d7 RD |
60 | |
61 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
62 | PyObject* o2; | |
dbbb98cd | 63 | if (!target) { |
8ab979d7 | 64 | target = o; |
dbbb98cd | 65 | } else if (target == Py_None) { |
8ab979d7 RD |
66 | Py_DECREF(Py_None); |
67 | target = o; | |
dbbb98cd | 68 | } else { |
8ab979d7 RD |
69 | if (!PyList_Check(target)) { |
70 | o2 = target; | |
71 | target = PyList_New(0); | |
72 | PyList_Append(target, o2); | |
73 | Py_XDECREF(o2); | |
74 | } | |
75 | PyList_Append(target,o); | |
76 | Py_XDECREF(o); | |
77 | } | |
78 | return target; | |
79 | } | |
80 | ||
81 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
82 | PyObject* o2; | |
83 | PyObject* o3; | |
84 | ||
dbbb98cd | 85 | if (!target) { |
8ab979d7 | 86 | target = o; |
dbbb98cd | 87 | } else if (target == Py_None) { |
8ab979d7 RD |
88 | Py_DECREF(Py_None); |
89 | target = o; | |
dbbb98cd | 90 | } else { |
8ab979d7 RD |
91 | if (!PyTuple_Check(target)) { |
92 | o2 = target; | |
93 | target = PyTuple_New(1); | |
94 | PyTuple_SetItem(target, 0, o2); | |
95 | } | |
dbbb98cd RD |
96 | o3 = PyTuple_New(1); |
97 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
98 | |
99 | o2 = target; | |
dbbb98cd RD |
100 | target = PySequence_Concat(o2, o3); |
101 | Py_DECREF(o2); | |
8ab979d7 RD |
102 | Py_DECREF(o3); |
103 | } | |
104 | return target; | |
105 | } | |
106 | ||
2f90df85 RD |
107 | static char* wxStringErrorMsg = "string type is required for parameter"; |
108 | ||
109 | bool wxValidator_IsSilent() { | |
110 | return wxValidator::IsSilent(); | |
111 | } | |
8ab979d7 | 112 | |
2f90df85 RD |
113 | void wxValidator_SetBellOnError(int doIt = TRUE) { |
114 | wxValidator::SetBellOnError(doIt); | |
115 | } | |
8ab979d7 | 116 | |
2f90df85 RD |
117 | class wxPyValidator : public wxValidator { |
118 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
119 | public: | |
120 | wxPyValidator() { | |
121 | } | |
122 | // wxPyValidator(const wxPyValidator& other); | |
123 | ||
124 | ~wxPyValidator() { | |
125 | } | |
126 | ||
127 | wxObject* wxPyValidator::Clone() const { | |
694759cf RD |
128 | wxPyValidator* ptr = NULL; |
129 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 130 | |
694759cf RD |
131 | bool doSave = wxPyRestoreThread(); |
132 | if (self->m_myInst.findCallback("Clone")) { | |
133 | PyObject* ro; | |
134 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
135 | if (ro) { |
136 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
137 | Py_DECREF(ro); | |
138 | } | |
694759cf RD |
139 | } |
140 | // This is very dangerous!!! But is the only way I could find | |
141 | // to squash a memory leak. Currently it is okay, but if the | |
142 | // validator architecture in wxWindows ever changes, problems | |
143 | // could arise. | |
144 | delete self; | |
2f90df85 | 145 | |
694759cf RD |
146 | wxPySaveThread(doSave); |
147 | return ptr; | |
148 | } | |
2f90df85 RD |
149 | |
150 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); | |
151 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
152 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
153 | ||
154 | PYPRIVATE; | |
155 | // PyObject* m_data; | |
156 | }; | |
157 | ||
158 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
159 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
160 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
161 | ||
162 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 163 | |
8ab979d7 RD |
164 | |
165 | wxWindow* wxWindow_FindFocus() { | |
166 | return wxWindow::FindFocus(); | |
167 | } | |
2f90df85 RD |
168 | |
169 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
170 | wxWindow* win = new wxWindow; | |
171 | win->SetHWND(hWnd); | |
172 | win->SubclassWin(hWnd); | |
173 | return win; | |
174 | } | |
a1df7a95 RD |
175 | |
176 | int wxWindow_NewControlId() { | |
177 | return wxWindow::NewControlId(); | |
178 | } | |
179 | int wxWindow_NextControlId(int id) { | |
180 | return wxWindow::NextControlId(id); | |
181 | } | |
182 | int wxWindow_PrevControlId(int id) { | |
183 | return wxWindow::PrevControlId(id); | |
184 | } | |
2f90df85 RD |
185 | #ifdef __cplusplus |
186 | extern "C" { | |
187 | #endif | |
188 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
189 | PyObject * _resultobj; | |
190 | bool _result; | |
191 | char *_kwnames[] = { NULL }; | |
192 | ||
193 | self = self; | |
194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
195 | return NULL; | |
196 | { | |
197 | wxPy_BEGIN_ALLOW_THREADS; | |
198 | _result = (bool )wxValidator_IsSilent(); | |
199 | ||
200 | wxPy_END_ALLOW_THREADS; | |
201 | } _resultobj = Py_BuildValue("i",_result); | |
202 | return _resultobj; | |
203 | } | |
204 | ||
205 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
206 | PyObject * _resultobj; | |
207 | int _arg0 = (int ) TRUE; | |
208 | char *_kwnames[] = { "doIt", NULL }; | |
209 | ||
210 | self = self; | |
211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
212 | return NULL; | |
213 | { | |
214 | wxPy_BEGIN_ALLOW_THREADS; | |
215 | wxValidator_SetBellOnError(_arg0); | |
216 | ||
217 | wxPy_END_ALLOW_THREADS; | |
218 | } Py_INCREF(Py_None); | |
219 | _resultobj = Py_None; | |
220 | return _resultobj; | |
221 | } | |
222 | ||
223 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
224 | PyObject * _resultobj; | |
225 | wxWindow * _result; | |
226 | char *_kwnames[] = { NULL }; | |
227 | char _ptemp[128]; | |
228 | ||
229 | self = self; | |
230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
231 | return NULL; | |
232 | { | |
233 | wxPy_BEGIN_ALLOW_THREADS; | |
234 | _result = (wxWindow *)wxWindow_FindFocus(); | |
235 | ||
236 | wxPy_END_ALLOW_THREADS; | |
237 | } if (_result) { | |
238 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
239 | _resultobj = Py_BuildValue("s",_ptemp); | |
240 | } else { | |
241 | Py_INCREF(Py_None); | |
242 | _resultobj = Py_None; | |
243 | } | |
244 | return _resultobj; | |
245 | } | |
246 | ||
247 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
248 | PyObject * _resultobj; | |
249 | wxWindow * _result; | |
250 | unsigned long _arg0; | |
251 | char *_kwnames[] = { "hWnd", NULL }; | |
252 | char _ptemp[128]; | |
253 | ||
254 | self = self; | |
255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
256 | return NULL; | |
257 | { | |
258 | wxPy_BEGIN_ALLOW_THREADS; | |
259 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); | |
260 | ||
261 | wxPy_END_ALLOW_THREADS; | |
262 | } if (_result) { | |
263 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
264 | _resultobj = Py_BuildValue("s",_ptemp); | |
265 | } else { | |
266 | Py_INCREF(Py_None); | |
267 | _resultobj = Py_None; | |
268 | } | |
269 | return _resultobj; | |
270 | } | |
271 | ||
a1df7a95 RD |
272 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { |
273 | PyObject * _resultobj; | |
274 | int _result; | |
275 | char *_kwnames[] = { NULL }; | |
276 | ||
277 | self = self; | |
278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
279 | return NULL; | |
280 | { | |
281 | wxPy_BEGIN_ALLOW_THREADS; | |
282 | _result = (int )wxWindow_NewControlId(); | |
283 | ||
284 | wxPy_END_ALLOW_THREADS; | |
285 | } _resultobj = Py_BuildValue("i",_result); | |
286 | return _resultobj; | |
287 | } | |
288 | ||
289 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
290 | PyObject * _resultobj; | |
291 | int _result; | |
292 | int _arg0; | |
293 | char *_kwnames[] = { "id", NULL }; | |
294 | ||
295 | self = self; | |
296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
297 | return NULL; | |
298 | { | |
299 | wxPy_BEGIN_ALLOW_THREADS; | |
300 | _result = (int )wxWindow_NextControlId(_arg0); | |
301 | ||
302 | wxPy_END_ALLOW_THREADS; | |
303 | } _resultobj = Py_BuildValue("i",_result); | |
304 | return _resultobj; | |
305 | } | |
306 | ||
307 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
308 | PyObject * _resultobj; | |
309 | int _result; | |
310 | int _arg0; | |
311 | char *_kwnames[] = { "id", NULL }; | |
312 | ||
313 | self = self; | |
314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
315 | return NULL; | |
316 | { | |
317 | wxPy_BEGIN_ALLOW_THREADS; | |
318 | _result = (int )wxWindow_PrevControlId(_arg0); | |
319 | ||
320 | wxPy_END_ALLOW_THREADS; | |
321 | } _resultobj = Py_BuildValue("i",_result); | |
322 | return _resultobj; | |
323 | } | |
324 | ||
c368d904 RD |
325 | #define new_wxEvtHandler() (new wxEvtHandler()) |
326 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
327 | PyObject * _resultobj; | |
328 | wxEvtHandler * _result; | |
329 | char *_kwnames[] = { NULL }; | |
330 | char _ptemp[128]; | |
331 | ||
332 | self = self; | |
333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
334 | return NULL; | |
335 | { | |
336 | wxPy_BEGIN_ALLOW_THREADS; | |
337 | _result = (wxEvtHandler *)new_wxEvtHandler(); | |
338 | ||
339 | wxPy_END_ALLOW_THREADS; | |
340 | } if (_result) { | |
341 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
342 | _resultobj = Py_BuildValue("s",_ptemp); | |
343 | } else { | |
344 | Py_INCREF(Py_None); | |
345 | _resultobj = Py_None; | |
346 | } | |
347 | return _resultobj; | |
348 | } | |
349 | ||
2f90df85 RD |
350 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
351 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
352 | PyObject * _resultobj; | |
353 | bool _result; | |
354 | wxEvtHandler * _arg0; | |
355 | wxEvent * _arg1; | |
356 | PyObject * _argo0 = 0; | |
357 | PyObject * _argo1 = 0; | |
358 | char *_kwnames[] = { "self","event", NULL }; | |
359 | ||
360 | self = self; | |
361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
362 | return NULL; | |
363 | if (_argo0) { | |
364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
367 | return NULL; | |
368 | } | |
369 | } | |
370 | if (_argo1) { | |
371 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
372 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
374 | return NULL; | |
375 | } | |
376 | } | |
377 | { | |
378 | wxPy_BEGIN_ALLOW_THREADS; | |
379 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
380 | ||
381 | wxPy_END_ALLOW_THREADS; | |
382 | } _resultobj = Py_BuildValue("i",_result); | |
383 | return _resultobj; | |
384 | } | |
385 | ||
f6bcfd97 BP |
386 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
387 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
388 | PyObject * _resultobj; | |
389 | wxEvtHandler * _arg0; | |
390 | wxEvent * _arg1; | |
391 | PyObject * _argo0 = 0; | |
392 | PyObject * _argo1 = 0; | |
393 | char *_kwnames[] = { "self","event", NULL }; | |
394 | ||
395 | self = self; | |
396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
397 | return NULL; | |
398 | if (_argo0) { | |
399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
402 | return NULL; | |
403 | } | |
404 | } | |
405 | if (_argo1) { | |
406 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
407 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
409 | return NULL; | |
410 | } | |
411 | } | |
412 | { | |
413 | wxPy_BEGIN_ALLOW_THREADS; | |
414 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); | |
415 | ||
416 | wxPy_END_ALLOW_THREADS; | |
417 | } Py_INCREF(Py_None); | |
418 | _resultobj = Py_None; | |
419 | return _resultobj; | |
420 | } | |
421 | ||
2f90df85 RD |
422 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
423 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
424 | PyObject * _resultobj; | |
425 | bool _result; | |
426 | wxEvtHandler * _arg0; | |
427 | PyObject * _argo0 = 0; | |
428 | char *_kwnames[] = { "self", NULL }; | |
429 | ||
430 | self = self; | |
431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
432 | return NULL; | |
433 | if (_argo0) { | |
434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
437 | return NULL; | |
438 | } | |
439 | } | |
440 | { | |
441 | wxPy_BEGIN_ALLOW_THREADS; | |
442 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
443 | ||
444 | wxPy_END_ALLOW_THREADS; | |
445 | } _resultobj = Py_BuildValue("i",_result); | |
446 | return _resultobj; | |
447 | } | |
448 | ||
449 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
450 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
451 | PyObject * _resultobj; | |
452 | wxEvtHandler * _arg0; | |
453 | bool _arg1; | |
454 | PyObject * _argo0 = 0; | |
455 | int tempbool1; | |
456 | char *_kwnames[] = { "self","enabled", NULL }; | |
457 | ||
458 | self = self; | |
459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
460 | return NULL; | |
461 | if (_argo0) { | |
462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
465 | return NULL; | |
466 | } | |
467 | } | |
468 | _arg1 = (bool ) tempbool1; | |
469 | { | |
470 | wxPy_BEGIN_ALLOW_THREADS; | |
471 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
472 | ||
473 | wxPy_END_ALLOW_THREADS; | |
474 | } Py_INCREF(Py_None); | |
475 | _resultobj = Py_None; | |
476 | return _resultobj; | |
477 | } | |
478 | ||
479 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
480 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
481 | PyObject * _resultobj; | |
482 | wxEvtHandler * _result; | |
483 | wxEvtHandler * _arg0; | |
484 | PyObject * _argo0 = 0; | |
485 | char *_kwnames[] = { "self", NULL }; | |
486 | char _ptemp[128]; | |
487 | ||
488 | self = self; | |
489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
490 | return NULL; | |
491 | if (_argo0) { | |
492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
495 | return NULL; | |
496 | } | |
497 | } | |
498 | { | |
499 | wxPy_BEGIN_ALLOW_THREADS; | |
500 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
501 | ||
502 | wxPy_END_ALLOW_THREADS; | |
503 | } if (_result) { | |
504 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
505 | _resultobj = Py_BuildValue("s",_ptemp); | |
506 | } else { | |
507 | Py_INCREF(Py_None); | |
508 | _resultobj = Py_None; | |
509 | } | |
510 | return _resultobj; | |
511 | } | |
512 | ||
513 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
514 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
515 | PyObject * _resultobj; | |
516 | wxEvtHandler * _result; | |
517 | wxEvtHandler * _arg0; | |
518 | PyObject * _argo0 = 0; | |
519 | char *_kwnames[] = { "self", NULL }; | |
520 | char _ptemp[128]; | |
521 | ||
522 | self = self; | |
523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
524 | return NULL; | |
525 | if (_argo0) { | |
526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
529 | return NULL; | |
530 | } | |
531 | } | |
532 | { | |
533 | wxPy_BEGIN_ALLOW_THREADS; | |
534 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
535 | ||
536 | wxPy_END_ALLOW_THREADS; | |
537 | } if (_result) { | |
538 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
539 | _resultobj = Py_BuildValue("s",_ptemp); | |
540 | } else { | |
541 | Py_INCREF(Py_None); | |
542 | _resultobj = Py_None; | |
543 | } | |
544 | return _resultobj; | |
545 | } | |
546 | ||
547 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
548 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
549 | PyObject * _resultobj; | |
550 | wxEvtHandler * _arg0; | |
551 | wxEvtHandler * _arg1; | |
552 | PyObject * _argo0 = 0; | |
553 | PyObject * _argo1 = 0; | |
554 | char *_kwnames[] = { "self","handler", NULL }; | |
555 | ||
556 | self = self; | |
557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
558 | return NULL; | |
559 | if (_argo0) { | |
560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
563 | return NULL; | |
564 | } | |
565 | } | |
566 | if (_argo1) { | |
567 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
568 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
570 | return NULL; | |
571 | } | |
572 | } | |
573 | { | |
574 | wxPy_BEGIN_ALLOW_THREADS; | |
575 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
576 | ||
577 | wxPy_END_ALLOW_THREADS; | |
578 | } Py_INCREF(Py_None); | |
579 | _resultobj = Py_None; | |
580 | return _resultobj; | |
581 | } | |
582 | ||
583 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
584 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
585 | PyObject * _resultobj; | |
586 | wxEvtHandler * _arg0; | |
587 | wxEvtHandler * _arg1; | |
588 | PyObject * _argo0 = 0; | |
589 | PyObject * _argo1 = 0; | |
590 | char *_kwnames[] = { "self","handler", NULL }; | |
591 | ||
592 | self = self; | |
593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
594 | return NULL; | |
595 | if (_argo0) { | |
596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
599 | return NULL; | |
600 | } | |
601 | } | |
602 | if (_argo1) { | |
603 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
604 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
606 | return NULL; | |
607 | } | |
608 | } | |
609 | { | |
610 | wxPy_BEGIN_ALLOW_THREADS; | |
611 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
612 | ||
613 | wxPy_END_ALLOW_THREADS; | |
614 | } Py_INCREF(Py_None); | |
615 | _resultobj = Py_None; | |
616 | return _resultobj; | |
617 | } | |
618 | ||
619 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
620 | if (PyCallable_Check(func)) { | |
621 | self->Connect(id, lastId, eventType, | |
622 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
623 | new wxPyCallback(func)); | |
624 | } | |
625 | } | |
626 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
627 | PyObject * _resultobj; | |
628 | wxEvtHandler * _arg0; | |
629 | int _arg1; | |
630 | int _arg2; | |
631 | int _arg3; | |
632 | PyObject * _arg4; | |
633 | PyObject * _argo0 = 0; | |
634 | PyObject * _obj4 = 0; | |
635 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
636 | ||
637 | self = self; | |
638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
639 | return NULL; | |
640 | if (_argo0) { | |
641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
644 | return NULL; | |
645 | } | |
646 | } | |
647 | { | |
648 | _arg4 = _obj4; | |
649 | } | |
650 | { | |
651 | wxPy_BEGIN_ALLOW_THREADS; | |
652 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
653 | ||
654 | wxPy_END_ALLOW_THREADS; | |
655 | } Py_INCREF(Py_None); | |
656 | _resultobj = Py_None; | |
657 | return _resultobj; | |
658 | } | |
659 | ||
6999b0d8 RD |
660 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
661 | return self->Disconnect(id, lastId, eventType, | |
662 | (wxObjectEventFunction) | |
663 | &wxPyCallback::EventThunker); | |
664 | } | |
665 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
666 | PyObject * _resultobj; | |
667 | bool _result; | |
668 | wxEvtHandler * _arg0; | |
669 | int _arg1; | |
670 | int _arg2 = (int ) -1; | |
671 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
672 | PyObject * _argo0 = 0; | |
673 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
674 | ||
675 | self = self; | |
676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
677 | return NULL; | |
678 | if (_argo0) { | |
679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
682 | return NULL; | |
683 | } | |
684 | } | |
685 | { | |
686 | wxPy_BEGIN_ALLOW_THREADS; | |
687 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
688 | ||
689 | wxPy_END_ALLOW_THREADS; | |
690 | } _resultobj = Py_BuildValue("i",_result); | |
691 | return _resultobj; | |
692 | } | |
693 | ||
2f90df85 RD |
694 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
695 | wxValidator *src; | |
696 | wxEvtHandler *dest; | |
697 | src = (wxValidator *) ptr; | |
698 | dest = (wxEvtHandler *) src; | |
699 | return (void *) dest; | |
700 | } | |
701 | ||
702 | #define new_wxValidator() (new wxValidator()) | |
703 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
704 | PyObject * _resultobj; | |
705 | wxValidator * _result; | |
706 | char *_kwnames[] = { NULL }; | |
707 | char _ptemp[128]; | |
708 | ||
709 | self = self; | |
710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
711 | return NULL; | |
712 | { | |
713 | wxPy_BEGIN_ALLOW_THREADS; | |
714 | _result = (wxValidator *)new_wxValidator(); | |
715 | ||
716 | wxPy_END_ALLOW_THREADS; | |
717 | } if (_result) { | |
718 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
719 | _resultobj = Py_BuildValue("s",_ptemp); | |
720 | } else { | |
721 | Py_INCREF(Py_None); | |
722 | _resultobj = Py_None; | |
723 | } | |
724 | return _resultobj; | |
af309447 | 725 | } |
2f90df85 RD |
726 | |
727 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
728 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 729 | PyObject * _resultobj; |
2f90df85 RD |
730 | wxValidator * _result; |
731 | wxValidator * _arg0; | |
732 | PyObject * _argo0 = 0; | |
733 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
734 | char _ptemp[128]; |
735 | ||
736 | self = self; | |
2f90df85 RD |
737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
738 | return NULL; | |
739 | if (_argo0) { | |
740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 743 | return NULL; |
2f90df85 RD |
744 | } |
745 | } | |
cf694132 RD |
746 | { |
747 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 748 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 RD |
749 | |
750 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 751 | } if (_result) { |
2f90df85 | 752 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); |
1d99702e RD |
753 | _resultobj = Py_BuildValue("s",_ptemp); |
754 | } else { | |
755 | Py_INCREF(Py_None); | |
756 | _resultobj = Py_None; | |
757 | } | |
8ab979d7 RD |
758 | return _resultobj; |
759 | } | |
760 | ||
2f90df85 RD |
761 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
762 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
763 | PyObject * _resultobj; |
764 | wxWindow * _result; | |
2f90df85 RD |
765 | wxValidator * _arg0; |
766 | PyObject * _argo0 = 0; | |
767 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
768 | char _ptemp[128]; |
769 | ||
770 | self = self; | |
2f90df85 RD |
771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
772 | return NULL; | |
773 | if (_argo0) { | |
774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 777 | return NULL; |
2f90df85 RD |
778 | } |
779 | } | |
cf694132 RD |
780 | { |
781 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 782 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 RD |
783 | |
784 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
785 | } if (_result) { |
786 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
787 | _resultobj = Py_BuildValue("s",_ptemp); | |
788 | } else { | |
789 | Py_INCREF(Py_None); | |
790 | _resultobj = Py_None; | |
791 | } | |
af309447 RD |
792 | return _resultobj; |
793 | } | |
794 | ||
2f90df85 RD |
795 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
796 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 797 | PyObject * _resultobj; |
2f90df85 RD |
798 | wxValidator * _arg0; |
799 | wxWindow * _arg1; | |
1d99702e RD |
800 | PyObject * _argo0 = 0; |
801 | PyObject * _argo1 = 0; | |
2f90df85 | 802 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
803 | |
804 | self = self; | |
2f90df85 | 805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 806 | return NULL; |
1d99702e RD |
807 | if (_argo0) { |
808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
811 | return NULL; |
812 | } | |
813 | } | |
1d99702e RD |
814 | if (_argo1) { |
815 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
816 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
818 | return NULL; |
819 | } | |
820 | } | |
821 | { | |
822 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 823 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 RD |
824 | |
825 | wxPy_END_ALLOW_THREADS; | |
2f90df85 RD |
826 | } Py_INCREF(Py_None); |
827 | _resultobj = Py_None; | |
cf694132 RD |
828 | return _resultobj; |
829 | } | |
830 | ||
2f90df85 RD |
831 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
832 | wxPyValidator *src; | |
833 | wxValidator *dest; | |
834 | src = (wxPyValidator *) ptr; | |
835 | dest = (wxValidator *) src; | |
836 | return (void *) dest; | |
837 | } | |
838 | ||
839 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
840 | wxPyValidator *src; | |
841 | wxEvtHandler *dest; | |
842 | src = (wxPyValidator *) ptr; | |
843 | dest = (wxEvtHandler *) src; | |
844 | return (void *) dest; | |
845 | } | |
846 | ||
847 | #define new_wxPyValidator() (new wxPyValidator()) | |
848 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
849 | PyObject * _resultobj; | |
850 | wxPyValidator * _result; | |
851 | char *_kwnames[] = { NULL }; | |
852 | char _ptemp[128]; | |
853 | ||
854 | self = self; | |
855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
856 | return NULL; | |
857 | { | |
858 | wxPy_BEGIN_ALLOW_THREADS; | |
859 | _result = (wxPyValidator *)new_wxPyValidator(); | |
860 | ||
861 | wxPy_END_ALLOW_THREADS; | |
862 | } if (_result) { | |
863 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
864 | _resultobj = Py_BuildValue("s",_ptemp); | |
865 | } else { | |
866 | Py_INCREF(Py_None); | |
867 | _resultobj = Py_None; | |
868 | } | |
869 | return _resultobj; | |
870 | } | |
871 | ||
872 | static void wxPyValidator_Destroy(wxPyValidator *self) { delete self; } | |
873 | static PyObject *_wrap_wxPyValidator_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
874 | PyObject * _resultobj; | |
875 | wxPyValidator * _arg0; | |
876 | PyObject * _argo0 = 0; | |
877 | char *_kwnames[] = { "self", NULL }; | |
878 | ||
879 | self = self; | |
880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyValidator_Destroy",_kwnames,&_argo0)) | |
881 | return NULL; | |
882 | if (_argo0) { | |
883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator_Destroy. Expected _wxPyValidator_p."); | |
886 | return NULL; | |
8ab979d7 | 887 | } |
2f90df85 RD |
888 | } |
889 | { | |
890 | wxPy_BEGIN_ALLOW_THREADS; | |
891 | wxPyValidator_Destroy(_arg0); | |
892 | ||
893 | wxPy_END_ALLOW_THREADS; | |
894 | } Py_INCREF(Py_None); | |
895 | _resultobj = Py_None; | |
896 | return _resultobj; | |
897 | } | |
898 | ||
f6bcfd97 | 899 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2)) |
2f90df85 | 900 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 901 | PyObject * _resultobj; |
2f90df85 RD |
902 | wxPyValidator * _arg0; |
903 | PyObject * _arg1; | |
f6bcfd97 BP |
904 | PyObject * _arg2; |
905 | int _arg3 = (int ) TRUE; | |
1d99702e | 906 | PyObject * _argo0 = 0; |
2f90df85 | 907 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
908 | PyObject * _obj2 = 0; |
909 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
910 | |
911 | self = self; | |
f6bcfd97 | 912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 913 | return NULL; |
1d99702e RD |
914 | if (_argo0) { |
915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
8ab979d7 RD |
918 | return NULL; |
919 | } | |
920 | } | |
921 | { | |
2f90df85 | 922 | _arg1 = _obj1; |
8ab979d7 | 923 | } |
f6bcfd97 BP |
924 | { |
925 | _arg2 = _obj2; | |
926 | } | |
cf694132 RD |
927 | { |
928 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 929 | wxPyValidator__setSelf(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
930 | |
931 | wxPy_END_ALLOW_THREADS; | |
932 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
933 | _resultobj = Py_None; |
934 | return _resultobj; | |
935 | } | |
936 | ||
937 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
938 | wxWindow *src; | |
939 | wxEvtHandler *dest; | |
940 | src = (wxWindow *) ptr; | |
941 | dest = (wxEvtHandler *) src; | |
942 | return (void *) dest; | |
943 | } | |
944 | ||
945 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 946 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
947 | PyObject * _resultobj; |
948 | wxWindow * _result; | |
949 | wxWindow * _arg0; | |
950 | wxWindowID _arg1; | |
1d99702e RD |
951 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; |
952 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
953 | long _arg4 = (long ) 0; | |
954 | char * _arg5 = (char *) "panel"; | |
955 | PyObject * _argo0 = 0; | |
2f90df85 RD |
956 | wxPoint temp; |
957 | PyObject * _obj2 = 0; | |
958 | wxSize temp0; | |
959 | PyObject * _obj3 = 0; | |
efc5f224 | 960 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
961 | char _ptemp[128]; |
962 | ||
963 | self = self; | |
2f90df85 | 964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 965 | return NULL; |
1d99702e RD |
966 | if (_argo0) { |
967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
970 | return NULL; | |
971 | } | |
972 | } | |
2f90df85 RD |
973 | if (_obj2) |
974 | { | |
975 | _arg2 = &temp; | |
976 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 977 | return NULL; |
2f90df85 RD |
978 | } |
979 | if (_obj3) | |
980 | { | |
981 | _arg3 = &temp0; | |
982 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 983 | return NULL; |
2f90df85 | 984 | } |
cf694132 RD |
985 | { |
986 | wxPy_BEGIN_ALLOW_THREADS; | |
987 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
988 | ||
989 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
990 | } if (_result) { |
991 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
992 | _resultobj = Py_BuildValue("s",_ptemp); | |
993 | } else { | |
994 | Py_INCREF(Py_None); | |
995 | _resultobj = Py_None; | |
996 | } | |
8ab979d7 RD |
997 | return _resultobj; |
998 | } | |
999 | ||
1000 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
efc5f224 | 1001 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1002 | PyObject * _resultobj; |
1003 | wxWindow * _arg0; | |
1d99702e | 1004 | PyObject * _argo0 = 0; |
efc5f224 | 1005 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1006 | |
1007 | self = self; | |
efc5f224 | 1008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
8ab979d7 | 1009 | return NULL; |
1d99702e RD |
1010 | if (_argo0) { |
1011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
1014 | return NULL; | |
1015 | } | |
1016 | } | |
cf694132 RD |
1017 | { |
1018 | wxPy_BEGIN_ALLOW_THREADS; | |
1019 | wxWindow_CaptureMouse(_arg0); | |
1020 | ||
1021 | wxPy_END_ALLOW_THREADS; | |
1022 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1023 | _resultobj = Py_None; |
1024 | return _resultobj; | |
1025 | } | |
1026 | ||
1027 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 1028 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 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 }; |
8ab979d7 RD |
1034 | |
1035 | self = self; | |
efc5f224 | 1036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 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")) { | |
8ab979d7 RD |
1041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1042 | return NULL; | |
1043 | } | |
1044 | } | |
cf694132 RD |
1045 | { |
1046 | wxPy_BEGIN_ALLOW_THREADS; | |
1047 | wxWindow_Center(_arg0,_arg1); | |
1048 | ||
1049 | wxPy_END_ALLOW_THREADS; | |
1050 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1051 | _resultobj = Py_None; |
1052 | return _resultobj; | |
1053 | } | |
1054 | ||
1055 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1056 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1057 | PyObject * _resultobj; |
1058 | wxWindow * _arg0; | |
1d99702e RD |
1059 | int _arg1 = (int ) wxBOTH; |
1060 | PyObject * _argo0 = 0; | |
efc5f224 | 1061 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1062 | |
1063 | self = self; | |
efc5f224 | 1064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1065 | return NULL; |
1d99702e RD |
1066 | if (_argo0) { |
1067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1070 | return NULL; | |
1071 | } | |
1072 | } | |
cf694132 RD |
1073 | { |
1074 | wxPy_BEGIN_ALLOW_THREADS; | |
1075 | wxWindow_Centre(_arg0,_arg1); | |
1076 | ||
1077 | wxPy_END_ALLOW_THREADS; | |
1078 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1079 | _resultobj = Py_None; |
1080 | return _resultobj; | |
1081 | } | |
1082 | ||
bb0054cd | 1083 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1084 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1085 | PyObject * _resultobj; |
1086 | wxWindow * _arg0; | |
1d99702e RD |
1087 | int _arg1 = (int ) wxBOTH; |
1088 | PyObject * _argo0 = 0; | |
efc5f224 | 1089 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1090 | |
1091 | self = self; | |
efc5f224 | 1092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1093 | return NULL; |
1d99702e RD |
1094 | if (_argo0) { |
1095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1098 | return NULL; | |
1099 | } | |
1100 | } | |
1101 | { | |
1102 | wxPy_BEGIN_ALLOW_THREADS; | |
1103 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1104 | ||
1105 | wxPy_END_ALLOW_THREADS; | |
1106 | } Py_INCREF(Py_None); | |
1107 | _resultobj = Py_None; | |
1108 | return _resultobj; | |
1109 | } | |
1110 | ||
1111 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1112 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1113 | PyObject * _resultobj; |
1114 | wxWindow * _arg0; | |
1d99702e RD |
1115 | int _arg1 = (int ) wxBOTH; |
1116 | PyObject * _argo0 = 0; | |
efc5f224 | 1117 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1118 | |
1119 | self = self; | |
efc5f224 | 1120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1121 | return NULL; |
1d99702e RD |
1122 | if (_argo0) { |
1123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1126 | return NULL; | |
1127 | } | |
1128 | } | |
1129 | { | |
1130 | wxPy_BEGIN_ALLOW_THREADS; | |
1131 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1132 | ||
1133 | wxPy_END_ALLOW_THREADS; | |
1134 | } Py_INCREF(Py_None); | |
1135 | _resultobj = Py_None; | |
1136 | return _resultobj; | |
1137 | } | |
1138 | ||
3ca6a5f0 BP |
1139 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1140 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1141 | PyObject * _resultobj; | |
1142 | wxWindow * _arg0; | |
1143 | int _arg1 = (int ) wxBOTH; | |
1144 | PyObject * _argo0 = 0; | |
1145 | char *_kwnames[] = { "self","direction", NULL }; | |
1146 | ||
1147 | self = self; | |
1148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1149 | return NULL; | |
1150 | if (_argo0) { | |
1151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1154 | return NULL; | |
1155 | } | |
1156 | } | |
1157 | { | |
1158 | wxPy_BEGIN_ALLOW_THREADS; | |
1159 | wxWindow_CentreOnScreen(_arg0,_arg1); | |
1160 | ||
1161 | wxPy_END_ALLOW_THREADS; | |
1162 | } Py_INCREF(Py_None); | |
1163 | _resultobj = Py_None; | |
1164 | return _resultobj; | |
1165 | } | |
1166 | ||
1167 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1168 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1169 | PyObject * _resultobj; | |
1170 | wxWindow * _arg0; | |
1171 | int _arg1 = (int ) wxBOTH; | |
1172 | PyObject * _argo0 = 0; | |
1173 | char *_kwnames[] = { "self","direction", NULL }; | |
1174 | ||
1175 | self = self; | |
1176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1177 | return NULL; | |
1178 | if (_argo0) { | |
1179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1182 | return NULL; | |
1183 | } | |
1184 | } | |
1185 | { | |
1186 | wxPy_BEGIN_ALLOW_THREADS; | |
1187 | wxWindow_CenterOnScreen(_arg0,_arg1); | |
1188 | ||
1189 | wxPy_END_ALLOW_THREADS; | |
1190 | } Py_INCREF(Py_None); | |
1191 | _resultobj = Py_None; | |
1192 | return _resultobj; | |
1193 | } | |
1194 | ||
af309447 | 1195 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1196 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1197 | PyObject * _resultobj; |
1198 | wxWindow * _arg0; | |
1199 | int * _arg1; | |
1200 | int * _arg2; | |
1d99702e | 1201 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1202 | int temp; |
1203 | PyObject * _obj1 = 0; | |
1204 | int temp0; | |
1205 | PyObject * _obj2 = 0; | |
efc5f224 | 1206 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1207 | |
1208 | self = self; | |
efc5f224 | 1209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1210 | return NULL; |
1d99702e RD |
1211 | if (_argo0) { |
1212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1215 | return NULL; |
1216 | } | |
1217 | } | |
1218 | { | |
1219 | temp = (int) PyInt_AsLong(_obj1); | |
1220 | _arg1 = &temp; | |
1221 | } | |
1222 | { | |
1223 | temp0 = (int) PyInt_AsLong(_obj2); | |
1224 | _arg2 = &temp0; | |
1225 | } | |
cf694132 RD |
1226 | { |
1227 | wxPy_BEGIN_ALLOW_THREADS; | |
1228 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1229 | ||
1230 | wxPy_END_ALLOW_THREADS; | |
1231 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1232 | _resultobj = Py_None; |
1233 | { | |
1234 | PyObject *o; | |
1235 | o = PyInt_FromLong((long) (*_arg1)); | |
1236 | _resultobj = t_output_helper(_resultobj, o); | |
1237 | } | |
1238 | { | |
1239 | PyObject *o; | |
1240 | o = PyInt_FromLong((long) (*_arg2)); | |
1241 | _resultobj = t_output_helper(_resultobj, o); | |
1242 | } | |
1243 | return _resultobj; | |
1244 | } | |
1245 | ||
af309447 | 1246 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1247 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1248 | PyObject * _resultobj; |
1249 | wxPoint * _result; | |
1250 | wxWindow * _arg0; | |
1251 | wxPoint * _arg1; | |
1d99702e | 1252 | PyObject * _argo0 = 0; |
2f90df85 RD |
1253 | wxPoint temp; |
1254 | PyObject * _obj1 = 0; | |
efc5f224 | 1255 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1256 | char _ptemp[128]; |
1257 | ||
1258 | self = self; | |
2f90df85 | 1259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1260 | return NULL; |
1d99702e RD |
1261 | if (_argo0) { |
1262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1265 | return NULL; | |
1266 | } | |
1267 | } | |
2f90df85 RD |
1268 | { |
1269 | _arg1 = &temp; | |
1270 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1271 | return NULL; |
2f90df85 | 1272 | } |
cf694132 RD |
1273 | { |
1274 | wxPy_BEGIN_ALLOW_THREADS; | |
1275 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1276 | ||
1277 | wxPy_END_ALLOW_THREADS; | |
1278 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
af309447 RD |
1279 | _resultobj = Py_BuildValue("s",_ptemp); |
1280 | return _resultobj; | |
1281 | } | |
1282 | ||
8ab979d7 | 1283 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1284 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1285 | PyObject * _resultobj; |
1286 | bool _result; | |
1287 | wxWindow * _arg0; | |
1d99702e RD |
1288 | int _arg1 = (int ) FALSE; |
1289 | PyObject * _argo0 = 0; | |
efc5f224 | 1290 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1291 | |
1292 | self = self; | |
efc5f224 | 1293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1294 | return NULL; |
1d99702e RD |
1295 | if (_argo0) { |
1296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1299 | return NULL; | |
1300 | } | |
1301 | } | |
cf694132 RD |
1302 | { |
1303 | wxPy_BEGIN_ALLOW_THREADS; | |
1304 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1305 | ||
1306 | wxPy_END_ALLOW_THREADS; | |
1307 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1308 | return _resultobj; |
1309 | } | |
1310 | ||
1311 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1312 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1313 | PyObject * _resultobj; |
1314 | bool _result; | |
1315 | wxWindow * _arg0; | |
1d99702e | 1316 | PyObject * _argo0 = 0; |
efc5f224 | 1317 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1318 | |
1319 | self = self; | |
efc5f224 | 1320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1321 | return NULL; |
1d99702e RD |
1322 | if (_argo0) { |
1323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1326 | return NULL; | |
1327 | } | |
1328 | } | |
cf694132 RD |
1329 | { |
1330 | wxPy_BEGIN_ALLOW_THREADS; | |
1331 | _result = (bool )wxWindow_Destroy(_arg0); | |
1332 | ||
1333 | wxPy_END_ALLOW_THREADS; | |
1334 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1335 | return _resultobj; |
1336 | } | |
1337 | ||
1338 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1339 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1340 | PyObject * _resultobj; |
1341 | wxWindow * _arg0; | |
1d99702e | 1342 | PyObject * _argo0 = 0; |
efc5f224 | 1343 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1344 | |
1345 | self = self; | |
efc5f224 | 1346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1347 | return NULL; |
1d99702e RD |
1348 | if (_argo0) { |
1349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1352 | return NULL; | |
1353 | } | |
1354 | } | |
cf694132 RD |
1355 | { |
1356 | wxPy_BEGIN_ALLOW_THREADS; | |
1357 | wxWindow_DestroyChildren(_arg0); | |
1358 | ||
1359 | wxPy_END_ALLOW_THREADS; | |
1360 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1361 | _resultobj = Py_None; |
1362 | return _resultobj; | |
1363 | } | |
1364 | ||
1365 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) | |
efc5f224 | 1366 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1367 | PyObject * _resultobj; |
1368 | wxWindow * _arg0; | |
1369 | bool _arg1; | |
1d99702e | 1370 | PyObject * _argo0 = 0; |
8ab979d7 | 1371 | int tempbool1; |
efc5f224 | 1372 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1373 | |
1374 | self = self; | |
efc5f224 | 1375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1376 | return NULL; |
1d99702e RD |
1377 | if (_argo0) { |
1378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1381 | return NULL; | |
1382 | } | |
1383 | } | |
1384 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1385 | { |
1386 | wxPy_BEGIN_ALLOW_THREADS; | |
1387 | wxWindow_DragAcceptFiles(_arg0,_arg1); | |
1388 | ||
1389 | wxPy_END_ALLOW_THREADS; | |
1390 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1391 | _resultobj = Py_None; |
1392 | return _resultobj; | |
1393 | } | |
1394 | ||
1395 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1396 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1397 | PyObject * _resultobj; |
1398 | wxWindow * _arg0; | |
1399 | bool _arg1; | |
1d99702e | 1400 | PyObject * _argo0 = 0; |
8ab979d7 | 1401 | int tempbool1; |
efc5f224 | 1402 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1403 | |
1404 | self = self; | |
efc5f224 | 1405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1406 | return NULL; |
1d99702e RD |
1407 | if (_argo0) { |
1408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1411 | return NULL; | |
1412 | } | |
1413 | } | |
1414 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1415 | { |
1416 | wxPy_BEGIN_ALLOW_THREADS; | |
1417 | wxWindow_Enable(_arg0,_arg1); | |
1418 | ||
1419 | wxPy_END_ALLOW_THREADS; | |
1420 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1421 | _resultobj = Py_None; |
1422 | return _resultobj; | |
1423 | } | |
1424 | ||
af309447 | 1425 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1426 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1427 | PyObject * _resultobj; |
1428 | wxWindow * _result; | |
1429 | wxWindow * _arg0; | |
1430 | long _arg1; | |
1d99702e | 1431 | PyObject * _argo0 = 0; |
efc5f224 | 1432 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1433 | char _ptemp[128]; |
1434 | ||
1435 | self = self; | |
efc5f224 | 1436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1437 | return NULL; |
1d99702e RD |
1438 | if (_argo0) { |
1439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1442 | return NULL; |
1443 | } | |
1444 | } | |
cf694132 RD |
1445 | { |
1446 | wxPy_BEGIN_ALLOW_THREADS; | |
1447 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1448 | ||
1449 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1450 | } if (_result) { |
1451 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1452 | _resultobj = Py_BuildValue("s",_ptemp); | |
1453 | } else { | |
1454 | Py_INCREF(Py_None); | |
1455 | _resultobj = Py_None; | |
1456 | } | |
8ab979d7 RD |
1457 | return _resultobj; |
1458 | } | |
1459 | ||
1460 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1461 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1462 | PyObject * _resultobj; |
1463 | wxWindow * _result; | |
1464 | wxWindow * _arg0; | |
1465 | wxString * _arg1; | |
1d99702e | 1466 | PyObject * _argo0 = 0; |
8ab979d7 | 1467 | PyObject * _obj1 = 0; |
efc5f224 | 1468 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1469 | char _ptemp[128]; |
1470 | ||
1471 | self = self; | |
efc5f224 | 1472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1473 | return NULL; |
1d99702e RD |
1474 | if (_argo0) { |
1475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1478 | return NULL; | |
1479 | } | |
1480 | } | |
1481 | { | |
185d7c3e RD |
1482 | #if PYTHON_API_VERSION >= 1009 |
1483 | char* tmpPtr; int tmpSize; | |
1484 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1485 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1486 | return NULL; | |
1487 | } | |
1488 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1489 | return NULL; | |
1490 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1491 | #else | |
8ab979d7 RD |
1492 | if (!PyString_Check(_obj1)) { |
1493 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1494 | return NULL; | |
1495 | } | |
185d7c3e RD |
1496 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1497 | #endif | |
8ab979d7 | 1498 | } |
cf694132 RD |
1499 | { |
1500 | wxPy_BEGIN_ALLOW_THREADS; | |
1501 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1502 | ||
1503 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1504 | } if (_result) { |
1505 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1506 | _resultobj = Py_BuildValue("s",_ptemp); | |
1507 | } else { | |
1508 | Py_INCREF(Py_None); | |
1509 | _resultobj = Py_None; | |
1510 | } | |
8ab979d7 RD |
1511 | { |
1512 | if (_obj1) | |
1513 | delete _arg1; | |
1514 | } | |
1515 | return _resultobj; | |
1516 | } | |
1517 | ||
1518 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1519 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1520 | PyObject * _resultobj; |
1521 | wxWindow * _arg0; | |
1d99702e | 1522 | PyObject * _argo0 = 0; |
efc5f224 | 1523 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1524 | |
1525 | self = self; | |
efc5f224 | 1526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1527 | return NULL; |
1d99702e RD |
1528 | if (_argo0) { |
1529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1532 | return NULL; | |
1533 | } | |
1534 | } | |
cf694132 RD |
1535 | { |
1536 | wxPy_BEGIN_ALLOW_THREADS; | |
1537 | wxWindow_Fit(_arg0); | |
1538 | ||
1539 | wxPy_END_ALLOW_THREADS; | |
1540 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1541 | _resultobj = Py_None; |
1542 | return _resultobj; | |
1543 | } | |
1544 | ||
1545 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1546 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1547 | PyObject * _resultobj; |
1548 | wxColour * _result; | |
1549 | wxWindow * _arg0; | |
1d99702e | 1550 | PyObject * _argo0 = 0; |
efc5f224 | 1551 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1552 | char _ptemp[128]; |
1553 | ||
1554 | self = self; | |
efc5f224 | 1555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1556 | return NULL; |
1d99702e RD |
1557 | if (_argo0) { |
1558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1561 | return NULL; | |
1562 | } | |
1563 | } | |
cf694132 RD |
1564 | { |
1565 | wxPy_BEGIN_ALLOW_THREADS; | |
1566 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1567 | ||
1568 | wxPy_END_ALLOW_THREADS; | |
1569 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
1570 | _resultobj = Py_BuildValue("s",_ptemp); |
1571 | return _resultobj; | |
1572 | } | |
1573 | ||
d426c97e RD |
1574 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1575 | wxWindowList& list = self->GetChildren(); | |
1576 | return wxPy_ConvertList(&list, "wxWindow"); | |
1577 | } | |
1578 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1579 | PyObject * _resultobj; | |
1580 | PyObject * _result; | |
1581 | wxWindow * _arg0; | |
1582 | PyObject * _argo0 = 0; | |
1583 | char *_kwnames[] = { "self", NULL }; | |
1584 | ||
1585 | self = self; | |
1586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1587 | return NULL; | |
1588 | if (_argo0) { | |
1589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1592 | return NULL; | |
1593 | } | |
1594 | } | |
1595 | { | |
1596 | wxPy_BEGIN_ALLOW_THREADS; | |
1597 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1598 | ||
1599 | wxPy_END_ALLOW_THREADS; | |
1600 | }{ | |
1601 | _resultobj = _result; | |
1602 | } | |
1603 | return _resultobj; | |
1604 | } | |
1605 | ||
8ab979d7 | 1606 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1607 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1608 | PyObject * _resultobj; |
1609 | int _result; | |
1610 | wxWindow * _arg0; | |
1d99702e | 1611 | PyObject * _argo0 = 0; |
efc5f224 | 1612 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1613 | |
1614 | self = self; | |
efc5f224 | 1615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1616 | return NULL; |
1d99702e RD |
1617 | if (_argo0) { |
1618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1621 | return NULL; | |
1622 | } | |
1623 | } | |
cf694132 RD |
1624 | { |
1625 | wxPy_BEGIN_ALLOW_THREADS; | |
1626 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1627 | ||
1628 | wxPy_END_ALLOW_THREADS; | |
1629 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1630 | return _resultobj; |
1631 | } | |
1632 | ||
1633 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1634 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1635 | PyObject * _resultobj; |
1636 | int _result; | |
1637 | wxWindow * _arg0; | |
1d99702e | 1638 | PyObject * _argo0 = 0; |
efc5f224 | 1639 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1640 | |
1641 | self = self; | |
efc5f224 | 1642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1643 | return NULL; |
1d99702e RD |
1644 | if (_argo0) { |
1645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1648 | return NULL; | |
1649 | } | |
1650 | } | |
cf694132 RD |
1651 | { |
1652 | wxPy_BEGIN_ALLOW_THREADS; | |
1653 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1654 | ||
1655 | wxPy_END_ALLOW_THREADS; | |
1656 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1657 | return _resultobj; |
1658 | } | |
1659 | ||
b8b8dda7 | 1660 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1661 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1662 | PyObject * _resultobj; |
1663 | wxWindow * _arg0; | |
1664 | int * _arg1; | |
1665 | int temp; | |
1666 | int * _arg2; | |
1667 | int temp0; | |
1d99702e | 1668 | PyObject * _argo0 = 0; |
efc5f224 | 1669 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1670 | |
1671 | self = self; | |
1672 | { | |
1673 | _arg1 = &temp; | |
1674 | } | |
1675 | { | |
1676 | _arg2 = &temp0; | |
1677 | } | |
efc5f224 | 1678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1679 | return NULL; |
1d99702e RD |
1680 | if (_argo0) { |
1681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1684 | return NULL; |
1685 | } | |
1686 | } | |
cf694132 RD |
1687 | { |
1688 | wxPy_BEGIN_ALLOW_THREADS; | |
1689 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1690 | ||
1691 | wxPy_END_ALLOW_THREADS; | |
1692 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1693 | _resultobj = Py_None; |
1694 | { | |
1695 | PyObject *o; | |
1696 | o = PyInt_FromLong((long) (*_arg1)); | |
1697 | _resultobj = t_output_helper(_resultobj, o); | |
1698 | } | |
1699 | { | |
1700 | PyObject *o; | |
1701 | o = PyInt_FromLong((long) (*_arg2)); | |
1702 | _resultobj = t_output_helper(_resultobj, o); | |
1703 | } | |
1704 | return _resultobj; | |
1705 | } | |
1706 | ||
b8b8dda7 | 1707 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1708 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1709 | PyObject * _resultobj; |
1710 | wxSize * _result; | |
1711 | wxWindow * _arg0; | |
1d99702e | 1712 | PyObject * _argo0 = 0; |
efc5f224 | 1713 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1714 | char _ptemp[128]; |
1715 | ||
1716 | self = self; | |
efc5f224 | 1717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1718 | return NULL; |
1d99702e RD |
1719 | if (_argo0) { |
1720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1723 | return NULL; | |
1724 | } | |
1725 | } | |
cf694132 RD |
1726 | { |
1727 | wxPy_BEGIN_ALLOW_THREADS; | |
1728 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1729 | ||
1730 | wxPy_END_ALLOW_THREADS; | |
1731 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
1732 | _resultobj = Py_BuildValue("s",_ptemp); |
1733 | return _resultobj; | |
1734 | } | |
1735 | ||
8ab979d7 | 1736 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1737 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1738 | PyObject * _resultobj; |
1739 | wxLayoutConstraints * _result; | |
1740 | wxWindow * _arg0; | |
1d99702e | 1741 | PyObject * _argo0 = 0; |
efc5f224 | 1742 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1743 | char _ptemp[128]; |
1744 | ||
1745 | self = self; | |
efc5f224 | 1746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1747 | return NULL; |
1d99702e RD |
1748 | if (_argo0) { |
1749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1752 | return NULL; | |
1753 | } | |
1754 | } | |
cf694132 RD |
1755 | { |
1756 | wxPy_BEGIN_ALLOW_THREADS; | |
1757 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1758 | ||
1759 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1760 | } if (_result) { |
1761 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1762 | _resultobj = Py_BuildValue("s",_ptemp); | |
1763 | } else { | |
1764 | Py_INCREF(Py_None); | |
1765 | _resultobj = Py_None; | |
1766 | } | |
8ab979d7 RD |
1767 | return _resultobj; |
1768 | } | |
1769 | ||
1afc06c2 RD |
1770 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1771 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1772 | PyObject * _resultobj; | |
1773 | wxEvtHandler * _result; | |
1774 | wxWindow * _arg0; | |
1775 | PyObject * _argo0 = 0; | |
1776 | char *_kwnames[] = { "self", NULL }; | |
1777 | char _ptemp[128]; | |
1778 | ||
1779 | self = self; | |
1780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1781 | return NULL; | |
1782 | if (_argo0) { | |
1783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1786 | return NULL; | |
1787 | } | |
1788 | } | |
1789 | { | |
1790 | wxPy_BEGIN_ALLOW_THREADS; | |
1791 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1792 | ||
1793 | wxPy_END_ALLOW_THREADS; | |
1794 | } if (_result) { | |
1795 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
1796 | _resultobj = Py_BuildValue("s",_ptemp); | |
1797 | } else { | |
1798 | Py_INCREF(Py_None); | |
1799 | _resultobj = Py_None; | |
1800 | } | |
1801 | return _resultobj; | |
1802 | } | |
1803 | ||
8ab979d7 | 1804 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1805 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1806 | PyObject * _resultobj; |
1807 | wxFont * _result; | |
1808 | wxWindow * _arg0; | |
1d99702e | 1809 | PyObject * _argo0 = 0; |
efc5f224 | 1810 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1811 | char _ptemp[128]; |
1812 | ||
1813 | self = self; | |
efc5f224 | 1814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1815 | return NULL; |
1d99702e RD |
1816 | if (_argo0) { |
1817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1820 | return NULL; | |
1821 | } | |
1822 | } | |
cf694132 RD |
1823 | { |
1824 | wxPy_BEGIN_ALLOW_THREADS; | |
1825 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
b8b8dda7 | 1826 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
1827 | |
1828 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1829 | } if (_result) { |
1830 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1831 | _resultobj = Py_BuildValue("s",_ptemp); | |
1832 | } else { | |
1833 | Py_INCREF(Py_None); | |
1834 | _resultobj = Py_None; | |
1835 | } | |
8ab979d7 RD |
1836 | return _resultobj; |
1837 | } | |
1838 | ||
1839 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1840 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1841 | PyObject * _resultobj; |
1842 | wxColour * _result; | |
1843 | wxWindow * _arg0; | |
1d99702e | 1844 | PyObject * _argo0 = 0; |
efc5f224 | 1845 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1846 | char _ptemp[128]; |
1847 | ||
1848 | self = self; | |
efc5f224 | 1849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_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_GetForegroundColour. Expected _wxWindow_p."); |
1855 | return NULL; | |
1856 | } | |
1857 | } | |
cf694132 RD |
1858 | { |
1859 | wxPy_BEGIN_ALLOW_THREADS; | |
1860 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1861 | ||
1862 | wxPy_END_ALLOW_THREADS; | |
1863 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
1864 | _resultobj = Py_BuildValue("s",_ptemp); |
1865 | return _resultobj; | |
1866 | } | |
1867 | ||
1868 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1869 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1870 | PyObject * _resultobj; |
1871 | wxWindow * _result; | |
1872 | wxWindow * _arg0; | |
1d99702e | 1873 | PyObject * _argo0 = 0; |
efc5f224 | 1874 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1875 | char _ptemp[128]; |
1876 | ||
1877 | self = self; | |
efc5f224 | 1878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1879 | return NULL; |
1d99702e RD |
1880 | if (_argo0) { |
1881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1884 | return NULL; | |
1885 | } | |
1886 | } | |
cf694132 RD |
1887 | { |
1888 | wxPy_BEGIN_ALLOW_THREADS; | |
1889 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1890 | ||
1891 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1892 | } if (_result) { |
1893 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1894 | _resultobj = Py_BuildValue("s",_ptemp); | |
1895 | } else { | |
1896 | Py_INCREF(Py_None); | |
1897 | _resultobj = Py_None; | |
1898 | } | |
8ab979d7 RD |
1899 | return _resultobj; |
1900 | } | |
1901 | ||
2abc0a0f | 1902 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1903 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1904 | } |
1905 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1906 | PyObject * _resultobj; | |
1907 | long _result; | |
1908 | wxWindow * _arg0; | |
1909 | PyObject * _argo0 = 0; | |
1910 | char *_kwnames[] = { "self", NULL }; | |
1911 | ||
1912 | self = self; | |
1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1914 | return NULL; | |
1915 | if (_argo0) { | |
1916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1919 | return NULL; | |
1920 | } | |
1921 | } | |
1922 | { | |
1923 | wxPy_BEGIN_ALLOW_THREADS; | |
1924 | _result = (long )wxWindow_GetHandle(_arg0); | |
1925 | ||
1926 | wxPy_END_ALLOW_THREADS; | |
1927 | } _resultobj = Py_BuildValue("l",_result); | |
1928 | return _resultobj; | |
1929 | } | |
1930 | ||
8ab979d7 | 1931 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 1932 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1933 | PyObject * _resultobj; |
1934 | int _result; | |
1935 | wxWindow * _arg0; | |
1d99702e | 1936 | PyObject * _argo0 = 0; |
efc5f224 | 1937 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1938 | |
1939 | self = self; | |
efc5f224 | 1940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 1941 | return NULL; |
1d99702e RD |
1942 | if (_argo0) { |
1943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
1946 | return NULL; | |
1947 | } | |
1948 | } | |
cf694132 RD |
1949 | { |
1950 | wxPy_BEGIN_ALLOW_THREADS; | |
1951 | _result = (int )wxWindow_GetId(_arg0); | |
1952 | ||
1953 | wxPy_END_ALLOW_THREADS; | |
1954 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1955 | return _resultobj; |
1956 | } | |
1957 | ||
8ab979d7 | 1958 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 1959 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1960 | PyObject * _resultobj; |
1961 | wxString * _result; | |
1962 | wxWindow * _arg0; | |
1d99702e | 1963 | PyObject * _argo0 = 0; |
efc5f224 | 1964 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1965 | |
1966 | self = self; | |
efc5f224 | 1967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 1968 | return NULL; |
1d99702e RD |
1969 | if (_argo0) { |
1970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
1973 | return NULL; | |
1974 | } | |
1975 | } | |
8ab979d7 | 1976 | { |
cf694132 RD |
1977 | wxPy_BEGIN_ALLOW_THREADS; |
1978 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
1979 | ||
1980 | wxPy_END_ALLOW_THREADS; | |
1981 | }{ | |
eec92d76 | 1982 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1983 | } |
1984 | { | |
1985 | delete _result; | |
1986 | } | |
1987 | return _resultobj; | |
1988 | } | |
1989 | ||
bb0054cd | 1990 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 1991 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1992 | PyObject * _resultobj; |
1993 | wxWindow * _arg0; | |
1994 | wxString * _arg1; | |
1d99702e | 1995 | PyObject * _argo0 = 0; |
bb0054cd | 1996 | PyObject * _obj1 = 0; |
efc5f224 | 1997 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
1998 | |
1999 | self = self; | |
efc5f224 | 2000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2001 | return NULL; |
1d99702e RD |
2002 | if (_argo0) { |
2003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2006 | return NULL; | |
2007 | } | |
2008 | } | |
2009 | { | |
185d7c3e RD |
2010 | #if PYTHON_API_VERSION >= 1009 |
2011 | char* tmpPtr; int tmpSize; | |
2012 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2013 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2014 | return NULL; | |
2015 | } | |
2016 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2017 | return NULL; | |
2018 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2019 | #else | |
bb0054cd RD |
2020 | if (!PyString_Check(_obj1)) { |
2021 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2022 | return NULL; | |
2023 | } | |
185d7c3e RD |
2024 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2025 | #endif | |
bb0054cd RD |
2026 | } |
2027 | { | |
2028 | wxPy_BEGIN_ALLOW_THREADS; | |
2029 | wxWindow_SetLabel(_arg0,*_arg1); | |
2030 | ||
2031 | wxPy_END_ALLOW_THREADS; | |
2032 | } Py_INCREF(Py_None); | |
2033 | _resultobj = Py_None; | |
2034 | { | |
2035 | if (_obj1) | |
2036 | delete _arg1; | |
2037 | } | |
2038 | return _resultobj; | |
2039 | } | |
2040 | ||
8ab979d7 | 2041 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2042 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2043 | PyObject * _resultobj; |
2044 | wxString * _result; | |
2045 | wxWindow * _arg0; | |
1d99702e | 2046 | PyObject * _argo0 = 0; |
efc5f224 | 2047 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2048 | |
2049 | self = self; | |
efc5f224 | 2050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2051 | return NULL; |
1d99702e RD |
2052 | if (_argo0) { |
2053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2056 | return NULL; | |
2057 | } | |
2058 | } | |
8ab979d7 | 2059 | { |
cf694132 RD |
2060 | wxPy_BEGIN_ALLOW_THREADS; |
2061 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2062 | ||
2063 | wxPy_END_ALLOW_THREADS; | |
2064 | }{ | |
eec92d76 | 2065 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2066 | } |
2067 | { | |
2068 | delete _result; | |
2069 | } | |
2070 | return _resultobj; | |
2071 | } | |
2072 | ||
2073 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2074 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2075 | PyObject * _resultobj; |
2076 | wxWindow * _result; | |
2077 | wxWindow * _arg0; | |
1d99702e | 2078 | PyObject * _argo0 = 0; |
efc5f224 | 2079 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2080 | char _ptemp[128]; |
2081 | ||
2082 | self = self; | |
efc5f224 | 2083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2084 | return NULL; |
1d99702e RD |
2085 | if (_argo0) { |
2086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2089 | return NULL; | |
2090 | } | |
2091 | } | |
cf694132 RD |
2092 | { |
2093 | wxPy_BEGIN_ALLOW_THREADS; | |
2094 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2095 | ||
2096 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2097 | } if (_result) { |
2098 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
2099 | _resultobj = Py_BuildValue("s",_ptemp); | |
2100 | } else { | |
2101 | Py_INCREF(Py_None); | |
2102 | _resultobj = Py_None; | |
2103 | } | |
8ab979d7 RD |
2104 | return _resultobj; |
2105 | } | |
2106 | ||
b8b8dda7 | 2107 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2108 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2109 | PyObject * _resultobj; |
2110 | wxWindow * _arg0; | |
2111 | int * _arg1; | |
2112 | int temp; | |
2113 | int * _arg2; | |
2114 | int temp0; | |
1d99702e | 2115 | PyObject * _argo0 = 0; |
efc5f224 | 2116 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2117 | |
2118 | self = self; | |
2119 | { | |
2120 | _arg1 = &temp; | |
2121 | } | |
2122 | { | |
2123 | _arg2 = &temp0; | |
2124 | } | |
efc5f224 | 2125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2126 | return NULL; |
1d99702e RD |
2127 | if (_argo0) { |
2128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2131 | return NULL; | |
2132 | } | |
2133 | } | |
cf694132 RD |
2134 | { |
2135 | wxPy_BEGIN_ALLOW_THREADS; | |
2136 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2137 | ||
2138 | wxPy_END_ALLOW_THREADS; | |
2139 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
2140 | _resultobj = Py_None; |
2141 | { | |
2142 | PyObject *o; | |
2143 | o = PyInt_FromLong((long) (*_arg1)); | |
2144 | _resultobj = t_output_helper(_resultobj, o); | |
2145 | } | |
2146 | { | |
2147 | PyObject *o; | |
2148 | o = PyInt_FromLong((long) (*_arg2)); | |
2149 | _resultobj = t_output_helper(_resultobj, o); | |
2150 | } | |
2151 | return _resultobj; | |
2152 | } | |
2153 | ||
2154 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2155 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2156 | PyObject * _resultobj; |
2157 | wxPoint * _result; | |
2158 | wxWindow * _arg0; | |
1d99702e | 2159 | PyObject * _argo0 = 0; |
efc5f224 | 2160 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2161 | char _ptemp[128]; |
2162 | ||
2163 | self = self; | |
efc5f224 | 2164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2165 | return NULL; |
1d99702e RD |
2166 | if (_argo0) { |
2167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2170 | return NULL; | |
2171 | } | |
2172 | } | |
cf694132 RD |
2173 | { |
2174 | wxPy_BEGIN_ALLOW_THREADS; | |
2175 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2176 | ||
2177 | wxPy_END_ALLOW_THREADS; | |
2178 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
2179 | _resultobj = Py_BuildValue("s",_ptemp); |
2180 | return _resultobj; | |
2181 | } | |
2182 | ||
2183 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2184 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2185 | PyObject * _resultobj; |
2186 | wxRect * _result; | |
2187 | wxWindow * _arg0; | |
1d99702e | 2188 | PyObject * _argo0 = 0; |
efc5f224 | 2189 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2190 | char _ptemp[128]; |
2191 | ||
2192 | self = self; | |
efc5f224 | 2193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2194 | return NULL; |
1d99702e RD |
2195 | if (_argo0) { |
2196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2199 | return NULL; | |
2200 | } | |
2201 | } | |
cf694132 RD |
2202 | { |
2203 | wxPy_BEGIN_ALLOW_THREADS; | |
2204 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2205 | ||
2206 | wxPy_END_ALLOW_THREADS; | |
2207 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
b8b8dda7 RD |
2208 | _resultobj = Py_BuildValue("s",_ptemp); |
2209 | return _resultobj; | |
2210 | } | |
2211 | ||
8ab979d7 | 2212 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2213 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2214 | PyObject * _resultobj; |
2215 | int _result; | |
2216 | wxWindow * _arg0; | |
2217 | int _arg1; | |
1d99702e | 2218 | PyObject * _argo0 = 0; |
efc5f224 | 2219 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2220 | |
2221 | self = self; | |
efc5f224 | 2222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2223 | return NULL; |
1d99702e RD |
2224 | if (_argo0) { |
2225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2228 | return NULL; | |
2229 | } | |
2230 | } | |
cf694132 RD |
2231 | { |
2232 | wxPy_BEGIN_ALLOW_THREADS; | |
2233 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2234 | ||
2235 | wxPy_END_ALLOW_THREADS; | |
2236 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2237 | return _resultobj; |
2238 | } | |
2239 | ||
2240 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2241 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2242 | PyObject * _resultobj; |
2243 | int _result; | |
2244 | wxWindow * _arg0; | |
2245 | int _arg1; | |
1d99702e | 2246 | PyObject * _argo0 = 0; |
efc5f224 | 2247 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2248 | |
2249 | self = self; | |
efc5f224 | 2250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2251 | return NULL; |
1d99702e RD |
2252 | if (_argo0) { |
2253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2256 | return NULL; | |
2257 | } | |
2258 | } | |
cf694132 RD |
2259 | { |
2260 | wxPy_BEGIN_ALLOW_THREADS; | |
2261 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2262 | ||
2263 | wxPy_END_ALLOW_THREADS; | |
2264 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2265 | return _resultobj; |
2266 | } | |
2267 | ||
2268 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2269 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2270 | PyObject * _resultobj; |
2271 | int _result; | |
2272 | wxWindow * _arg0; | |
2273 | int _arg1; | |
1d99702e | 2274 | PyObject * _argo0 = 0; |
efc5f224 | 2275 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2276 | |
2277 | self = self; | |
efc5f224 | 2278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2279 | return NULL; |
1d99702e RD |
2280 | if (_argo0) { |
2281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2284 | return NULL; | |
2285 | } | |
2286 | } | |
cf694132 RD |
2287 | { |
2288 | wxPy_BEGIN_ALLOW_THREADS; | |
2289 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2290 | ||
2291 | wxPy_END_ALLOW_THREADS; | |
2292 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2293 | return _resultobj; |
2294 | } | |
2295 | ||
b8b8dda7 | 2296 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2297 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2298 | PyObject * _resultobj; |
2299 | wxWindow * _arg0; | |
2300 | int * _arg1; | |
2301 | int temp; | |
2302 | int * _arg2; | |
2303 | int temp0; | |
1d99702e | 2304 | PyObject * _argo0 = 0; |
efc5f224 | 2305 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2306 | |
2307 | self = self; | |
2308 | { | |
2309 | _arg1 = &temp; | |
2310 | } | |
2311 | { | |
2312 | _arg2 = &temp0; | |
2313 | } | |
efc5f224 | 2314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2315 | return NULL; |
1d99702e RD |
2316 | if (_argo0) { |
2317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2320 | return NULL; |
2321 | } | |
2322 | } | |
cf694132 RD |
2323 | { |
2324 | wxPy_BEGIN_ALLOW_THREADS; | |
2325 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2326 | ||
2327 | wxPy_END_ALLOW_THREADS; | |
2328 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2329 | _resultobj = Py_None; |
2330 | { | |
2331 | PyObject *o; | |
2332 | o = PyInt_FromLong((long) (*_arg1)); | |
2333 | _resultobj = t_output_helper(_resultobj, o); | |
2334 | } | |
2335 | { | |
2336 | PyObject *o; | |
2337 | o = PyInt_FromLong((long) (*_arg2)); | |
2338 | _resultobj = t_output_helper(_resultobj, o); | |
2339 | } | |
2340 | return _resultobj; | |
2341 | } | |
2342 | ||
b8b8dda7 | 2343 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2344 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2345 | PyObject * _resultobj; |
2346 | wxSize * _result; | |
2347 | wxWindow * _arg0; | |
1d99702e | 2348 | PyObject * _argo0 = 0; |
efc5f224 | 2349 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2350 | char _ptemp[128]; |
2351 | ||
2352 | self = self; | |
efc5f224 | 2353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2354 | return NULL; |
1d99702e RD |
2355 | if (_argo0) { |
2356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2359 | return NULL; | |
2360 | } | |
2361 | } | |
cf694132 RD |
2362 | { |
2363 | wxPy_BEGIN_ALLOW_THREADS; | |
2364 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2365 | ||
2366 | wxPy_END_ALLOW_THREADS; | |
2367 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
2368 | _resultobj = Py_BuildValue("s",_ptemp); |
2369 | return _resultobj; | |
2370 | } | |
2371 | ||
8ab979d7 | 2372 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2373 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2374 | PyObject * _resultobj; |
2375 | wxWindow * _arg0; | |
2376 | wxString * _arg1; | |
2377 | int * _arg2; | |
2378 | int temp; | |
2379 | int * _arg3; | |
2380 | int temp0; | |
1d99702e | 2381 | PyObject * _argo0 = 0; |
8ab979d7 | 2382 | PyObject * _obj1 = 0; |
efc5f224 | 2383 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2384 | |
2385 | self = self; | |
2386 | { | |
2387 | _arg2 = &temp; | |
2388 | } | |
2389 | { | |
2390 | _arg3 = &temp0; | |
2391 | } | |
efc5f224 | 2392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2393 | return NULL; |
1d99702e RD |
2394 | if (_argo0) { |
2395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2398 | return NULL; | |
2399 | } | |
2400 | } | |
2401 | { | |
185d7c3e RD |
2402 | #if PYTHON_API_VERSION >= 1009 |
2403 | char* tmpPtr; int tmpSize; | |
2404 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2405 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2406 | return NULL; | |
2407 | } | |
2408 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2409 | return NULL; | |
2410 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2411 | #else | |
8ab979d7 RD |
2412 | if (!PyString_Check(_obj1)) { |
2413 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2414 | return NULL; | |
2415 | } | |
185d7c3e RD |
2416 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2417 | #endif | |
8ab979d7 | 2418 | } |
cf694132 RD |
2419 | { |
2420 | wxPy_BEGIN_ALLOW_THREADS; | |
2421 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2422 | ||
2423 | wxPy_END_ALLOW_THREADS; | |
2424 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2425 | _resultobj = Py_None; |
2426 | { | |
2427 | PyObject *o; | |
2428 | o = PyInt_FromLong((long) (*_arg2)); | |
2429 | _resultobj = t_output_helper(_resultobj, o); | |
2430 | } | |
2431 | { | |
2432 | PyObject *o; | |
2433 | o = PyInt_FromLong((long) (*_arg3)); | |
2434 | _resultobj = t_output_helper(_resultobj, o); | |
2435 | } | |
2436 | { | |
2437 | if (_obj1) | |
2438 | delete _arg1; | |
2439 | } | |
2440 | return _resultobj; | |
2441 | } | |
2442 | ||
af309447 | 2443 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2444 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2445 | PyObject * _resultobj; |
2446 | wxWindow * _arg0; | |
2447 | wxString * _arg1; | |
2448 | int * _arg2; | |
2449 | int temp; | |
2450 | int * _arg3; | |
2451 | int temp0; | |
2452 | int * _arg4; | |
2453 | int temp1; | |
2454 | int * _arg5; | |
2455 | int temp2; | |
1d99702e RD |
2456 | wxFont * _arg6 = (wxFont *) NULL; |
2457 | PyObject * _argo0 = 0; | |
af309447 | 2458 | PyObject * _obj1 = 0; |
1d99702e | 2459 | PyObject * _argo6 = 0; |
efc5f224 | 2460 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2461 | |
2462 | self = self; | |
2463 | { | |
2464 | _arg2 = &temp; | |
2465 | } | |
2466 | { | |
2467 | _arg3 = &temp0; | |
2468 | } | |
2469 | { | |
2470 | _arg4 = &temp1; | |
2471 | } | |
2472 | { | |
2473 | _arg5 = &temp2; | |
2474 | } | |
efc5f224 | 2475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2476 | return NULL; |
1d99702e RD |
2477 | if (_argo0) { |
2478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2481 | return NULL; | |
2482 | } | |
2483 | } | |
2484 | { | |
185d7c3e RD |
2485 | #if PYTHON_API_VERSION >= 1009 |
2486 | char* tmpPtr; int tmpSize; | |
2487 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2488 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2489 | return NULL; | |
2490 | } | |
2491 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2492 | return NULL; | |
2493 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2494 | #else | |
af309447 RD |
2495 | if (!PyString_Check(_obj1)) { |
2496 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2497 | return NULL; | |
2498 | } | |
185d7c3e RD |
2499 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2500 | #endif | |
af309447 | 2501 | } |
1d99702e RD |
2502 | if (_argo6) { |
2503 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2504 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2506 | return NULL; | |
2507 | } | |
2508 | } | |
cf694132 RD |
2509 | { |
2510 | wxPy_BEGIN_ALLOW_THREADS; | |
2511 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2512 | ||
2513 | wxPy_END_ALLOW_THREADS; | |
2514 | } Py_INCREF(Py_None); | |
af309447 RD |
2515 | _resultobj = Py_None; |
2516 | { | |
2517 | PyObject *o; | |
2518 | o = PyInt_FromLong((long) (*_arg2)); | |
2519 | _resultobj = t_output_helper(_resultobj, o); | |
2520 | } | |
2521 | { | |
2522 | PyObject *o; | |
2523 | o = PyInt_FromLong((long) (*_arg3)); | |
2524 | _resultobj = t_output_helper(_resultobj, o); | |
2525 | } | |
2526 | { | |
2527 | PyObject *o; | |
2528 | o = PyInt_FromLong((long) (*_arg4)); | |
2529 | _resultobj = t_output_helper(_resultobj, o); | |
2530 | } | |
2531 | { | |
2532 | PyObject *o; | |
2533 | o = PyInt_FromLong((long) (*_arg5)); | |
2534 | _resultobj = t_output_helper(_resultobj, o); | |
2535 | } | |
2536 | { | |
2537 | if (_obj1) | |
2538 | delete _arg1; | |
2539 | } | |
2540 | return _resultobj; | |
2541 | } | |
2542 | ||
8ab979d7 | 2543 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2544 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2545 | PyObject * _resultobj; |
2546 | wxString * _result; | |
2547 | wxWindow * _arg0; | |
1d99702e | 2548 | PyObject * _argo0 = 0; |
efc5f224 | 2549 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2550 | |
2551 | self = self; | |
efc5f224 | 2552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2553 | return NULL; |
1d99702e RD |
2554 | if (_argo0) { |
2555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2558 | return NULL; | |
2559 | } | |
2560 | } | |
8ab979d7 | 2561 | { |
cf694132 RD |
2562 | wxPy_BEGIN_ALLOW_THREADS; |
2563 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2564 | ||
2565 | wxPy_END_ALLOW_THREADS; | |
2566 | }{ | |
eec92d76 | 2567 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2568 | } |
2569 | { | |
2570 | delete _result; | |
2571 | } | |
2572 | return _resultobj; | |
2573 | } | |
2574 | ||
8bf5d46e | 2575 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2576 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2577 | PyObject * _resultobj; |
2578 | wxRegion * _result; | |
2579 | wxWindow * _arg0; | |
1d99702e | 2580 | PyObject * _argo0 = 0; |
efc5f224 | 2581 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2582 | char _ptemp[128]; |
2583 | ||
2584 | self = self; | |
efc5f224 | 2585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2586 | return NULL; |
1d99702e RD |
2587 | if (_argo0) { |
2588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2591 | return NULL; | |
2592 | } | |
2593 | } | |
2594 | { | |
2595 | wxPy_BEGIN_ALLOW_THREADS; | |
2596 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2597 | ||
2598 | wxPy_END_ALLOW_THREADS; | |
2599 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); | |
2600 | _resultobj = Py_BuildValue("s",_ptemp); | |
2601 | return _resultobj; | |
2602 | } | |
2603 | ||
8ab979d7 | 2604 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2605 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2606 | PyObject * _resultobj; |
2607 | long _result; | |
2608 | wxWindow * _arg0; | |
1d99702e | 2609 | PyObject * _argo0 = 0; |
efc5f224 | 2610 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2611 | |
2612 | self = self; | |
efc5f224 | 2613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2614 | return NULL; |
1d99702e RD |
2615 | if (_argo0) { |
2616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2619 | return NULL; | |
2620 | } | |
2621 | } | |
cf694132 RD |
2622 | { |
2623 | wxPy_BEGIN_ALLOW_THREADS; | |
2624 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2625 | ||
2626 | wxPy_END_ALLOW_THREADS; | |
2627 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2628 | return _resultobj; |
2629 | } | |
2630 | ||
f6bcfd97 BP |
2631 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2632 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2633 | PyObject * _resultobj; | |
2634 | wxWindow * _arg0; | |
2635 | long _arg1; | |
2636 | PyObject * _argo0 = 0; | |
2637 | char *_kwnames[] = { "self","style", NULL }; | |
2638 | ||
2639 | self = self; | |
2640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2641 | return NULL; | |
2642 | if (_argo0) { | |
2643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2646 | return NULL; | |
2647 | } | |
2648 | } | |
2649 | { | |
2650 | wxPy_BEGIN_ALLOW_THREADS; | |
2651 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2652 | ||
2653 | wxPy_END_ALLOW_THREADS; | |
2654 | } Py_INCREF(Py_None); | |
2655 | _resultobj = Py_None; | |
2656 | return _resultobj; | |
2657 | } | |
2658 | ||
2659 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2660 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2661 | PyObject * _resultobj; | |
2662 | wxWindow * _arg0; | |
2663 | long _arg1; | |
2664 | PyObject * _argo0 = 0; | |
2665 | char *_kwnames[] = { "self","style", NULL }; | |
2666 | ||
2667 | self = self; | |
2668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2669 | return NULL; | |
2670 | if (_argo0) { | |
2671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2674 | return NULL; | |
2675 | } | |
2676 | } | |
2677 | { | |
2678 | wxPy_BEGIN_ALLOW_THREADS; | |
2679 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2680 | ||
2681 | wxPy_END_ALLOW_THREADS; | |
2682 | } Py_INCREF(Py_None); | |
2683 | _resultobj = Py_None; | |
2684 | return _resultobj; | |
2685 | } | |
2686 | ||
bb0054cd | 2687 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2688 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2689 | PyObject * _resultobj; |
2690 | bool _result; | |
2691 | wxWindow * _arg0; | |
1d99702e | 2692 | PyObject * _argo0 = 0; |
efc5f224 | 2693 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2694 | |
2695 | self = self; | |
efc5f224 | 2696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2697 | return NULL; |
1d99702e RD |
2698 | if (_argo0) { |
2699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2702 | return NULL; | |
2703 | } | |
2704 | } | |
2705 | { | |
2706 | wxPy_BEGIN_ALLOW_THREADS; | |
2707 | _result = (bool )wxWindow_Hide(_arg0); | |
2708 | ||
2709 | wxPy_END_ALLOW_THREADS; | |
2710 | } _resultobj = Py_BuildValue("i",_result); | |
2711 | return _resultobj; | |
2712 | } | |
2713 | ||
8ab979d7 | 2714 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2715 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2716 | PyObject * _resultobj; |
2717 | wxWindow * _arg0; | |
1d99702e | 2718 | PyObject * _argo0 = 0; |
efc5f224 | 2719 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2720 | |
2721 | self = self; | |
efc5f224 | 2722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2723 | return NULL; |
1d99702e RD |
2724 | if (_argo0) { |
2725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2728 | return NULL; | |
2729 | } | |
2730 | } | |
cf694132 RD |
2731 | { |
2732 | wxPy_BEGIN_ALLOW_THREADS; | |
2733 | wxWindow_InitDialog(_arg0); | |
2734 | ||
2735 | wxPy_END_ALLOW_THREADS; | |
2736 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2737 | _resultobj = Py_None; |
2738 | return _resultobj; | |
2739 | } | |
2740 | ||
2741 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2742 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2743 | PyObject * _resultobj; |
2744 | bool _result; | |
2745 | wxWindow * _arg0; | |
1d99702e | 2746 | PyObject * _argo0 = 0; |
efc5f224 | 2747 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2748 | |
2749 | self = self; | |
efc5f224 | 2750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2751 | return NULL; |
1d99702e RD |
2752 | if (_argo0) { |
2753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2756 | return NULL; | |
2757 | } | |
2758 | } | |
cf694132 RD |
2759 | { |
2760 | wxPy_BEGIN_ALLOW_THREADS; | |
2761 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2762 | ||
2763 | wxPy_END_ALLOW_THREADS; | |
2764 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2765 | return _resultobj; |
2766 | } | |
2767 | ||
1b55cabf RD |
2768 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2769 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2770 | PyObject * _resultobj; | |
2771 | bool _result; | |
2772 | wxWindow * _arg0; | |
2773 | int _arg1; | |
2774 | int _arg2; | |
2775 | int _arg3 = (int ) 0; | |
2776 | int _arg4 = (int ) 0; | |
2777 | PyObject * _argo0 = 0; | |
2778 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2779 | ||
2780 | self = self; | |
2781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2782 | return NULL; | |
2783 | if (_argo0) { | |
2784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2787 | return NULL; | |
2788 | } | |
2789 | } | |
2790 | { | |
2791 | wxPy_BEGIN_ALLOW_THREADS; | |
2792 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2793 | ||
2794 | wxPy_END_ALLOW_THREADS; | |
2795 | } _resultobj = Py_BuildValue("i",_result); | |
2796 | return _resultobj; | |
2797 | } | |
2798 | ||
2799 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2800 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2801 | PyObject * _resultobj; | |
2802 | bool _result; | |
2803 | wxWindow * _arg0; | |
2804 | wxPoint * _arg1; | |
2805 | PyObject * _argo0 = 0; | |
2806 | wxPoint temp; | |
2807 | PyObject * _obj1 = 0; | |
2808 | char *_kwnames[] = { "self","pt", NULL }; | |
2809 | ||
2810 | self = self; | |
2811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2812 | return NULL; | |
2813 | if (_argo0) { | |
2814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2817 | return NULL; | |
2818 | } | |
2819 | } | |
2820 | { | |
2821 | _arg1 = &temp; | |
2822 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2823 | return NULL; | |
2824 | } | |
2825 | { | |
2826 | wxPy_BEGIN_ALLOW_THREADS; | |
2827 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2828 | ||
2829 | wxPy_END_ALLOW_THREADS; | |
2830 | } _resultobj = Py_BuildValue("i",_result); | |
2831 | return _resultobj; | |
2832 | } | |
2833 | ||
2834 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2835 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2836 | PyObject * _resultobj; | |
2837 | bool _result; | |
2838 | wxWindow * _arg0; | |
2839 | wxRect * _arg1; | |
2840 | PyObject * _argo0 = 0; | |
2841 | wxRect temp; | |
2842 | PyObject * _obj1 = 0; | |
2843 | char *_kwnames[] = { "self","rect", NULL }; | |
2844 | ||
2845 | self = self; | |
2846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2847 | return NULL; | |
2848 | if (_argo0) { | |
2849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2852 | return NULL; | |
2853 | } | |
2854 | } | |
2855 | { | |
2856 | _arg1 = &temp; | |
2857 | if (! wxRect_helper(_obj1, &_arg1)) | |
2858 | return NULL; | |
2859 | } | |
2860 | { | |
2861 | wxPy_BEGIN_ALLOW_THREADS; | |
2862 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2863 | ||
2864 | wxPy_END_ALLOW_THREADS; | |
2865 | } _resultobj = Py_BuildValue("i",_result); | |
2866 | return _resultobj; | |
2867 | } | |
2868 | ||
8ab979d7 | 2869 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 2870 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2871 | PyObject * _resultobj; |
2872 | bool _result; | |
2873 | wxWindow * _arg0; | |
1d99702e | 2874 | PyObject * _argo0 = 0; |
efc5f224 | 2875 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2876 | |
2877 | self = self; | |
efc5f224 | 2878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 2879 | return NULL; |
1d99702e RD |
2880 | if (_argo0) { |
2881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
2884 | return NULL; | |
2885 | } | |
2886 | } | |
cf694132 RD |
2887 | { |
2888 | wxPy_BEGIN_ALLOW_THREADS; | |
2889 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2890 | ||
2891 | wxPy_END_ALLOW_THREADS; | |
2892 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2893 | return _resultobj; |
2894 | } | |
2895 | ||
2896 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 2897 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2898 | PyObject * _resultobj; |
2899 | bool _result; | |
2900 | wxWindow * _arg0; | |
1d99702e | 2901 | PyObject * _argo0 = 0; |
efc5f224 | 2902 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2903 | |
2904 | self = self; | |
efc5f224 | 2905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 2906 | return NULL; |
1d99702e RD |
2907 | if (_argo0) { |
2908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
2911 | return NULL; | |
2912 | } | |
2913 | } | |
cf694132 RD |
2914 | { |
2915 | wxPy_BEGIN_ALLOW_THREADS; | |
2916 | _result = (bool )wxWindow_IsShown(_arg0); | |
2917 | ||
2918 | wxPy_END_ALLOW_THREADS; | |
2919 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2920 | return _resultobj; |
2921 | } | |
2922 | ||
bb0054cd | 2923 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 2924 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2925 | PyObject * _resultobj; |
2926 | bool _result; | |
2927 | wxWindow * _arg0; | |
1d99702e | 2928 | PyObject * _argo0 = 0; |
efc5f224 | 2929 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2930 | |
2931 | self = self; | |
efc5f224 | 2932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 2933 | return NULL; |
1d99702e RD |
2934 | if (_argo0) { |
2935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
2938 | return NULL; | |
2939 | } | |
2940 | } | |
2941 | { | |
2942 | wxPy_BEGIN_ALLOW_THREADS; | |
2943 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2944 | ||
2945 | wxPy_END_ALLOW_THREADS; | |
2946 | } _resultobj = Py_BuildValue("i",_result); | |
2947 | return _resultobj; | |
2948 | } | |
2949 | ||
8ab979d7 | 2950 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 2951 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2952 | PyObject * _resultobj; |
2953 | wxWindow * _arg0; | |
1d99702e | 2954 | PyObject * _argo0 = 0; |
efc5f224 | 2955 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2956 | |
2957 | self = self; | |
efc5f224 | 2958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 2959 | return NULL; |
1d99702e RD |
2960 | if (_argo0) { |
2961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
2964 | return NULL; | |
2965 | } | |
2966 | } | |
cf694132 RD |
2967 | { |
2968 | wxPy_BEGIN_ALLOW_THREADS; | |
2969 | wxWindow_Layout(_arg0); | |
2970 | ||
2971 | wxPy_END_ALLOW_THREADS; | |
2972 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2973 | _resultobj = Py_None; |
2974 | return _resultobj; | |
2975 | } | |
2976 | ||
2977 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2978 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2979 | PyObject * _resultobj; |
2980 | bool _result; | |
2981 | wxWindow * _arg0; | |
2982 | wxWindow * _arg1; | |
2983 | wxString * _arg2; | |
1d99702e RD |
2984 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
2985 | PyObject * _argo0 = 0; | |
2986 | PyObject * _argo1 = 0; | |
8ab979d7 | 2987 | PyObject * _obj2 = 0; |
1d99702e | 2988 | PyObject * _argo3 = 0; |
efc5f224 | 2989 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
2990 | |
2991 | self = self; | |
efc5f224 | 2992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 2993 | return NULL; |
1d99702e RD |
2994 | if (_argo0) { |
2995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
2998 | return NULL; | |
2999 | } | |
3000 | } | |
1d99702e RD |
3001 | if (_argo1) { |
3002 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3003 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3005 | return NULL; | |
3006 | } | |
3007 | } | |
3008 | { | |
185d7c3e RD |
3009 | #if PYTHON_API_VERSION >= 1009 |
3010 | char* tmpPtr; int tmpSize; | |
3011 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3012 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3013 | return NULL; | |
3014 | } | |
3015 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3016 | return NULL; | |
3017 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3018 | #else | |
8ab979d7 RD |
3019 | if (!PyString_Check(_obj2)) { |
3020 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3021 | return NULL; | |
3022 | } | |
185d7c3e RD |
3023 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3024 | #endif | |
8ab979d7 | 3025 | } |
1d99702e RD |
3026 | if (_argo3) { |
3027 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3028 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3030 | return NULL; | |
3031 | } | |
3032 | } | |
cf694132 RD |
3033 | { |
3034 | wxPy_BEGIN_ALLOW_THREADS; | |
3035 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
3036 | ||
3037 | wxPy_END_ALLOW_THREADS; | |
3038 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3039 | { |
3040 | if (_obj2) | |
3041 | delete _arg2; | |
3042 | } | |
3043 | return _resultobj; | |
3044 | } | |
3045 | ||
3046 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3047 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3048 | PyObject * _resultobj; |
3049 | wxWindow * _arg0; | |
1d99702e | 3050 | PyObject * _argo0 = 0; |
efc5f224 | 3051 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3052 | |
3053 | self = self; | |
efc5f224 | 3054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3055 | return NULL; |
1d99702e RD |
3056 | if (_argo0) { |
3057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3060 | return NULL; | |
3061 | } | |
3062 | } | |
cf694132 RD |
3063 | { |
3064 | wxPy_BEGIN_ALLOW_THREADS; | |
3065 | wxWindow_Lower(_arg0); | |
3066 | ||
3067 | wxPy_END_ALLOW_THREADS; | |
3068 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3069 | _resultobj = Py_None; |
3070 | return _resultobj; | |
3071 | } | |
3072 | ||
3073 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3074 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3075 | PyObject * _resultobj; |
3076 | wxWindow * _arg0; | |
3077 | bool _arg1; | |
1d99702e | 3078 | PyObject * _argo0 = 0; |
8ab979d7 | 3079 | int tempbool1; |
efc5f224 | 3080 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3081 | |
3082 | self = self; | |
efc5f224 | 3083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3084 | return NULL; |
1d99702e RD |
3085 | if (_argo0) { |
3086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3089 | return NULL; | |
3090 | } | |
3091 | } | |
3092 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3093 | { |
3094 | wxPy_BEGIN_ALLOW_THREADS; | |
3095 | wxWindow_MakeModal(_arg0,_arg1); | |
3096 | ||
3097 | wxPy_END_ALLOW_THREADS; | |
3098 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3099 | _resultobj = Py_None; |
3100 | return _resultobj; | |
3101 | } | |
3102 | ||
af309447 | 3103 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3104 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3105 | PyObject * _resultobj; |
3106 | wxWindow * _arg0; | |
3107 | int _arg1; | |
3108 | int _arg2; | |
1d99702e | 3109 | PyObject * _argo0 = 0; |
efc5f224 | 3110 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3111 | |
3112 | self = self; | |
efc5f224 | 3113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 3114 | return NULL; |
1d99702e RD |
3115 | if (_argo0) { |
3116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3119 | return NULL; | |
3120 | } | |
3121 | } | |
cf694132 RD |
3122 | { |
3123 | wxPy_BEGIN_ALLOW_THREADS; | |
3124 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
3125 | ||
3126 | wxPy_END_ALLOW_THREADS; | |
3127 | } Py_INCREF(Py_None); | |
af309447 RD |
3128 | _resultobj = Py_None; |
3129 | return _resultobj; | |
3130 | } | |
3131 | ||
3132 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
efc5f224 | 3133 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3134 | PyObject * _resultobj; |
3135 | wxWindow * _arg0; | |
3136 | wxPoint * _arg1; | |
1d99702e | 3137 | PyObject * _argo0 = 0; |
2f90df85 RD |
3138 | wxPoint temp; |
3139 | PyObject * _obj1 = 0; | |
efc5f224 | 3140 | char *_kwnames[] = { "self","point", NULL }; |
af309447 RD |
3141 | |
3142 | self = self; | |
2f90df85 | 3143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3144 | return NULL; |
1d99702e RD |
3145 | if (_argo0) { |
3146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3149 | return NULL; | |
3150 | } | |
3151 | } | |
2f90df85 RD |
3152 | { |
3153 | _arg1 = &temp; | |
3154 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3155 | return NULL; |
2f90df85 | 3156 | } |
cf694132 RD |
3157 | { |
3158 | wxPy_BEGIN_ALLOW_THREADS; | |
3159 | wxWindow_Move(_arg0,*_arg1); | |
3160 | ||
3161 | wxPy_END_ALLOW_THREADS; | |
3162 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3163 | _resultobj = Py_None; |
3164 | return _resultobj; | |
3165 | } | |
3166 | ||
1afc06c2 RD |
3167 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3168 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3169 | PyObject * _resultobj; | |
3170 | wxEvtHandler * _result; | |
3171 | wxWindow * _arg0; | |
3172 | bool _arg1 = (bool ) FALSE; | |
3173 | PyObject * _argo0 = 0; | |
3174 | int tempbool1 = (int) FALSE; | |
3175 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
3176 | char _ptemp[128]; | |
3177 | ||
3178 | self = self; | |
3179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3180 | return NULL; | |
3181 | if (_argo0) { | |
3182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3185 | return NULL; | |
3186 | } | |
3187 | } | |
3188 | _arg1 = (bool ) tempbool1; | |
3189 | { | |
3190 | wxPy_BEGIN_ALLOW_THREADS; | |
3191 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3192 | ||
3193 | wxPy_END_ALLOW_THREADS; | |
3194 | } if (_result) { | |
3195 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
3196 | _resultobj = Py_BuildValue("s",_ptemp); | |
3197 | } else { | |
3198 | Py_INCREF(Py_None); | |
3199 | _resultobj = Py_None; | |
3200 | } | |
3201 | return _resultobj; | |
3202 | } | |
3203 | ||
3204 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3205 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3206 | PyObject * _resultobj; | |
3207 | wxWindow * _arg0; | |
3208 | wxEvtHandler * _arg1; | |
3209 | PyObject * _argo0 = 0; | |
3210 | PyObject * _argo1 = 0; | |
3211 | char *_kwnames[] = { "self","handler", NULL }; | |
3212 | ||
3213 | self = self; | |
3214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3215 | return NULL; | |
3216 | if (_argo0) { | |
3217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3220 | return NULL; | |
3221 | } | |
3222 | } | |
3223 | if (_argo1) { | |
3224 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3225 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3227 | return NULL; | |
3228 | } | |
3229 | } | |
3230 | { | |
3231 | wxPy_BEGIN_ALLOW_THREADS; | |
3232 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3233 | ||
3234 | wxPy_END_ALLOW_THREADS; | |
3235 | } Py_INCREF(Py_None); | |
3236 | _resultobj = Py_None; | |
3237 | return _resultobj; | |
3238 | } | |
3239 | ||
8bf5d46e | 3240 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3241 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3242 | PyObject * _resultobj; |
3243 | bool _result; | |
3244 | wxWindow * _arg0; | |
3245 | wxMenu * _arg1; | |
3246 | int _arg2; | |
3247 | int _arg3; | |
1d99702e RD |
3248 | PyObject * _argo0 = 0; |
3249 | PyObject * _argo1 = 0; | |
efc5f224 | 3250 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3251 | |
3252 | self = self; | |
efc5f224 | 3253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3254 | return NULL; |
1d99702e RD |
3255 | if (_argo0) { |
3256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3259 | return NULL; | |
3260 | } | |
3261 | } | |
1d99702e RD |
3262 | if (_argo1) { |
3263 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3264 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3266 | return NULL; | |
3267 | } | |
3268 | } | |
3269 | { | |
3270 | wxPy_BEGIN_ALLOW_THREADS; | |
3271 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3272 | ||
3273 | wxPy_END_ALLOW_THREADS; | |
3274 | } _resultobj = Py_BuildValue("i",_result); | |
3275 | return _resultobj; | |
3276 | } | |
3277 | ||
3278 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3279 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3280 | PyObject * _resultobj; |
3281 | bool _result; | |
3282 | wxWindow * _arg0; | |
3283 | wxMenu * _arg1; | |
3284 | wxPoint * _arg2; | |
1d99702e RD |
3285 | PyObject * _argo0 = 0; |
3286 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3287 | wxPoint temp; |
3288 | PyObject * _obj2 = 0; | |
efc5f224 | 3289 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3290 | |
3291 | self = self; | |
2f90df85 | 3292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3293 | return NULL; |
1d99702e RD |
3294 | if (_argo0) { |
3295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3298 | return NULL; | |
3299 | } | |
3300 | } | |
1d99702e RD |
3301 | if (_argo1) { |
3302 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3303 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3305 | return NULL; | |
3306 | } | |
3307 | } | |
2f90df85 RD |
3308 | { |
3309 | _arg2 = &temp; | |
3310 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3311 | return NULL; |
2f90df85 | 3312 | } |
cf694132 RD |
3313 | { |
3314 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 3315 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 RD |
3316 | |
3317 | wxPy_END_ALLOW_THREADS; | |
3318 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3319 | return _resultobj; |
3320 | } | |
3321 | ||
3322 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3323 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3324 | PyObject * _resultobj; |
3325 | wxWindow * _arg0; | |
1d99702e | 3326 | PyObject * _argo0 = 0; |
efc5f224 | 3327 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3328 | |
3329 | self = self; | |
efc5f224 | 3330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3331 | return NULL; |
1d99702e RD |
3332 | if (_argo0) { |
3333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3336 | return NULL; | |
3337 | } | |
3338 | } | |
cf694132 RD |
3339 | { |
3340 | wxPy_BEGIN_ALLOW_THREADS; | |
3341 | wxWindow_Raise(_arg0); | |
3342 | ||
3343 | wxPy_END_ALLOW_THREADS; | |
3344 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3345 | _resultobj = Py_None; |
3346 | return _resultobj; | |
3347 | } | |
3348 | ||
3349 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3350 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3351 | PyObject * _resultobj; |
3352 | wxWindow * _arg0; | |
1d99702e RD |
3353 | bool _arg1 = (bool ) TRUE; |
3354 | wxRect * _arg2 = (wxRect *) NULL; | |
3355 | PyObject * _argo0 = 0; | |
3356 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3357 | wxRect temp; |
3358 | PyObject * _obj2 = 0; | |
efc5f224 | 3359 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3360 | |
3361 | self = self; | |
2f90df85 | 3362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3363 | return NULL; |
1d99702e RD |
3364 | if (_argo0) { |
3365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3368 | return NULL; | |
3369 | } | |
3370 | } | |
3371 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3372 | if (_obj2) |
3373 | { | |
3374 | _arg2 = &temp; | |
3375 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3376 | return NULL; |
2f90df85 | 3377 | } |
cf694132 RD |
3378 | { |
3379 | wxPy_BEGIN_ALLOW_THREADS; | |
3380 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3381 | ||
3382 | wxPy_END_ALLOW_THREADS; | |
3383 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3384 | _resultobj = Py_None; |
3385 | return _resultobj; | |
3386 | } | |
3387 | ||
3388 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
efc5f224 | 3389 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3390 | PyObject * _resultobj; |
3391 | wxWindow * _arg0; | |
1d99702e | 3392 | PyObject * _argo0 = 0; |
efc5f224 | 3393 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3394 | |
3395 | self = self; | |
efc5f224 | 3396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3397 | return NULL; |
1d99702e RD |
3398 | if (_argo0) { |
3399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3402 | return NULL; | |
3403 | } | |
3404 | } | |
cf694132 RD |
3405 | { |
3406 | wxPy_BEGIN_ALLOW_THREADS; | |
3407 | wxWindow_ReleaseMouse(_arg0); | |
3408 | ||
3409 | wxPy_END_ALLOW_THREADS; | |
3410 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3411 | _resultobj = Py_None; |
3412 | return _resultobj; | |
3413 | } | |
3414 | ||
b7e72427 RD |
3415 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3416 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3417 | PyObject * _resultobj; | |
3418 | wxWindow * _arg0; | |
3419 | wxWindow * _arg1; | |
3420 | PyObject * _argo0 = 0; | |
3421 | PyObject * _argo1 = 0; | |
3422 | char *_kwnames[] = { "self","child", NULL }; | |
3423 | ||
3424 | self = self; | |
3425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3426 | return NULL; | |
3427 | if (_argo0) { | |
3428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3431 | return NULL; | |
3432 | } | |
3433 | } | |
3434 | if (_argo1) { | |
3435 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3436 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3438 | return NULL; | |
3439 | } | |
3440 | } | |
3441 | { | |
3442 | wxPy_BEGIN_ALLOW_THREADS; | |
3443 | wxWindow_RemoveChild(_arg0,_arg1); | |
3444 | ||
3445 | wxPy_END_ALLOW_THREADS; | |
3446 | } Py_INCREF(Py_None); | |
3447 | _resultobj = Py_None; | |
3448 | return _resultobj; | |
3449 | } | |
3450 | ||
bb0054cd | 3451 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3452 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3453 | PyObject * _resultobj; |
3454 | bool _result; | |
3455 | wxWindow * _arg0; | |
3456 | wxWindow * _arg1; | |
1d99702e RD |
3457 | PyObject * _argo0 = 0; |
3458 | PyObject * _argo1 = 0; | |
efc5f224 | 3459 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3460 | |
3461 | self = self; | |
efc5f224 | 3462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3463 | return NULL; |
1d99702e RD |
3464 | if (_argo0) { |
3465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3468 | return NULL; | |
3469 | } | |
3470 | } | |
1d99702e RD |
3471 | if (_argo1) { |
3472 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3473 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3475 | return NULL; | |
3476 | } | |
3477 | } | |
3478 | { | |
3479 | wxPy_BEGIN_ALLOW_THREADS; | |
3480 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3481 | ||
3482 | wxPy_END_ALLOW_THREADS; | |
3483 | } _resultobj = Py_BuildValue("i",_result); | |
3484 | return _resultobj; | |
3485 | } | |
3486 | ||
af309447 | 3487 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3488 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3489 | PyObject * _resultobj; |
3490 | wxWindow * _arg0; | |
3491 | int * _arg1; | |
3492 | int * _arg2; | |
1d99702e | 3493 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3494 | int temp; |
3495 | PyObject * _obj1 = 0; | |
3496 | int temp0; | |
3497 | PyObject * _obj2 = 0; | |
efc5f224 | 3498 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3499 | |
3500 | self = self; | |
efc5f224 | 3501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3502 | return NULL; |
1d99702e RD |
3503 | if (_argo0) { |
3504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3507 | return NULL; |
3508 | } | |
3509 | } | |
3510 | { | |
3511 | temp = (int) PyInt_AsLong(_obj1); | |
3512 | _arg1 = &temp; | |
3513 | } | |
3514 | { | |
3515 | temp0 = (int) PyInt_AsLong(_obj2); | |
3516 | _arg2 = &temp0; | |
3517 | } | |
cf694132 RD |
3518 | { |
3519 | wxPy_BEGIN_ALLOW_THREADS; | |
3520 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3521 | ||
3522 | wxPy_END_ALLOW_THREADS; | |
3523 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3524 | _resultobj = Py_None; |
3525 | { | |
3526 | PyObject *o; | |
3527 | o = PyInt_FromLong((long) (*_arg1)); | |
3528 | _resultobj = t_output_helper(_resultobj, o); | |
3529 | } | |
3530 | { | |
3531 | PyObject *o; | |
3532 | o = PyInt_FromLong((long) (*_arg2)); | |
3533 | _resultobj = t_output_helper(_resultobj, o); | |
3534 | } | |
3535 | return _resultobj; | |
3536 | } | |
3537 | ||
af309447 | 3538 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3539 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3540 | PyObject * _resultobj; |
3541 | wxPoint * _result; | |
3542 | wxWindow * _arg0; | |
3543 | wxPoint * _arg1; | |
1d99702e | 3544 | PyObject * _argo0 = 0; |
2f90df85 RD |
3545 | wxPoint temp; |
3546 | PyObject * _obj1 = 0; | |
efc5f224 | 3547 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3548 | char _ptemp[128]; |
3549 | ||
3550 | self = self; | |
2f90df85 | 3551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3552 | return NULL; |
1d99702e RD |
3553 | if (_argo0) { |
3554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3557 | return NULL; | |
3558 | } | |
3559 | } | |
2f90df85 RD |
3560 | { |
3561 | _arg1 = &temp; | |
3562 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3563 | return NULL; |
2f90df85 | 3564 | } |
cf694132 RD |
3565 | { |
3566 | wxPy_BEGIN_ALLOW_THREADS; | |
3567 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3568 | ||
3569 | wxPy_END_ALLOW_THREADS; | |
3570 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
af309447 RD |
3571 | _resultobj = Py_BuildValue("s",_ptemp); |
3572 | return _resultobj; | |
3573 | } | |
3574 | ||
8ab979d7 | 3575 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3576 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3577 | PyObject * _resultobj; |
3578 | wxWindow * _arg0; | |
3579 | int _arg1; | |
3580 | int _arg2; | |
1d99702e RD |
3581 | wxRect * _arg3 = (wxRect *) NULL; |
3582 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3583 | wxRect temp; |
3584 | PyObject * _obj3 = 0; | |
efc5f224 | 3585 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3586 | |
3587 | self = self; | |
2f90df85 | 3588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3589 | return NULL; |
1d99702e RD |
3590 | if (_argo0) { |
3591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3594 | return NULL; | |
3595 | } | |
3596 | } | |
2f90df85 RD |
3597 | if (_obj3) |
3598 | { | |
3599 | _arg3 = &temp; | |
3600 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3601 | return NULL; |
2f90df85 | 3602 | } |
cf694132 RD |
3603 | { |
3604 | wxPy_BEGIN_ALLOW_THREADS; | |
3605 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3606 | ||
3607 | wxPy_END_ALLOW_THREADS; | |
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; | |
3644 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
3645 | _resultobj = Py_None; |
3646 | return _resultobj; | |
3647 | } | |
3648 | ||
8ab979d7 | 3649 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) |
efc5f224 | 3650 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3651 | PyObject * _resultobj; |
3652 | wxWindow * _arg0; | |
3653 | bool _arg1; | |
1d99702e | 3654 | PyObject * _argo0 = 0; |
8ab979d7 | 3655 | int tempbool1; |
efc5f224 | 3656 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3657 | |
3658 | self = self; | |
efc5f224 | 3659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3660 | return NULL; |
1d99702e RD |
3661 | if (_argo0) { |
3662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3665 | return NULL; | |
3666 | } | |
3667 | } | |
3668 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3669 | { |
3670 | wxPy_BEGIN_ALLOW_THREADS; | |
3671 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3672 | ||
3673 | wxPy_END_ALLOW_THREADS; | |
3674 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3675 | _resultobj = Py_None; |
3676 | return _resultobj; | |
3677 | } | |
3678 | ||
9d8bd15f RD |
3679 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3680 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3681 | PyObject * _resultobj; | |
3682 | bool _result; | |
3683 | wxWindow * _arg0; | |
3684 | PyObject * _argo0 = 0; | |
3685 | char *_kwnames[] = { "self", NULL }; | |
3686 | ||
3687 | self = self; | |
3688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3689 | return NULL; | |
3690 | if (_argo0) { | |
3691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3694 | return NULL; | |
3695 | } | |
3696 | } | |
3697 | { | |
3698 | wxPy_BEGIN_ALLOW_THREADS; | |
3699 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3700 | ||
3701 | wxPy_END_ALLOW_THREADS; | |
3702 | } _resultobj = Py_BuildValue("i",_result); | |
3703 | return _resultobj; | |
3704 | } | |
3705 | ||
8ab979d7 | 3706 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3707 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3708 | PyObject * _resultobj; |
3709 | wxWindow * _arg0; | |
3710 | wxColour * _arg1; | |
1d99702e | 3711 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3712 | wxColour temp; |
3713 | PyObject * _obj1 = 0; | |
efc5f224 | 3714 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3715 | |
3716 | self = self; | |
f6bcfd97 | 3717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3718 | return NULL; |
1d99702e RD |
3719 | if (_argo0) { |
3720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3723 | return NULL; | |
3724 | } | |
3725 | } | |
f6bcfd97 BP |
3726 | { |
3727 | _arg1 = &temp; | |
3728 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3729 | return NULL; |
f6bcfd97 | 3730 | } |
cf694132 RD |
3731 | { |
3732 | wxPy_BEGIN_ALLOW_THREADS; | |
3733 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3734 | ||
3735 | wxPy_END_ALLOW_THREADS; | |
3736 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3737 | _resultobj = Py_None; |
3738 | return _resultobj; | |
3739 | } | |
3740 | ||
3741 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3742 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3743 | PyObject * _resultobj; |
3744 | wxWindow * _arg0; | |
3745 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3746 | PyObject * _argo0 = 0; |
3747 | PyObject * _argo1 = 0; | |
efc5f224 | 3748 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3749 | |
3750 | self = self; | |
efc5f224 | 3751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3752 | return NULL; |
1d99702e RD |
3753 | if (_argo0) { |
3754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3757 | return NULL; | |
3758 | } | |
3759 | } | |
1d99702e RD |
3760 | if (_argo1) { |
3761 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3762 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3764 | return NULL; | |
3765 | } | |
3766 | } | |
cf694132 RD |
3767 | { |
3768 | wxPy_BEGIN_ALLOW_THREADS; | |
3769 | wxWindow_SetConstraints(_arg0,_arg1); | |
3770 | ||
3771 | wxPy_END_ALLOW_THREADS; | |
3772 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3773 | _resultobj = Py_None; |
3774 | return _resultobj; | |
3775 | } | |
3776 | ||
2f90df85 RD |
3777 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3778 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3779 | PyObject * _resultobj; | |
3780 | wxWindow * _arg0; | |
3781 | wxLayoutConstraints * _arg1; | |
3782 | PyObject * _argo0 = 0; | |
3783 | PyObject * _argo1 = 0; | |
3784 | char *_kwnames[] = { "self","constraints", NULL }; | |
3785 | ||
3786 | self = self; | |
3787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3788 | return NULL; | |
3789 | if (_argo0) { | |
3790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3793 | return NULL; | |
3794 | } | |
3795 | } | |
3796 | if (_argo1) { | |
3797 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3798 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3800 | return NULL; | |
3801 | } | |
3802 | } | |
3803 | { | |
3804 | wxPy_BEGIN_ALLOW_THREADS; | |
3805 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3806 | ||
3807 | wxPy_END_ALLOW_THREADS; | |
3808 | } Py_INCREF(Py_None); | |
3809 | _resultobj = Py_None; | |
3810 | return _resultobj; | |
3811 | } | |
3812 | ||
8ab979d7 | 3813 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3814 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3815 | PyObject * _resultobj; |
3816 | wxWindow * _arg0; | |
1d99702e | 3817 | PyObject * _argo0 = 0; |
efc5f224 | 3818 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3819 | |
3820 | self = self; | |
efc5f224 | 3821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3822 | return NULL; |
1d99702e RD |
3823 | if (_argo0) { |
3824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3827 | return NULL; | |
3828 | } | |
3829 | } | |
cf694132 RD |
3830 | { |
3831 | wxPy_BEGIN_ALLOW_THREADS; | |
3832 | wxWindow_SetFocus(_arg0); | |
3833 | ||
3834 | wxPy_END_ALLOW_THREADS; | |
3835 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3836 | _resultobj = Py_None; |
3837 | return _resultobj; | |
3838 | } | |
3839 | ||
2f90df85 RD |
3840 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3841 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3842 | PyObject * _resultobj; | |
3843 | bool _result; | |
3844 | wxWindow * _arg0; | |
3845 | PyObject * _argo0 = 0; | |
3846 | char *_kwnames[] = { "self", NULL }; | |
3847 | ||
3848 | self = self; | |
3849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3850 | return NULL; | |
3851 | if (_argo0) { | |
3852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3855 | return NULL; | |
3856 | } | |
3857 | } | |
3858 | { | |
3859 | wxPy_BEGIN_ALLOW_THREADS; | |
3860 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3861 | ||
3862 | wxPy_END_ALLOW_THREADS; | |
3863 | } _resultobj = Py_BuildValue("i",_result); | |
3864 | return _resultobj; | |
3865 | } | |
3866 | ||
8ab979d7 | 3867 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 3868 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3869 | PyObject * _resultobj; |
3870 | wxWindow * _arg0; | |
3871 | wxFont * _arg1; | |
1d99702e RD |
3872 | PyObject * _argo0 = 0; |
3873 | PyObject * _argo1 = 0; | |
efc5f224 | 3874 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
3875 | |
3876 | self = self; | |
efc5f224 | 3877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3878 | return NULL; |
1d99702e RD |
3879 | if (_argo0) { |
3880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3883 | return NULL; | |
3884 | } | |
3885 | } | |
1d99702e RD |
3886 | if (_argo1) { |
3887 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3888 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
3889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3890 | return NULL; | |
3891 | } | |
3892 | } | |
cf694132 RD |
3893 | { |
3894 | wxPy_BEGIN_ALLOW_THREADS; | |
3895 | wxWindow_SetFont(_arg0,*_arg1); | |
3896 | ||
3897 | wxPy_END_ALLOW_THREADS; | |
3898 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3899 | _resultobj = Py_None; |
3900 | return _resultobj; | |
3901 | } | |
3902 | ||
3903 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 3904 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3905 | PyObject * _resultobj; |
3906 | wxWindow * _arg0; | |
3907 | wxColour * _arg1; | |
1d99702e | 3908 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3909 | wxColour temp; |
3910 | PyObject * _obj1 = 0; | |
efc5f224 | 3911 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3912 | |
3913 | self = self; | |
f6bcfd97 | 3914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3915 | return NULL; |
1d99702e RD |
3916 | if (_argo0) { |
3917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
3920 | return NULL; | |
3921 | } | |
3922 | } | |
f6bcfd97 BP |
3923 | { |
3924 | _arg1 = &temp; | |
3925 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3926 | return NULL; |
f6bcfd97 | 3927 | } |
cf694132 RD |
3928 | { |
3929 | wxPy_BEGIN_ALLOW_THREADS; | |
3930 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3931 | ||
3932 | wxPy_END_ALLOW_THREADS; | |
3933 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3934 | _resultobj = Py_None; |
3935 | return _resultobj; | |
3936 | } | |
3937 | ||
3938 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 3939 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3940 | PyObject * _resultobj; |
3941 | wxWindow * _arg0; | |
3942 | int _arg1; | |
1d99702e | 3943 | PyObject * _argo0 = 0; |
efc5f224 | 3944 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
3945 | |
3946 | self = self; | |
efc5f224 | 3947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3948 | return NULL; |
1d99702e RD |
3949 | if (_argo0) { |
3950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
3953 | return NULL; | |
3954 | } | |
3955 | } | |
cf694132 RD |
3956 | { |
3957 | wxPy_BEGIN_ALLOW_THREADS; | |
3958 | wxWindow_SetId(_arg0,_arg1); | |
3959 | ||
3960 | wxPy_END_ALLOW_THREADS; | |
3961 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3962 | _resultobj = Py_None; |
3963 | return _resultobj; | |
3964 | } | |
3965 | ||
3966 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 3967 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3968 | PyObject * _resultobj; |
3969 | wxWindow * _arg0; | |
3970 | wxString * _arg1; | |
1d99702e | 3971 | PyObject * _argo0 = 0; |
8ab979d7 | 3972 | PyObject * _obj1 = 0; |
efc5f224 | 3973 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
3974 | |
3975 | self = self; | |
efc5f224 | 3976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3977 | return NULL; |
1d99702e RD |
3978 | if (_argo0) { |
3979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
3982 | return NULL; | |
3983 | } | |
3984 | } | |
3985 | { | |
185d7c3e RD |
3986 | #if PYTHON_API_VERSION >= 1009 |
3987 | char* tmpPtr; int tmpSize; | |
3988 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3989 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3990 | return NULL; | |
3991 | } | |
3992 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3993 | return NULL; | |
3994 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3995 | #else | |
8ab979d7 RD |
3996 | if (!PyString_Check(_obj1)) { |
3997 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3998 | return NULL; | |
3999 | } | |
185d7c3e RD |
4000 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4001 | #endif | |
8ab979d7 | 4002 | } |
cf694132 RD |
4003 | { |
4004 | wxPy_BEGIN_ALLOW_THREADS; | |
4005 | wxWindow_SetName(_arg0,*_arg1); | |
4006 | ||
4007 | wxPy_END_ALLOW_THREADS; | |
4008 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4009 | _resultobj = Py_None; |
4010 | { | |
4011 | if (_obj1) | |
4012 | delete _arg1; | |
4013 | } | |
4014 | return _resultobj; | |
4015 | } | |
4016 | ||
8ab979d7 | 4017 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4018 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4019 | PyObject * _resultobj; |
4020 | wxWindow * _arg0; | |
4021 | int _arg1; | |
4022 | int _arg2; | |
4023 | int _arg3; | |
4024 | int _arg4; | |
eb715945 | 4025 | int _arg5 = (int ) TRUE; |
1d99702e | 4026 | PyObject * _argo0 = 0; |
efc5f224 | 4027 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4028 | |
4029 | self = self; | |
eb715945 | 4030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4031 | return NULL; |
1d99702e RD |
4032 | if (_argo0) { |
4033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4036 | return NULL; | |
4037 | } | |
4038 | } | |
cf694132 RD |
4039 | { |
4040 | wxPy_BEGIN_ALLOW_THREADS; | |
4041 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4042 | ||
4043 | wxPy_END_ALLOW_THREADS; | |
4044 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4045 | _resultobj = Py_None; |
4046 | return _resultobj; | |
4047 | } | |
4048 | ||
4049 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4050 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4051 | PyObject * _resultobj; |
4052 | wxWindow * _arg0; | |
4053 | int _arg1; | |
4054 | int _arg2; | |
1d99702e RD |
4055 | bool _arg3 = (bool ) TRUE; |
4056 | PyObject * _argo0 = 0; | |
4057 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4058 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4059 | |
4060 | self = self; | |
efc5f224 | 4061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4062 | return NULL; |
1d99702e RD |
4063 | if (_argo0) { |
4064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4067 | return NULL; | |
4068 | } | |
4069 | } | |
4070 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
4071 | { |
4072 | wxPy_BEGIN_ALLOW_THREADS; | |
4073 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4074 | ||
4075 | wxPy_END_ALLOW_THREADS; | |
4076 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4077 | _resultobj = Py_None; |
4078 | return _resultobj; | |
4079 | } | |
4080 | ||
4081 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4082 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4083 | PyObject * _resultobj; |
4084 | wxWindow * _arg0; | |
4085 | int _arg1; | |
4086 | int _arg2; | |
4087 | int _arg3; | |
4088 | int _arg4; | |
1d99702e RD |
4089 | int _arg5 = (int ) wxSIZE_AUTO; |
4090 | PyObject * _argo0 = 0; | |
efc5f224 | 4091 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4092 | |
4093 | self = self; | |
efc5f224 | 4094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4095 | return NULL; |
1d99702e RD |
4096 | if (_argo0) { |
4097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4100 | return NULL; | |
4101 | } | |
4102 | } | |
cf694132 RD |
4103 | { |
4104 | wxPy_BEGIN_ALLOW_THREADS; | |
4105 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4106 | ||
4107 | wxPy_END_ALLOW_THREADS; | |
4108 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4109 | _resultobj = Py_None; |
4110 | return _resultobj; | |
4111 | } | |
4112 | ||
4113 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4114 | self->SetSize(size); |
8ab979d7 | 4115 | } |
efc5f224 | 4116 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4117 | PyObject * _resultobj; |
4118 | wxWindow * _arg0; | |
4119 | wxSize * _arg1; | |
1d99702e | 4120 | PyObject * _argo0 = 0; |
2f90df85 RD |
4121 | wxSize temp; |
4122 | PyObject * _obj1 = 0; | |
efc5f224 | 4123 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4124 | |
4125 | self = self; | |
2f90df85 | 4126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4127 | return NULL; |
1d99702e RD |
4128 | if (_argo0) { |
4129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4132 | return NULL; | |
4133 | } | |
4134 | } | |
2f90df85 RD |
4135 | { |
4136 | _arg1 = &temp; | |
4137 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4138 | return NULL; |
2f90df85 | 4139 | } |
cf694132 RD |
4140 | { |
4141 | wxPy_BEGIN_ALLOW_THREADS; | |
4142 | wxWindow_SetSize(_arg0,*_arg1); | |
4143 | ||
4144 | wxPy_END_ALLOW_THREADS; | |
4145 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4146 | _resultobj = Py_None; |
4147 | return _resultobj; | |
4148 | } | |
4149 | ||
4150 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
b7e72427 | 4151 | self->Move(pos); |
8ab979d7 | 4152 | } |
efc5f224 | 4153 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4154 | PyObject * _resultobj; |
4155 | wxWindow * _arg0; | |
4156 | wxPoint * _arg1; | |
1d99702e | 4157 | PyObject * _argo0 = 0; |
2f90df85 RD |
4158 | wxPoint temp; |
4159 | PyObject * _obj1 = 0; | |
efc5f224 | 4160 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4161 | |
4162 | self = self; | |
2f90df85 | 4163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4164 | return NULL; |
1d99702e RD |
4165 | if (_argo0) { |
4166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4169 | return NULL; | |
4170 | } | |
4171 | } | |
2f90df85 RD |
4172 | { |
4173 | _arg1 = &temp; | |
4174 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4175 | return NULL; |
2f90df85 | 4176 | } |
cf694132 RD |
4177 | { |
4178 | wxPy_BEGIN_ALLOW_THREADS; | |
4179 | wxWindow_SetPosition(_arg0,*_arg1); | |
4180 | ||
4181 | wxPy_END_ALLOW_THREADS; | |
4182 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4183 | _resultobj = Py_None; |
4184 | return _resultobj; | |
4185 | } | |
4186 | ||
dbbb98cd RD |
4187 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4188 | self->SetSize(rect, sizeFlags); | |
4189 | } | |
4190 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4191 | PyObject * _resultobj; | |
4192 | wxWindow * _arg0; | |
4193 | wxRect * _arg1; | |
4194 | int _arg2 = (int ) wxSIZE_AUTO; | |
4195 | PyObject * _argo0 = 0; | |
4196 | wxRect temp; | |
4197 | PyObject * _obj1 = 0; | |
4198 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4199 | ||
4200 | self = self; | |
4201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4202 | return NULL; | |
4203 | if (_argo0) { | |
4204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4207 | return NULL; | |
4208 | } | |
4209 | } | |
4210 | { | |
4211 | _arg1 = &temp; | |
4212 | if (! wxRect_helper(_obj1, &_arg1)) | |
4213 | return NULL; | |
4214 | } | |
4215 | { | |
4216 | wxPy_BEGIN_ALLOW_THREADS; | |
4217 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4218 | ||
4219 | wxPy_END_ALLOW_THREADS; | |
4220 | } Py_INCREF(Py_None); | |
4221 | _resultobj = Py_None; | |
4222 | return _resultobj; | |
4223 | } | |
4224 | ||
8ab979d7 | 4225 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4226 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4227 | PyObject * _resultobj; |
4228 | wxWindow * _arg0; | |
1d99702e RD |
4229 | int _arg1 = (int ) -1; |
4230 | int _arg2 = (int ) -1; | |
4231 | int _arg3 = (int ) -1; | |
4232 | int _arg4 = (int ) -1; | |
4233 | int _arg5 = (int ) -1; | |
4234 | int _arg6 = (int ) -1; | |
4235 | PyObject * _argo0 = 0; | |
efc5f224 | 4236 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4237 | |
4238 | self = self; | |
efc5f224 | 4239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4240 | return NULL; |
1d99702e RD |
4241 | if (_argo0) { |
4242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4245 | return NULL; | |
4246 | } | |
4247 | } | |
cf694132 RD |
4248 | { |
4249 | wxPy_BEGIN_ALLOW_THREADS; | |
4250 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4251 | ||
4252 | wxPy_END_ALLOW_THREADS; | |
4253 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4254 | _resultobj = Py_None; |
4255 | return _resultobj; | |
4256 | } | |
4257 | ||
af309447 | 4258 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4259 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4260 | PyObject * _resultobj; |
4261 | wxWindow * _arg0; | |
4262 | int _arg1; | |
4263 | int _arg2; | |
1d99702e | 4264 | PyObject * _argo0 = 0; |
efc5f224 | 4265 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4266 | |
4267 | self = self; | |
efc5f224 | 4268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4269 | return NULL; |
1d99702e RD |
4270 | if (_argo0) { |
4271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4274 | return NULL; | |
4275 | } | |
4276 | } | |
cf694132 RD |
4277 | { |
4278 | wxPy_BEGIN_ALLOW_THREADS; | |
4279 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4280 | ||
4281 | wxPy_END_ALLOW_THREADS; | |
4282 | } Py_INCREF(Py_None); | |
af309447 RD |
4283 | _resultobj = Py_None; |
4284 | return _resultobj; | |
4285 | } | |
4286 | ||
4287 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4288 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4289 | PyObject * _resultobj; |
4290 | wxWindow * _arg0; | |
4291 | wxSize * _arg1; | |
1d99702e | 4292 | PyObject * _argo0 = 0; |
2f90df85 RD |
4293 | wxSize temp; |
4294 | PyObject * _obj1 = 0; | |
efc5f224 | 4295 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4296 | |
4297 | self = self; | |
2f90df85 | 4298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4299 | return NULL; |
1d99702e RD |
4300 | if (_argo0) { |
4301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4304 | return NULL; | |
4305 | } | |
4306 | } | |
2f90df85 RD |
4307 | { |
4308 | _arg1 = &temp; | |
4309 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4310 | return NULL; |
2f90df85 | 4311 | } |
cf694132 RD |
4312 | { |
4313 | wxPy_BEGIN_ALLOW_THREADS; | |
4314 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4315 | ||
4316 | wxPy_END_ALLOW_THREADS; | |
4317 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4318 | _resultobj = Py_None; |
4319 | return _resultobj; | |
4320 | } | |
4321 | ||
4322 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4323 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4324 | PyObject * _resultobj; |
4325 | wxWindow * _arg0; | |
4326 | wxCursor * _arg1; | |
1d99702e RD |
4327 | PyObject * _argo0 = 0; |
4328 | PyObject * _argo1 = 0; | |
efc5f224 | 4329 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4330 | |
4331 | self = self; | |
efc5f224 | 4332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4333 | return NULL; |
1d99702e RD |
4334 | if (_argo0) { |
4335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4338 | return NULL; | |
4339 | } | |
4340 | } | |
1d99702e RD |
4341 | if (_argo1) { |
4342 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4343 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4345 | return NULL; | |
4346 | } | |
4347 | } | |
cf694132 RD |
4348 | { |
4349 | wxPy_BEGIN_ALLOW_THREADS; | |
4350 | wxWindow_SetCursor(_arg0,*_arg1); | |
4351 | ||
4352 | wxPy_END_ALLOW_THREADS; | |
4353 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4354 | _resultobj = Py_None; |
4355 | return _resultobj; | |
4356 | } | |
4357 | ||
1afc06c2 RD |
4358 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4359 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4360 | PyObject * _resultobj; | |
4361 | wxWindow * _arg0; | |
4362 | wxEvtHandler * _arg1; | |
4363 | PyObject * _argo0 = 0; | |
4364 | PyObject * _argo1 = 0; | |
4365 | char *_kwnames[] = { "self","handler", NULL }; | |
4366 | ||
4367 | self = self; | |
4368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4369 | return NULL; | |
4370 | if (_argo0) { | |
4371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4374 | return NULL; | |
4375 | } | |
4376 | } | |
4377 | if (_argo1) { | |
4378 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4379 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4381 | return NULL; | |
4382 | } | |
4383 | } | |
4384 | { | |
4385 | wxPy_BEGIN_ALLOW_THREADS; | |
4386 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4387 | ||
4388 | wxPy_END_ALLOW_THREADS; | |
4389 | } Py_INCREF(Py_None); | |
4390 | _resultobj = Py_None; | |
4391 | return _resultobj; | |
4392 | } | |
4393 | ||
8ab979d7 | 4394 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4395 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4396 | PyObject * _resultobj; |
4397 | wxWindow * _arg0; | |
4398 | wxString * _arg1; | |
1d99702e | 4399 | PyObject * _argo0 = 0; |
8ab979d7 | 4400 | PyObject * _obj1 = 0; |
efc5f224 | 4401 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4402 | |
4403 | self = self; | |
efc5f224 | 4404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4405 | return NULL; |
1d99702e RD |
4406 | if (_argo0) { |
4407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4410 | return NULL; | |
4411 | } | |
4412 | } | |
4413 | { | |
185d7c3e RD |
4414 | #if PYTHON_API_VERSION >= 1009 |
4415 | char* tmpPtr; int tmpSize; | |
4416 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4417 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4418 | return NULL; | |
4419 | } | |
4420 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4421 | return NULL; | |
4422 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4423 | #else | |
8ab979d7 RD |
4424 | if (!PyString_Check(_obj1)) { |
4425 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4426 | return NULL; | |
4427 | } | |
185d7c3e RD |
4428 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4429 | #endif | |
8ab979d7 | 4430 | } |
cf694132 RD |
4431 | { |
4432 | wxPy_BEGIN_ALLOW_THREADS; | |
4433 | wxWindow_SetTitle(_arg0,*_arg1); | |
4434 | ||
4435 | wxPy_END_ALLOW_THREADS; | |
4436 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4437 | _resultobj = Py_None; |
4438 | { | |
4439 | if (_obj1) | |
4440 | delete _arg1; | |
4441 | } | |
4442 | return _resultobj; | |
4443 | } | |
4444 | ||
4445 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4446 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4447 | PyObject * _resultobj; |
4448 | bool _result; | |
4449 | wxWindow * _arg0; | |
4450 | bool _arg1; | |
1d99702e | 4451 | PyObject * _argo0 = 0; |
8ab979d7 | 4452 | int tempbool1; |
efc5f224 | 4453 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4454 | |
4455 | self = self; | |
efc5f224 | 4456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
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_Show. Expected _wxWindow_p."); |
4462 | return NULL; | |
4463 | } | |
4464 | } | |
4465 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4466 | { |
4467 | wxPy_BEGIN_ALLOW_THREADS; | |
4468 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4469 | ||
4470 | wxPy_END_ALLOW_THREADS; | |
4471 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4472 | return _resultobj; |
4473 | } | |
4474 | ||
4475 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4476 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4477 | PyObject * _resultobj; |
4478 | bool _result; | |
4479 | wxWindow * _arg0; | |
1d99702e | 4480 | PyObject * _argo0 = 0; |
efc5f224 | 4481 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4482 | |
4483 | self = self; | |
efc5f224 | 4484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4485 | return NULL; |
1d99702e RD |
4486 | if (_argo0) { |
4487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4490 | return NULL; | |
4491 | } | |
4492 | } | |
cf694132 RD |
4493 | { |
4494 | wxPy_BEGIN_ALLOW_THREADS; | |
4495 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4496 | ||
4497 | wxPy_END_ALLOW_THREADS; | |
4498 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4499 | return _resultobj; |
4500 | } | |
4501 | ||
4502 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4503 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4504 | PyObject * _resultobj; |
4505 | bool _result; | |
4506 | wxWindow * _arg0; | |
1d99702e | 4507 | PyObject * _argo0 = 0; |
efc5f224 | 4508 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4509 | |
4510 | self = self; | |
efc5f224 | 4511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4512 | return NULL; |
1d99702e RD |
4513 | if (_argo0) { |
4514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4517 | return NULL; | |
4518 | } | |
4519 | } | |
cf694132 RD |
4520 | { |
4521 | wxPy_BEGIN_ALLOW_THREADS; | |
4522 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4523 | ||
4524 | wxPy_END_ALLOW_THREADS; | |
4525 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4526 | return _resultobj; |
4527 | } | |
4528 | ||
4529 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4530 | static PyObject *_wrap_wxWindow_Validate(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_Validate",_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_Validate. Expected _wxWindow_p."); |
4544 | return NULL; | |
4545 | } | |
4546 | } | |
cf694132 RD |
4547 | { |
4548 | wxPy_BEGIN_ALLOW_THREADS; | |
4549 | _result = (bool )wxWindow_Validate(_arg0); | |
4550 | ||
4551 | wxPy_END_ALLOW_THREADS; | |
4552 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4553 | return _resultobj; |
4554 | } | |
4555 | ||
4556 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4557 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4558 | PyObject * _resultobj; |
4559 | wxWindow * _arg0; | |
4560 | int _arg1; | |
4561 | int _arg2; | |
1d99702e | 4562 | PyObject * _argo0 = 0; |
efc5f224 | 4563 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4564 | |
4565 | self = self; | |
efc5f224 | 4566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
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_WarpPointer. Expected _wxWindow_p."); |
4572 | return NULL; | |
4573 | } | |
4574 | } | |
cf694132 RD |
4575 | { |
4576 | wxPy_BEGIN_ALLOW_THREADS; | |
4577 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4578 | ||
4579 | wxPy_END_ALLOW_THREADS; | |
4580 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4581 | _resultobj = Py_None; |
4582 | return _resultobj; | |
4583 | } | |
4584 | ||
b8b8dda7 | 4585 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4586 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4587 | PyObject * _resultobj; |
4588 | wxPoint * _result; | |
4589 | wxWindow * _arg0; | |
4590 | wxPoint * _arg1; | |
1d99702e | 4591 | PyObject * _argo0 = 0; |
2f90df85 RD |
4592 | wxPoint temp; |
4593 | PyObject * _obj1 = 0; | |
efc5f224 | 4594 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4595 | char _ptemp[128]; |
4596 | ||
4597 | self = self; | |
2f90df85 | 4598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4599 | return NULL; |
1d99702e RD |
4600 | if (_argo0) { |
4601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4604 | return NULL; | |
4605 | } | |
4606 | } | |
2f90df85 RD |
4607 | { |
4608 | _arg1 = &temp; | |
4609 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4610 | return NULL; |
2f90df85 | 4611 | } |
cf694132 RD |
4612 | { |
4613 | wxPy_BEGIN_ALLOW_THREADS; | |
4614 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4615 | ||
4616 | wxPy_END_ALLOW_THREADS; | |
4617 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
4618 | _resultobj = Py_BuildValue("s",_ptemp); |
4619 | return _resultobj; | |
4620 | } | |
4621 | ||
4622 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4623 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4624 | PyObject * _resultobj; |
4625 | wxSize * _result; | |
4626 | wxWindow * _arg0; | |
4627 | wxSize * _arg1; | |
1d99702e | 4628 | PyObject * _argo0 = 0; |
2f90df85 RD |
4629 | wxSize temp; |
4630 | PyObject * _obj1 = 0; | |
efc5f224 | 4631 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4632 | char _ptemp[128]; |
4633 | ||
4634 | self = self; | |
2f90df85 | 4635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4636 | return NULL; |
1d99702e RD |
4637 | if (_argo0) { |
4638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4641 | return NULL; | |
4642 | } | |
4643 | } | |
2f90df85 RD |
4644 | { |
4645 | _arg1 = &temp; | |
4646 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4647 | return NULL; |
2f90df85 | 4648 | } |
cf694132 RD |
4649 | { |
4650 | wxPy_BEGIN_ALLOW_THREADS; | |
4651 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4652 | ||
4653 | wxPy_END_ALLOW_THREADS; | |
4654 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
4655 | _resultobj = Py_BuildValue("s",_ptemp); |
4656 | return _resultobj; | |
4657 | } | |
4658 | ||
4659 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4660 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4661 | PyObject * _resultobj; |
4662 | wxPoint * _result; | |
4663 | wxWindow * _arg0; | |
4664 | wxPoint * _arg1; | |
1d99702e | 4665 | PyObject * _argo0 = 0; |
2f90df85 RD |
4666 | wxPoint temp; |
4667 | PyObject * _obj1 = 0; | |
efc5f224 | 4668 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4669 | char _ptemp[128]; |
4670 | ||
4671 | self = self; | |
2f90df85 | 4672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4673 | return NULL; |
1d99702e RD |
4674 | if (_argo0) { |
4675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4678 | return NULL; | |
4679 | } | |
4680 | } | |
2f90df85 RD |
4681 | { |
4682 | _arg1 = &temp; | |
4683 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4684 | return NULL; |
2f90df85 | 4685 | } |
cf694132 RD |
4686 | { |
4687 | wxPy_BEGIN_ALLOW_THREADS; | |
4688 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4689 | ||
4690 | wxPy_END_ALLOW_THREADS; | |
4691 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
4692 | _resultobj = Py_BuildValue("s",_ptemp); |
4693 | return _resultobj; | |
4694 | } | |
4695 | ||
4696 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4697 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4698 | PyObject * _resultobj; |
4699 | wxSize * _result; | |
4700 | wxWindow * _arg0; | |
4701 | wxSize * _arg1; | |
1d99702e | 4702 | PyObject * _argo0 = 0; |
2f90df85 RD |
4703 | wxSize temp; |
4704 | PyObject * _obj1 = 0; | |
efc5f224 | 4705 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4706 | char _ptemp[128]; |
4707 | ||
4708 | self = self; | |
2f90df85 | 4709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4710 | return NULL; |
1d99702e RD |
4711 | if (_argo0) { |
4712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4715 | return NULL; | |
4716 | } | |
4717 | } | |
2f90df85 RD |
4718 | { |
4719 | _arg1 = &temp; | |
4720 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4721 | return NULL; |
2f90df85 | 4722 | } |
cf694132 RD |
4723 | { |
4724 | wxPy_BEGIN_ALLOW_THREADS; | |
4725 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4726 | ||
4727 | wxPy_END_ALLOW_THREADS; | |
4728 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
4729 | _resultobj = Py_BuildValue("s",_ptemp); |
4730 | return _resultobj; | |
4731 | } | |
4732 | ||
af309447 | 4733 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4734 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4735 | PyObject * _resultobj; |
4736 | wxWindow * _arg0; | |
4737 | wxString * _arg1; | |
1d99702e | 4738 | PyObject * _argo0 = 0; |
af309447 | 4739 | PyObject * _obj1 = 0; |
efc5f224 | 4740 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4741 | |
4742 | self = self; | |
efc5f224 | 4743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4744 | return NULL; |
1d99702e RD |
4745 | if (_argo0) { |
4746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4749 | return NULL; | |
4750 | } | |
4751 | } | |
4752 | { | |
185d7c3e RD |
4753 | #if PYTHON_API_VERSION >= 1009 |
4754 | char* tmpPtr; int tmpSize; | |
4755 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4756 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4757 | return NULL; | |
4758 | } | |
4759 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4760 | return NULL; | |
4761 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4762 | #else | |
af309447 RD |
4763 | if (!PyString_Check(_obj1)) { |
4764 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4765 | return NULL; | |
4766 | } | |
185d7c3e RD |
4767 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4768 | #endif | |
af309447 | 4769 | } |
cf694132 RD |
4770 | { |
4771 | wxPy_BEGIN_ALLOW_THREADS; | |
4772 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4773 | ||
4774 | wxPy_END_ALLOW_THREADS; | |
4775 | } Py_INCREF(Py_None); | |
af309447 RD |
4776 | _resultobj = Py_None; |
4777 | { | |
4778 | if (_obj1) | |
4779 | delete _arg1; | |
4780 | } | |
4781 | return _resultobj; | |
4782 | } | |
4783 | ||
4784 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4785 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4786 | PyObject * _resultobj; |
4787 | wxWindow * _arg0; | |
4788 | wxToolTip * _arg1; | |
1d99702e RD |
4789 | PyObject * _argo0 = 0; |
4790 | PyObject * _argo1 = 0; | |
efc5f224 | 4791 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4792 | |
4793 | self = self; | |
efc5f224 | 4794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4795 | return NULL; |
1d99702e RD |
4796 | if (_argo0) { |
4797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4800 | return NULL; | |
4801 | } | |
4802 | } | |
1d99702e RD |
4803 | if (_argo1) { |
4804 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4805 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4807 | return NULL; | |
4808 | } | |
4809 | } | |
cf694132 RD |
4810 | { |
4811 | wxPy_BEGIN_ALLOW_THREADS; | |
4812 | wxWindow_SetToolTip(_arg0,_arg1); | |
4813 | ||
4814 | wxPy_END_ALLOW_THREADS; | |
4815 | } Py_INCREF(Py_None); | |
af309447 RD |
4816 | _resultobj = Py_None; |
4817 | return _resultobj; | |
4818 | } | |
4819 | ||
4820 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 4821 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4822 | PyObject * _resultobj; |
4823 | wxToolTip * _result; | |
4824 | wxWindow * _arg0; | |
1d99702e | 4825 | PyObject * _argo0 = 0; |
efc5f224 | 4826 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
4827 | char _ptemp[128]; |
4828 | ||
4829 | self = self; | |
efc5f224 | 4830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 4831 | return NULL; |
1d99702e RD |
4832 | if (_argo0) { |
4833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4836 | return NULL; | |
4837 | } | |
4838 | } | |
cf694132 RD |
4839 | { |
4840 | wxPy_BEGIN_ALLOW_THREADS; | |
4841 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4842 | ||
4843 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4844 | } if (_result) { |
4845 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
4846 | _resultobj = Py_BuildValue("s",_ptemp); | |
4847 | } else { | |
4848 | Py_INCREF(Py_None); | |
4849 | _resultobj = Py_None; | |
4850 | } | |
af309447 RD |
4851 | return _resultobj; |
4852 | } | |
4853 | ||
2f90df85 RD |
4854 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
4855 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4856 | PyObject * _resultobj; | |
4857 | wxWindow * _arg0; | |
4858 | wxSizer * _arg1; | |
4859 | PyObject * _argo0 = 0; | |
4860 | PyObject * _argo1 = 0; | |
4861 | char *_kwnames[] = { "self","sizer", NULL }; | |
4862 | ||
4863 | self = self; | |
4864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4865 | return NULL; | |
4866 | if (_argo0) { | |
4867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4870 | return NULL; | |
4871 | } | |
4872 | } | |
4873 | if (_argo1) { | |
4874 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4875 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4877 | return NULL; | |
4878 | } | |
4879 | } | |
4880 | { | |
4881 | wxPy_BEGIN_ALLOW_THREADS; | |
4882 | wxWindow_SetSizer(_arg0,_arg1); | |
4883 | ||
4884 | wxPy_END_ALLOW_THREADS; | |
4885 | } Py_INCREF(Py_None); | |
4886 | _resultobj = Py_None; | |
4887 | return _resultobj; | |
4888 | } | |
4889 | ||
f6bcfd97 BP |
4890 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
4891 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4892 | PyObject * _resultobj; | |
4893 | wxSizer * _result; | |
4894 | wxWindow * _arg0; | |
4895 | PyObject * _argo0 = 0; | |
4896 | char *_kwnames[] = { "self", NULL }; | |
4897 | char _ptemp[128]; | |
4898 | ||
4899 | self = self; | |
4900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
4901 | return NULL; | |
4902 | if (_argo0) { | |
4903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
4906 | return NULL; | |
4907 | } | |
4908 | } | |
4909 | { | |
4910 | wxPy_BEGIN_ALLOW_THREADS; | |
4911 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
4912 | ||
4913 | wxPy_END_ALLOW_THREADS; | |
4914 | } if (_result) { | |
4915 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p"); | |
4916 | _resultobj = Py_BuildValue("s",_ptemp); | |
4917 | } else { | |
4918 | Py_INCREF(Py_None); | |
4919 | _resultobj = Py_None; | |
4920 | } | |
4921 | return _resultobj; | |
4922 | } | |
4923 | ||
2f90df85 RD |
4924 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
4925 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4926 | PyObject * _resultobj; | |
4927 | wxValidator * _result; | |
4928 | wxWindow * _arg0; | |
4929 | PyObject * _argo0 = 0; | |
4930 | char *_kwnames[] = { "self", NULL }; | |
4931 | char _ptemp[128]; | |
4932 | ||
4933 | self = self; | |
4934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
4935 | return NULL; | |
4936 | if (_argo0) { | |
4937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
4940 | return NULL; | |
4941 | } | |
4942 | } | |
4943 | { | |
4944 | wxPy_BEGIN_ALLOW_THREADS; | |
4945 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
4946 | ||
4947 | wxPy_END_ALLOW_THREADS; | |
4948 | } if (_result) { | |
4949 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
4950 | _resultobj = Py_BuildValue("s",_ptemp); | |
4951 | } else { | |
4952 | Py_INCREF(Py_None); | |
4953 | _resultobj = Py_None; | |
4954 | } | |
4955 | return _resultobj; | |
4956 | } | |
4957 | ||
4958 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
4959 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4960 | PyObject * _resultobj; | |
4961 | wxWindow * _arg0; | |
4962 | wxValidator * _arg1; | |
4963 | PyObject * _argo0 = 0; | |
4964 | PyObject * _argo1 = 0; | |
4965 | char *_kwnames[] = { "self","validator", NULL }; | |
4966 | ||
4967 | self = self; | |
4968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
4969 | return NULL; | |
4970 | if (_argo0) { | |
4971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
4974 | return NULL; | |
4975 | } | |
4976 | } | |
4977 | if (_argo1) { | |
4978 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4979 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
4980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
4981 | return NULL; | |
4982 | } | |
4983 | } | |
4984 | { | |
4985 | wxPy_BEGIN_ALLOW_THREADS; | |
4986 | wxWindow_SetValidator(_arg0,*_arg1); | |
4987 | ||
4988 | wxPy_END_ALLOW_THREADS; | |
4989 | } Py_INCREF(Py_None); | |
4990 | _resultobj = Py_None; | |
4991 | return _resultobj; | |
4992 | } | |
4993 | ||
b1462dfa RD |
4994 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
4995 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4996 | PyObject * _resultobj; | |
4997 | wxWindow * _arg0; | |
4998 | wxDropTarget * _arg1; | |
4999 | PyObject * _argo0 = 0; | |
5000 | PyObject * _argo1 = 0; | |
5001 | char *_kwnames[] = { "self","target", NULL }; | |
5002 | ||
5003 | self = self; | |
5004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5005 | return NULL; | |
5006 | if (_argo0) { | |
5007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5010 | return NULL; | |
5011 | } | |
5012 | } | |
5013 | if (_argo1) { | |
5014 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5015 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5017 | return NULL; | |
5018 | } | |
5019 | } | |
5020 | { | |
5021 | wxPy_BEGIN_ALLOW_THREADS; | |
5022 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5023 | ||
5024 | wxPy_END_ALLOW_THREADS; | |
5025 | } Py_INCREF(Py_None); | |
5026 | _resultobj = Py_None; | |
5027 | return _resultobj; | |
5028 | } | |
5029 | ||
5030 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5031 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5032 | PyObject * _resultobj; | |
5033 | wxDropTarget * _result; | |
5034 | wxWindow * _arg0; | |
5035 | PyObject * _argo0 = 0; | |
5036 | char *_kwnames[] = { "self", NULL }; | |
5037 | char _ptemp[128]; | |
5038 | ||
5039 | self = self; | |
5040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5041 | return NULL; | |
5042 | if (_argo0) { | |
5043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5046 | return NULL; | |
5047 | } | |
5048 | } | |
5049 | { | |
5050 | wxPy_BEGIN_ALLOW_THREADS; | |
5051 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5052 | ||
5053 | wxPy_END_ALLOW_THREADS; | |
5054 | } if (_result) { | |
5055 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5056 | _resultobj = Py_BuildValue("s",_ptemp); | |
5057 | } else { | |
5058 | Py_INCREF(Py_None); | |
5059 | _resultobj = Py_None; | |
5060 | } | |
5061 | return _resultobj; | |
5062 | } | |
5063 | ||
694759cf RD |
5064 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5065 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5066 | PyObject * _resultobj; | |
5067 | wxSize * _result; | |
5068 | wxWindow * _arg0; | |
5069 | PyObject * _argo0 = 0; | |
5070 | char *_kwnames[] = { "self", NULL }; | |
5071 | char _ptemp[128]; | |
5072 | ||
5073 | self = self; | |
5074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5075 | return NULL; | |
5076 | if (_argo0) { | |
5077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5080 | return NULL; | |
5081 | } | |
5082 | } | |
5083 | { | |
5084 | wxPy_BEGIN_ALLOW_THREADS; | |
5085 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5086 | ||
5087 | wxPy_END_ALLOW_THREADS; | |
5088 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5089 | _resultobj = Py_BuildValue("s",_ptemp); | |
5090 | return _resultobj; | |
5091 | } | |
5092 | ||
a1df7a95 RD |
5093 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5094 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5095 | PyObject * _resultobj; | |
5096 | wxWindow * _arg0; | |
5097 | wxCaret * _arg1; | |
5098 | PyObject * _argo0 = 0; | |
5099 | PyObject * _argo1 = 0; | |
5100 | char *_kwnames[] = { "self","caret", NULL }; | |
5101 | ||
5102 | self = self; | |
5103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5104 | return NULL; | |
5105 | if (_argo0) { | |
5106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5109 | return NULL; | |
5110 | } | |
5111 | } | |
5112 | if (_argo1) { | |
5113 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5114 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5116 | return NULL; | |
5117 | } | |
5118 | } | |
5119 | { | |
5120 | wxPy_BEGIN_ALLOW_THREADS; | |
5121 | wxWindow_SetCaret(_arg0,_arg1); | |
5122 | ||
5123 | wxPy_END_ALLOW_THREADS; | |
5124 | } Py_INCREF(Py_None); | |
5125 | _resultobj = Py_None; | |
5126 | return _resultobj; | |
5127 | } | |
5128 | ||
5129 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5130 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5131 | PyObject * _resultobj; | |
5132 | wxCaret * _result; | |
5133 | wxWindow * _arg0; | |
5134 | PyObject * _argo0 = 0; | |
5135 | char *_kwnames[] = { "self", NULL }; | |
5136 | char _ptemp[128]; | |
5137 | ||
5138 | self = self; | |
5139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5140 | return NULL; | |
5141 | if (_argo0) { | |
5142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5145 | return NULL; | |
5146 | } | |
5147 | } | |
5148 | { | |
5149 | wxPy_BEGIN_ALLOW_THREADS; | |
5150 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5151 | ||
5152 | wxPy_END_ALLOW_THREADS; | |
5153 | } if (_result) { | |
5154 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5155 | _resultobj = Py_BuildValue("s",_ptemp); | |
5156 | } else { | |
5157 | Py_INCREF(Py_None); | |
5158 | _resultobj = Py_None; | |
5159 | } | |
5160 | return _resultobj; | |
5161 | } | |
5162 | ||
8ab979d7 RD |
5163 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5164 | wxPanel *src; | |
5165 | wxWindow *dest; | |
5166 | src = (wxPanel *) ptr; | |
5167 | dest = (wxWindow *) src; | |
5168 | return (void *) dest; | |
5169 | } | |
5170 | ||
5171 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5172 | wxPanel *src; | |
5173 | wxEvtHandler *dest; | |
5174 | src = (wxPanel *) ptr; | |
5175 | dest = (wxEvtHandler *) src; | |
5176 | return (void *) dest; | |
5177 | } | |
5178 | ||
5179 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 5180 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5181 | PyObject * _resultobj; |
5182 | wxPanel * _result; | |
5183 | wxWindow * _arg0; | |
5184 | wxWindowID _arg1; | |
1d99702e RD |
5185 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; |
5186 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
5187 | long _arg4 = (long ) wxTAB_TRAVERSAL; | |
5188 | char * _arg5 = (char *) "panel"; | |
5189 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5190 | wxPoint temp; |
5191 | PyObject * _obj2 = 0; | |
5192 | wxSize temp0; | |
5193 | PyObject * _obj3 = 0; | |
efc5f224 | 5194 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5195 | char _ptemp[128]; |
5196 | ||
5197 | self = self; | |
2f90df85 | 5198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5199 | return NULL; |
1d99702e RD |
5200 | if (_argo0) { |
5201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5204 | return NULL; | |
5205 | } | |
5206 | } | |
2f90df85 RD |
5207 | if (_obj2) |
5208 | { | |
5209 | _arg2 = &temp; | |
5210 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5211 | return NULL; |
2f90df85 RD |
5212 | } |
5213 | if (_obj3) | |
5214 | { | |
5215 | _arg3 = &temp0; | |
5216 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5217 | return NULL; |
2f90df85 | 5218 | } |
cf694132 RD |
5219 | { |
5220 | wxPy_BEGIN_ALLOW_THREADS; | |
5221 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5222 | ||
5223 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5224 | } if (_result) { |
5225 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5226 | _resultobj = Py_BuildValue("s",_ptemp); | |
5227 | } else { | |
5228 | Py_INCREF(Py_None); | |
5229 | _resultobj = Py_None; | |
5230 | } | |
8ab979d7 RD |
5231 | return _resultobj; |
5232 | } | |
5233 | ||
5234 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
efc5f224 | 5235 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5236 | PyObject * _resultobj; |
5237 | wxPanel * _arg0; | |
1d99702e | 5238 | PyObject * _argo0 = 0; |
efc5f224 | 5239 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5240 | |
5241 | self = self; | |
efc5f224 | 5242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 5243 | return NULL; |
1d99702e RD |
5244 | if (_argo0) { |
5245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
5247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
5248 | return NULL; | |
5249 | } | |
5250 | } | |
cf694132 RD |
5251 | { |
5252 | wxPy_BEGIN_ALLOW_THREADS; | |
5253 | wxPanel_InitDialog(_arg0); | |
5254 | ||
5255 | wxPy_END_ALLOW_THREADS; | |
5256 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5257 | _resultobj = Py_None; |
5258 | return _resultobj; | |
5259 | } | |
5260 | ||
bb0054cd | 5261 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
efc5f224 | 5262 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5263 | PyObject * _resultobj; |
5264 | wxButton * _result; | |
5265 | wxPanel * _arg0; | |
1d99702e | 5266 | PyObject * _argo0 = 0; |
efc5f224 | 5267 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5268 | char _ptemp[128]; |
5269 | ||
5270 | self = self; | |
efc5f224 | 5271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
bb0054cd | 5272 | return NULL; |
1d99702e RD |
5273 | if (_argo0) { |
5274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
5277 | return NULL; | |
5278 | } | |
5279 | } | |
5280 | { | |
5281 | wxPy_BEGIN_ALLOW_THREADS; | |
5282 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
5283 | ||
5284 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5285 | } if (_result) { |
5286 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
5287 | _resultobj = Py_BuildValue("s",_ptemp); | |
5288 | } else { | |
5289 | Py_INCREF(Py_None); | |
5290 | _resultobj = Py_None; | |
5291 | } | |
bb0054cd RD |
5292 | return _resultobj; |
5293 | } | |
5294 | ||
5295 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
efc5f224 | 5296 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5297 | PyObject * _resultobj; |
5298 | wxPanel * _arg0; | |
5299 | wxButton * _arg1; | |
1d99702e RD |
5300 | PyObject * _argo0 = 0; |
5301 | PyObject * _argo1 = 0; | |
efc5f224 | 5302 | char *_kwnames[] = { "self","btn", NULL }; |
bb0054cd RD |
5303 | |
5304 | self = self; | |
efc5f224 | 5305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 5306 | return NULL; |
1d99702e RD |
5307 | if (_argo0) { |
5308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
5311 | return NULL; | |
5312 | } | |
5313 | } | |
1d99702e RD |
5314 | if (_argo1) { |
5315 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5316 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
bb0054cd RD |
5317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
5318 | return NULL; | |
5319 | } | |
5320 | } | |
5321 | { | |
5322 | wxPy_BEGIN_ALLOW_THREADS; | |
5323 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
5324 | ||
5325 | wxPy_END_ALLOW_THREADS; | |
5326 | } Py_INCREF(Py_None); | |
5327 | _resultobj = Py_None; | |
5328 | return _resultobj; | |
5329 | } | |
5330 | ||
8ab979d7 RD |
5331 | static void *SwigwxDialogTowxPanel(void *ptr) { |
5332 | wxDialog *src; | |
5333 | wxPanel *dest; | |
5334 | src = (wxDialog *) ptr; | |
5335 | dest = (wxPanel *) src; | |
5336 | return (void *) dest; | |
5337 | } | |
5338 | ||
5339 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
5340 | wxDialog *src; | |
5341 | wxWindow *dest; | |
5342 | src = (wxDialog *) ptr; | |
5343 | dest = (wxWindow *) src; | |
5344 | return (void *) dest; | |
5345 | } | |
5346 | ||
5347 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
5348 | wxDialog *src; | |
5349 | wxEvtHandler *dest; | |
5350 | src = (wxDialog *) ptr; | |
5351 | dest = (wxEvtHandler *) src; | |
5352 | return (void *) dest; | |
5353 | } | |
5354 | ||
5355 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 5356 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5357 | PyObject * _resultobj; |
5358 | wxDialog * _result; | |
5359 | wxWindow * _arg0; | |
5360 | wxWindowID _arg1; | |
5361 | wxString * _arg2; | |
1d99702e RD |
5362 | wxPoint * _arg3 = (wxPoint *) &wxPyDefaultPosition; |
5363 | wxSize * _arg4 = (wxSize *) &wxPyDefaultSize; | |
5364 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; | |
5365 | char * _arg6 = (char *) "dialogBox"; | |
5366 | PyObject * _argo0 = 0; | |
8ab979d7 | 5367 | PyObject * _obj2 = 0; |
2f90df85 RD |
5368 | wxPoint temp; |
5369 | PyObject * _obj3 = 0; | |
5370 | wxSize temp0; | |
5371 | PyObject * _obj4 = 0; | |
efc5f224 | 5372 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
8ab979d7 RD |
5373 | char _ptemp[128]; |
5374 | ||
5375 | self = self; | |
2f90df85 | 5376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 5377 | return NULL; |
1d99702e RD |
5378 | if (_argo0) { |
5379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); |
5382 | return NULL; | |
5383 | } | |
5384 | } | |
5385 | { | |
185d7c3e RD |
5386 | #if PYTHON_API_VERSION >= 1009 |
5387 | char* tmpPtr; int tmpSize; | |
5388 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
5389 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5390 | return NULL; | |
5391 | } | |
5392 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5393 | return NULL; | |
5394 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5395 | #else | |
8ab979d7 RD |
5396 | if (!PyString_Check(_obj2)) { |
5397 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5398 | return NULL; | |
5399 | } | |
185d7c3e RD |
5400 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5401 | #endif | |
8ab979d7 | 5402 | } |
2f90df85 RD |
5403 | if (_obj3) |
5404 | { | |
5405 | _arg3 = &temp; | |
5406 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 5407 | return NULL; |
2f90df85 RD |
5408 | } |
5409 | if (_obj4) | |
5410 | { | |
5411 | _arg4 = &temp0; | |
5412 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 5413 | return NULL; |
2f90df85 | 5414 | } |
cf694132 RD |
5415 | { |
5416 | wxPy_BEGIN_ALLOW_THREADS; | |
5417 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5418 | ||
5419 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5420 | } if (_result) { |
5421 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
5422 | _resultobj = Py_BuildValue("s",_ptemp); | |
5423 | } else { | |
5424 | Py_INCREF(Py_None); | |
5425 | _resultobj = Py_None; | |
5426 | } | |
8ab979d7 RD |
5427 | { |
5428 | if (_obj2) | |
5429 | delete _arg2; | |
5430 | } | |
5431 | return _resultobj; | |
5432 | } | |
5433 | ||
5434 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 5435 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5436 | PyObject * _resultobj; |
5437 | wxDialog * _arg0; | |
1d99702e RD |
5438 | int _arg1 = (int ) wxBOTH; |
5439 | PyObject * _argo0 = 0; | |
efc5f224 | 5440 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
5441 | |
5442 | self = self; | |
efc5f224 | 5443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5444 | return NULL; |
1d99702e RD |
5445 | if (_argo0) { |
5446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); |
5449 | return NULL; | |
5450 | } | |
5451 | } | |
cf694132 RD |
5452 | { |
5453 | wxPy_BEGIN_ALLOW_THREADS; | |
5454 | wxDialog_Centre(_arg0,_arg1); | |
5455 | ||
5456 | wxPy_END_ALLOW_THREADS; | |
5457 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5458 | _resultobj = Py_None; |
5459 | return _resultobj; | |
5460 | } | |
5461 | ||
5462 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
efc5f224 | 5463 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5464 | PyObject * _resultobj; |
5465 | wxDialog * _arg0; | |
5466 | int _arg1; | |
1d99702e | 5467 | PyObject * _argo0 = 0; |
efc5f224 | 5468 | char *_kwnames[] = { "self","retCode", NULL }; |
8ab979d7 RD |
5469 | |
5470 | self = self; | |
efc5f224 | 5471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5472 | return NULL; |
1d99702e RD |
5473 | if (_argo0) { |
5474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); |
5477 | return NULL; | |
5478 | } | |
5479 | } | |
cf694132 RD |
5480 | { |
5481 | wxPy_BEGIN_ALLOW_THREADS; | |
5482 | wxDialog_EndModal(_arg0,_arg1); | |
5483 | ||
5484 | wxPy_END_ALLOW_THREADS; | |
5485 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5486 | _resultobj = Py_None; |
5487 | return _resultobj; | |
5488 | } | |
5489 | ||
5490 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
efc5f224 | 5491 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5492 | PyObject * _resultobj; |
5493 | wxString * _result; | |
5494 | wxDialog * _arg0; | |
1d99702e | 5495 | PyObject * _argo0 = 0; |
efc5f224 | 5496 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5497 | |
5498 | self = self; | |
efc5f224 | 5499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 5500 | return NULL; |
1d99702e RD |
5501 | if (_argo0) { |
5502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); |
5505 | return NULL; | |
5506 | } | |
5507 | } | |
8ab979d7 | 5508 | { |
cf694132 RD |
5509 | wxPy_BEGIN_ALLOW_THREADS; |
5510 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
5511 | ||
5512 | wxPy_END_ALLOW_THREADS; | |
5513 | }{ | |
eec92d76 | 5514 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
5515 | } |
5516 | { | |
5517 | delete _result; | |
5518 | } | |
5519 | return _resultobj; | |
5520 | } | |
5521 | ||
5522 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
efc5f224 | 5523 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5524 | PyObject * _resultobj; |
5525 | wxDialog * _arg0; | |
5526 | bool _arg1; | |
1d99702e | 5527 | PyObject * _argo0 = 0; |
8ab979d7 | 5528 | int tempbool1; |
efc5f224 | 5529 | char *_kwnames[] = { "self","iconize", NULL }; |
8ab979d7 RD |
5530 | |
5531 | self = self; | |
efc5f224 | 5532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5533 | return NULL; |
1d99702e RD |
5534 | if (_argo0) { |
5535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p."); |
5538 | return NULL; | |
5539 | } | |
5540 | } | |
5541 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5542 | { |
5543 | wxPy_BEGIN_ALLOW_THREADS; | |
5544 | wxDialog_Iconize(_arg0,_arg1); | |
5545 | ||
5546 | wxPy_END_ALLOW_THREADS; | |
5547 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5548 | _resultobj = Py_None; |
5549 | return _resultobj; | |
5550 | } | |
5551 | ||
5552 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
efc5f224 | 5553 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5554 | PyObject * _resultobj; |
5555 | bool _result; | |
5556 | wxDialog * _arg0; | |
1d99702e | 5557 | PyObject * _argo0 = 0; |
efc5f224 | 5558 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5559 | |
5560 | self = self; | |
efc5f224 | 5561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) |
8ab979d7 | 5562 | return NULL; |
1d99702e RD |
5563 | if (_argo0) { |
5564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); |
5567 | return NULL; | |
5568 | } | |
5569 | } | |
cf694132 RD |
5570 | { |
5571 | wxPy_BEGIN_ALLOW_THREADS; | |
5572 | _result = (bool )wxDialog_IsIconized(_arg0); | |
5573 | ||
5574 | wxPy_END_ALLOW_THREADS; | |
5575 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5576 | return _resultobj; |
5577 | } | |
5578 | ||
5579 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
efc5f224 | 5580 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5581 | PyObject * _resultobj; |
5582 | wxDialog * _arg0; | |
5583 | bool _arg1; | |
1d99702e | 5584 | PyObject * _argo0 = 0; |
8ab979d7 | 5585 | int tempbool1; |
efc5f224 | 5586 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
5587 | |
5588 | self = self; | |
efc5f224 | 5589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5590 | return NULL; |
1d99702e RD |
5591 | if (_argo0) { |
5592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); |
5595 | return NULL; | |
5596 | } | |
5597 | } | |
5598 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5599 | { |
5600 | wxPy_BEGIN_ALLOW_THREADS; | |
5601 | wxDialog_SetModal(_arg0,_arg1); | |
5602 | ||
5603 | wxPy_END_ALLOW_THREADS; | |
5604 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5605 | _resultobj = Py_None; |
5606 | return _resultobj; | |
5607 | } | |
5608 | ||
5609 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
efc5f224 | 5610 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5611 | PyObject * _resultobj; |
5612 | bool _result; | |
5613 | wxDialog * _arg0; | |
1d99702e | 5614 | PyObject * _argo0 = 0; |
efc5f224 | 5615 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5616 | |
5617 | self = self; | |
efc5f224 | 5618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) |
8ab979d7 | 5619 | return NULL; |
1d99702e RD |
5620 | if (_argo0) { |
5621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); |
5624 | return NULL; | |
5625 | } | |
5626 | } | |
cf694132 RD |
5627 | { |
5628 | wxPy_BEGIN_ALLOW_THREADS; | |
5629 | _result = (bool )wxDialog_IsModal(_arg0); | |
5630 | ||
5631 | wxPy_END_ALLOW_THREADS; | |
5632 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5633 | return _resultobj; |
5634 | } | |
5635 | ||
5636 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 5637 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5638 | PyObject * _resultobj; |
5639 | wxDialog * _arg0; | |
5640 | wxString * _arg1; | |
1d99702e | 5641 | PyObject * _argo0 = 0; |
8ab979d7 | 5642 | PyObject * _obj1 = 0; |
efc5f224 | 5643 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
5644 | |
5645 | self = self; | |
efc5f224 | 5646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5647 | return NULL; |
1d99702e RD |
5648 | if (_argo0) { |
5649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); |
5652 | return NULL; | |
5653 | } | |
5654 | } | |
5655 | { | |
185d7c3e RD |
5656 | #if PYTHON_API_VERSION >= 1009 |
5657 | char* tmpPtr; int tmpSize; | |
5658 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5659 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5660 | return NULL; | |
5661 | } | |
5662 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5663 | return NULL; | |
5664 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5665 | #else | |
8ab979d7 RD |
5666 | if (!PyString_Check(_obj1)) { |
5667 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5668 | return NULL; | |
5669 | } | |
185d7c3e RD |
5670 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5671 | #endif | |
8ab979d7 | 5672 | } |
cf694132 RD |
5673 | { |
5674 | wxPy_BEGIN_ALLOW_THREADS; | |
5675 | wxDialog_SetTitle(_arg0,*_arg1); | |
5676 | ||
5677 | wxPy_END_ALLOW_THREADS; | |
5678 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5679 | _resultobj = Py_None; |
5680 | { | |
5681 | if (_obj1) | |
5682 | delete _arg1; | |
5683 | } | |
5684 | return _resultobj; | |
5685 | } | |
5686 | ||
5687 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 5688 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5689 | PyObject * _resultobj; |
5690 | bool _result; | |
5691 | wxDialog * _arg0; | |
5692 | bool _arg1; | |
1d99702e | 5693 | PyObject * _argo0 = 0; |
8ab979d7 | 5694 | int tempbool1; |
efc5f224 | 5695 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
5696 | |
5697 | self = self; | |
efc5f224 | 5698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5699 | return NULL; |
1d99702e RD |
5700 | if (_argo0) { |
5701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); |
5704 | return NULL; | |
5705 | } | |
5706 | } | |
5707 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5708 | { |
5709 | wxPy_BEGIN_ALLOW_THREADS; | |
5710 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
5711 | ||
5712 | wxPy_END_ALLOW_THREADS; | |
5713 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5714 | return _resultobj; |
5715 | } | |
5716 | ||
5717 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 5718 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5719 | PyObject * _resultobj; |
5720 | int _result; | |
5721 | wxDialog * _arg0; | |
1d99702e | 5722 | PyObject * _argo0 = 0; |
efc5f224 | 5723 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5724 | |
5725 | self = self; | |
efc5f224 | 5726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 5727 | return NULL; |
1d99702e RD |
5728 | if (_argo0) { |
5729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); |
5732 | return NULL; | |
5733 | } | |
5734 | } | |
cf694132 RD |
5735 | { |
5736 | wxPy_BEGIN_ALLOW_THREADS; | |
5737 | _result = (int )wxDialog_ShowModal(_arg0); | |
5738 | ||
5739 | wxPy_END_ALLOW_THREADS; | |
5740 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5741 | return _resultobj; |
5742 | } | |
5743 | ||
bb0054cd | 5744 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) |
efc5f224 | 5745 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5746 | PyObject * _resultobj; |
5747 | int _result; | |
5748 | wxDialog * _arg0; | |
1d99702e | 5749 | PyObject * _argo0 = 0; |
efc5f224 | 5750 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5751 | |
5752 | self = self; | |
efc5f224 | 5753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) |
bb0054cd | 5754 | return NULL; |
1d99702e RD |
5755 | if (_argo0) { |
5756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); |
5759 | return NULL; | |
5760 | } | |
5761 | } | |
5762 | { | |
5763 | wxPy_BEGIN_ALLOW_THREADS; | |
5764 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
5765 | ||
5766 | wxPy_END_ALLOW_THREADS; | |
5767 | } _resultobj = Py_BuildValue("i",_result); | |
5768 | return _resultobj; | |
5769 | } | |
5770 | ||
5771 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
efc5f224 | 5772 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5773 | PyObject * _resultobj; |
5774 | wxDialog * _arg0; | |
5775 | int _arg1; | |
1d99702e | 5776 | PyObject * _argo0 = 0; |
efc5f224 | 5777 | char *_kwnames[] = { "self","retCode", NULL }; |
bb0054cd RD |
5778 | |
5779 | self = self; | |
efc5f224 | 5780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 5781 | return NULL; |
1d99702e RD |
5782 | if (_argo0) { |
5783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); |
5786 | return NULL; | |
5787 | } | |
5788 | } | |
5789 | { | |
5790 | wxPy_BEGIN_ALLOW_THREADS; | |
5791 | wxDialog_SetReturnCode(_arg0,_arg1); | |
5792 | ||
5793 | wxPy_END_ALLOW_THREADS; | |
5794 | } Py_INCREF(Py_None); | |
5795 | _resultobj = Py_None; | |
5796 | return _resultobj; | |
5797 | } | |
5798 | ||
5799 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { | |
5800 | wxScrolledWindow *src; | |
5801 | wxPanel *dest; | |
5802 | src = (wxScrolledWindow *) ptr; | |
5803 | dest = (wxPanel *) src; | |
5804 | return (void *) dest; | |
5805 | } | |
5806 | ||
8ab979d7 RD |
5807 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
5808 | wxScrolledWindow *src; | |
5809 | wxWindow *dest; | |
5810 | src = (wxScrolledWindow *) ptr; | |
5811 | dest = (wxWindow *) src; | |
5812 | return (void *) dest; | |
5813 | } | |
5814 | ||
5815 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
5816 | wxScrolledWindow *src; | |
5817 | wxEvtHandler *dest; | |
5818 | src = (wxScrolledWindow *) ptr; | |
5819 | dest = (wxEvtHandler *) src; | |
5820 | return (void *) dest; | |
5821 | } | |
5822 | ||
5823 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 5824 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5825 | PyObject * _resultobj; |
5826 | wxScrolledWindow * _result; | |
5827 | wxWindow * _arg0; | |
1d99702e RD |
5828 | wxWindowID _arg1 = (wxWindowID ) -1; |
5829 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; | |
5830 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
5831 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; | |
5832 | char * _arg5 = (char *) "scrolledWindow"; | |
5833 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5834 | wxPoint temp; |
5835 | PyObject * _obj2 = 0; | |
5836 | wxSize temp0; | |
5837 | PyObject * _obj3 = 0; | |
efc5f224 | 5838 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5839 | char _ptemp[128]; |
5840 | ||
5841 | self = self; | |
2f90df85 | 5842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5843 | return NULL; |
1d99702e RD |
5844 | if (_argo0) { |
5845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
5848 | return NULL; | |
5849 | } | |
5850 | } | |
2f90df85 RD |
5851 | if (_obj2) |
5852 | { | |
5853 | _arg2 = &temp; | |
5854 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5855 | return NULL; |
2f90df85 RD |
5856 | } |
5857 | if (_obj3) | |
5858 | { | |
5859 | _arg3 = &temp0; | |
5860 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5861 | return NULL; |
2f90df85 | 5862 | } |
cf694132 RD |
5863 | { |
5864 | wxPy_BEGIN_ALLOW_THREADS; | |
5865 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5866 | ||
5867 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5868 | } if (_result) { |
5869 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
5870 | _resultobj = Py_BuildValue("s",_ptemp); | |
5871 | } else { | |
5872 | Py_INCREF(Py_None); | |
5873 | _resultobj = Py_None; | |
5874 | } | |
8ab979d7 RD |
5875 | return _resultobj; |
5876 | } | |
5877 | ||
5878 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
efc5f224 | 5879 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5880 | PyObject * _resultobj; |
5881 | wxScrolledWindow * _arg0; | |
5882 | bool _arg1; | |
5883 | bool _arg2; | |
1d99702e | 5884 | PyObject * _argo0 = 0; |
8ab979d7 RD |
5885 | int tempbool1; |
5886 | int tempbool2; | |
efc5f224 | 5887 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
5888 | |
5889 | self = self; | |
efc5f224 | 5890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 5891 | return NULL; |
1d99702e RD |
5892 | if (_argo0) { |
5893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
5896 | return NULL; | |
5897 | } | |
5898 | } | |
5899 | _arg1 = (bool ) tempbool1; | |
5900 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
5901 | { |
5902 | wxPy_BEGIN_ALLOW_THREADS; | |
5903 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
5904 | ||
5905 | wxPy_END_ALLOW_THREADS; | |
5906 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5907 | _resultobj = Py_None; |
5908 | return _resultobj; | |
5909 | } | |
5910 | ||
b7e72427 RD |
5911 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
5912 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5913 | PyObject * _resultobj; | |
5914 | int _result; | |
5915 | wxScrolledWindow * _arg0; | |
5916 | int _arg1; | |
5917 | PyObject * _argo0 = 0; | |
5918 | char *_kwnames[] = { "self","orient", NULL }; | |
5919 | ||
5920 | self = self; | |
5921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
5922 | return NULL; | |
5923 | if (_argo0) { | |
5924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
5927 | return NULL; | |
5928 | } | |
5929 | } | |
5930 | { | |
5931 | wxPy_BEGIN_ALLOW_THREADS; | |
5932 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
5933 | ||
5934 | wxPy_END_ALLOW_THREADS; | |
5935 | } _resultobj = Py_BuildValue("i",_result); | |
5936 | return _resultobj; | |
5937 | } | |
5938 | ||
8ab979d7 | 5939 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 5940 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5941 | PyObject * _resultobj; |
5942 | wxScrolledWindow * _arg0; | |
5943 | int * _arg1; | |
5944 | int temp; | |
5945 | int * _arg2; | |
5946 | int temp0; | |
1d99702e | 5947 | PyObject * _argo0 = 0; |
efc5f224 | 5948 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5949 | |
5950 | self = self; | |
5951 | { | |
5952 | _arg1 = &temp; | |
5953 | } | |
5954 | { | |
5955 | _arg2 = &temp0; | |
5956 | } | |
efc5f224 | 5957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 5958 | return NULL; |
1d99702e RD |
5959 | if (_argo0) { |
5960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
5963 | return NULL; | |
5964 | } | |
5965 | } | |
cf694132 RD |
5966 | { |
5967 | wxPy_BEGIN_ALLOW_THREADS; | |
5968 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
5969 | ||
5970 | wxPy_END_ALLOW_THREADS; | |
5971 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5972 | _resultobj = Py_None; |
5973 | { | |
5974 | PyObject *o; | |
5975 | o = PyInt_FromLong((long) (*_arg1)); | |
5976 | _resultobj = t_output_helper(_resultobj, o); | |
5977 | } | |
5978 | { | |
5979 | PyObject *o; | |
5980 | o = PyInt_FromLong((long) (*_arg2)); | |
5981 | _resultobj = t_output_helper(_resultobj, o); | |
5982 | } | |
5983 | return _resultobj; | |
5984 | } | |
5985 | ||
b7e72427 RD |
5986 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
5987 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5988 | PyObject * _resultobj; | |
5989 | wxWindow * _result; | |
5990 | wxScrolledWindow * _arg0; | |
5991 | PyObject * _argo0 = 0; | |
5992 | char *_kwnames[] = { "self", NULL }; | |
5993 | char _ptemp[128]; | |
5994 | ||
5995 | self = self; | |
5996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
5997 | return NULL; | |
5998 | if (_argo0) { | |
5999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6002 | return NULL; | |
6003 | } | |
6004 | } | |
6005 | { | |
6006 | wxPy_BEGIN_ALLOW_THREADS; | |
6007 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6008 | ||
6009 | wxPy_END_ALLOW_THREADS; | |
6010 | } if (_result) { | |
6011 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
6012 | _resultobj = Py_BuildValue("s",_ptemp); | |
6013 | } else { | |
6014 | Py_INCREF(Py_None); | |
6015 | _resultobj = Py_None; | |
6016 | } | |
6017 | return _resultobj; | |
6018 | } | |
6019 | ||
8ab979d7 | 6020 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6021 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6022 | PyObject * _resultobj; |
6023 | wxScrolledWindow * _arg0; | |
6024 | int * _arg1; | |
6025 | int temp; | |
6026 | int * _arg2; | |
6027 | int temp0; | |
1d99702e | 6028 | PyObject * _argo0 = 0; |
efc5f224 | 6029 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6030 | |
6031 | self = self; | |
6032 | { | |
6033 | _arg1 = &temp; | |
6034 | } | |
6035 | { | |
6036 | _arg2 = &temp0; | |
6037 | } | |
efc5f224 | 6038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6039 | return NULL; |
1d99702e RD |
6040 | if (_argo0) { |
6041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6044 | return NULL; | |
6045 | } | |
6046 | } | |
cf694132 RD |
6047 | { |
6048 | wxPy_BEGIN_ALLOW_THREADS; | |
6049 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6050 | ||
6051 | wxPy_END_ALLOW_THREADS; | |
6052 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6053 | _resultobj = Py_None; |
6054 | { | |
6055 | PyObject *o; | |
6056 | o = PyInt_FromLong((long) (*_arg1)); | |
6057 | _resultobj = t_output_helper(_resultobj, o); | |
6058 | } | |
6059 | { | |
6060 | PyObject *o; | |
6061 | o = PyInt_FromLong((long) (*_arg2)); | |
6062 | _resultobj = t_output_helper(_resultobj, o); | |
6063 | } | |
6064 | return _resultobj; | |
6065 | } | |
6066 | ||
6067 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6068 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6069 | PyObject * _resultobj; |
6070 | bool _result; | |
6071 | wxScrolledWindow * _arg0; | |
1d99702e | 6072 | PyObject * _argo0 = 0; |
efc5f224 | 6073 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6074 | |
6075 | self = self; | |
efc5f224 | 6076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6077 | return NULL; |
1d99702e RD |
6078 | if (_argo0) { |
6079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6082 | return NULL; | |
6083 | } | |
6084 | } | |
cf694132 RD |
6085 | { |
6086 | wxPy_BEGIN_ALLOW_THREADS; | |
6087 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6088 | ||
6089 | wxPy_END_ALLOW_THREADS; | |
6090 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6091 | return _resultobj; |
6092 | } | |
6093 | ||
6094 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6095 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6096 | PyObject * _resultobj; |
6097 | wxScrolledWindow * _arg0; | |
6098 | wxDC * _arg1; | |
1d99702e RD |
6099 | PyObject * _argo0 = 0; |
6100 | PyObject * _argo1 = 0; | |
efc5f224 | 6101 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6102 | |
6103 | self = self; | |
efc5f224 | 6104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6105 | return NULL; |
1d99702e RD |
6106 | if (_argo0) { |
6107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6110 | return NULL; | |
6111 | } | |
6112 | } | |
1d99702e RD |
6113 | if (_argo1) { |
6114 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6115 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6117 | return NULL; | |
6118 | } | |
6119 | } | |
cf694132 RD |
6120 | { |
6121 | wxPy_BEGIN_ALLOW_THREADS; | |
6122 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
6123 | ||
6124 | wxPy_END_ALLOW_THREADS; | |
6125 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6126 | _resultobj = Py_None; |
6127 | return _resultobj; | |
6128 | } | |
6129 | ||
6130 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6131 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6132 | PyObject * _resultobj; |
6133 | wxScrolledWindow * _arg0; | |
6134 | int _arg1; | |
6135 | int _arg2; | |
1d99702e | 6136 | PyObject * _argo0 = 0; |
efc5f224 | 6137 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6138 | |
6139 | self = self; | |
efc5f224 | 6140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6141 | return NULL; |
1d99702e RD |
6142 | if (_argo0) { |
6143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6146 | return NULL; | |
6147 | } | |
6148 | } | |
cf694132 RD |
6149 | { |
6150 | wxPy_BEGIN_ALLOW_THREADS; | |
6151 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
6152 | ||
6153 | wxPy_END_ALLOW_THREADS; | |
6154 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6155 | _resultobj = Py_None; |
6156 | return _resultobj; | |
6157 | } | |
6158 | ||
f6bcfd97 | 6159 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6160 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6161 | PyObject * _resultobj; |
6162 | wxScrolledWindow * _arg0; | |
6163 | int _arg1; | |
6164 | int _arg2; | |
6165 | int _arg3; | |
6166 | int _arg4; | |
1d99702e RD |
6167 | int _arg5 = (int ) 0; |
6168 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6169 | int _arg7 = (int ) FALSE; |
1d99702e | 6170 | PyObject * _argo0 = 0; |
f6bcfd97 | 6171 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6172 | |
6173 | self = self; | |
f6bcfd97 | 6174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6175 | return NULL; |
1d99702e RD |
6176 | if (_argo0) { |
6177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6180 | return NULL; | |
6181 | } | |
6182 | } | |
cf694132 RD |
6183 | { |
6184 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6185 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 RD |
6186 | |
6187 | wxPy_END_ALLOW_THREADS; | |
6188 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6189 | _resultobj = Py_None; |
6190 | return _resultobj; | |
6191 | } | |
6192 | ||
b7e72427 RD |
6193 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6194 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6195 | PyObject * _resultobj; | |
6196 | wxScrolledWindow * _arg0; | |
6197 | int _arg1; | |
6198 | int _arg2; | |
6199 | PyObject * _argo0 = 0; | |
6200 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6201 | ||
6202 | self = self; | |
6203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6204 | return NULL; | |
6205 | if (_argo0) { | |
6206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6209 | return NULL; | |
6210 | } | |
6211 | } | |
6212 | { | |
6213 | wxPy_BEGIN_ALLOW_THREADS; | |
6214 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6215 | ||
6216 | wxPy_END_ALLOW_THREADS; | |
6217 | } Py_INCREF(Py_None); | |
6218 | _resultobj = Py_None; | |
6219 | return _resultobj; | |
6220 | } | |
6221 | ||
eb715945 RD |
6222 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6223 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6224 | PyObject * _resultobj; | |
6225 | wxScrolledWindow * _arg0; | |
6226 | wxWindow * _arg1; | |
6227 | PyObject * _argo0 = 0; | |
6228 | PyObject * _argo1 = 0; | |
6229 | char *_kwnames[] = { "self","window", NULL }; | |
6230 | ||
6231 | self = self; | |
6232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6233 | return NULL; | |
6234 | if (_argo0) { | |
6235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6238 | return NULL; | |
6239 | } | |
6240 | } | |
6241 | if (_argo1) { | |
6242 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6243 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6245 | return NULL; | |
6246 | } | |
6247 | } | |
6248 | { | |
6249 | wxPy_BEGIN_ALLOW_THREADS; | |
6250 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6251 | ||
6252 | wxPy_END_ALLOW_THREADS; | |
6253 | } Py_INCREF(Py_None); | |
6254 | _resultobj = Py_None; | |
6255 | return _resultobj; | |
6256 | } | |
6257 | ||
4c9993c3 RD |
6258 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6259 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6260 | PyObject * _resultobj; | |
6261 | wxScrolledWindow * _arg0; | |
6262 | int * _arg1; | |
6263 | int temp; | |
6264 | int * _arg2; | |
6265 | int temp0; | |
6266 | PyObject * _argo0 = 0; | |
6267 | char *_kwnames[] = { "self", NULL }; | |
6268 | ||
6269 | self = self; | |
6270 | { | |
6271 | _arg1 = &temp; | |
6272 | } | |
6273 | { | |
6274 | _arg2 = &temp0; | |
6275 | } | |
6276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6277 | return NULL; | |
6278 | if (_argo0) { | |
6279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6282 | return NULL; | |
6283 | } | |
6284 | } | |
6285 | { | |
6286 | wxPy_BEGIN_ALLOW_THREADS; | |
6287 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6288 | ||
6289 | wxPy_END_ALLOW_THREADS; | |
6290 | } Py_INCREF(Py_None); | |
6291 | _resultobj = Py_None; | |
6292 | { | |
6293 | PyObject *o; | |
6294 | o = PyInt_FromLong((long) (*_arg1)); | |
6295 | _resultobj = t_output_helper(_resultobj, o); | |
6296 | } | |
6297 | { | |
6298 | PyObject *o; | |
6299 | o = PyInt_FromLong((long) (*_arg2)); | |
6300 | _resultobj = t_output_helper(_resultobj, o); | |
6301 | } | |
6302 | return _resultobj; | |
6303 | } | |
6304 | ||
8ab979d7 | 6305 | #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1)) |
efc5f224 | 6306 | static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6307 | PyObject * _resultobj; |
6308 | wxScrolledWindow * _arg0; | |
6309 | int * _arg1; | |
6310 | int temp; | |
6311 | int * _arg2; | |
6312 | int temp0; | |
1d99702e | 6313 | PyObject * _argo0 = 0; |
efc5f224 | 6314 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6315 | |
6316 | self = self; | |
6317 | { | |
6318 | _arg1 = &temp; | |
6319 | } | |
6320 | { | |
6321 | _arg2 = &temp0; | |
6322 | } | |
efc5f224 | 6323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0)) |
8ab979d7 | 6324 | return NULL; |
1d99702e RD |
6325 | if (_argo0) { |
6326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p."); |
6329 | return NULL; | |
6330 | } | |
6331 | } | |
cf694132 RD |
6332 | { |
6333 | wxPy_BEGIN_ALLOW_THREADS; | |
6334 | wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2); | |
6335 | ||
6336 | wxPy_END_ALLOW_THREADS; | |
6337 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6338 | _resultobj = Py_None; |
6339 | { | |
6340 | PyObject *o; | |
6341 | o = PyInt_FromLong((long) (*_arg1)); | |
6342 | _resultobj = t_output_helper(_resultobj, o); | |
6343 | } | |
6344 | { | |
6345 | PyObject *o; | |
6346 | o = PyInt_FromLong((long) (*_arg2)); | |
6347 | _resultobj = t_output_helper(_resultobj, o); | |
6348 | } | |
6349 | return _resultobj; | |
6350 | } | |
6351 | ||
9d8bd15f RD |
6352 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6353 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6354 | PyObject * _resultobj; | |
6355 | wxScrolledWindow * _arg0; | |
6356 | int _arg1; | |
6357 | int _arg2; | |
6358 | int * _arg3; | |
6359 | int temp; | |
6360 | int * _arg4; | |
6361 | int temp0; | |
6362 | PyObject * _argo0 = 0; | |
6363 | char *_kwnames[] = { "self","x","y", NULL }; | |
6364 | ||
6365 | self = self; | |
6366 | { | |
6367 | _arg3 = &temp; | |
6368 | } | |
6369 | { | |
6370 | _arg4 = &temp0; | |
6371 | } | |
6372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6373 | return NULL; | |
6374 | if (_argo0) { | |
6375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6378 | return NULL; | |
6379 | } | |
6380 | } | |
6381 | { | |
6382 | wxPy_BEGIN_ALLOW_THREADS; | |
6383 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6384 | ||
6385 | wxPy_END_ALLOW_THREADS; | |
6386 | } Py_INCREF(Py_None); | |
6387 | _resultobj = Py_None; | |
6388 | { | |
6389 | PyObject *o; | |
6390 | o = PyInt_FromLong((long) (*_arg3)); | |
6391 | _resultobj = t_output_helper(_resultobj, o); | |
6392 | } | |
6393 | { | |
6394 | PyObject *o; | |
6395 | o = PyInt_FromLong((long) (*_arg4)); | |
6396 | _resultobj = t_output_helper(_resultobj, o); | |
6397 | } | |
6398 | return _resultobj; | |
6399 | } | |
6400 | ||
6401 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6402 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6403 | PyObject * _resultobj; | |
6404 | wxScrolledWindow * _arg0; | |
6405 | int _arg1; | |
6406 | int _arg2; | |
6407 | int * _arg3; | |
6408 | int temp; | |
6409 | int * _arg4; | |
6410 | int temp0; | |
6411 | PyObject * _argo0 = 0; | |
6412 | char *_kwnames[] = { "self","x","y", NULL }; | |
6413 | ||
6414 | self = self; | |
6415 | { | |
6416 | _arg3 = &temp; | |
6417 | } | |
6418 | { | |
6419 | _arg4 = &temp0; | |
6420 | } | |
6421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6422 | return NULL; | |
6423 | if (_argo0) { | |
6424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6427 | return NULL; | |
6428 | } | |
6429 | } | |
6430 | { | |
6431 | wxPy_BEGIN_ALLOW_THREADS; | |
6432 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6433 | ||
6434 | wxPy_END_ALLOW_THREADS; | |
6435 | } Py_INCREF(Py_None); | |
6436 | _resultobj = Py_None; | |
6437 | { | |
6438 | PyObject *o; | |
6439 | o = PyInt_FromLong((long) (*_arg3)); | |
6440 | _resultobj = t_output_helper(_resultobj, o); | |
6441 | } | |
6442 | { | |
6443 | PyObject *o; | |
6444 | o = PyInt_FromLong((long) (*_arg4)); | |
6445 | _resultobj = t_output_helper(_resultobj, o); | |
6446 | } | |
6447 | return _resultobj; | |
6448 | } | |
6449 | ||
8ab979d7 RD |
6450 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
6451 | wxMenu *src; | |
6452 | wxEvtHandler *dest; | |
6453 | src = (wxMenu *) ptr; | |
6454 | dest = (wxEvtHandler *) src; | |
6455 | return (void *) dest; | |
6456 | } | |
6457 | ||
8bf5d46e | 6458 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 6459 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6460 | PyObject * _resultobj; |
6461 | wxMenu * _result; | |
1d99702e RD |
6462 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
6463 | long _arg1 = (long ) 0; | |
8ab979d7 | 6464 | PyObject * _obj0 = 0; |
efc5f224 | 6465 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
6466 | char _ptemp[128]; |
6467 | ||
6468 | self = self; | |
efc5f224 | 6469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
6470 | return NULL; |
6471 | if (_obj0) | |
6472 | { | |
185d7c3e RD |
6473 | #if PYTHON_API_VERSION >= 1009 |
6474 | char* tmpPtr; int tmpSize; | |
6475 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
6476 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6477 | return NULL; | |
6478 | } | |
6479 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6480 | return NULL; | |
6481 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6482 | #else | |
8ab979d7 RD |
6483 | if (!PyString_Check(_obj0)) { |
6484 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6485 | return NULL; | |
6486 | } | |
185d7c3e RD |
6487 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
6488 | #endif | |
8ab979d7 | 6489 | } |
cf694132 RD |
6490 | { |
6491 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 6492 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 RD |
6493 | |
6494 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6495 | } if (_result) { |
6496 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6497 | _resultobj = Py_BuildValue("s",_ptemp); | |
6498 | } else { | |
6499 | Py_INCREF(Py_None); | |
6500 | _resultobj = Py_None; | |
6501 | } | |
8ab979d7 RD |
6502 | { |
6503 | if (_obj0) | |
6504 | delete _arg0; | |
6505 | } | |
6506 | return _resultobj; | |
6507 | } | |
6508 | ||
6509 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6510 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6511 | PyObject * _resultobj; |
6512 | wxMenu * _arg0; | |
6513 | int _arg1; | |
6514 | wxString * _arg2; | |
1d99702e RD |
6515 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
6516 | int _arg4 = (int ) FALSE; | |
6517 | PyObject * _argo0 = 0; | |
8ab979d7 RD |
6518 | PyObject * _obj2 = 0; |
6519 | PyObject * _obj3 = 0; | |
efc5f224 | 6520 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
6521 | |
6522 | self = self; | |
efc5f224 | 6523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 6524 | return NULL; |
1d99702e RD |
6525 | if (_argo0) { |
6526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
6529 | return NULL; | |
6530 | } | |
6531 | } | |
6532 | { | |
185d7c3e RD |
6533 | #if PYTHON_API_VERSION >= 1009 |
6534 | char* tmpPtr; int tmpSize; | |
6535 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6536 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6537 | return NULL; | |
6538 | } | |
6539 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6540 | return NULL; | |
6541 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6542 | #else | |
8ab979d7 RD |
6543 | if (!PyString_Check(_obj2)) { |
6544 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6545 | return NULL; | |
6546 | } | |
185d7c3e RD |
6547 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6548 | #endif | |
8ab979d7 RD |
6549 | } |
6550 | if (_obj3) | |
6551 | { | |
185d7c3e RD |
6552 | #if PYTHON_API_VERSION >= 1009 |
6553 | char* tmpPtr; int tmpSize; | |
6554 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
6555 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6556 | return NULL; | |
6557 | } | |
6558 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6559 | return NULL; | |
6560 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6561 | #else | |
8ab979d7 RD |
6562 | if (!PyString_Check(_obj3)) { |
6563 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6564 | return NULL; | |
6565 | } | |
185d7c3e RD |
6566 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6567 | #endif | |
8ab979d7 | 6568 | } |
cf694132 RD |
6569 | { |
6570 | wxPy_BEGIN_ALLOW_THREADS; | |
6571 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
6572 | ||
6573 | wxPy_END_ALLOW_THREADS; | |
6574 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6575 | _resultobj = Py_None; |
6576 | { | |
6577 | if (_obj2) | |
6578 | delete _arg2; | |
6579 | } | |
6580 | { | |
6581 | if (_obj3) | |
6582 | delete _arg3; | |
6583 | } | |
6584 | return _resultobj; | |
6585 | } | |
6586 | ||
6587 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6588 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6589 | PyObject * _resultobj; |
6590 | wxMenu * _arg0; | |
6591 | int _arg1; | |
6592 | wxString * _arg2; | |
6593 | wxMenu * _arg3; | |
1d99702e RD |
6594 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
6595 | PyObject * _argo0 = 0; | |
8ab979d7 | 6596 | PyObject * _obj2 = 0; |
1d99702e | 6597 | PyObject * _argo3 = 0; |
8ab979d7 | 6598 | PyObject * _obj4 = 0; |
efc5f224 | 6599 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
6600 | |
6601 | self = self; | |
efc5f224 | 6602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 6603 | return NULL; |
1d99702e RD |
6604 | if (_argo0) { |
6605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6608 | return NULL; | |
6609 | } | |
6610 | } | |
6611 | { | |
185d7c3e RD |
6612 | #if PYTHON_API_VERSION >= 1009 |
6613 | char* tmpPtr; int tmpSize; | |
6614 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6615 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6616 | return NULL; | |
6617 | } | |
6618 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6619 | return NULL; | |
6620 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6621 | #else | |
8ab979d7 RD |
6622 | if (!PyString_Check(_obj2)) { |
6623 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6624 | return NULL; | |
6625 | } | |
185d7c3e RD |
6626 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6627 | #endif | |
8ab979d7 | 6628 | } |
1d99702e RD |
6629 | if (_argo3) { |
6630 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6631 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
6632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6633 | return NULL; | |
6634 | } | |
6635 | } | |
6636 | if (_obj4) | |
6637 | { | |
185d7c3e RD |
6638 | #if PYTHON_API_VERSION >= 1009 |
6639 | char* tmpPtr; int tmpSize; | |
6640 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
6641 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6642 | return NULL; | |
6643 | } | |
6644 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
6645 | return NULL; | |
6646 | _arg4 = new wxString(tmpPtr, tmpSize); | |
6647 | #else | |
8ab979d7 RD |
6648 | if (!PyString_Check(_obj4)) { |
6649 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6650 | return NULL; | |
6651 | } | |
185d7c3e RD |
6652 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
6653 | #endif | |
8ab979d7 | 6654 | } |
cf694132 RD |
6655 | { |
6656 | wxPy_BEGIN_ALLOW_THREADS; | |
6657 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
6658 | ||
6659 | wxPy_END_ALLOW_THREADS; | |
6660 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6661 | _resultobj = Py_None; |
6662 | { | |
6663 | if (_obj2) | |
6664 | delete _arg2; | |
6665 | } | |
6666 | { | |
6667 | if (_obj4) | |
6668 | delete _arg4; | |
6669 | } | |
6670 | return _resultobj; | |
6671 | } | |
6672 | ||
af309447 | 6673 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 6674 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
6675 | PyObject * _resultobj; |
6676 | wxMenu * _arg0; | |
6677 | wxMenuItem * _arg1; | |
1d99702e RD |
6678 | PyObject * _argo0 = 0; |
6679 | PyObject * _argo1 = 0; | |
efc5f224 | 6680 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
6681 | |
6682 | self = self; | |
efc5f224 | 6683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 6684 | return NULL; |
1d99702e RD |
6685 | if (_argo0) { |
6686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
6688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
6689 | return NULL; | |
6690 | } | |
6691 | } | |
1d99702e RD |
6692 | if (_argo1) { |
6693 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6694 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
6695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
6696 | return NULL; | |
6697 | } | |
6698 | } | |
cf694132 RD |
6699 | { |
6700 | wxPy_BEGIN_ALLOW_THREADS; | |
6701 | wxMenu_AppendItem(_arg0,_arg1); | |
6702 | ||
6703 | wxPy_END_ALLOW_THREADS; | |
6704 | } Py_INCREF(Py_None); | |
af309447 RD |
6705 | _resultobj = Py_None; |
6706 | return _resultobj; | |
6707 | } | |
6708 | ||
8ab979d7 | 6709 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 6710 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6711 | PyObject * _resultobj; |
6712 | wxMenu * _arg0; | |
1d99702e | 6713 | PyObject * _argo0 = 0; |
efc5f224 | 6714 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6715 | |
6716 | self = self; | |
efc5f224 | 6717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 6718 | return NULL; |
1d99702e RD |
6719 | if (_argo0) { |
6720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
6723 | return NULL; | |
6724 | } | |
6725 | } | |
cf694132 RD |
6726 | { |
6727 | wxPy_BEGIN_ALLOW_THREADS; | |
6728 | wxMenu_AppendSeparator(_arg0); | |
6729 | ||
6730 | wxPy_END_ALLOW_THREADS; | |
6731 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6732 | _resultobj = Py_None; |
6733 | return _resultobj; | |
6734 | } | |
6735 | ||
6736 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 6737 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6738 | PyObject * _resultobj; |
6739 | wxMenu * _arg0; | |
1d99702e | 6740 | PyObject * _argo0 = 0; |
efc5f224 | 6741 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6742 | |
6743 | self = self; | |
efc5f224 | 6744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 6745 | return NULL; |
1d99702e RD |
6746 | if (_argo0) { |
6747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
6750 | return NULL; | |
6751 | } | |
6752 | } | |
cf694132 RD |
6753 | { |
6754 | wxPy_BEGIN_ALLOW_THREADS; | |
6755 | wxMenu_Break(_arg0); | |
6756 | ||
6757 | wxPy_END_ALLOW_THREADS; | |
6758 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6759 | _resultobj = Py_None; |
6760 | return _resultobj; | |
6761 | } | |
6762 | ||
6763 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 6764 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6765 | PyObject * _resultobj; |
6766 | wxMenu * _arg0; | |
6767 | int _arg1; | |
6768 | bool _arg2; | |
1d99702e | 6769 | PyObject * _argo0 = 0; |
8ab979d7 | 6770 | int tempbool2; |
efc5f224 | 6771 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
6772 | |
6773 | self = self; | |
efc5f224 | 6774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 6775 | return NULL; |
1d99702e RD |
6776 | if (_argo0) { |
6777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
6780 | return NULL; | |
6781 | } | |
6782 | } | |
6783 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6784 | { |
6785 | wxPy_BEGIN_ALLOW_THREADS; | |
6786 | wxMenu_Check(_arg0,_arg1,_arg2); | |
6787 | ||
6788 | wxPy_END_ALLOW_THREADS; | |
6789 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6790 | _resultobj = Py_None; |
6791 | return _resultobj; | |
6792 | } | |
6793 | ||
b1462dfa RD |
6794 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
6795 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6796 | PyObject * _resultobj; | |
6797 | bool _result; | |
6798 | wxMenu * _arg0; | |
6799 | int _arg1; | |
6800 | PyObject * _argo0 = 0; | |
6801 | char *_kwnames[] = { "self","id", NULL }; | |
6802 | ||
6803 | self = self; | |
6804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
6805 | return NULL; | |
6806 | if (_argo0) { | |
6807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
6810 | return NULL; | |
6811 | } | |
6812 | } | |
6813 | { | |
6814 | wxPy_BEGIN_ALLOW_THREADS; | |
6815 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
6816 | ||
6817 | wxPy_END_ALLOW_THREADS; | |
6818 | } _resultobj = Py_BuildValue("i",_result); | |
6819 | return _resultobj; | |
6820 | } | |
6821 | ||
8ab979d7 | 6822 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 6823 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6824 | PyObject * _resultobj; |
6825 | wxMenu * _arg0; | |
6826 | int _arg1; | |
6827 | bool _arg2; | |
1d99702e | 6828 | PyObject * _argo0 = 0; |
8ab979d7 | 6829 | int tempbool2; |
efc5f224 | 6830 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
6831 | |
6832 | self = self; | |
efc5f224 | 6833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 6834 | return NULL; |
1d99702e RD |
6835 | if (_argo0) { |
6836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
6839 | return NULL; | |
6840 | } | |
6841 | } | |
6842 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6843 | { |
6844 | wxPy_BEGIN_ALLOW_THREADS; | |
6845 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
6846 | ||
6847 | wxPy_END_ALLOW_THREADS; | |
6848 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6849 | _resultobj = Py_None; |
6850 | return _resultobj; | |
6851 | } | |
6852 | ||
b1462dfa RD |
6853 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
6854 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6855 | PyObject * _resultobj; | |
6856 | bool _result; | |
6857 | wxMenu * _arg0; | |
6858 | int _arg1; | |
6859 | PyObject * _argo0 = 0; | |
6860 | char *_kwnames[] = { "self","id", NULL }; | |
6861 | ||
6862 | self = self; | |
6863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
6864 | return NULL; | |
6865 | if (_argo0) { | |
6866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
6869 | return NULL; | |
6870 | } | |
6871 | } | |
6872 | { | |
6873 | wxPy_BEGIN_ALLOW_THREADS; | |
6874 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
6875 | ||
6876 | wxPy_END_ALLOW_THREADS; | |
6877 | } _resultobj = Py_BuildValue("i",_result); | |
6878 | return _resultobj; | |
6879 | } | |
6880 | ||
8ab979d7 | 6881 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 6882 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6883 | PyObject * _resultobj; |
6884 | int _result; | |
6885 | wxMenu * _arg0; | |
6886 | wxString * _arg1; | |
1d99702e | 6887 | PyObject * _argo0 = 0; |
8ab979d7 | 6888 | PyObject * _obj1 = 0; |
efc5f224 | 6889 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
6890 | |
6891 | self = self; | |
efc5f224 | 6892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6893 | return NULL; |
1d99702e RD |
6894 | if (_argo0) { |
6895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
6898 | return NULL; | |
6899 | } | |
6900 | } | |
6901 | { | |
185d7c3e RD |
6902 | #if PYTHON_API_VERSION >= 1009 |
6903 | char* tmpPtr; int tmpSize; | |
6904 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6905 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6906 | return NULL; | |
6907 | } | |
6908 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6909 | return NULL; | |
6910 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6911 | #else | |
8ab979d7 RD |
6912 | if (!PyString_Check(_obj1)) { |
6913 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6914 | return NULL; | |
6915 | } | |
185d7c3e RD |
6916 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6917 | #endif | |
8ab979d7 | 6918 | } |
cf694132 RD |
6919 | { |
6920 | wxPy_BEGIN_ALLOW_THREADS; | |
6921 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
6922 | ||
6923 | wxPy_END_ALLOW_THREADS; | |
6924 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6925 | { |
6926 | if (_obj1) | |
6927 | delete _arg1; | |
6928 | } | |
6929 | return _resultobj; | |
6930 | } | |
6931 | ||
b1462dfa RD |
6932 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
6933 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6934 | PyObject * _resultobj; | |
6935 | wxMenuItem * _result; | |
6936 | wxMenu * _arg0; | |
6937 | int _arg1; | |
6938 | PyObject * _argo0 = 0; | |
6939 | char *_kwnames[] = { "self","id", NULL }; | |
6940 | char _ptemp[128]; | |
6941 | ||
6942 | self = self; | |
6943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
6944 | return NULL; | |
6945 | if (_argo0) { | |
6946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
6949 | return NULL; | |
6950 | } | |
6951 | } | |
6952 | { | |
6953 | wxPy_BEGIN_ALLOW_THREADS; | |
6954 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
6955 | ||
6956 | wxPy_END_ALLOW_THREADS; | |
6957 | } if (_result) { | |
6958 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
6959 | _resultobj = Py_BuildValue("s",_ptemp); | |
6960 | } else { | |
6961 | Py_INCREF(Py_None); | |
6962 | _resultobj = Py_None; | |
6963 | } | |
6964 | return _resultobj; | |
6965 | } | |
6966 | ||
8ab979d7 | 6967 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 6968 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6969 | PyObject * _resultobj; |
6970 | wxString * _result; | |
6971 | wxMenu * _arg0; | |
1d99702e | 6972 | PyObject * _argo0 = 0; |
efc5f224 | 6973 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6974 | |
6975 | self = self; | |
efc5f224 | 6976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 6977 | return NULL; |
1d99702e RD |
6978 | if (_argo0) { |
6979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
6982 | return NULL; | |
6983 | } | |
6984 | } | |
8ab979d7 | 6985 | { |
cf694132 RD |
6986 | wxPy_BEGIN_ALLOW_THREADS; |
6987 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
6988 | ||
6989 | wxPy_END_ALLOW_THREADS; | |
6990 | }{ | |
eec92d76 | 6991 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
6992 | } |
6993 | { | |
6994 | delete _result; | |
6995 | } | |
6996 | return _resultobj; | |
6997 | } | |
6998 | ||
6999 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7000 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7001 | PyObject * _resultobj; |
7002 | wxMenu * _arg0; | |
7003 | wxString * _arg1; | |
1d99702e | 7004 | PyObject * _argo0 = 0; |
8ab979d7 | 7005 | PyObject * _obj1 = 0; |
efc5f224 | 7006 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7007 | |
7008 | self = self; | |
efc5f224 | 7009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7010 | return NULL; |
1d99702e RD |
7011 | if (_argo0) { |
7012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7015 | return NULL; | |
7016 | } | |
7017 | } | |
7018 | { | |
185d7c3e RD |
7019 | #if PYTHON_API_VERSION >= 1009 |
7020 | char* tmpPtr; int tmpSize; | |
7021 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7022 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7023 | return NULL; | |
7024 | } | |
7025 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7026 | return NULL; | |
7027 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7028 | #else | |
8ab979d7 RD |
7029 | if (!PyString_Check(_obj1)) { |
7030 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7031 | return NULL; | |
7032 | } | |
185d7c3e RD |
7033 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7034 | #endif | |
8ab979d7 | 7035 | } |
cf694132 RD |
7036 | { |
7037 | wxPy_BEGIN_ALLOW_THREADS; | |
7038 | wxMenu_SetTitle(_arg0,*_arg1); | |
7039 | ||
7040 | wxPy_END_ALLOW_THREADS; | |
7041 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7042 | _resultobj = Py_None; |
7043 | { | |
7044 | if (_obj1) | |
7045 | delete _arg1; | |
7046 | } | |
7047 | return _resultobj; | |
7048 | } | |
7049 | ||
b1462dfa RD |
7050 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7051 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7052 | PyObject * _resultobj; |
b1462dfa | 7053 | wxString * _result; |
8ab979d7 RD |
7054 | wxMenu * _arg0; |
7055 | int _arg1; | |
1d99702e | 7056 | PyObject * _argo0 = 0; |
efc5f224 | 7057 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7058 | |
7059 | self = self; | |
b1462dfa | 7060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7061 | return NULL; |
1d99702e RD |
7062 | if (_argo0) { |
7063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7066 | return NULL; |
7067 | } | |
7068 | } | |
cf694132 RD |
7069 | { |
7070 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7071 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 RD |
7072 | |
7073 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7074 | }{ |
eec92d76 | 7075 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7076 | } |
7077 | { | |
7078 | delete _result; | |
7079 | } | |
8ab979d7 RD |
7080 | return _resultobj; |
7081 | } | |
7082 | ||
b1462dfa RD |
7083 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7084 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7085 | PyObject * _resultobj; |
8ab979d7 RD |
7086 | wxMenu * _arg0; |
7087 | int _arg1; | |
b1462dfa | 7088 | wxString * _arg2; |
1d99702e | 7089 | PyObject * _argo0 = 0; |
b1462dfa RD |
7090 | PyObject * _obj2 = 0; |
7091 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7092 | |
7093 | self = self; | |
b1462dfa | 7094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7095 | return NULL; |
1d99702e RD |
7096 | if (_argo0) { |
7097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7100 | return NULL; |
7101 | } | |
7102 | } | |
b1462dfa | 7103 | { |
185d7c3e RD |
7104 | #if PYTHON_API_VERSION >= 1009 |
7105 | char* tmpPtr; int tmpSize; | |
7106 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7107 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7108 | return NULL; | |
7109 | } | |
7110 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7111 | return NULL; | |
7112 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7113 | #else | |
b1462dfa RD |
7114 | if (!PyString_Check(_obj2)) { |
7115 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7116 | return NULL; | |
7117 | } | |
185d7c3e RD |
7118 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7119 | #endif | |
b1462dfa | 7120 | } |
8ab979d7 | 7121 | { |
cf694132 | 7122 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7123 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
7124 | |
7125 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7126 | } Py_INCREF(Py_None); |
7127 | _resultobj = Py_None; | |
8ab979d7 | 7128 | { |
b1462dfa RD |
7129 | if (_obj2) |
7130 | delete _arg2; | |
8ab979d7 RD |
7131 | } |
7132 | return _resultobj; | |
7133 | } | |
7134 | ||
b1462dfa RD |
7135 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7136 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7137 | PyObject * _resultobj; |
7138 | wxString * _result; | |
7139 | wxMenu * _arg0; | |
7140 | int _arg1; | |
1d99702e | 7141 | PyObject * _argo0 = 0; |
efc5f224 | 7142 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7143 | |
7144 | self = self; | |
b1462dfa | 7145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7146 | return NULL; |
1d99702e RD |
7147 | if (_argo0) { |
7148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7151 | return NULL; |
7152 | } | |
7153 | } | |
8ab979d7 | 7154 | { |
cf694132 | 7155 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7156 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
7157 | |
7158 | wxPy_END_ALLOW_THREADS; | |
7159 | }{ | |
eec92d76 | 7160 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7161 | } |
7162 | { | |
7163 | delete _result; | |
7164 | } | |
7165 | return _resultobj; | |
7166 | } | |
7167 | ||
7168 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7169 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7170 | PyObject * _resultobj; |
7171 | wxMenu * _arg0; | |
7172 | int _arg1; | |
7173 | wxString * _arg2; | |
1d99702e | 7174 | PyObject * _argo0 = 0; |
8ab979d7 | 7175 | PyObject * _obj2 = 0; |
efc5f224 | 7176 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7177 | |
7178 | self = self; | |
efc5f224 | 7179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7180 | return NULL; |
1d99702e RD |
7181 | if (_argo0) { |
7182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7185 | return NULL; | |
7186 | } | |
7187 | } | |
7188 | { | |
185d7c3e RD |
7189 | #if PYTHON_API_VERSION >= 1009 |
7190 | char* tmpPtr; int tmpSize; | |
7191 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7192 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7193 | return NULL; | |
7194 | } | |
7195 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7196 | return NULL; | |
7197 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7198 | #else | |
8ab979d7 RD |
7199 | if (!PyString_Check(_obj2)) { |
7200 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7201 | return NULL; | |
7202 | } | |
185d7c3e RD |
7203 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7204 | #endif | |
8ab979d7 | 7205 | } |
cf694132 RD |
7206 | { |
7207 | wxPy_BEGIN_ALLOW_THREADS; | |
7208 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
7209 | ||
7210 | wxPy_END_ALLOW_THREADS; | |
7211 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7212 | _resultobj = Py_None; |
7213 | { | |
7214 | if (_obj2) | |
7215 | delete _arg2; | |
7216 | } | |
7217 | return _resultobj; | |
7218 | } | |
7219 | ||
b1462dfa RD |
7220 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7221 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7222 | PyObject * _resultobj; |
8ab979d7 | 7223 | wxMenu * _arg0; |
b1462dfa | 7224 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7225 | PyObject * _argo0 = 0; |
b1462dfa RD |
7226 | PyObject * _argo1 = 0; |
7227 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7228 | |
7229 | self = self; | |
b1462dfa | 7230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7231 | return NULL; |
1d99702e RD |
7232 | if (_argo0) { |
7233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
7235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7236 | return NULL; | |
7237 | } | |
7238 | } | |
7239 | if (_argo1) { | |
7240 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7241 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7243 | return NULL; |
7244 | } | |
7245 | } | |
cf694132 RD |
7246 | { |
7247 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7248 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 RD |
7249 | |
7250 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7251 | } Py_INCREF(Py_None); |
7252 | _resultobj = Py_None; | |
8ab979d7 RD |
7253 | return _resultobj; |
7254 | } | |
7255 | ||
b1462dfa RD |
7256 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7257 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7258 | PyObject * _resultobj; |
7259 | bool _result; | |
7260 | wxMenu * _arg0; | |
7261 | int _arg1; | |
1d99702e | 7262 | PyObject * _argo0 = 0; |
efc5f224 | 7263 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7264 | |
7265 | self = self; | |
b1462dfa | 7266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7267 | return NULL; |
1d99702e RD |
7268 | if (_argo0) { |
7269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
7272 | return NULL; |
7273 | } | |
7274 | } | |
cf694132 RD |
7275 | { |
7276 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7277 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 RD |
7278 | |
7279 | wxPy_END_ALLOW_THREADS; | |
7280 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7281 | return _resultobj; |
7282 | } | |
7283 | ||
b1462dfa RD |
7284 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7285 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7286 | PyObject * _resultobj; |
b1462dfa | 7287 | bool _result; |
8ab979d7 | 7288 | wxMenu * _arg0; |
b1462dfa | 7289 | wxMenuItem * _arg1; |
1d99702e | 7290 | PyObject * _argo0 = 0; |
b1462dfa RD |
7291 | PyObject * _argo1 = 0; |
7292 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7293 | |
7294 | self = self; | |
b1462dfa | 7295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7296 | return NULL; |
1d99702e RD |
7297 | if (_argo0) { |
7298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7301 | return NULL; |
7302 | } | |
7303 | } | |
b1462dfa RD |
7304 | if (_argo1) { |
7305 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7306 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7308 | return NULL; |
b1462dfa | 7309 | } |
8ab979d7 | 7310 | } |
cf694132 RD |
7311 | { |
7312 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7313 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 RD |
7314 | |
7315 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7316 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7317 | return _resultobj; |
7318 | } | |
7319 | ||
b1462dfa RD |
7320 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7321 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7322 | PyObject * _resultobj; |
b1462dfa | 7323 | bool _result; |
8bf5d46e | 7324 | wxMenu * _arg0; |
b1462dfa RD |
7325 | size_t _arg1; |
7326 | wxMenuItem * _arg2; | |
1d99702e | 7327 | PyObject * _argo0 = 0; |
b1462dfa RD |
7328 | PyObject * _argo2 = 0; |
7329 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7330 | |
7331 | self = self; | |
b1462dfa | 7332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7333 | return NULL; |
1d99702e RD |
7334 | if (_argo0) { |
7335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7338 | return NULL; |
7339 | } | |
7340 | } | |
b1462dfa RD |
7341 | if (_argo2) { |
7342 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7343 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7345 | return NULL; |
7346 | } | |
7347 | } | |
cf694132 RD |
7348 | { |
7349 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7350 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 RD |
7351 | |
7352 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7353 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7354 | return _resultobj; |
7355 | } | |
7356 | ||
b1462dfa RD |
7357 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7358 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7359 | PyObject * _resultobj; |
b1462dfa | 7360 | wxMenuItem * _result; |
efc5f224 | 7361 | wxMenu * _arg0; |
b1462dfa | 7362 | int _arg1; |
efc5f224 | 7363 | PyObject * _argo0 = 0; |
b1462dfa RD |
7364 | char *_kwnames[] = { "self","id", NULL }; |
7365 | char _ptemp[128]; | |
efc5f224 RD |
7366 | |
7367 | self = self; | |
b1462dfa | 7368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7369 | return NULL; |
7370 | if (_argo0) { | |
7371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7374 | return NULL; |
7375 | } | |
7376 | } | |
7377 | { | |
7378 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7379 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 RD |
7380 | |
7381 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7382 | } if (_result) { |
7383 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7384 | _resultobj = Py_BuildValue("s",_ptemp); | |
7385 | } else { | |
7386 | Py_INCREF(Py_None); | |
7387 | _resultobj = Py_None; | |
7388 | } | |
efc5f224 RD |
7389 | return _resultobj; |
7390 | } | |
7391 | ||
b1462dfa RD |
7392 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7393 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7394 | PyObject * _resultobj; |
b1462dfa RD |
7395 | wxMenuItem * _result; |
7396 | wxMenu * _arg0; | |
7397 | wxMenuItem * _arg1; | |
7398 | PyObject * _argo0 = 0; | |
7399 | PyObject * _argo1 = 0; | |
7400 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7401 | char _ptemp[128]; |
7402 | ||
7403 | self = self; | |
b1462dfa RD |
7404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7405 | return NULL; | |
7406 | if (_argo0) { | |
7407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7410 | return NULL; | |
7411 | } | |
7412 | } | |
7413 | if (_argo1) { | |
7414 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7415 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7417 | return NULL; |
b1462dfa RD |
7418 | } |
7419 | } | |
cf694132 RD |
7420 | { |
7421 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7422 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 RD |
7423 | |
7424 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 7425 | } if (_result) { |
b1462dfa | 7426 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); |
1d99702e RD |
7427 | _resultobj = Py_BuildValue("s",_ptemp); |
7428 | } else { | |
7429 | Py_INCREF(Py_None); | |
7430 | _resultobj = Py_None; | |
7431 | } | |
8ab979d7 RD |
7432 | return _resultobj; |
7433 | } | |
7434 | ||
eb715945 | 7435 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7436 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7437 | PyObject * _resultobj; |
b1462dfa | 7438 | wxMenu * _arg0; |
1d99702e | 7439 | PyObject * _argo0 = 0; |
b1462dfa | 7440 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7441 | |
7442 | self = self; | |
b1462dfa | 7443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7444 | return NULL; |
1d99702e RD |
7445 | if (_argo0) { |
7446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7449 | return NULL; |
7450 | } | |
7451 | } | |
cf694132 RD |
7452 | { |
7453 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7454 | wxMenu_Destroy(_arg0); |
cf694132 RD |
7455 | |
7456 | wxPy_END_ALLOW_THREADS; | |
7457 | } Py_INCREF(Py_None); | |
8ab979d7 | 7458 | _resultobj = Py_None; |
8ab979d7 RD |
7459 | return _resultobj; |
7460 | } | |
7461 | ||
b1462dfa RD |
7462 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7463 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7464 | PyObject * _resultobj; |
b1462dfa RD |
7465 | bool _result; |
7466 | wxMenu * _arg0; | |
8ab979d7 | 7467 | int _arg1; |
1d99702e | 7468 | PyObject * _argo0 = 0; |
b1462dfa | 7469 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7470 | |
7471 | self = self; | |
b1462dfa | 7472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7473 | return NULL; |
1d99702e RD |
7474 | if (_argo0) { |
7475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
7478 | return NULL; |
7479 | } | |
7480 | } | |
cf694132 RD |
7481 | { |
7482 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7483 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 RD |
7484 | |
7485 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7486 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7487 | return _resultobj; |
7488 | } | |
7489 | ||
b1462dfa RD |
7490 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7491 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7492 | PyObject * _resultobj; |
b1462dfa RD |
7493 | bool _result; |
7494 | wxMenu * _arg0; | |
7495 | wxMenuItem * _arg1; | |
1d99702e | 7496 | PyObject * _argo0 = 0; |
b1462dfa RD |
7497 | PyObject * _argo1 = 0; |
7498 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7499 | |
7500 | self = self; | |
b1462dfa | 7501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7502 | return NULL; |
1d99702e RD |
7503 | if (_argo0) { |
7504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7507 | return NULL; | |
7508 | } | |
7509 | } | |
7510 | if (_argo1) { | |
7511 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7512 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7514 | return NULL; |
7515 | } | |
7516 | } | |
cf694132 RD |
7517 | { |
7518 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7519 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 RD |
7520 | |
7521 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7522 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7523 | return _resultobj; |
7524 | } | |
7525 | ||
b1462dfa RD |
7526 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
7527 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7528 | PyObject * _resultobj; |
b1462dfa RD |
7529 | size_t _result; |
7530 | wxMenu * _arg0; | |
1d99702e | 7531 | PyObject * _argo0 = 0; |
b1462dfa | 7532 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7533 | |
7534 | self = self; | |
b1462dfa | 7535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 7536 | return NULL; |
1d99702e RD |
7537 | if (_argo0) { |
7538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
7541 | return NULL; |
7542 | } | |
7543 | } | |
cf694132 RD |
7544 | { |
7545 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7546 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 RD |
7547 | |
7548 | wxPy_END_ALLOW_THREADS; | |
2abc0a0f | 7549 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7550 | return _resultobj; |
7551 | } | |
7552 | ||
b1462dfa RD |
7553 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
7554 | wxMenuItemList& list = self->GetMenuItems(); | |
7555 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
7556 | } | |
7557 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7558 | PyObject * _resultobj; |
b1462dfa RD |
7559 | PyObject * _result; |
7560 | wxMenu * _arg0; | |
1d99702e | 7561 | PyObject * _argo0 = 0; |
b1462dfa | 7562 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7563 | |
7564 | self = self; | |
b1462dfa | 7565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 7566 | return NULL; |
1d99702e RD |
7567 | if (_argo0) { |
7568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
7571 | return NULL; |
7572 | } | |
7573 | } | |
cf694132 RD |
7574 | { |
7575 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7576 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 RD |
7577 | |
7578 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7579 | }{ |
7580 | _resultobj = _result; | |
7581 | } | |
8ab979d7 RD |
7582 | return _resultobj; |
7583 | } | |
7584 | ||
b1462dfa RD |
7585 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
7586 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7587 | PyObject * _resultobj; |
b1462dfa RD |
7588 | wxMenu * _arg0; |
7589 | wxEvtHandler * _arg1; | |
1d99702e | 7590 | PyObject * _argo0 = 0; |
b1462dfa RD |
7591 | PyObject * _argo1 = 0; |
7592 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
7593 | |
7594 | self = self; | |
b1462dfa | 7595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7596 | return NULL; |
1d99702e RD |
7597 | if (_argo0) { |
7598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7601 | return NULL; |
7602 | } | |
7603 | } | |
b1462dfa RD |
7604 | if (_argo1) { |
7605 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7606 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 7608 | return NULL; |
b1462dfa | 7609 | } |
8ab979d7 | 7610 | } |
cf694132 RD |
7611 | { |
7612 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7613 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 RD |
7614 | |
7615 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7616 | } Py_INCREF(Py_None); |
7617 | _resultobj = Py_None; | |
8ab979d7 RD |
7618 | return _resultobj; |
7619 | } | |
7620 | ||
b1462dfa RD |
7621 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
7622 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7623 | PyObject * _resultobj; |
b1462dfa RD |
7624 | wxEvtHandler * _result; |
7625 | wxMenu * _arg0; | |
1d99702e | 7626 | PyObject * _argo0 = 0; |
b1462dfa | 7627 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7628 | char _ptemp[128]; |
7629 | ||
7630 | self = self; | |
b1462dfa | 7631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 7632 | return NULL; |
1d99702e RD |
7633 | if (_argo0) { |
7634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7637 | return NULL; |
7638 | } | |
7639 | } | |
cf694132 RD |
7640 | { |
7641 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7642 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 RD |
7643 | |
7644 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 7645 | } if (_result) { |
b1462dfa | 7646 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); |
1d99702e RD |
7647 | _resultobj = Py_BuildValue("s",_ptemp); |
7648 | } else { | |
7649 | Py_INCREF(Py_None); | |
7650 | _resultobj = Py_None; | |
7651 | } | |
8ab979d7 RD |
7652 | return _resultobj; |
7653 | } | |
7654 | ||
b1462dfa RD |
7655 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
7656 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 7657 | PyObject * _resultobj; |
b1462dfa RD |
7658 | wxMenu * _arg0; |
7659 | wxWindow * _arg1; | |
2f90df85 | 7660 | PyObject * _argo0 = 0; |
b1462dfa RD |
7661 | PyObject * _argo1 = 0; |
7662 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
7663 | |
7664 | self = self; | |
b1462dfa | 7665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
7666 | return NULL; |
7667 | if (_argo0) { | |
7668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
7671 | return NULL; |
7672 | } | |
7673 | } | |
b1462dfa RD |
7674 | if (_argo1) { |
7675 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7676 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 7678 | return NULL; |
b1462dfa | 7679 | } |
2f90df85 | 7680 | } |
2f90df85 RD |
7681 | { |
7682 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7683 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 RD |
7684 | |
7685 | wxPy_END_ALLOW_THREADS; | |
7686 | } Py_INCREF(Py_None); | |
7687 | _resultobj = Py_None; | |
2f90df85 RD |
7688 | return _resultobj; |
7689 | } | |
7690 | ||
b1462dfa RD |
7691 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
7692 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7693 | PyObject * _resultobj; |
b1462dfa RD |
7694 | wxWindow * _result; |
7695 | wxMenu * _arg0; | |
1d99702e | 7696 | PyObject * _argo0 = 0; |
b1462dfa RD |
7697 | char *_kwnames[] = { "self", NULL }; |
7698 | char _ptemp[128]; | |
8ab979d7 RD |
7699 | |
7700 | self = self; | |
b1462dfa | 7701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 7702 | return NULL; |
1d99702e RD |
7703 | if (_argo0) { |
7704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
7707 | return NULL; |
7708 | } | |
7709 | } | |
cf694132 RD |
7710 | { |
7711 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7712 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 RD |
7713 | |
7714 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7715 | } if (_result) { |
7716 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
7717 | _resultobj = Py_BuildValue("s",_ptemp); | |
7718 | } else { | |
7719 | Py_INCREF(Py_None); | |
7720 | _resultobj = Py_None; | |
7721 | } | |
8ab979d7 RD |
7722 | return _resultobj; |
7723 | } | |
7724 | ||
b1462dfa RD |
7725 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
7726 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7727 | PyObject * _resultobj; |
b1462dfa RD |
7728 | long _result; |
7729 | wxMenu * _arg0; | |
1d99702e | 7730 | PyObject * _argo0 = 0; |
b1462dfa | 7731 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7732 | |
7733 | self = self; | |
b1462dfa | 7734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 7735 | return NULL; |
1d99702e RD |
7736 | if (_argo0) { |
7737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
7740 | return NULL; |
7741 | } | |
7742 | } | |
8ab979d7 | 7743 | { |
cf694132 | 7744 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7745 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 RD |
7746 | |
7747 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7748 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7749 | return _resultobj; |
7750 | } | |
7751 | ||
b1462dfa RD |
7752 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
7753 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7754 | PyObject * _resultobj; |
b1462dfa RD |
7755 | bool _result; |
7756 | wxMenu * _arg0; | |
1d99702e | 7757 | PyObject * _argo0 = 0; |
b1462dfa | 7758 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7759 | |
7760 | self = self; | |
b1462dfa | 7761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 7762 | return NULL; |
1d99702e RD |
7763 | if (_argo0) { |
7764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
7767 | return NULL; |
7768 | } | |
7769 | } | |
8ab979d7 | 7770 | { |
cf694132 | 7771 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7772 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 RD |
7773 | |
7774 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7775 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7776 | return _resultobj; |
7777 | } | |
7778 | ||
b1462dfa RD |
7779 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
7780 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7781 | PyObject * _resultobj; |
b1462dfa RD |
7782 | wxMenu * _arg0; |
7783 | wxMenu * _arg1; | |
1d99702e | 7784 | PyObject * _argo0 = 0; |
b1462dfa RD |
7785 | PyObject * _argo1 = 0; |
7786 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
7787 | |
7788 | self = self; | |
b1462dfa | 7789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7790 | return NULL; |
1d99702e RD |
7791 | if (_argo0) { |
7792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
7795 | return NULL; |
7796 | } | |
7797 | } | |
b1462dfa RD |
7798 | if (_argo1) { |
7799 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7800 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
7801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 7802 | return NULL; |
b1462dfa | 7803 | } |
8ab979d7 | 7804 | } |
cf694132 RD |
7805 | { |
7806 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7807 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 RD |
7808 | |
7809 | wxPy_END_ALLOW_THREADS; | |
7810 | } Py_INCREF(Py_None); | |
8ab979d7 | 7811 | _resultobj = Py_None; |
8ab979d7 RD |
7812 | return _resultobj; |
7813 | } | |
7814 | ||
b1462dfa RD |
7815 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
7816 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7817 | PyObject * _resultobj; |
b1462dfa RD |
7818 | wxMenu * _result; |
7819 | wxMenu * _arg0; | |
1d99702e | 7820 | PyObject * _argo0 = 0; |
b1462dfa RD |
7821 | char *_kwnames[] = { "self", NULL }; |
7822 | char _ptemp[128]; | |
8ab979d7 RD |
7823 | |
7824 | self = self; | |
b1462dfa | 7825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 7826 | return NULL; |
1d99702e RD |
7827 | if (_argo0) { |
7828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
7831 | return NULL; |
7832 | } | |
7833 | } | |
8ab979d7 | 7834 | { |
cf694132 | 7835 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7836 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 RD |
7837 | |
7838 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7839 | } if (_result) { |
7840 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7841 | _resultobj = Py_BuildValue("s",_ptemp); | |
7842 | } else { | |
7843 | Py_INCREF(Py_None); | |
7844 | _resultobj = Py_None; | |
7845 | } | |
7846 | return _resultobj; | |
8ab979d7 | 7847 | } |
b1462dfa RD |
7848 | |
7849 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
7850 | wxMenuBar *src; | |
7851 | wxWindow *dest; | |
7852 | src = (wxMenuBar *) ptr; | |
7853 | dest = (wxWindow *) src; | |
7854 | return (void *) dest; | |
7855 | } | |
7856 | ||
7857 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
7858 | wxMenuBar *src; | |
7859 | wxEvtHandler *dest; | |
7860 | src = (wxMenuBar *) ptr; | |
7861 | dest = (wxEvtHandler *) src; | |
7862 | return (void *) dest; | |
8ab979d7 | 7863 | } |
b1462dfa | 7864 | |
c368d904 | 7865 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
7866 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
7867 | PyObject * _resultobj; | |
7868 | wxMenuBar * _result; | |
c368d904 RD |
7869 | long _arg0 = (long ) 0; |
7870 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
7871 | char _ptemp[128]; |
7872 | ||
7873 | self = self; | |
c368d904 | 7874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
7875 | return NULL; |
7876 | { | |
7877 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 7878 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa RD |
7879 | |
7880 | wxPy_END_ALLOW_THREADS; | |
7881 | } if (_result) { | |
7882 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
7883 | _resultobj = Py_BuildValue("s",_ptemp); | |
7884 | } else { | |
7885 | Py_INCREF(Py_None); | |
7886 | _resultobj = Py_None; | |
7887 | } | |
8ab979d7 RD |
7888 | return _resultobj; |
7889 | } | |
7890 | ||
b1462dfa RD |
7891 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
7892 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7893 | PyObject * _resultobj; |
b1462dfa | 7894 | bool _result; |
8ab979d7 | 7895 | wxMenuBar * _arg0; |
b1462dfa | 7896 | wxMenu * _arg1; |
8ab979d7 | 7897 | wxString * _arg2; |
1d99702e | 7898 | PyObject * _argo0 = 0; |
b1462dfa | 7899 | PyObject * _argo1 = 0; |
8ab979d7 | 7900 | PyObject * _obj2 = 0; |
b1462dfa | 7901 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
7902 | |
7903 | self = self; | |
b1462dfa | 7904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7905 | return NULL; |
1d99702e RD |
7906 | if (_argo0) { |
7907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
7909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
7910 | return NULL; | |
7911 | } | |
7912 | } | |
7913 | if (_argo1) { | |
7914 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7915 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
7916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
7917 | return NULL; |
7918 | } | |
7919 | } | |
7920 | { | |
185d7c3e RD |
7921 | #if PYTHON_API_VERSION >= 1009 |
7922 | char* tmpPtr; int tmpSize; | |
7923 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7924 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7925 | return NULL; | |
7926 | } | |
7927 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7928 | return NULL; | |
7929 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7930 | #else | |
8ab979d7 RD |
7931 | if (!PyString_Check(_obj2)) { |
7932 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7933 | return NULL; | |
7934 | } | |
185d7c3e RD |
7935 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7936 | #endif | |
8ab979d7 | 7937 | } |
cf694132 RD |
7938 | { |
7939 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7940 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 RD |
7941 | |
7942 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7943 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7944 | { |
7945 | if (_obj2) | |
7946 | delete _arg2; | |
7947 | } | |
7948 | return _resultobj; | |
7949 | } | |
7950 | ||
b1462dfa RD |
7951 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
7952 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7953 | PyObject * _resultobj; |
b1462dfa | 7954 | bool _result; |
8ab979d7 | 7955 | wxMenuBar * _arg0; |
b1462dfa RD |
7956 | size_t _arg1; |
7957 | wxMenu * _arg2; | |
7958 | wxString * _arg3; | |
1d99702e | 7959 | PyObject * _argo0 = 0; |
b1462dfa RD |
7960 | PyObject * _argo2 = 0; |
7961 | PyObject * _obj3 = 0; | |
7962 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
7963 | |
7964 | self = self; | |
b1462dfa | 7965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 7966 | return NULL; |
1d99702e RD |
7967 | if (_argo0) { |
7968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
7970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
7971 | return NULL; | |
7972 | } | |
7973 | } | |
7974 | if (_argo2) { | |
7975 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7976 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
7977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
7978 | return NULL; |
7979 | } | |
7980 | } | |
b1462dfa | 7981 | { |
185d7c3e RD |
7982 | #if PYTHON_API_VERSION >= 1009 |
7983 | char* tmpPtr; int tmpSize; | |
7984 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7985 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7986 | return NULL; | |
7987 | } | |
7988 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7989 | return NULL; | |
7990 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7991 | #else | |
b1462dfa RD |
7992 | if (!PyString_Check(_obj3)) { |
7993 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7994 | return NULL; | |
7995 | } | |
185d7c3e RD |
7996 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
7997 | #endif | |
b1462dfa | 7998 | } |
cf694132 RD |
7999 | { |
8000 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8001 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
8002 | |
8003 | wxPy_END_ALLOW_THREADS; | |
8004 | } _resultobj = Py_BuildValue("i",_result); | |
b1462dfa RD |
8005 | { |
8006 | if (_obj3) | |
8007 | delete _arg3; | |
8008 | } | |
8ab979d7 RD |
8009 | return _resultobj; |
8010 | } | |
8011 | ||
b1462dfa RD |
8012 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8013 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8014 | PyObject * _resultobj; |
b1462dfa | 8015 | size_t _result; |
8ab979d7 | 8016 | wxMenuBar * _arg0; |
1d99702e | 8017 | PyObject * _argo0 = 0; |
b1462dfa | 8018 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8019 | |
8020 | self = self; | |
b1462dfa | 8021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8022 | return NULL; |
1d99702e RD |
8023 | if (_argo0) { |
8024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8027 | return NULL; |
8028 | } | |
8029 | } | |
cf694132 RD |
8030 | { |
8031 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8032 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 RD |
8033 | |
8034 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8035 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8036 | return _resultobj; |
8037 | } | |
8038 | ||
b1462dfa RD |
8039 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8040 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8041 | PyObject * _resultobj; |
b1462dfa | 8042 | wxMenu * _result; |
06c0fba4 | 8043 | wxMenuBar * _arg0; |
b1462dfa | 8044 | size_t _arg1; |
06c0fba4 | 8045 | PyObject * _argo0 = 0; |
b1462dfa RD |
8046 | char *_kwnames[] = { "self","pos", NULL }; |
8047 | char _ptemp[128]; | |
06c0fba4 RD |
8048 | |
8049 | self = self; | |
b1462dfa | 8050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8051 | return NULL; |
8052 | if (_argo0) { | |
8053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8056 | return NULL; |
8057 | } | |
8058 | } | |
8059 | { | |
8060 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8061 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 RD |
8062 | |
8063 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8064 | } if (_result) { |
8065 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8066 | _resultobj = Py_BuildValue("s",_ptemp); | |
8067 | } else { | |
8068 | Py_INCREF(Py_None); | |
8069 | _resultobj = Py_None; | |
8070 | } | |
06c0fba4 RD |
8071 | return _resultobj; |
8072 | } | |
8073 | ||
2abc0a0f RD |
8074 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8075 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8076 | PyObject * _resultobj; | |
8077 | wxMenu * _result; | |
8078 | wxMenuBar * _arg0; | |
8079 | size_t _arg1; | |
8080 | wxMenu * _arg2; | |
8081 | wxString * _arg3; | |
8082 | PyObject * _argo0 = 0; | |
8083 | PyObject * _argo2 = 0; | |
8084 | PyObject * _obj3 = 0; | |
8085 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8086 | char _ptemp[128]; | |
8087 | ||
8088 | self = self; | |
8089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8090 | return NULL; | |
8091 | if (_argo0) { | |
8092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8095 | return NULL; | |
8096 | } | |
8097 | } | |
8098 | if (_argo2) { | |
8099 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8100 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8102 | return NULL; | |
8103 | } | |
8104 | } | |
8105 | { | |
185d7c3e RD |
8106 | #if PYTHON_API_VERSION >= 1009 |
8107 | char* tmpPtr; int tmpSize; | |
8108 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8109 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8110 | return NULL; | |
8111 | } | |
8112 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8113 | return NULL; | |
8114 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8115 | #else | |
2abc0a0f RD |
8116 | if (!PyString_Check(_obj3)) { |
8117 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8118 | return NULL; | |
8119 | } | |
185d7c3e RD |
8120 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8121 | #endif | |
2abc0a0f RD |
8122 | } |
8123 | { | |
8124 | wxPy_BEGIN_ALLOW_THREADS; | |
8125 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
8126 | ||
8127 | wxPy_END_ALLOW_THREADS; | |
8128 | } if (_result) { | |
8129 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8130 | _resultobj = Py_BuildValue("s",_ptemp); | |
8131 | } else { | |
8132 | Py_INCREF(Py_None); | |
8133 | _resultobj = Py_None; | |
8134 | } | |
8135 | { | |
8136 | if (_obj3) | |
8137 | delete _arg3; | |
8138 | } | |
8139 | return _resultobj; | |
8140 | } | |
8141 | ||
8142 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8143 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8144 | PyObject * _resultobj; | |
8145 | wxMenu * _result; | |
8146 | wxMenuBar * _arg0; | |
8147 | size_t _arg1; | |
8148 | PyObject * _argo0 = 0; | |
8149 | char *_kwnames[] = { "self","pos", NULL }; | |
8150 | char _ptemp[128]; | |
8151 | ||
8152 | self = self; | |
8153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8154 | return NULL; | |
8155 | if (_argo0) { | |
8156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8159 | return NULL; | |
8160 | } | |
8161 | } | |
8162 | { | |
8163 | wxPy_BEGIN_ALLOW_THREADS; | |
8164 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
8165 | ||
8166 | wxPy_END_ALLOW_THREADS; | |
8167 | } if (_result) { | |
8168 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8169 | _resultobj = Py_BuildValue("s",_ptemp); | |
8170 | } else { | |
8171 | Py_INCREF(Py_None); | |
8172 | _resultobj = Py_None; | |
8173 | } | |
8174 | return _resultobj; | |
8175 | } | |
8176 | ||
b1462dfa RD |
8177 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8178 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8179 | PyObject * _resultobj; |
b1462dfa RD |
8180 | wxMenuBar * _arg0; |
8181 | size_t _arg1; | |
8182 | bool _arg2; | |
8183 | PyObject * _argo0 = 0; | |
8184 | int tempbool2; | |
8185 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8186 | ||
8187 | self = self; | |
8188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8189 | return NULL; | |
8190 | if (_argo0) { | |
8191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8194 | return NULL; | |
8195 | } | |
8196 | } | |
8197 | _arg2 = (bool ) tempbool2; | |
8198 | { | |
8199 | wxPy_BEGIN_ALLOW_THREADS; | |
8200 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
8201 | ||
8202 | wxPy_END_ALLOW_THREADS; | |
8203 | } Py_INCREF(Py_None); | |
8204 | _resultobj = Py_None; | |
8205 | return _resultobj; | |
8206 | } | |
8207 | ||
8208 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8209 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8210 | PyObject * _resultobj; | |
8211 | wxMenuBar * _arg0; | |
8212 | size_t _arg1; | |
8213 | wxString * _arg2; | |
1d99702e | 8214 | PyObject * _argo0 = 0; |
cf694132 | 8215 | PyObject * _obj2 = 0; |
b1462dfa | 8216 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8217 | |
8218 | self = self; | |
b1462dfa | 8219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8220 | return NULL; |
1d99702e RD |
8221 | if (_argo0) { |
8222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8225 | return NULL; |
8226 | } | |
8227 | } | |
cf694132 | 8228 | { |
185d7c3e RD |
8229 | #if PYTHON_API_VERSION >= 1009 |
8230 | char* tmpPtr; int tmpSize; | |
8231 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8232 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8233 | return NULL; | |
8234 | } | |
8235 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8236 | return NULL; | |
8237 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8238 | #else | |
cf694132 RD |
8239 | if (!PyString_Check(_obj2)) { |
8240 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8241 | return NULL; | |
8242 | } | |
185d7c3e RD |
8243 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8244 | #endif | |
cf694132 | 8245 | } |
cf694132 | 8246 | { |
b1462dfa RD |
8247 | wxPy_BEGIN_ALLOW_THREADS; |
8248 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
8249 | ||
8250 | wxPy_END_ALLOW_THREADS; | |
8251 | } Py_INCREF(Py_None); | |
8252 | _resultobj = Py_None; | |
8253 | { | |
8254 | if (_obj2) | |
8255 | delete _arg2; | |
8256 | } | |
8257 | return _resultobj; | |
8258 | } | |
8259 | ||
8260 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8261 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8262 | PyObject * _resultobj; | |
8263 | wxString * _result; | |
8264 | wxMenuBar * _arg0; | |
8265 | size_t _arg1; | |
8266 | PyObject * _argo0 = 0; | |
8267 | char *_kwnames[] = { "self","pos", NULL }; | |
8268 | ||
8269 | self = self; | |
8270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8271 | return NULL; | |
8272 | if (_argo0) { | |
8273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8276 | return NULL; | |
8277 | } | |
8278 | } | |
8279 | { | |
8280 | wxPy_BEGIN_ALLOW_THREADS; | |
8281 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
8282 | ||
8283 | wxPy_END_ALLOW_THREADS; | |
8284 | }{ | |
eec92d76 | 8285 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8286 | } |
8287 | { | |
8288 | delete _result; | |
8289 | } | |
8290 | return _resultobj; | |
8291 | } | |
8292 | ||
8293 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
8294 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8295 | PyObject * _resultobj; | |
8296 | int _result; | |
8297 | wxMenuBar * _arg0; | |
8298 | wxString * _arg1; | |
8299 | wxString * _arg2; | |
8300 | PyObject * _argo0 = 0; | |
8301 | PyObject * _obj1 = 0; | |
8302 | PyObject * _obj2 = 0; | |
8303 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8304 | ||
8305 | self = self; | |
8306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8307 | return NULL; | |
8308 | if (_argo0) { | |
8309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8312 | return NULL; | |
8313 | } | |
8314 | } | |
8315 | { | |
185d7c3e RD |
8316 | #if PYTHON_API_VERSION >= 1009 |
8317 | char* tmpPtr; int tmpSize; | |
8318 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8319 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8320 | return NULL; | |
8321 | } | |
8322 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8323 | return NULL; | |
8324 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8325 | #else | |
b1462dfa | 8326 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
8327 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
8328 | return NULL; | |
8329 | } | |
185d7c3e RD |
8330 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8331 | #endif | |
cf694132 | 8332 | } |
b1462dfa | 8333 | { |
185d7c3e RD |
8334 | #if PYTHON_API_VERSION >= 1009 |
8335 | char* tmpPtr; int tmpSize; | |
8336 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8337 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8338 | return NULL; | |
8339 | } | |
8340 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8341 | return NULL; | |
8342 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8343 | #else | |
b1462dfa RD |
8344 | if (!PyString_Check(_obj2)) { |
8345 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8346 | return NULL; | |
8347 | } | |
185d7c3e RD |
8348 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8349 | #endif | |
b1462dfa RD |
8350 | } |
8351 | { | |
8352 | wxPy_BEGIN_ALLOW_THREADS; | |
8353 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
8354 | ||
8355 | wxPy_END_ALLOW_THREADS; | |
8356 | } _resultobj = Py_BuildValue("i",_result); | |
8357 | { | |
8358 | if (_obj1) | |
8359 | delete _arg1; | |
8360 | } | |
8361 | { | |
8362 | if (_obj2) | |
8363 | delete _arg2; | |
8364 | } | |
8365 | return _resultobj; | |
8366 | } | |
8367 | ||
8368 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8369 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8370 | PyObject * _resultobj; | |
8371 | wxMenuItem * _result; | |
8372 | wxMenuBar * _arg0; | |
8373 | int _arg1; | |
8374 | PyObject * _argo0 = 0; | |
8375 | char *_kwnames[] = { "self","id", NULL }; | |
8376 | char _ptemp[128]; | |
8377 | ||
8378 | self = self; | |
8379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8380 | return NULL; | |
8381 | if (_argo0) { | |
8382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8385 | return NULL; |
8386 | } | |
8387 | } | |
8388 | { | |
8389 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8390 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 RD |
8391 | |
8392 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
8393 | } if (_result) { |
8394 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
8395 | _resultobj = Py_BuildValue("s",_ptemp); | |
8396 | } else { | |
8397 | Py_INCREF(Py_None); | |
8398 | _resultobj = Py_None; | |
8399 | } | |
b1462dfa | 8400 | return _resultobj; |
cf694132 | 8401 | } |
b1462dfa RD |
8402 | |
8403 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8404 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8405 | PyObject * _resultobj; | |
8406 | wxMenuBar * _arg0; | |
8407 | int _arg1; | |
8408 | bool _arg2; | |
8409 | PyObject * _argo0 = 0; | |
8410 | int tempbool2; | |
8411 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8412 | ||
8413 | self = self; | |
8414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8415 | return NULL; | |
8416 | if (_argo0) { | |
8417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8420 | return NULL; | |
8421 | } | |
8422 | } | |
8423 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8424 | { |
b1462dfa RD |
8425 | wxPy_BEGIN_ALLOW_THREADS; |
8426 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8427 | ||
8428 | wxPy_END_ALLOW_THREADS; | |
8429 | } Py_INCREF(Py_None); | |
8430 | _resultobj = Py_None; | |
8431 | return _resultobj; | |
cf694132 | 8432 | } |
b1462dfa RD |
8433 | |
8434 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8435 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8436 | PyObject * _resultobj; | |
8437 | wxMenuBar * _arg0; | |
8438 | int _arg1; | |
8439 | bool _arg2; | |
8440 | PyObject * _argo0 = 0; | |
8441 | int tempbool2; | |
8442 | char *_kwnames[] = { "self","id","check", NULL }; | |
8443 | ||
8444 | self = self; | |
8445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8446 | return NULL; | |
8447 | if (_argo0) { | |
8448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8451 | return NULL; | |
8452 | } | |
8453 | } | |
8454 | _arg2 = (bool ) tempbool2; | |
8455 | { | |
8456 | wxPy_BEGIN_ALLOW_THREADS; | |
8457 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8458 | ||
8459 | wxPy_END_ALLOW_THREADS; | |
8460 | } Py_INCREF(Py_None); | |
8461 | _resultobj = Py_None; | |
cf694132 RD |
8462 | return _resultobj; |
8463 | } | |
8464 | ||
b1462dfa RD |
8465 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8466 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8467 | PyObject * _resultobj; |
8468 | bool _result; | |
b1462dfa RD |
8469 | wxMenuBar * _arg0; |
8470 | int _arg1; | |
1d99702e | 8471 | PyObject * _argo0 = 0; |
b1462dfa | 8472 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8473 | |
8474 | self = self; | |
b1462dfa | 8475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8476 | return NULL; |
1d99702e RD |
8477 | if (_argo0) { |
8478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8481 | return NULL; |
8482 | } | |
8483 | } | |
cf694132 RD |
8484 | { |
8485 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8486 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 RD |
8487 | |
8488 | wxPy_END_ALLOW_THREADS; | |
8489 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
8490 | return _resultobj; |
8491 | } | |
8492 | ||
b1462dfa RD |
8493 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8494 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8495 | PyObject * _resultobj; |
8496 | bool _result; | |
b1462dfa RD |
8497 | wxMenuBar * _arg0; |
8498 | int _arg1; | |
1d99702e | 8499 | PyObject * _argo0 = 0; |
b1462dfa | 8500 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8501 | |
8502 | self = self; | |
b1462dfa | 8503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8504 | return NULL; |
1d99702e RD |
8505 | if (_argo0) { |
8506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8509 | return NULL; |
8510 | } | |
8511 | } | |
cf694132 RD |
8512 | { |
8513 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8514 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 RD |
8515 | |
8516 | wxPy_END_ALLOW_THREADS; | |
8517 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
8518 | return _resultobj; |
8519 | } | |
8520 | ||
b1462dfa RD |
8521 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8522 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8523 | PyObject * _resultobj; |
b1462dfa RD |
8524 | wxMenuBar * _arg0; |
8525 | int _arg1; | |
8526 | wxString * _arg2; | |
1d99702e | 8527 | PyObject * _argo0 = 0; |
b1462dfa RD |
8528 | PyObject * _obj2 = 0; |
8529 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8530 | |
8531 | self = self; | |
b1462dfa | 8532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8533 | return NULL; |
1d99702e RD |
8534 | if (_argo0) { |
8535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8538 | return NULL; |
8539 | } | |
8540 | } | |
b1462dfa | 8541 | { |
185d7c3e RD |
8542 | #if PYTHON_API_VERSION >= 1009 |
8543 | char* tmpPtr; int tmpSize; | |
8544 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8545 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8546 | return NULL; | |
8547 | } | |
8548 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8549 | return NULL; | |
8550 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8551 | #else | |
b1462dfa RD |
8552 | if (!PyString_Check(_obj2)) { |
8553 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8554 | return NULL; | |
8555 | } | |
185d7c3e RD |
8556 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8557 | #endif | |
b1462dfa | 8558 | } |
cf694132 RD |
8559 | { |
8560 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8561 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
8562 | |
8563 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8564 | } Py_INCREF(Py_None); |
8565 | _resultobj = Py_None; | |
8566 | { | |
8567 | if (_obj2) | |
8568 | delete _arg2; | |
8569 | } | |
8ab979d7 RD |
8570 | return _resultobj; |
8571 | } | |
8572 | ||
b1462dfa RD |
8573 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8574 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8575 | PyObject * _resultobj; |
b1462dfa RD |
8576 | wxString * _result; |
8577 | wxMenuBar * _arg0; | |
8578 | int _arg1; | |
1d99702e | 8579 | PyObject * _argo0 = 0; |
b1462dfa | 8580 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8581 | |
8582 | self = self; | |
b1462dfa | 8583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8584 | return NULL; |
1d99702e RD |
8585 | if (_argo0) { |
8586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
8589 | return NULL; | |
8590 | } | |
8591 | } | |
8592 | { | |
8593 | wxPy_BEGIN_ALLOW_THREADS; | |
8594 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
8595 | ||
8596 | wxPy_END_ALLOW_THREADS; | |
8597 | }{ | |
eec92d76 | 8598 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8599 | } |
8600 | { | |
8601 | delete _result; | |
8602 | } | |
8603 | return _resultobj; | |
8604 | } | |
8605 | ||
8606 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
8607 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8608 | PyObject * _resultobj; | |
8609 | wxMenuBar * _arg0; | |
8610 | int _arg1; | |
8611 | wxString * _arg2; | |
8612 | PyObject * _argo0 = 0; | |
8613 | PyObject * _obj2 = 0; | |
8614 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
8615 | ||
8616 | self = self; | |
8617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8618 | return NULL; | |
8619 | if (_argo0) { | |
8620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
8623 | return NULL; | |
8624 | } | |
8625 | } | |
8626 | { | |
185d7c3e RD |
8627 | #if PYTHON_API_VERSION >= 1009 |
8628 | char* tmpPtr; int tmpSize; | |
8629 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8630 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8631 | return NULL; | |
8632 | } | |
8633 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8634 | return NULL; | |
8635 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8636 | #else | |
b1462dfa RD |
8637 | if (!PyString_Check(_obj2)) { |
8638 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8639 | return NULL; | |
8640 | } | |
185d7c3e RD |
8641 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8642 | #endif | |
b1462dfa RD |
8643 | } |
8644 | { | |
8645 | wxPy_BEGIN_ALLOW_THREADS; | |
8646 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
8647 | ||
8648 | wxPy_END_ALLOW_THREADS; | |
8649 | } Py_INCREF(Py_None); | |
8650 | _resultobj = Py_None; | |
8651 | { | |
8652 | if (_obj2) | |
8653 | delete _arg2; | |
8654 | } | |
8655 | return _resultobj; | |
8656 | } | |
8657 | ||
8658 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
8659 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8660 | PyObject * _resultobj; | |
8661 | wxString * _result; | |
8662 | wxMenuBar * _arg0; | |
8663 | int _arg1; | |
8664 | PyObject * _argo0 = 0; | |
8665 | char *_kwnames[] = { "self","id", NULL }; | |
8666 | ||
8667 | self = self; | |
8668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
8669 | return NULL; | |
8670 | if (_argo0) { | |
8671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8674 | return NULL; |
8675 | } | |
8676 | } | |
cf694132 RD |
8677 | { |
8678 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8679 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
8680 | |
8681 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8682 | }{ |
eec92d76 | 8683 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8684 | } |
8685 | { | |
8686 | delete _result; | |
8687 | } | |
8ab979d7 RD |
8688 | return _resultobj; |
8689 | } | |
8690 | ||
b1462dfa RD |
8691 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8692 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8693 | PyObject * _resultobj; |
b1462dfa RD |
8694 | wxMenuItem * _result; |
8695 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 8696 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
8697 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
8698 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
8699 | bool _arg4 = (bool ) FALSE; | |
8700 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 8701 | PyObject * _argo0 = 0; |
b1462dfa RD |
8702 | PyObject * _obj2 = 0; |
8703 | PyObject * _obj3 = 0; | |
8704 | int tempbool4 = (int) FALSE; | |
8705 | PyObject * _argo5 = 0; | |
8706 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
8707 | char _ptemp[128]; | |
8ab979d7 RD |
8708 | |
8709 | self = self; | |
b1462dfa | 8710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 8711 | return NULL; |
1d99702e RD |
8712 | if (_argo0) { |
8713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
8716 | return NULL; | |
8717 | } | |
8718 | } | |
8719 | if (_obj2) | |
8720 | { | |
185d7c3e RD |
8721 | #if PYTHON_API_VERSION >= 1009 |
8722 | char* tmpPtr; int tmpSize; | |
8723 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8724 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8725 | return NULL; | |
8726 | } | |
8727 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8728 | return NULL; | |
8729 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8730 | #else | |
b1462dfa RD |
8731 | if (!PyString_Check(_obj2)) { |
8732 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8733 | return NULL; | |
8734 | } | |
185d7c3e RD |
8735 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8736 | #endif | |
b1462dfa RD |
8737 | } |
8738 | if (_obj3) | |
8739 | { | |
185d7c3e RD |
8740 | #if PYTHON_API_VERSION >= 1009 |
8741 | char* tmpPtr; int tmpSize; | |
8742 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8743 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8744 | return NULL; | |
8745 | } | |
8746 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8747 | return NULL; | |
8748 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8749 | #else | |
b1462dfa RD |
8750 | if (!PyString_Check(_obj3)) { |
8751 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8752 | return NULL; | |
8753 | } | |
185d7c3e RD |
8754 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8755 | #endif | |
b1462dfa RD |
8756 | } |
8757 | _arg4 = (bool ) tempbool4; | |
8758 | if (_argo5) { | |
8759 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8760 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
8761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
8762 | return NULL; |
8763 | } | |
8764 | } | |
cf694132 RD |
8765 | { |
8766 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8767 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 RD |
8768 | |
8769 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8770 | } if (_result) { |
8771 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
8772 | _resultobj = Py_BuildValue("s",_ptemp); | |
8773 | } else { | |
8774 | Py_INCREF(Py_None); | |
8775 | _resultobj = Py_None; | |
8776 | } | |
8777 | { | |
8778 | if (_obj2) | |
8779 | delete _arg2; | |
8780 | } | |
8781 | { | |
8782 | if (_obj3) | |
8783 | delete _arg3; | |
8784 | } | |
8ab979d7 RD |
8785 | return _resultobj; |
8786 | } | |
8787 | ||
b1462dfa RD |
8788 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
8789 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8790 | PyObject * _resultobj; |
b1462dfa | 8791 | wxMenu * _result; |
8ab979d7 | 8792 | wxMenuItem * _arg0; |
1d99702e | 8793 | PyObject * _argo0 = 0; |
efc5f224 | 8794 | char *_kwnames[] = { "self", NULL }; |
b1462dfa | 8795 | char _ptemp[128]; |
8ab979d7 RD |
8796 | |
8797 | self = self; | |
b1462dfa | 8798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 8799 | return NULL; |
1d99702e RD |
8800 | if (_argo0) { |
8801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8804 | return NULL; |
8805 | } | |
8806 | } | |
cf694132 RD |
8807 | { |
8808 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8809 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 RD |
8810 | |
8811 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8812 | } if (_result) { |
8813 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8814 | _resultobj = Py_BuildValue("s",_ptemp); | |
8815 | } else { | |
8816 | Py_INCREF(Py_None); | |
8817 | _resultobj = Py_None; | |
8818 | } | |
8ab979d7 RD |
8819 | return _resultobj; |
8820 | } | |
8821 | ||
2abc0a0f RD |
8822 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
8823 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8824 | PyObject * _resultobj; |
8825 | wxMenuItem * _arg0; | |
2abc0a0f | 8826 | int _arg1; |
1d99702e | 8827 | PyObject * _argo0 = 0; |
2abc0a0f | 8828 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8829 | |
8830 | self = self; | |
2abc0a0f | 8831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8832 | return NULL; |
1d99702e RD |
8833 | if (_argo0) { |
8834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 8836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8837 | return NULL; |
8838 | } | |
8839 | } | |
cf694132 RD |
8840 | { |
8841 | wxPy_BEGIN_ALLOW_THREADS; | |
2abc0a0f | 8842 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 RD |
8843 | |
8844 | wxPy_END_ALLOW_THREADS; | |
8845 | } Py_INCREF(Py_None); | |
8ab979d7 | 8846 | _resultobj = Py_None; |
8ab979d7 RD |
8847 | return _resultobj; |
8848 | } | |
8849 | ||
b1462dfa RD |
8850 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
8851 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8852 | PyObject * _resultobj; |
b1462dfa | 8853 | int _result; |
8ab979d7 | 8854 | wxMenuItem * _arg0; |
1d99702e | 8855 | PyObject * _argo0 = 0; |
efc5f224 | 8856 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8857 | |
8858 | self = self; | |
b1462dfa | 8859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 8860 | return NULL; |
1d99702e RD |
8861 | if (_argo0) { |
8862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8865 | return NULL; |
8866 | } | |
8867 | } | |
8ab979d7 | 8868 | { |
cf694132 | 8869 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8870 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 RD |
8871 | |
8872 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8873 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8874 | return _resultobj; |
8875 | } | |
8876 | ||
b1462dfa RD |
8877 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
8878 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8879 | PyObject * _resultobj; |
b1462dfa | 8880 | bool _result; |
8ab979d7 | 8881 | wxMenuItem * _arg0; |
1d99702e | 8882 | PyObject * _argo0 = 0; |
efc5f224 | 8883 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8884 | |
8885 | self = self; | |
b1462dfa | 8886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 8887 | return NULL; |
1d99702e RD |
8888 | if (_argo0) { |
8889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8892 | return NULL; |
8893 | } | |
8894 | } | |
8ab979d7 | 8895 | { |
cf694132 | 8896 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8897 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 RD |
8898 | |
8899 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8900 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8901 | return _resultobj; |
8902 | } | |
8903 | ||
b1462dfa RD |
8904 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
8905 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8906 | PyObject * _resultobj; |
8907 | wxMenuItem * _arg0; | |
8908 | wxString * _arg1; | |
1d99702e | 8909 | PyObject * _argo0 = 0; |
8ab979d7 | 8910 | PyObject * _obj1 = 0; |
b1462dfa | 8911 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
8912 | |
8913 | self = self; | |
b1462dfa | 8914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8915 | return NULL; |
1d99702e RD |
8916 | if (_argo0) { |
8917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8920 | return NULL; |
8921 | } | |
8922 | } | |
8923 | { | |
185d7c3e RD |
8924 | #if PYTHON_API_VERSION >= 1009 |
8925 | char* tmpPtr; int tmpSize; | |
8926 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8927 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8928 | return NULL; | |
8929 | } | |
8930 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8931 | return NULL; | |
8932 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8933 | #else | |
8ab979d7 RD |
8934 | if (!PyString_Check(_obj1)) { |
8935 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8936 | return NULL; | |
8937 | } | |
185d7c3e RD |
8938 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8939 | #endif | |
8ab979d7 | 8940 | } |
cf694132 RD |
8941 | { |
8942 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8943 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 RD |
8944 | |
8945 | wxPy_END_ALLOW_THREADS; | |
8946 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
8947 | _resultobj = Py_None; |
8948 | { | |
8949 | if (_obj1) | |
8950 | delete _arg1; | |
8951 | } | |
8952 | return _resultobj; | |
8953 | } | |
8954 | ||
b1462dfa RD |
8955 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
8956 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8957 | PyObject * _resultobj; |
b1462dfa | 8958 | wxString * _result; |
8ab979d7 | 8959 | wxMenuItem * _arg0; |
1d99702e | 8960 | PyObject * _argo0 = 0; |
b1462dfa | 8961 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8962 | |
8963 | self = self; | |
b1462dfa | 8964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 8965 | return NULL; |
1d99702e RD |
8966 | if (_argo0) { |
8967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8970 | return NULL; |
8971 | } | |
8972 | } | |
cf694132 RD |
8973 | { |
8974 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8975 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 RD |
8976 | |
8977 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8978 | }{ |
eec92d76 | 8979 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 8980 | } |
cf694132 | 8981 | { |
b1462dfa RD |
8982 | delete _result; |
8983 | } | |
cf694132 RD |
8984 | return _resultobj; |
8985 | } | |
8986 | ||
b1462dfa RD |
8987 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
8988 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8989 | PyObject * _resultobj; |
b1462dfa | 8990 | wxString * _result; |
cf694132 | 8991 | wxMenuItem * _arg0; |
1d99702e | 8992 | PyObject * _argo0 = 0; |
efc5f224 | 8993 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
8994 | |
8995 | self = self; | |
b1462dfa | 8996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 8997 | return NULL; |
1d99702e RD |
8998 | if (_argo0) { |
8999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9002 | return NULL; |
9003 | } | |
9004 | } | |
9005 | { | |
9006 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9007 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
9008 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9009 | |
9010 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9011 | }{ |
eec92d76 | 9012 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 9013 | } |
cf694132 RD |
9014 | return _resultobj; |
9015 | } | |
9016 | ||
b1462dfa RD |
9017 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9018 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9019 | PyObject * _resultobj; |
cf694132 | 9020 | wxMenuItem * _arg0; |
b1462dfa | 9021 | bool _arg1; |
1d99702e | 9022 | PyObject * _argo0 = 0; |
b1462dfa RD |
9023 | int tempbool1; |
9024 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9025 | |
9026 | self = self; | |
b1462dfa | 9027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9028 | return NULL; |
1d99702e RD |
9029 | if (_argo0) { |
9030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9033 | return NULL; |
9034 | } | |
9035 | } | |
b1462dfa | 9036 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9037 | { |
9038 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9039 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 RD |
9040 | |
9041 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9042 | } Py_INCREF(Py_None); |
9043 | _resultobj = Py_None; | |
cf694132 RD |
9044 | return _resultobj; |
9045 | } | |
9046 | ||
b1462dfa RD |
9047 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9048 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9049 | PyObject * _resultobj; |
b1462dfa | 9050 | bool _result; |
cf694132 | 9051 | wxMenuItem * _arg0; |
1d99702e | 9052 | PyObject * _argo0 = 0; |
efc5f224 | 9053 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9054 | |
9055 | self = self; | |
b1462dfa | 9056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9057 | return NULL; |
1d99702e RD |
9058 | if (_argo0) { |
9059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9062 | return NULL; |
9063 | } | |
9064 | } | |
9065 | { | |
9066 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9067 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 RD |
9068 | |
9069 | wxPy_END_ALLOW_THREADS; | |
9070 | } _resultobj = Py_BuildValue("i",_result); | |
9071 | return _resultobj; | |
9072 | } | |
9073 | ||
b1462dfa RD |
9074 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9075 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9076 | PyObject * _resultobj; |
b1462dfa | 9077 | bool _result; |
cf694132 | 9078 | wxMenuItem * _arg0; |
1d99702e | 9079 | PyObject * _argo0 = 0; |
efc5f224 | 9080 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9081 | |
9082 | self = self; | |
b1462dfa | 9083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9084 | return NULL; |
1d99702e RD |
9085 | if (_argo0) { |
9086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9089 | return NULL; |
9090 | } | |
9091 | } | |
9092 | { | |
9093 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9094 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 RD |
9095 | |
9096 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9097 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9098 | return _resultobj; |
9099 | } | |
9100 | ||
b1462dfa RD |
9101 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9102 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9103 | PyObject * _resultobj; |
9104 | wxMenuItem * _arg0; | |
b1462dfa | 9105 | wxMenu * _arg1; |
1d99702e RD |
9106 | PyObject * _argo0 = 0; |
9107 | PyObject * _argo1 = 0; | |
b1462dfa | 9108 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9109 | |
9110 | self = self; | |
b1462dfa | 9111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9112 | return NULL; |
1d99702e RD |
9113 | if (_argo0) { |
9114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9117 | return NULL; |
9118 | } | |
9119 | } | |
1d99702e RD |
9120 | if (_argo1) { |
9121 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9122 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9124 | return NULL; |
9125 | } | |
9126 | } | |
9127 | { | |
9128 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9129 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 RD |
9130 | |
9131 | wxPy_END_ALLOW_THREADS; | |
9132 | } Py_INCREF(Py_None); | |
9133 | _resultobj = Py_None; | |
9134 | return _resultobj; | |
9135 | } | |
9136 | ||
b1462dfa RD |
9137 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9138 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9139 | PyObject * _resultobj; |
b1462dfa | 9140 | wxMenu * _result; |
cf694132 | 9141 | wxMenuItem * _arg0; |
1d99702e | 9142 | PyObject * _argo0 = 0; |
b1462dfa RD |
9143 | char *_kwnames[] = { "self", NULL }; |
9144 | char _ptemp[128]; | |
cf694132 RD |
9145 | |
9146 | self = self; | |
b1462dfa | 9147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 9148 | return NULL; |
1d99702e RD |
9149 | if (_argo0) { |
9150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9153 | return NULL; |
9154 | } | |
9155 | } | |
b1462dfa RD |
9156 | { |
9157 | wxPy_BEGIN_ALLOW_THREADS; | |
9158 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
9159 | ||
9160 | wxPy_END_ALLOW_THREADS; | |
9161 | } if (_result) { | |
9162 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
9163 | _resultobj = Py_BuildValue("s",_ptemp); | |
9164 | } else { | |
9165 | Py_INCREF(Py_None); | |
9166 | _resultobj = Py_None; | |
cf694132 | 9167 | } |
b1462dfa RD |
9168 | return _resultobj; |
9169 | } | |
9170 | ||
9171 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9172 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9173 | PyObject * _resultobj; | |
9174 | wxMenuItem * _arg0; | |
9175 | bool _arg1 = (bool ) TRUE; | |
9176 | PyObject * _argo0 = 0; | |
9177 | int tempbool1 = (int) TRUE; | |
9178 | char *_kwnames[] = { "self","enable", NULL }; | |
9179 | ||
9180 | self = self; | |
9181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9182 | return NULL; | |
9183 | if (_argo0) { | |
9184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
9187 | return NULL; |
9188 | } | |
9189 | } | |
b1462dfa | 9190 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9191 | { |
9192 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9193 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 RD |
9194 | |
9195 | wxPy_END_ALLOW_THREADS; | |
9196 | } Py_INCREF(Py_None); | |
9197 | _resultobj = Py_None; | |
9198 | return _resultobj; | |
9199 | } | |
9200 | ||
b1462dfa RD |
9201 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9202 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9203 | PyObject * _resultobj; |
b1462dfa | 9204 | bool _result; |
cf694132 | 9205 | wxMenuItem * _arg0; |
1d99702e | 9206 | PyObject * _argo0 = 0; |
b1462dfa | 9207 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9208 | |
9209 | self = self; | |
b1462dfa | 9210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9211 | return NULL; |
1d99702e RD |
9212 | if (_argo0) { |
9213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
9216 | return NULL; |
9217 | } | |
9218 | } | |
9219 | { | |
9220 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9221 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 RD |
9222 | |
9223 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9224 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9225 | return _resultobj; |
9226 | } | |
9227 | ||
b1462dfa RD |
9228 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
9229 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9230 | PyObject * _resultobj; |
9231 | wxMenuItem * _arg0; | |
b1462dfa | 9232 | bool _arg1 = (bool ) TRUE; |
1d99702e | 9233 | PyObject * _argo0 = 0; |
b1462dfa RD |
9234 | int tempbool1 = (int) TRUE; |
9235 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
9236 | |
9237 | self = self; | |
b1462dfa | 9238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9239 | return NULL; |
1d99702e RD |
9240 | if (_argo0) { |
9241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
9244 | return NULL; |
9245 | } | |
9246 | } | |
b1462dfa | 9247 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9248 | { |
9249 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9250 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 RD |
9251 | |
9252 | wxPy_END_ALLOW_THREADS; | |
9253 | } Py_INCREF(Py_None); | |
9254 | _resultobj = Py_None; | |
9255 | return _resultobj; | |
9256 | } | |
9257 | ||
b1462dfa RD |
9258 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
9259 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9260 | PyObject * _resultobj; |
b1462dfa | 9261 | bool _result; |
2abc0a0f | 9262 | wxMenuItem * _arg0; |
2abc0a0f | 9263 | PyObject * _argo0 = 0; |
b1462dfa | 9264 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
9265 | |
9266 | self = self; | |
b1462dfa | 9267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
9268 | return NULL; |
9269 | if (_argo0) { | |
9270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9273 | return NULL; |
9274 | } | |
9275 | } | |
2abc0a0f RD |
9276 | { |
9277 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9278 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f RD |
9279 | |
9280 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9281 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
9282 | return _resultobj; |
9283 | } | |
9284 | ||
b1462dfa RD |
9285 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
9286 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9287 | PyObject * _resultobj; |
2abc0a0f RD |
9288 | wxMenuItem * _arg0; |
9289 | PyObject * _argo0 = 0; | |
9290 | char *_kwnames[] = { "self", NULL }; | |
9291 | ||
9292 | self = self; | |
b1462dfa | 9293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
9294 | return NULL; |
9295 | if (_argo0) { | |
9296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9299 | return NULL; |
9300 | } | |
9301 | } | |
9302 | { | |
9303 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9304 | wxMenuItem_Toggle(_arg0); |
2abc0a0f RD |
9305 | |
9306 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9307 | } Py_INCREF(Py_None); |
9308 | _resultobj = Py_None; | |
2abc0a0f RD |
9309 | return _resultobj; |
9310 | } | |
9311 | ||
b1462dfa RD |
9312 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
9313 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9314 | PyObject * _resultobj; |
9315 | wxMenuItem * _arg0; | |
b1462dfa | 9316 | wxString * _arg1; |
1d99702e | 9317 | PyObject * _argo0 = 0; |
b1462dfa RD |
9318 | PyObject * _obj1 = 0; |
9319 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
9320 | |
9321 | self = self; | |
b1462dfa | 9322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 9323 | return NULL; |
1d99702e RD |
9324 | if (_argo0) { |
9325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
9328 | return NULL; |
9329 | } | |
9330 | } | |
b1462dfa | 9331 | { |
185d7c3e RD |
9332 | #if PYTHON_API_VERSION >= 1009 |
9333 | char* tmpPtr; int tmpSize; | |
9334 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9335 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
9336 | return NULL; | |
9337 | } | |
9338 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9339 | return NULL; | |
9340 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9341 | #else | |
b1462dfa RD |
9342 | if (!PyString_Check(_obj1)) { |
9343 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 9344 | return NULL; |
cf694132 | 9345 | } |
185d7c3e RD |
9346 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9347 | #endif | |
b1462dfa | 9348 | } |
cf694132 RD |
9349 | { |
9350 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9351 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 RD |
9352 | |
9353 | wxPy_END_ALLOW_THREADS; | |
9354 | } Py_INCREF(Py_None); | |
8ab979d7 | 9355 | _resultobj = Py_None; |
b1462dfa RD |
9356 | { |
9357 | if (_obj1) | |
9358 | delete _arg1; | |
9359 | } | |
8ab979d7 RD |
9360 | return _resultobj; |
9361 | } | |
9362 | ||
b1462dfa RD |
9363 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
9364 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 9365 | PyObject * _resultobj; |
b1462dfa | 9366 | wxString * _result; |
be4d9c1f | 9367 | wxMenuItem * _arg0; |
1d99702e | 9368 | PyObject * _argo0 = 0; |
efc5f224 | 9369 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
9370 | |
9371 | self = self; | |
b1462dfa | 9372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 9373 | return NULL; |
1d99702e RD |
9374 | if (_argo0) { |
9375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
9378 | return NULL; |
9379 | } | |
9380 | } | |
cf694132 RD |
9381 | { |
9382 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9383 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
9384 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9385 | |
9386 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9387 | }{ |
eec92d76 | 9388 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 9389 | } |
be4d9c1f RD |
9390 | return _resultobj; |
9391 | } | |
9392 | ||
b1462dfa RD |
9393 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
9394 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9395 | PyObject * _resultobj; |
b1462dfa | 9396 | wxAcceleratorEntry * _result; |
2abc0a0f | 9397 | wxMenuItem * _arg0; |
2abc0a0f | 9398 | PyObject * _argo0 = 0; |
b1462dfa RD |
9399 | char *_kwnames[] = { "self", NULL }; |
9400 | char _ptemp[128]; | |
2abc0a0f RD |
9401 | |
9402 | self = self; | |
b1462dfa | 9403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
9404 | return NULL; |
9405 | if (_argo0) { | |
9406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9409 | return NULL; |
9410 | } | |
9411 | } | |
2abc0a0f RD |
9412 | { |
9413 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9414 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f RD |
9415 | |
9416 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9417 | } if (_result) { |
9418 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9419 | _resultobj = Py_BuildValue("s",_ptemp); | |
9420 | } else { | |
9421 | Py_INCREF(Py_None); | |
9422 | _resultobj = Py_None; | |
9423 | } | |
2abc0a0f RD |
9424 | return _resultobj; |
9425 | } | |
9426 | ||
b1462dfa RD |
9427 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9428 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9429 | PyObject * _resultobj; |
9430 | wxMenuItem * _arg0; | |
b1462dfa | 9431 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9432 | PyObject * _argo0 = 0; |
9433 | PyObject * _argo1 = 0; | |
b1462dfa | 9434 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9435 | |
9436 | self = self; | |
b1462dfa | 9437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9438 | return NULL; |
9439 | if (_argo0) { | |
9440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9443 | return NULL; |
9444 | } | |
9445 | } | |
9446 | if (_argo1) { | |
9447 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9448 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
9449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
9450 | return NULL; |
9451 | } | |
9452 | } | |
9453 | { | |
9454 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9455 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f RD |
9456 | |
9457 | wxPy_END_ALLOW_THREADS; | |
9458 | } Py_INCREF(Py_None); | |
9459 | _resultobj = Py_None; | |
9460 | return _resultobj; | |
9461 | } | |
9462 | ||
8ab979d7 | 9463 | static PyMethodDef windowscMethods[] = { |
b1462dfa RD |
9464 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
9465 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
9466 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9467 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9468 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
9469 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9470 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9471 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9472 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9473 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9474 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 9475 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9476 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9477 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
9478 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9479 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9480 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9481 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9482 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
9483 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9484 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9485 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9486 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9487 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
9488 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 9489 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
9490 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
9491 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9492 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9493 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
9494 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
9495 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
9496 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9497 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9498 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
9499 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9500 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
9501 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
9502 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
9503 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9504 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
9505 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
9506 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
9507 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
9508 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
9509 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
9510 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9511 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9512 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9513 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9514 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
9515 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9516 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
9517 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9518 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9519 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
9520 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9521 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
9522 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
9523 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9524 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9525 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9526 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9527 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
9528 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9529 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
9530 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 9531 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9532 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9533 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9534 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9535 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9536 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
9537 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
9538 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
9539 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
9540 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
9541 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
9542 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
9543 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
9544 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9545 | { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS }, |
4c9993c3 | 9546 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 9547 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 9548 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9549 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
9550 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
9551 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
9552 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
9553 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 9554 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9555 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 9556 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9557 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
9558 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
9559 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
9560 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
9561 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
9562 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
9563 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9564 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
9565 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
9566 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
9567 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
9568 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9569 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
9570 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
9571 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
9572 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
9573 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
9574 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
9575 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
9576 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
9577 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 9578 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9579 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
9580 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
9581 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
9582 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9583 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 9584 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9585 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
9586 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
9587 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
9588 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
9589 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
9590 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9591 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9592 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9593 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9594 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
9595 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
9596 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
9597 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
9598 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
9599 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 9600 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9601 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
9602 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
9603 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
9604 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
dbbb98cd | 9605 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9606 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
9607 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
9608 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
9609 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
9610 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
9611 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
9612 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9613 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9614 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 9615 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9616 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 9617 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9618 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
9619 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 9620 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9621 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
9622 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
9623 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
9624 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
9625 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
9626 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 9627 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9628 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
9629 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
9630 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
9631 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
9632 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
9633 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
9634 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9635 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
9636 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
9637 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
9638 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
9639 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
9640 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
9641 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
9642 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
9643 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
9644 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
9645 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
9646 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9647 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
9648 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
9649 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9650 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
9651 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9652 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
9653 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
9654 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9655 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
9656 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
9657 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
9658 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
9659 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
9660 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
9661 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
9662 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
9663 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
9664 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
9665 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
9666 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
9667 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9668 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9669 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 9670 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9671 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
9672 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9673 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 9674 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9675 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
9676 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
9677 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
9678 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
9679 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 9680 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9681 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
9682 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
9683 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
9684 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
9685 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
9686 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
9687 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
9688 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9689 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
9690 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
9691 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
3ca6a5f0 BP |
9692 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
9693 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9694 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
9695 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
9696 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
9697 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
9698 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
9699 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
9700 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, |
9701 | { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9702 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, | |
9703 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9704 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9705 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
9706 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 9707 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9708 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
9709 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
9710 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
9711 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
9712 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
9713 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9714 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9715 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9716 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 9717 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
a1df7a95 RD |
9718 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
9719 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
9720 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9721 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
9722 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
9723 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
9724 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
9725 | { NULL, NULL } |
9726 | }; | |
1d99702e RD |
9727 | #ifdef __cplusplus |
9728 | } | |
9729 | #endif | |
9730 | /* | |
9731 | * This table is used by the pointer type-checker | |
9732 | */ | |
9733 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
9734 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
9735 | { "_signed_long","_long",0}, | |
65dd82cb | 9736 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
b1462dfa RD |
9737 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, |
9738 | { "_wxPrintQuality","_wxCoord",0}, | |
1d99702e RD |
9739 | { "_wxPrintQuality","_int",0}, |
9740 | { "_wxPrintQuality","_signed_int",0}, | |
9741 | { "_wxPrintQuality","_unsigned_int",0}, | |
9742 | { "_wxPrintQuality","_wxWindowID",0}, | |
9743 | { "_wxPrintQuality","_uint",0}, | |
9744 | { "_wxPrintQuality","_EBool",0}, | |
9745 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 9746 | { "_wxPrintQuality","_time_t",0}, |
b1462dfa | 9747 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
1d99702e | 9748 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 9749 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e RD |
9750 | { "_class_wxMenuBar","_wxMenuBar",0}, |
9751 | { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9752 | { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9753 | { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9754 | { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9755 | { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9756 | { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9757 | { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9758 | { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9759 | { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9760 | { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9761 | { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
9762 | { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
9763 | { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
9764 | { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
9765 | { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
9766 | { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e RD |
9767 | { "_class_wxEvtHandler","_wxEvtHandler",0}, |
9768 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
9769 | { "_wxCursor","_class_wxCursor",0}, | |
9770 | { "_wxMask","_class_wxMask",0}, | |
9771 | { "_wxPen","_class_wxPen",0}, | |
9772 | { "_byte","_unsigned_char",0}, | |
b1462dfa | 9773 | { "_wxDataObject","_class_wxDataObject",0}, |
65dd82cb RD |
9774 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
9775 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
9776 | { "_long","_unsigned_long",0}, |
9777 | { "_long","_signed_long",0}, | |
9778 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa | 9779 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
1d99702e | 9780 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, |
b1462dfa | 9781 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e | 9782 | { "_wxDC","_class_wxDC",0}, |
b1462dfa RD |
9783 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
9784 | { "_size_t","_wxCoord",0}, | |
1d99702e | 9785 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 9786 | { "_size_t","_time_t",0}, |
1d99702e RD |
9787 | { "_size_t","_unsigned_int",0}, |
9788 | { "_size_t","_int",0}, | |
9789 | { "_size_t","_wxWindowID",0}, | |
9790 | { "_size_t","_uint",0}, | |
9791 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
9792 | { "_wxPrinterDC","_class_wxPrinterDC",0}, | |
9793 | { "_class_wxMenuItem","_wxMenuItem",0}, | |
9794 | { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9795 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9796 | { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
9797 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
9798 | { "_wxPanel","_class_wxPanel",0}, | |
9799 | { "_class_wxMask","_wxMask",0}, | |
b1462dfa | 9800 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
1d99702e RD |
9801 | { "_wxColour","_class_wxColour",0}, |
9802 | { "_class_wxDialog","_wxDialog",0}, | |
b1462dfa RD |
9803 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
9804 | { "_class_wxDataObject","_wxDataObject",0}, | |
1d99702e | 9805 | { "_wxBrush","_class_wxBrush",0}, |
b1462dfa RD |
9806 | { "_wxDataFormat","_class_wxDataFormat",0}, |
9807 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
9808 | { "_uint","_wxCoord",0}, | |
1d99702e | 9809 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 9810 | { "_uint","_time_t",0}, |
1d99702e RD |
9811 | { "_uint","_size_t",0}, |
9812 | { "_uint","_unsigned_int",0}, | |
9813 | { "_uint","_int",0}, | |
9814 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 9815 | { "_wxChar","_char",0}, |
2f90df85 | 9816 | { "_wxPyValidator","_class_wxPyValidator",0}, |
1d99702e RD |
9817 | { "_wxRect","_class_wxRect",0}, |
9818 | { "_wxPoint","_class_wxPoint",0}, | |
f6bcfd97 | 9819 | { "_char","_wxChar",0}, |
1d99702e | 9820 | { "_wxBitmap","_class_wxBitmap",0}, |
1d99702e RD |
9821 | { "_wxWindowDC","_class_wxWindowDC",0}, |
9822 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
2f90df85 RD |
9823 | { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
9824 | { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
9825 | { "_class_wxValidator","_wxValidator",0}, | |
b1462dfa RD |
9826 | { "_wxDropTarget","_class_wxDropTarget",0}, |
9827 | { "_EBool","_wxCoord",0}, | |
1d99702e RD |
9828 | { "_EBool","_wxPrintQuality",0}, |
9829 | { "_EBool","_signed_int",0}, | |
9830 | { "_EBool","_int",0}, | |
9831 | { "_EBool","_wxWindowID",0}, | |
9832 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa | 9833 | { "_class_wxDataFormat","_wxDataFormat",0}, |
1d99702e | 9834 | { "_wxFont","_class_wxFont",0}, |
b1462dfa | 9835 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
1d99702e RD |
9836 | { "_unsigned_long","_long",0}, |
9837 | { "_class_wxRect","_wxRect",0}, | |
9838 | { "_class_wxDC","_wxDC",0}, | |
1d99702e RD |
9839 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, |
9840 | { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9841 | { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9842 | { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
9843 | { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
9844 | { "_class_wxPanel","_wxPanel",0}, | |
b1462dfa | 9845 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
9846 | { "_signed_int","_wxPrintQuality",0}, |
9847 | { "_signed_int","_EBool",0}, | |
9848 | { "_signed_int","_wxWindowID",0}, | |
9849 | { "_signed_int","_int",0}, | |
9850 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
9851 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
b1462dfa | 9852 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e RD |
9853 | { "_wxMenu","_class_wxMenu",0}, |
9854 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
9855 | { "_WXTYPE","_short",0}, | |
9856 | { "_WXTYPE","_signed_short",0}, | |
9857 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 9858 | { "_class_wxDropTarget","_wxDropTarget",0}, |
1d99702e RD |
9859 | { "_class_wxBrush","_wxBrush",0}, |
9860 | { "_unsigned_short","_WXTYPE",0}, | |
9861 | { "_unsigned_short","_short",0}, | |
b1462dfa RD |
9862 | { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, |
9863 | { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
9864 | { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
9865 | { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
9866 | { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
9867 | { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
9868 | { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
9869 | { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
9870 | { "_class_wxWindow","_wxWindow",0}, | |
9871 | { "_class_wxFont","_wxFont",0}, | |
b1462dfa | 9872 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 9873 | { "_class_wxPyValidator","_wxPyValidator",0}, |
2abc0a0f | 9874 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
65dd82cb | 9875 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, |
1d99702e RD |
9876 | { "_wxClientDC","_class_wxClientDC",0}, |
9877 | { "_class_wxPoint","_wxPoint",0}, | |
9878 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
9879 | { "_signed_short","_WXTYPE",0}, | |
9880 | { "_signed_short","_short",0}, | |
9881 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
65dd82cb | 9882 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
9883 | { "_wxPaintDC","_class_wxPaintDC",0}, |
9884 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
9885 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
9886 | { "_class_wxCursor","_wxCursor",0}, | |
b1462dfa | 9887 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
1d99702e RD |
9888 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
9889 | { "_unsigned_char","_byte",0}, | |
9890 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
9891 | { "_class_wxMenu","_wxMenu",0}, | |
b1462dfa | 9892 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 9893 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 9894 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
9895 | { "_unsigned_int","_size_t",0}, |
9896 | { "_unsigned_int","_uint",0}, | |
9897 | { "_unsigned_int","_wxWindowID",0}, | |
9898 | { "_unsigned_int","_int",0}, | |
9899 | { "_wxIcon","_class_wxIcon",0}, | |
9900 | { "_wxDialog","_class_wxDialog",0}, | |
9901 | { "_class_wxPen","_wxPen",0}, | |
9902 | { "_short","_WXTYPE",0}, | |
9903 | { "_short","_unsigned_short",0}, | |
9904 | { "_short","_signed_short",0}, | |
65dd82cb RD |
9905 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
9906 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
1d99702e | 9907 | { "_class_wxImageList","_wxImageList",0}, |
b1462dfa | 9908 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 9909 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 9910 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
9911 | { "_wxWindowID","_size_t",0}, |
9912 | { "_wxWindowID","_EBool",0}, | |
9913 | { "_wxWindowID","_uint",0}, | |
9914 | { "_wxWindowID","_int",0}, | |
9915 | { "_wxWindowID","_signed_int",0}, | |
9916 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 9917 | { "_int","_wxCoord",0}, |
1d99702e | 9918 | { "_int","_wxPrintQuality",0}, |
c368d904 | 9919 | { "_int","_time_t",0}, |
1d99702e RD |
9920 | { "_int","_size_t",0}, |
9921 | { "_int","_EBool",0}, | |
9922 | { "_int","_uint",0}, | |
9923 | { "_int","_wxWindowID",0}, | |
9924 | { "_int","_unsigned_int",0}, | |
9925 | { "_int","_signed_int",0}, | |
c368d904 RD |
9926 | { "_time_t","_wxCoord",0}, |
9927 | { "_time_t","_wxPrintQuality",0}, | |
9928 | { "_time_t","_unsigned_int",0}, | |
9929 | { "_time_t","_int",0}, | |
9930 | { "_time_t","_wxWindowID",0}, | |
9931 | { "_time_t","_uint",0}, | |
9932 | { "_time_t","_size_t",0}, | |
1d99702e RD |
9933 | { "_wxSize","_class_wxSize",0}, |
9934 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
9935 | { "_class_wxPrinterDC","_wxPrinterDC",0}, | |
65dd82cb | 9936 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
1d99702e | 9937 | { "_class_wxPaintDC","_wxPaintDC",0}, |
b1462dfa | 9938 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, |
2f90df85 RD |
9939 | { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
9940 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
9941 | { "_wxValidator","_class_wxValidator",0}, | |
1d99702e RD |
9942 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
9943 | { "_class_wxIcon","_wxIcon",0}, | |
9944 | { "_class_wxColour","_wxColour",0}, | |
9945 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
9946 | { "_wxPalette","_class_wxPalette",0}, | |
b1462dfa RD |
9947 | { "_wxCoord","_int",0}, |
9948 | { "_wxCoord","_signed_int",0}, | |
9949 | { "_wxCoord","_unsigned_int",0}, | |
9950 | { "_wxCoord","_wxWindowID",0}, | |
9951 | { "_wxCoord","_uint",0}, | |
9952 | { "_wxCoord","_EBool",0}, | |
9953 | { "_wxCoord","_size_t",0}, | |
c368d904 | 9954 | { "_wxCoord","_time_t",0}, |
b1462dfa RD |
9955 | { "_wxCoord","_wxPrintQuality",0}, |
9956 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, | |
1d99702e | 9957 | { "_wxRegion","_class_wxRegion",0}, |
b1462dfa | 9958 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
2abc0a0f | 9959 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
1d99702e | 9960 | { "_class_wxClientDC","_wxClientDC",0}, |
b1462dfa | 9961 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
1d99702e RD |
9962 | { "_class_wxSize","_wxSize",0}, |
9963 | { "_class_wxBitmap","_wxBitmap",0}, | |
9964 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 9965 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e RD |
9966 | { "_wxMenuBar","_class_wxMenuBar",0}, |
9967 | { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9968 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9969 | { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9970 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9971 | { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9972 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9973 | { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9974 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9975 | { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9976 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9977 | { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
9978 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
9979 | { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
9980 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
9981 | { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
9982 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e RD |
9983 | { "_wxEvtHandler","_class_wxEvtHandler",0}, |
9984 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
1d99702e RD |
9985 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, |
9986 | { "_class_wxPalette","_wxPalette",0}, | |
b1462dfa RD |
9987 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
9988 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, | |
9989 | { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
9990 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
9991 | { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
9992 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
9993 | { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
9994 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
9995 | { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
9996 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
9997 | { "_wxWindow","_class_wxWindow",0}, | |
9998 | {0,0,0}}; | |
9999 | ||
8ab979d7 RD |
10000 | static PyObject *SWIG_globals; |
10001 | #ifdef __cplusplus | |
10002 | extern "C" | |
10003 | #endif | |
1d99702e | 10004 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
10005 | PyObject *m, *d; |
10006 | SWIG_globals = SWIG_newvarlink(); | |
10007 | m = Py_InitModule("windowsc", windowscMethods); | |
10008 | d = PyModule_GetDict(m); | |
1d99702e RD |
10009 | { |
10010 | int i; | |
10011 | for (i = 0; _swig_mapping[i].n1; i++) | |
10012 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10013 | } | |
8ab979d7 | 10014 | } |