]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
9c039d08 | 2 | * FILE : msw/windows.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
1afc06c2 | 6 | * Version 1.1 (Build 810) |
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__) | |
1d99702e | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
1d99702e | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
1d99702e | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
39 | #ifdef __cplusplus | |
40 | extern "C" { | |
41 | #endif | |
42 | #include "Python.h" | |
43 | extern void SWIG_MakePtr(char *, void *, char *); | |
44 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
45 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 46 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
47 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
48 | extern PyObject *SWIG_newvarlink(void); | |
49 | #ifdef __cplusplus | |
50 | } | |
51 | #endif | |
8ab979d7 RD |
52 | #define SWIG_init initwindowsc |
53 | ||
54 | #define SWIG_name "windowsc" | |
55 | ||
56 | #include "helpers.h" | |
8ab979d7 | 57 | #include <wx/menuitem.h> |
8ab979d7 RD |
58 | |
59 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
60 | PyObject* o2; | |
1d99702e RD |
61 | PyObject* o3; |
62 | if (!target) { | |
8ab979d7 | 63 | target = o; |
1d99702e | 64 | } else if (target == Py_None) { |
8ab979d7 RD |
65 | Py_DECREF(Py_None); |
66 | target = o; | |
1d99702e | 67 | } else { |
8ab979d7 RD |
68 | if (!PyList_Check(target)) { |
69 | o2 = target; | |
70 | target = PyList_New(0); | |
71 | PyList_Append(target, o2); | |
72 | Py_XDECREF(o2); | |
73 | } | |
74 | PyList_Append(target,o); | |
75 | Py_XDECREF(o); | |
76 | } | |
77 | return target; | |
78 | } | |
79 | ||
80 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
81 | PyObject* o2; | |
82 | PyObject* o3; | |
83 | ||
1d99702e | 84 | if (!target) { |
8ab979d7 | 85 | target = o; |
1d99702e | 86 | } else if (target == Py_None) { |
8ab979d7 RD |
87 | Py_DECREF(Py_None); |
88 | target = o; | |
1d99702e | 89 | } else { |
8ab979d7 RD |
90 | if (!PyTuple_Check(target)) { |
91 | o2 = target; | |
92 | target = PyTuple_New(1); | |
93 | PyTuple_SetItem(target, 0, o2); | |
94 | } | |
1d99702e RD |
95 | o3 = PyTuple_New(1); |
96 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
97 | |
98 | o2 = target; | |
1d99702e RD |
99 | target = PySequence_Concat(o2, o3); |
100 | Py_DECREF(o2); | |
8ab979d7 RD |
101 | Py_DECREF(o3); |
102 | } | |
103 | return target; | |
104 | } | |
105 | ||
2f90df85 RD |
106 | static char* wxStringErrorMsg = "string type is required for parameter"; |
107 | ||
108 | bool wxValidator_IsSilent() { | |
109 | return wxValidator::IsSilent(); | |
110 | } | |
8ab979d7 | 111 | |
2f90df85 RD |
112 | void wxValidator_SetBellOnError(int doIt = TRUE) { |
113 | wxValidator::SetBellOnError(doIt); | |
114 | } | |
8ab979d7 | 115 | |
2f90df85 RD |
116 | class wxPyValidator : public wxValidator { |
117 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
118 | public: | |
119 | wxPyValidator() { | |
120 | } | |
121 | // wxPyValidator(const wxPyValidator& other); | |
122 | ||
123 | ~wxPyValidator() { | |
124 | } | |
125 | ||
126 | wxObject* wxPyValidator::Clone() const { | |
694759cf RD |
127 | wxPyValidator* ptr = NULL; |
128 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 129 | |
694759cf RD |
130 | bool doSave = wxPyRestoreThread(); |
131 | if (self->m_myInst.findCallback("Clone")) { | |
132 | PyObject* ro; | |
133 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
134 | if (ro) { |
135 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
136 | Py_DECREF(ro); | |
137 | } | |
694759cf RD |
138 | } |
139 | // This is very dangerous!!! But is the only way I could find | |
140 | // to squash a memory leak. Currently it is okay, but if the | |
141 | // validator architecture in wxWindows ever changes, problems | |
142 | // could arise. | |
143 | delete self; | |
2f90df85 | 144 | |
694759cf RD |
145 | wxPySaveThread(doSave); |
146 | return ptr; | |
147 | } | |
2f90df85 RD |
148 | |
149 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); | |
150 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
151 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
152 | ||
153 | PYPRIVATE; | |
154 | // PyObject* m_data; | |
155 | }; | |
156 | ||
157 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
158 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
159 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
160 | ||
161 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 162 | |
8ab979d7 RD |
163 | |
164 | wxWindow* wxWindow_FindFocus() { | |
165 | return wxWindow::FindFocus(); | |
166 | } | |
2f90df85 RD |
167 | |
168 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
169 | wxWindow* win = new wxWindow; | |
170 | win->SetHWND(hWnd); | |
171 | win->SubclassWin(hWnd); | |
172 | return win; | |
173 | } | |
a1df7a95 RD |
174 | |
175 | int wxWindow_NewControlId() { | |
176 | return wxWindow::NewControlId(); | |
177 | } | |
178 | int wxWindow_NextControlId(int id) { | |
179 | return wxWindow::NextControlId(id); | |
180 | } | |
181 | int wxWindow_PrevControlId(int id) { | |
182 | return wxWindow::PrevControlId(id); | |
183 | } | |
2f90df85 RD |
184 | #ifdef __cplusplus |
185 | extern "C" { | |
186 | #endif | |
187 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
188 | PyObject * _resultobj; | |
189 | bool _result; | |
190 | char *_kwnames[] = { NULL }; | |
191 | ||
192 | self = self; | |
193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
194 | return NULL; | |
195 | { | |
196 | wxPy_BEGIN_ALLOW_THREADS; | |
197 | _result = (bool )wxValidator_IsSilent(); | |
198 | ||
199 | wxPy_END_ALLOW_THREADS; | |
200 | } _resultobj = Py_BuildValue("i",_result); | |
201 | return _resultobj; | |
202 | } | |
203 | ||
204 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
205 | PyObject * _resultobj; | |
206 | int _arg0 = (int ) TRUE; | |
207 | char *_kwnames[] = { "doIt", NULL }; | |
208 | ||
209 | self = self; | |
210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
211 | return NULL; | |
212 | { | |
213 | wxPy_BEGIN_ALLOW_THREADS; | |
214 | wxValidator_SetBellOnError(_arg0); | |
215 | ||
216 | wxPy_END_ALLOW_THREADS; | |
217 | } Py_INCREF(Py_None); | |
218 | _resultobj = Py_None; | |
219 | return _resultobj; | |
220 | } | |
221 | ||
222 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
223 | PyObject * _resultobj; | |
224 | wxWindow * _result; | |
225 | char *_kwnames[] = { NULL }; | |
226 | char _ptemp[128]; | |
227 | ||
228 | self = self; | |
229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
230 | return NULL; | |
231 | { | |
232 | wxPy_BEGIN_ALLOW_THREADS; | |
233 | _result = (wxWindow *)wxWindow_FindFocus(); | |
234 | ||
235 | wxPy_END_ALLOW_THREADS; | |
236 | } if (_result) { | |
237 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
238 | _resultobj = Py_BuildValue("s",_ptemp); | |
239 | } else { | |
240 | Py_INCREF(Py_None); | |
241 | _resultobj = Py_None; | |
242 | } | |
243 | return _resultobj; | |
244 | } | |
245 | ||
246 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
247 | PyObject * _resultobj; | |
248 | wxWindow * _result; | |
249 | unsigned long _arg0; | |
250 | char *_kwnames[] = { "hWnd", NULL }; | |
251 | char _ptemp[128]; | |
252 | ||
253 | self = self; | |
254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
255 | return NULL; | |
256 | { | |
257 | wxPy_BEGIN_ALLOW_THREADS; | |
258 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); | |
259 | ||
260 | wxPy_END_ALLOW_THREADS; | |
261 | } if (_result) { | |
262 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
263 | _resultobj = Py_BuildValue("s",_ptemp); | |
264 | } else { | |
265 | Py_INCREF(Py_None); | |
266 | _resultobj = Py_None; | |
267 | } | |
268 | return _resultobj; | |
269 | } | |
270 | ||
a1df7a95 RD |
271 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { |
272 | PyObject * _resultobj; | |
273 | int _result; | |
274 | char *_kwnames[] = { NULL }; | |
275 | ||
276 | self = self; | |
277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
278 | return NULL; | |
279 | { | |
280 | wxPy_BEGIN_ALLOW_THREADS; | |
281 | _result = (int )wxWindow_NewControlId(); | |
282 | ||
283 | wxPy_END_ALLOW_THREADS; | |
284 | } _resultobj = Py_BuildValue("i",_result); | |
285 | return _resultobj; | |
286 | } | |
287 | ||
288 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
289 | PyObject * _resultobj; | |
290 | int _result; | |
291 | int _arg0; | |
292 | char *_kwnames[] = { "id", NULL }; | |
293 | ||
294 | self = self; | |
295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
296 | return NULL; | |
297 | { | |
298 | wxPy_BEGIN_ALLOW_THREADS; | |
299 | _result = (int )wxWindow_NextControlId(_arg0); | |
300 | ||
301 | wxPy_END_ALLOW_THREADS; | |
302 | } _resultobj = Py_BuildValue("i",_result); | |
303 | return _resultobj; | |
304 | } | |
305 | ||
306 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
307 | PyObject * _resultobj; | |
308 | int _result; | |
309 | int _arg0; | |
310 | char *_kwnames[] = { "id", NULL }; | |
311 | ||
312 | self = self; | |
313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
314 | return NULL; | |
315 | { | |
316 | wxPy_BEGIN_ALLOW_THREADS; | |
317 | _result = (int )wxWindow_PrevControlId(_arg0); | |
318 | ||
319 | wxPy_END_ALLOW_THREADS; | |
320 | } _resultobj = Py_BuildValue("i",_result); | |
321 | return _resultobj; | |
322 | } | |
323 | ||
2f90df85 RD |
324 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
325 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
326 | PyObject * _resultobj; | |
327 | bool _result; | |
328 | wxEvtHandler * _arg0; | |
329 | wxEvent * _arg1; | |
330 | PyObject * _argo0 = 0; | |
331 | PyObject * _argo1 = 0; | |
332 | char *_kwnames[] = { "self","event", NULL }; | |
333 | ||
334 | self = self; | |
335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
336 | return NULL; | |
337 | if (_argo0) { | |
338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
341 | return NULL; | |
342 | } | |
343 | } | |
344 | if (_argo1) { | |
345 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
346 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
348 | return NULL; | |
349 | } | |
350 | } | |
351 | { | |
352 | wxPy_BEGIN_ALLOW_THREADS; | |
353 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
354 | ||
355 | wxPy_END_ALLOW_THREADS; | |
356 | } _resultobj = Py_BuildValue("i",_result); | |
357 | return _resultobj; | |
358 | } | |
359 | ||
f6bcfd97 BP |
360 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
361 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
362 | PyObject * _resultobj; | |
363 | wxEvtHandler * _arg0; | |
364 | wxEvent * _arg1; | |
365 | PyObject * _argo0 = 0; | |
366 | PyObject * _argo1 = 0; | |
367 | char *_kwnames[] = { "self","event", NULL }; | |
368 | ||
369 | self = self; | |
370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
371 | return NULL; | |
372 | if (_argo0) { | |
373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
376 | return NULL; | |
377 | } | |
378 | } | |
379 | if (_argo1) { | |
380 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
381 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
383 | return NULL; | |
384 | } | |
385 | } | |
386 | { | |
387 | wxPy_BEGIN_ALLOW_THREADS; | |
388 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); | |
389 | ||
390 | wxPy_END_ALLOW_THREADS; | |
391 | } Py_INCREF(Py_None); | |
392 | _resultobj = Py_None; | |
393 | return _resultobj; | |
394 | } | |
395 | ||
2f90df85 RD |
396 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
397 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
398 | PyObject * _resultobj; | |
399 | bool _result; | |
400 | wxEvtHandler * _arg0; | |
401 | PyObject * _argo0 = 0; | |
402 | char *_kwnames[] = { "self", NULL }; | |
403 | ||
404 | self = self; | |
405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
406 | return NULL; | |
407 | if (_argo0) { | |
408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
411 | return NULL; | |
412 | } | |
413 | } | |
414 | { | |
415 | wxPy_BEGIN_ALLOW_THREADS; | |
416 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
417 | ||
418 | wxPy_END_ALLOW_THREADS; | |
419 | } _resultobj = Py_BuildValue("i",_result); | |
420 | return _resultobj; | |
421 | } | |
422 | ||
423 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
424 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
425 | PyObject * _resultobj; | |
426 | wxEvtHandler * _arg0; | |
427 | bool _arg1; | |
428 | PyObject * _argo0 = 0; | |
429 | int tempbool1; | |
430 | char *_kwnames[] = { "self","enabled", NULL }; | |
431 | ||
432 | self = self; | |
433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
434 | return NULL; | |
435 | if (_argo0) { | |
436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
439 | return NULL; | |
440 | } | |
441 | } | |
442 | _arg1 = (bool ) tempbool1; | |
443 | { | |
444 | wxPy_BEGIN_ALLOW_THREADS; | |
445 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
446 | ||
447 | wxPy_END_ALLOW_THREADS; | |
448 | } Py_INCREF(Py_None); | |
449 | _resultobj = Py_None; | |
450 | return _resultobj; | |
451 | } | |
452 | ||
453 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
454 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
455 | PyObject * _resultobj; | |
456 | wxEvtHandler * _result; | |
457 | wxEvtHandler * _arg0; | |
458 | PyObject * _argo0 = 0; | |
459 | char *_kwnames[] = { "self", NULL }; | |
460 | char _ptemp[128]; | |
461 | ||
462 | self = self; | |
463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
464 | return NULL; | |
465 | if (_argo0) { | |
466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
469 | return NULL; | |
470 | } | |
471 | } | |
472 | { | |
473 | wxPy_BEGIN_ALLOW_THREADS; | |
474 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
475 | ||
476 | wxPy_END_ALLOW_THREADS; | |
477 | } if (_result) { | |
478 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
479 | _resultobj = Py_BuildValue("s",_ptemp); | |
480 | } else { | |
481 | Py_INCREF(Py_None); | |
482 | _resultobj = Py_None; | |
483 | } | |
484 | return _resultobj; | |
485 | } | |
486 | ||
487 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
488 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
489 | PyObject * _resultobj; | |
490 | wxEvtHandler * _result; | |
491 | wxEvtHandler * _arg0; | |
492 | PyObject * _argo0 = 0; | |
493 | char *_kwnames[] = { "self", NULL }; | |
494 | char _ptemp[128]; | |
495 | ||
496 | self = self; | |
497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
498 | return NULL; | |
499 | if (_argo0) { | |
500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
503 | return NULL; | |
504 | } | |
505 | } | |
506 | { | |
507 | wxPy_BEGIN_ALLOW_THREADS; | |
508 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
509 | ||
510 | wxPy_END_ALLOW_THREADS; | |
511 | } if (_result) { | |
512 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
513 | _resultobj = Py_BuildValue("s",_ptemp); | |
514 | } else { | |
515 | Py_INCREF(Py_None); | |
516 | _resultobj = Py_None; | |
517 | } | |
518 | return _resultobj; | |
519 | } | |
520 | ||
521 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
522 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
523 | PyObject * _resultobj; | |
524 | wxEvtHandler * _arg0; | |
525 | wxEvtHandler * _arg1; | |
526 | PyObject * _argo0 = 0; | |
527 | PyObject * _argo1 = 0; | |
528 | char *_kwnames[] = { "self","handler", NULL }; | |
529 | ||
530 | self = self; | |
531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
532 | return NULL; | |
533 | if (_argo0) { | |
534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
537 | return NULL; | |
538 | } | |
539 | } | |
540 | if (_argo1) { | |
541 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
542 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
544 | return NULL; | |
545 | } | |
546 | } | |
547 | { | |
548 | wxPy_BEGIN_ALLOW_THREADS; | |
549 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
550 | ||
551 | wxPy_END_ALLOW_THREADS; | |
552 | } Py_INCREF(Py_None); | |
553 | _resultobj = Py_None; | |
554 | return _resultobj; | |
555 | } | |
556 | ||
557 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
558 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
559 | PyObject * _resultobj; | |
560 | wxEvtHandler * _arg0; | |
561 | wxEvtHandler * _arg1; | |
562 | PyObject * _argo0 = 0; | |
563 | PyObject * _argo1 = 0; | |
564 | char *_kwnames[] = { "self","handler", NULL }; | |
565 | ||
566 | self = self; | |
567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
568 | return NULL; | |
569 | if (_argo0) { | |
570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
573 | return NULL; | |
574 | } | |
575 | } | |
576 | if (_argo1) { | |
577 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
578 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
580 | return NULL; | |
581 | } | |
582 | } | |
583 | { | |
584 | wxPy_BEGIN_ALLOW_THREADS; | |
585 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
586 | ||
587 | wxPy_END_ALLOW_THREADS; | |
588 | } Py_INCREF(Py_None); | |
589 | _resultobj = Py_None; | |
590 | return _resultobj; | |
591 | } | |
592 | ||
593 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
594 | if (PyCallable_Check(func)) { | |
595 | self->Connect(id, lastId, eventType, | |
596 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
597 | new wxPyCallback(func)); | |
598 | } | |
599 | } | |
600 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
601 | PyObject * _resultobj; | |
602 | wxEvtHandler * _arg0; | |
603 | int _arg1; | |
604 | int _arg2; | |
605 | int _arg3; | |
606 | PyObject * _arg4; | |
607 | PyObject * _argo0 = 0; | |
608 | PyObject * _obj4 = 0; | |
609 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
610 | ||
611 | self = self; | |
612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
613 | return NULL; | |
614 | if (_argo0) { | |
615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
618 | return NULL; | |
619 | } | |
620 | } | |
621 | { | |
622 | _arg4 = _obj4; | |
623 | } | |
624 | { | |
625 | wxPy_BEGIN_ALLOW_THREADS; | |
626 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
627 | ||
628 | wxPy_END_ALLOW_THREADS; | |
629 | } Py_INCREF(Py_None); | |
630 | _resultobj = Py_None; | |
631 | return _resultobj; | |
632 | } | |
633 | ||
6999b0d8 RD |
634 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
635 | return self->Disconnect(id, lastId, eventType, | |
636 | (wxObjectEventFunction) | |
637 | &wxPyCallback::EventThunker); | |
638 | } | |
639 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
640 | PyObject * _resultobj; | |
641 | bool _result; | |
642 | wxEvtHandler * _arg0; | |
643 | int _arg1; | |
644 | int _arg2 = (int ) -1; | |
645 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
646 | PyObject * _argo0 = 0; | |
647 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
648 | ||
649 | self = self; | |
650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
651 | return NULL; | |
652 | if (_argo0) { | |
653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
656 | return NULL; | |
657 | } | |
658 | } | |
659 | { | |
660 | wxPy_BEGIN_ALLOW_THREADS; | |
661 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
662 | ||
663 | wxPy_END_ALLOW_THREADS; | |
664 | } _resultobj = Py_BuildValue("i",_result); | |
665 | return _resultobj; | |
666 | } | |
667 | ||
2f90df85 RD |
668 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
669 | wxValidator *src; | |
670 | wxEvtHandler *dest; | |
671 | src = (wxValidator *) ptr; | |
672 | dest = (wxEvtHandler *) src; | |
673 | return (void *) dest; | |
674 | } | |
675 | ||
676 | #define new_wxValidator() (new wxValidator()) | |
677 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
678 | PyObject * _resultobj; | |
679 | wxValidator * _result; | |
680 | char *_kwnames[] = { NULL }; | |
681 | char _ptemp[128]; | |
682 | ||
683 | self = self; | |
684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
685 | return NULL; | |
686 | { | |
687 | wxPy_BEGIN_ALLOW_THREADS; | |
688 | _result = (wxValidator *)new_wxValidator(); | |
689 | ||
690 | wxPy_END_ALLOW_THREADS; | |
691 | } if (_result) { | |
692 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
693 | _resultobj = Py_BuildValue("s",_ptemp); | |
694 | } else { | |
695 | Py_INCREF(Py_None); | |
696 | _resultobj = Py_None; | |
697 | } | |
698 | return _resultobj; | |
af309447 | 699 | } |
2f90df85 RD |
700 | |
701 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
702 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 703 | PyObject * _resultobj; |
2f90df85 RD |
704 | wxValidator * _result; |
705 | wxValidator * _arg0; | |
706 | PyObject * _argo0 = 0; | |
707 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
708 | char _ptemp[128]; |
709 | ||
710 | self = self; | |
2f90df85 RD |
711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
712 | return NULL; | |
713 | if (_argo0) { | |
714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 717 | return NULL; |
2f90df85 RD |
718 | } |
719 | } | |
cf694132 RD |
720 | { |
721 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 722 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 RD |
723 | |
724 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 725 | } if (_result) { |
2f90df85 | 726 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); |
1d99702e RD |
727 | _resultobj = Py_BuildValue("s",_ptemp); |
728 | } else { | |
729 | Py_INCREF(Py_None); | |
730 | _resultobj = Py_None; | |
731 | } | |
8ab979d7 RD |
732 | return _resultobj; |
733 | } | |
734 | ||
2f90df85 RD |
735 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
736 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
737 | PyObject * _resultobj; |
738 | wxWindow * _result; | |
2f90df85 RD |
739 | wxValidator * _arg0; |
740 | PyObject * _argo0 = 0; | |
741 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
742 | char _ptemp[128]; |
743 | ||
744 | self = self; | |
2f90df85 RD |
745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
746 | return NULL; | |
747 | if (_argo0) { | |
748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 751 | return NULL; |
2f90df85 RD |
752 | } |
753 | } | |
cf694132 RD |
754 | { |
755 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 756 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 RD |
757 | |
758 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
759 | } if (_result) { |
760 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
761 | _resultobj = Py_BuildValue("s",_ptemp); | |
762 | } else { | |
763 | Py_INCREF(Py_None); | |
764 | _resultobj = Py_None; | |
765 | } | |
af309447 RD |
766 | return _resultobj; |
767 | } | |
768 | ||
2f90df85 RD |
769 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
770 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 771 | PyObject * _resultobj; |
2f90df85 RD |
772 | wxValidator * _arg0; |
773 | wxWindow * _arg1; | |
1d99702e RD |
774 | PyObject * _argo0 = 0; |
775 | PyObject * _argo1 = 0; | |
2f90df85 | 776 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
777 | |
778 | self = self; | |
2f90df85 | 779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 780 | return NULL; |
1d99702e RD |
781 | if (_argo0) { |
782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
785 | return NULL; |
786 | } | |
787 | } | |
1d99702e RD |
788 | if (_argo1) { |
789 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
790 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
792 | return NULL; |
793 | } | |
794 | } | |
795 | { | |
796 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 797 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 RD |
798 | |
799 | wxPy_END_ALLOW_THREADS; | |
2f90df85 RD |
800 | } Py_INCREF(Py_None); |
801 | _resultobj = Py_None; | |
cf694132 RD |
802 | return _resultobj; |
803 | } | |
804 | ||
2f90df85 RD |
805 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
806 | wxPyValidator *src; | |
807 | wxValidator *dest; | |
808 | src = (wxPyValidator *) ptr; | |
809 | dest = (wxValidator *) src; | |
810 | return (void *) dest; | |
811 | } | |
812 | ||
813 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
814 | wxPyValidator *src; | |
815 | wxEvtHandler *dest; | |
816 | src = (wxPyValidator *) ptr; | |
817 | dest = (wxEvtHandler *) src; | |
818 | return (void *) dest; | |
819 | } | |
820 | ||
821 | #define new_wxPyValidator() (new wxPyValidator()) | |
822 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
823 | PyObject * _resultobj; | |
824 | wxPyValidator * _result; | |
825 | char *_kwnames[] = { NULL }; | |
826 | char _ptemp[128]; | |
827 | ||
828 | self = self; | |
829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
830 | return NULL; | |
831 | { | |
832 | wxPy_BEGIN_ALLOW_THREADS; | |
833 | _result = (wxPyValidator *)new_wxPyValidator(); | |
834 | ||
835 | wxPy_END_ALLOW_THREADS; | |
836 | } if (_result) { | |
837 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
838 | _resultobj = Py_BuildValue("s",_ptemp); | |
839 | } else { | |
840 | Py_INCREF(Py_None); | |
841 | _resultobj = Py_None; | |
842 | } | |
843 | return _resultobj; | |
844 | } | |
845 | ||
846 | static void wxPyValidator_Destroy(wxPyValidator *self) { delete self; } | |
847 | static PyObject *_wrap_wxPyValidator_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
848 | PyObject * _resultobj; | |
849 | wxPyValidator * _arg0; | |
850 | PyObject * _argo0 = 0; | |
851 | char *_kwnames[] = { "self", NULL }; | |
852 | ||
853 | self = self; | |
854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyValidator_Destroy",_kwnames,&_argo0)) | |
855 | return NULL; | |
856 | if (_argo0) { | |
857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator_Destroy. Expected _wxPyValidator_p."); | |
860 | return NULL; | |
8ab979d7 | 861 | } |
2f90df85 RD |
862 | } |
863 | { | |
864 | wxPy_BEGIN_ALLOW_THREADS; | |
865 | wxPyValidator_Destroy(_arg0); | |
866 | ||
867 | wxPy_END_ALLOW_THREADS; | |
868 | } Py_INCREF(Py_None); | |
869 | _resultobj = Py_None; | |
870 | return _resultobj; | |
871 | } | |
872 | ||
f6bcfd97 | 873 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2)) |
2f90df85 | 874 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 875 | PyObject * _resultobj; |
2f90df85 RD |
876 | wxPyValidator * _arg0; |
877 | PyObject * _arg1; | |
f6bcfd97 BP |
878 | PyObject * _arg2; |
879 | int _arg3 = (int ) TRUE; | |
1d99702e | 880 | PyObject * _argo0 = 0; |
2f90df85 | 881 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
882 | PyObject * _obj2 = 0; |
883 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
884 | |
885 | self = self; | |
f6bcfd97 | 886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 887 | return NULL; |
1d99702e RD |
888 | if (_argo0) { |
889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
8ab979d7 RD |
892 | return NULL; |
893 | } | |
894 | } | |
895 | { | |
2f90df85 | 896 | _arg1 = _obj1; |
8ab979d7 | 897 | } |
f6bcfd97 BP |
898 | { |
899 | _arg2 = _obj2; | |
900 | } | |
cf694132 RD |
901 | { |
902 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 903 | wxPyValidator__setSelf(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
904 | |
905 | wxPy_END_ALLOW_THREADS; | |
906 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
907 | _resultobj = Py_None; |
908 | return _resultobj; | |
909 | } | |
910 | ||
911 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
912 | wxWindow *src; | |
913 | wxEvtHandler *dest; | |
914 | src = (wxWindow *) ptr; | |
915 | dest = (wxEvtHandler *) src; | |
916 | return (void *) dest; | |
917 | } | |
918 | ||
919 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 920 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
921 | PyObject * _resultobj; |
922 | wxWindow * _result; | |
923 | wxWindow * _arg0; | |
924 | wxWindowID _arg1; | |
1d99702e RD |
925 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; |
926 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
927 | long _arg4 = (long ) 0; | |
928 | char * _arg5 = (char *) "panel"; | |
929 | PyObject * _argo0 = 0; | |
2f90df85 RD |
930 | wxPoint temp; |
931 | PyObject * _obj2 = 0; | |
932 | wxSize temp0; | |
933 | PyObject * _obj3 = 0; | |
efc5f224 | 934 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
935 | char _ptemp[128]; |
936 | ||
937 | self = self; | |
2f90df85 | 938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 939 | return NULL; |
1d99702e RD |
940 | if (_argo0) { |
941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
944 | return NULL; | |
945 | } | |
946 | } | |
2f90df85 RD |
947 | if (_obj2) |
948 | { | |
949 | _arg2 = &temp; | |
950 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 951 | return NULL; |
2f90df85 RD |
952 | } |
953 | if (_obj3) | |
954 | { | |
955 | _arg3 = &temp0; | |
956 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 957 | return NULL; |
2f90df85 | 958 | } |
cf694132 RD |
959 | { |
960 | wxPy_BEGIN_ALLOW_THREADS; | |
961 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
962 | ||
963 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
964 | } if (_result) { |
965 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
966 | _resultobj = Py_BuildValue("s",_ptemp); | |
967 | } else { | |
968 | Py_INCREF(Py_None); | |
969 | _resultobj = Py_None; | |
970 | } | |
8ab979d7 RD |
971 | return _resultobj; |
972 | } | |
973 | ||
974 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
efc5f224 | 975 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
976 | PyObject * _resultobj; |
977 | wxWindow * _arg0; | |
1d99702e | 978 | PyObject * _argo0 = 0; |
efc5f224 | 979 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
980 | |
981 | self = self; | |
efc5f224 | 982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
8ab979d7 | 983 | return NULL; |
1d99702e RD |
984 | if (_argo0) { |
985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
988 | return NULL; | |
989 | } | |
990 | } | |
cf694132 RD |
991 | { |
992 | wxPy_BEGIN_ALLOW_THREADS; | |
993 | wxWindow_CaptureMouse(_arg0); | |
994 | ||
995 | wxPy_END_ALLOW_THREADS; | |
996 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
997 | _resultobj = Py_None; |
998 | return _resultobj; | |
999 | } | |
1000 | ||
1001 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 1002 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1003 | PyObject * _resultobj; |
1004 | wxWindow * _arg0; | |
1d99702e RD |
1005 | int _arg1 = (int ) wxBOTH; |
1006 | PyObject * _argo0 = 0; | |
efc5f224 | 1007 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1008 | |
1009 | self = self; | |
efc5f224 | 1010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1011 | return NULL; |
1d99702e RD |
1012 | if (_argo0) { |
1013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1016 | return NULL; | |
1017 | } | |
1018 | } | |
cf694132 RD |
1019 | { |
1020 | wxPy_BEGIN_ALLOW_THREADS; | |
1021 | wxWindow_Center(_arg0,_arg1); | |
1022 | ||
1023 | wxPy_END_ALLOW_THREADS; | |
1024 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1025 | _resultobj = Py_None; |
1026 | return _resultobj; | |
1027 | } | |
1028 | ||
1029 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1030 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1031 | PyObject * _resultobj; |
1032 | wxWindow * _arg0; | |
1d99702e RD |
1033 | int _arg1 = (int ) wxBOTH; |
1034 | PyObject * _argo0 = 0; | |
efc5f224 | 1035 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1036 | |
1037 | self = self; | |
efc5f224 | 1038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1039 | return NULL; |
1d99702e RD |
1040 | if (_argo0) { |
1041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1044 | return NULL; | |
1045 | } | |
1046 | } | |
cf694132 RD |
1047 | { |
1048 | wxPy_BEGIN_ALLOW_THREADS; | |
1049 | wxWindow_Centre(_arg0,_arg1); | |
1050 | ||
1051 | wxPy_END_ALLOW_THREADS; | |
1052 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1053 | _resultobj = Py_None; |
1054 | return _resultobj; | |
1055 | } | |
1056 | ||
bb0054cd | 1057 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1058 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1059 | PyObject * _resultobj; |
1060 | wxWindow * _arg0; | |
1d99702e RD |
1061 | int _arg1 = (int ) wxBOTH; |
1062 | PyObject * _argo0 = 0; | |
efc5f224 | 1063 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1064 | |
1065 | self = self; | |
efc5f224 | 1066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1067 | return NULL; |
1d99702e RD |
1068 | if (_argo0) { |
1069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1072 | return NULL; | |
1073 | } | |
1074 | } | |
1075 | { | |
1076 | wxPy_BEGIN_ALLOW_THREADS; | |
1077 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1078 | ||
1079 | wxPy_END_ALLOW_THREADS; | |
1080 | } Py_INCREF(Py_None); | |
1081 | _resultobj = Py_None; | |
1082 | return _resultobj; | |
1083 | } | |
1084 | ||
1085 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1086 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1087 | PyObject * _resultobj; |
1088 | wxWindow * _arg0; | |
1d99702e RD |
1089 | int _arg1 = (int ) wxBOTH; |
1090 | PyObject * _argo0 = 0; | |
efc5f224 | 1091 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1092 | |
1093 | self = self; | |
efc5f224 | 1094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1095 | return NULL; |
1d99702e RD |
1096 | if (_argo0) { |
1097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1100 | return NULL; | |
1101 | } | |
1102 | } | |
1103 | { | |
1104 | wxPy_BEGIN_ALLOW_THREADS; | |
1105 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1106 | ||
1107 | wxPy_END_ALLOW_THREADS; | |
1108 | } Py_INCREF(Py_None); | |
1109 | _resultobj = Py_None; | |
1110 | return _resultobj; | |
1111 | } | |
1112 | ||
3ca6a5f0 BP |
1113 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1114 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1115 | PyObject * _resultobj; | |
1116 | wxWindow * _arg0; | |
1117 | int _arg1 = (int ) wxBOTH; | |
1118 | PyObject * _argo0 = 0; | |
1119 | char *_kwnames[] = { "self","direction", NULL }; | |
1120 | ||
1121 | self = self; | |
1122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1123 | return NULL; | |
1124 | if (_argo0) { | |
1125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1128 | return NULL; | |
1129 | } | |
1130 | } | |
1131 | { | |
1132 | wxPy_BEGIN_ALLOW_THREADS; | |
1133 | wxWindow_CentreOnScreen(_arg0,_arg1); | |
1134 | ||
1135 | wxPy_END_ALLOW_THREADS; | |
1136 | } Py_INCREF(Py_None); | |
1137 | _resultobj = Py_None; | |
1138 | return _resultobj; | |
1139 | } | |
1140 | ||
1141 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1142 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1143 | PyObject * _resultobj; | |
1144 | wxWindow * _arg0; | |
1145 | int _arg1 = (int ) wxBOTH; | |
1146 | PyObject * _argo0 = 0; | |
1147 | char *_kwnames[] = { "self","direction", NULL }; | |
1148 | ||
1149 | self = self; | |
1150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1151 | return NULL; | |
1152 | if (_argo0) { | |
1153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1156 | return NULL; | |
1157 | } | |
1158 | } | |
1159 | { | |
1160 | wxPy_BEGIN_ALLOW_THREADS; | |
1161 | wxWindow_CenterOnScreen(_arg0,_arg1); | |
1162 | ||
1163 | wxPy_END_ALLOW_THREADS; | |
1164 | } Py_INCREF(Py_None); | |
1165 | _resultobj = Py_None; | |
1166 | return _resultobj; | |
1167 | } | |
1168 | ||
af309447 | 1169 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1170 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1171 | PyObject * _resultobj; |
1172 | wxWindow * _arg0; | |
1173 | int * _arg1; | |
1174 | int * _arg2; | |
1d99702e | 1175 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1176 | int temp; |
1177 | PyObject * _obj1 = 0; | |
1178 | int temp0; | |
1179 | PyObject * _obj2 = 0; | |
efc5f224 | 1180 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1181 | |
1182 | self = self; | |
efc5f224 | 1183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1184 | return NULL; |
1d99702e RD |
1185 | if (_argo0) { |
1186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1189 | return NULL; |
1190 | } | |
1191 | } | |
1192 | { | |
1193 | temp = (int) PyInt_AsLong(_obj1); | |
1194 | _arg1 = &temp; | |
1195 | } | |
1196 | { | |
1197 | temp0 = (int) PyInt_AsLong(_obj2); | |
1198 | _arg2 = &temp0; | |
1199 | } | |
cf694132 RD |
1200 | { |
1201 | wxPy_BEGIN_ALLOW_THREADS; | |
1202 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1203 | ||
1204 | wxPy_END_ALLOW_THREADS; | |
1205 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1206 | _resultobj = Py_None; |
1207 | { | |
1208 | PyObject *o; | |
1209 | o = PyInt_FromLong((long) (*_arg1)); | |
1210 | _resultobj = t_output_helper(_resultobj, o); | |
1211 | } | |
1212 | { | |
1213 | PyObject *o; | |
1214 | o = PyInt_FromLong((long) (*_arg2)); | |
1215 | _resultobj = t_output_helper(_resultobj, o); | |
1216 | } | |
1217 | return _resultobj; | |
1218 | } | |
1219 | ||
af309447 | 1220 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1221 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1222 | PyObject * _resultobj; |
1223 | wxPoint * _result; | |
1224 | wxWindow * _arg0; | |
1225 | wxPoint * _arg1; | |
1d99702e | 1226 | PyObject * _argo0 = 0; |
2f90df85 RD |
1227 | wxPoint temp; |
1228 | PyObject * _obj1 = 0; | |
efc5f224 | 1229 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1230 | char _ptemp[128]; |
1231 | ||
1232 | self = self; | |
2f90df85 | 1233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1234 | return NULL; |
1d99702e RD |
1235 | if (_argo0) { |
1236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1239 | return NULL; | |
1240 | } | |
1241 | } | |
2f90df85 RD |
1242 | { |
1243 | _arg1 = &temp; | |
1244 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1245 | return NULL; |
2f90df85 | 1246 | } |
cf694132 RD |
1247 | { |
1248 | wxPy_BEGIN_ALLOW_THREADS; | |
1249 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1250 | ||
1251 | wxPy_END_ALLOW_THREADS; | |
1252 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
af309447 RD |
1253 | _resultobj = Py_BuildValue("s",_ptemp); |
1254 | return _resultobj; | |
1255 | } | |
1256 | ||
8ab979d7 | 1257 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1258 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1259 | PyObject * _resultobj; |
1260 | bool _result; | |
1261 | wxWindow * _arg0; | |
1d99702e RD |
1262 | int _arg1 = (int ) FALSE; |
1263 | PyObject * _argo0 = 0; | |
efc5f224 | 1264 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1265 | |
1266 | self = self; | |
efc5f224 | 1267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1268 | return NULL; |
1d99702e RD |
1269 | if (_argo0) { |
1270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1273 | return NULL; | |
1274 | } | |
1275 | } | |
cf694132 RD |
1276 | { |
1277 | wxPy_BEGIN_ALLOW_THREADS; | |
1278 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1279 | ||
1280 | wxPy_END_ALLOW_THREADS; | |
1281 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1282 | return _resultobj; |
1283 | } | |
1284 | ||
1285 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1286 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1287 | PyObject * _resultobj; |
1288 | bool _result; | |
1289 | wxWindow * _arg0; | |
1d99702e | 1290 | PyObject * _argo0 = 0; |
efc5f224 | 1291 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1292 | |
1293 | self = self; | |
efc5f224 | 1294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1295 | return NULL; |
1d99702e RD |
1296 | if (_argo0) { |
1297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1300 | return NULL; | |
1301 | } | |
1302 | } | |
cf694132 RD |
1303 | { |
1304 | wxPy_BEGIN_ALLOW_THREADS; | |
1305 | _result = (bool )wxWindow_Destroy(_arg0); | |
1306 | ||
1307 | wxPy_END_ALLOW_THREADS; | |
1308 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1309 | return _resultobj; |
1310 | } | |
1311 | ||
1312 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1313 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1314 | PyObject * _resultobj; |
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_DestroyChildren",_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_DestroyChildren. Expected _wxWindow_p."); |
1326 | return NULL; | |
1327 | } | |
1328 | } | |
cf694132 RD |
1329 | { |
1330 | wxPy_BEGIN_ALLOW_THREADS; | |
1331 | wxWindow_DestroyChildren(_arg0); | |
1332 | ||
1333 | wxPy_END_ALLOW_THREADS; | |
1334 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1335 | _resultobj = Py_None; |
1336 | return _resultobj; | |
1337 | } | |
1338 | ||
1339 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) | |
efc5f224 | 1340 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1341 | PyObject * _resultobj; |
1342 | wxWindow * _arg0; | |
1343 | bool _arg1; | |
1d99702e | 1344 | PyObject * _argo0 = 0; |
8ab979d7 | 1345 | int tempbool1; |
efc5f224 | 1346 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1347 | |
1348 | self = self; | |
efc5f224 | 1349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1350 | return NULL; |
1d99702e RD |
1351 | if (_argo0) { |
1352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1355 | return NULL; | |
1356 | } | |
1357 | } | |
1358 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1359 | { |
1360 | wxPy_BEGIN_ALLOW_THREADS; | |
1361 | wxWindow_DragAcceptFiles(_arg0,_arg1); | |
1362 | ||
1363 | wxPy_END_ALLOW_THREADS; | |
1364 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1365 | _resultobj = Py_None; |
1366 | return _resultobj; | |
1367 | } | |
1368 | ||
1369 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1370 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1371 | PyObject * _resultobj; |
1372 | wxWindow * _arg0; | |
1373 | bool _arg1; | |
1d99702e | 1374 | PyObject * _argo0 = 0; |
8ab979d7 | 1375 | int tempbool1; |
efc5f224 | 1376 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1377 | |
1378 | self = self; | |
efc5f224 | 1379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1380 | return NULL; |
1d99702e RD |
1381 | if (_argo0) { |
1382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1385 | return NULL; | |
1386 | } | |
1387 | } | |
1388 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1389 | { |
1390 | wxPy_BEGIN_ALLOW_THREADS; | |
1391 | wxWindow_Enable(_arg0,_arg1); | |
1392 | ||
1393 | wxPy_END_ALLOW_THREADS; | |
1394 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1395 | _resultobj = Py_None; |
1396 | return _resultobj; | |
1397 | } | |
1398 | ||
af309447 | 1399 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1400 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1401 | PyObject * _resultobj; |
1402 | wxWindow * _result; | |
1403 | wxWindow * _arg0; | |
1404 | long _arg1; | |
1d99702e | 1405 | PyObject * _argo0 = 0; |
efc5f224 | 1406 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1407 | char _ptemp[128]; |
1408 | ||
1409 | self = self; | |
efc5f224 | 1410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1411 | return NULL; |
1d99702e RD |
1412 | if (_argo0) { |
1413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1416 | return NULL; |
1417 | } | |
1418 | } | |
cf694132 RD |
1419 | { |
1420 | wxPy_BEGIN_ALLOW_THREADS; | |
1421 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1422 | ||
1423 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1424 | } if (_result) { |
1425 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1426 | _resultobj = Py_BuildValue("s",_ptemp); | |
1427 | } else { | |
1428 | Py_INCREF(Py_None); | |
1429 | _resultobj = Py_None; | |
1430 | } | |
8ab979d7 RD |
1431 | return _resultobj; |
1432 | } | |
1433 | ||
1434 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1435 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1436 | PyObject * _resultobj; |
1437 | wxWindow * _result; | |
1438 | wxWindow * _arg0; | |
1439 | wxString * _arg1; | |
1d99702e | 1440 | PyObject * _argo0 = 0; |
8ab979d7 | 1441 | PyObject * _obj1 = 0; |
efc5f224 | 1442 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1443 | char _ptemp[128]; |
1444 | ||
1445 | self = self; | |
efc5f224 | 1446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1447 | return NULL; |
1d99702e RD |
1448 | if (_argo0) { |
1449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1452 | return NULL; | |
1453 | } | |
1454 | } | |
1455 | { | |
1456 | if (!PyString_Check(_obj1)) { | |
1457 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1458 | return NULL; | |
1459 | } | |
cf694132 | 1460 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 1461 | } |
cf694132 RD |
1462 | { |
1463 | wxPy_BEGIN_ALLOW_THREADS; | |
1464 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1465 | ||
1466 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1467 | } if (_result) { |
1468 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1469 | _resultobj = Py_BuildValue("s",_ptemp); | |
1470 | } else { | |
1471 | Py_INCREF(Py_None); | |
1472 | _resultobj = Py_None; | |
1473 | } | |
8ab979d7 RD |
1474 | { |
1475 | if (_obj1) | |
1476 | delete _arg1; | |
1477 | } | |
1478 | return _resultobj; | |
1479 | } | |
1480 | ||
1481 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1482 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1483 | PyObject * _resultobj; |
1484 | wxWindow * _arg0; | |
1d99702e | 1485 | PyObject * _argo0 = 0; |
efc5f224 | 1486 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1487 | |
1488 | self = self; | |
efc5f224 | 1489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1490 | return NULL; |
1d99702e RD |
1491 | if (_argo0) { |
1492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1495 | return NULL; | |
1496 | } | |
1497 | } | |
cf694132 RD |
1498 | { |
1499 | wxPy_BEGIN_ALLOW_THREADS; | |
1500 | wxWindow_Fit(_arg0); | |
1501 | ||
1502 | wxPy_END_ALLOW_THREADS; | |
1503 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1504 | _resultobj = Py_None; |
1505 | return _resultobj; | |
1506 | } | |
1507 | ||
1508 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1509 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1510 | PyObject * _resultobj; |
1511 | wxColour * _result; | |
1512 | wxWindow * _arg0; | |
1d99702e | 1513 | PyObject * _argo0 = 0; |
efc5f224 | 1514 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1515 | char _ptemp[128]; |
1516 | ||
1517 | self = self; | |
efc5f224 | 1518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1519 | return NULL; |
1d99702e RD |
1520 | if (_argo0) { |
1521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1524 | return NULL; | |
1525 | } | |
1526 | } | |
cf694132 RD |
1527 | { |
1528 | wxPy_BEGIN_ALLOW_THREADS; | |
1529 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1530 | ||
1531 | wxPy_END_ALLOW_THREADS; | |
1532 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
1533 | _resultobj = Py_BuildValue("s",_ptemp); |
1534 | return _resultobj; | |
1535 | } | |
1536 | ||
d426c97e RD |
1537 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1538 | wxWindowList& list = self->GetChildren(); | |
1539 | return wxPy_ConvertList(&list, "wxWindow"); | |
1540 | } | |
1541 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1542 | PyObject * _resultobj; | |
1543 | PyObject * _result; | |
1544 | wxWindow * _arg0; | |
1545 | PyObject * _argo0 = 0; | |
1546 | char *_kwnames[] = { "self", NULL }; | |
1547 | ||
1548 | self = self; | |
1549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1550 | return NULL; | |
1551 | if (_argo0) { | |
1552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1555 | return NULL; | |
1556 | } | |
1557 | } | |
1558 | { | |
1559 | wxPy_BEGIN_ALLOW_THREADS; | |
1560 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1561 | ||
1562 | wxPy_END_ALLOW_THREADS; | |
1563 | }{ | |
1564 | _resultobj = _result; | |
1565 | } | |
1566 | return _resultobj; | |
1567 | } | |
1568 | ||
8ab979d7 | 1569 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1570 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1571 | PyObject * _resultobj; |
1572 | int _result; | |
1573 | wxWindow * _arg0; | |
1d99702e | 1574 | PyObject * _argo0 = 0; |
efc5f224 | 1575 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1576 | |
1577 | self = self; | |
efc5f224 | 1578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1579 | return NULL; |
1d99702e RD |
1580 | if (_argo0) { |
1581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1584 | return NULL; | |
1585 | } | |
1586 | } | |
cf694132 RD |
1587 | { |
1588 | wxPy_BEGIN_ALLOW_THREADS; | |
1589 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1590 | ||
1591 | wxPy_END_ALLOW_THREADS; | |
1592 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1593 | return _resultobj; |
1594 | } | |
1595 | ||
1596 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1597 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1598 | PyObject * _resultobj; |
1599 | int _result; | |
1600 | wxWindow * _arg0; | |
1d99702e | 1601 | PyObject * _argo0 = 0; |
efc5f224 | 1602 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1603 | |
1604 | self = self; | |
efc5f224 | 1605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1606 | return NULL; |
1d99702e RD |
1607 | if (_argo0) { |
1608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1611 | return NULL; | |
1612 | } | |
1613 | } | |
cf694132 RD |
1614 | { |
1615 | wxPy_BEGIN_ALLOW_THREADS; | |
1616 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1617 | ||
1618 | wxPy_END_ALLOW_THREADS; | |
1619 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1620 | return _resultobj; |
1621 | } | |
1622 | ||
b8b8dda7 | 1623 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1624 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1625 | PyObject * _resultobj; |
1626 | wxWindow * _arg0; | |
1627 | int * _arg1; | |
1628 | int temp; | |
1629 | int * _arg2; | |
1630 | int temp0; | |
1d99702e | 1631 | PyObject * _argo0 = 0; |
efc5f224 | 1632 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1633 | |
1634 | self = self; | |
1635 | { | |
1636 | _arg1 = &temp; | |
1637 | } | |
1638 | { | |
1639 | _arg2 = &temp0; | |
1640 | } | |
efc5f224 | 1641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1642 | return NULL; |
1d99702e RD |
1643 | if (_argo0) { |
1644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1647 | return NULL; |
1648 | } | |
1649 | } | |
cf694132 RD |
1650 | { |
1651 | wxPy_BEGIN_ALLOW_THREADS; | |
1652 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1653 | ||
1654 | wxPy_END_ALLOW_THREADS; | |
1655 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1656 | _resultobj = Py_None; |
1657 | { | |
1658 | PyObject *o; | |
1659 | o = PyInt_FromLong((long) (*_arg1)); | |
1660 | _resultobj = t_output_helper(_resultobj, o); | |
1661 | } | |
1662 | { | |
1663 | PyObject *o; | |
1664 | o = PyInt_FromLong((long) (*_arg2)); | |
1665 | _resultobj = t_output_helper(_resultobj, o); | |
1666 | } | |
1667 | return _resultobj; | |
1668 | } | |
1669 | ||
b8b8dda7 | 1670 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1671 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1672 | PyObject * _resultobj; |
1673 | wxSize * _result; | |
1674 | wxWindow * _arg0; | |
1d99702e | 1675 | PyObject * _argo0 = 0; |
efc5f224 | 1676 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1677 | char _ptemp[128]; |
1678 | ||
1679 | self = self; | |
efc5f224 | 1680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1681 | return NULL; |
1d99702e RD |
1682 | if (_argo0) { |
1683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1686 | return NULL; | |
1687 | } | |
1688 | } | |
cf694132 RD |
1689 | { |
1690 | wxPy_BEGIN_ALLOW_THREADS; | |
1691 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1692 | ||
1693 | wxPy_END_ALLOW_THREADS; | |
1694 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
1695 | _resultobj = Py_BuildValue("s",_ptemp); |
1696 | return _resultobj; | |
1697 | } | |
1698 | ||
8ab979d7 | 1699 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1700 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1701 | PyObject * _resultobj; |
1702 | wxLayoutConstraints * _result; | |
1703 | wxWindow * _arg0; | |
1d99702e | 1704 | PyObject * _argo0 = 0; |
efc5f224 | 1705 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1706 | char _ptemp[128]; |
1707 | ||
1708 | self = self; | |
efc5f224 | 1709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1710 | return NULL; |
1d99702e RD |
1711 | if (_argo0) { |
1712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1715 | return NULL; | |
1716 | } | |
1717 | } | |
cf694132 RD |
1718 | { |
1719 | wxPy_BEGIN_ALLOW_THREADS; | |
1720 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1721 | ||
1722 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1723 | } if (_result) { |
1724 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1725 | _resultobj = Py_BuildValue("s",_ptemp); | |
1726 | } else { | |
1727 | Py_INCREF(Py_None); | |
1728 | _resultobj = Py_None; | |
1729 | } | |
8ab979d7 RD |
1730 | return _resultobj; |
1731 | } | |
1732 | ||
1afc06c2 RD |
1733 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1734 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1735 | PyObject * _resultobj; | |
1736 | wxEvtHandler * _result; | |
1737 | wxWindow * _arg0; | |
1738 | PyObject * _argo0 = 0; | |
1739 | char *_kwnames[] = { "self", NULL }; | |
1740 | char _ptemp[128]; | |
1741 | ||
1742 | self = self; | |
1743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1744 | return NULL; | |
1745 | if (_argo0) { | |
1746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1749 | return NULL; | |
1750 | } | |
1751 | } | |
1752 | { | |
1753 | wxPy_BEGIN_ALLOW_THREADS; | |
1754 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1755 | ||
1756 | wxPy_END_ALLOW_THREADS; | |
1757 | } if (_result) { | |
1758 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
1759 | _resultobj = Py_BuildValue("s",_ptemp); | |
1760 | } else { | |
1761 | Py_INCREF(Py_None); | |
1762 | _resultobj = Py_None; | |
1763 | } | |
1764 | return _resultobj; | |
1765 | } | |
1766 | ||
8ab979d7 | 1767 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1768 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1769 | PyObject * _resultobj; |
1770 | wxFont * _result; | |
1771 | wxWindow * _arg0; | |
1d99702e | 1772 | PyObject * _argo0 = 0; |
efc5f224 | 1773 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1774 | char _ptemp[128]; |
1775 | ||
1776 | self = self; | |
efc5f224 | 1777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1778 | return NULL; |
1d99702e RD |
1779 | if (_argo0) { |
1780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1783 | return NULL; | |
1784 | } | |
1785 | } | |
cf694132 RD |
1786 | { |
1787 | wxPy_BEGIN_ALLOW_THREADS; | |
1788 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
b8b8dda7 | 1789 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
1790 | |
1791 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1792 | } if (_result) { |
1793 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1794 | _resultobj = Py_BuildValue("s",_ptemp); | |
1795 | } else { | |
1796 | Py_INCREF(Py_None); | |
1797 | _resultobj = Py_None; | |
1798 | } | |
8ab979d7 RD |
1799 | return _resultobj; |
1800 | } | |
1801 | ||
1802 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1803 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1804 | PyObject * _resultobj; |
1805 | wxColour * _result; | |
1806 | wxWindow * _arg0; | |
1d99702e | 1807 | PyObject * _argo0 = 0; |
efc5f224 | 1808 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1809 | char _ptemp[128]; |
1810 | ||
1811 | self = self; | |
efc5f224 | 1812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1813 | return NULL; |
1d99702e RD |
1814 | if (_argo0) { |
1815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1818 | return NULL; | |
1819 | } | |
1820 | } | |
cf694132 RD |
1821 | { |
1822 | wxPy_BEGIN_ALLOW_THREADS; | |
1823 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1824 | ||
1825 | wxPy_END_ALLOW_THREADS; | |
1826 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
1827 | _resultobj = Py_BuildValue("s",_ptemp); |
1828 | return _resultobj; | |
1829 | } | |
1830 | ||
1831 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1832 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1833 | PyObject * _resultobj; |
1834 | wxWindow * _result; | |
1835 | wxWindow * _arg0; | |
1d99702e | 1836 | PyObject * _argo0 = 0; |
efc5f224 | 1837 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1838 | char _ptemp[128]; |
1839 | ||
1840 | self = self; | |
efc5f224 | 1841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1842 | return NULL; |
1d99702e RD |
1843 | if (_argo0) { |
1844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1847 | return NULL; | |
1848 | } | |
1849 | } | |
cf694132 RD |
1850 | { |
1851 | wxPy_BEGIN_ALLOW_THREADS; | |
1852 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1853 | ||
1854 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1855 | } if (_result) { |
1856 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1857 | _resultobj = Py_BuildValue("s",_ptemp); | |
1858 | } else { | |
1859 | Py_INCREF(Py_None); | |
1860 | _resultobj = Py_None; | |
1861 | } | |
8ab979d7 RD |
1862 | return _resultobj; |
1863 | } | |
1864 | ||
2abc0a0f | 1865 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1866 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1867 | } |
1868 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1869 | PyObject * _resultobj; | |
1870 | long _result; | |
1871 | wxWindow * _arg0; | |
1872 | PyObject * _argo0 = 0; | |
1873 | char *_kwnames[] = { "self", NULL }; | |
1874 | ||
1875 | self = self; | |
1876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1877 | return NULL; | |
1878 | if (_argo0) { | |
1879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1882 | return NULL; | |
1883 | } | |
1884 | } | |
1885 | { | |
1886 | wxPy_BEGIN_ALLOW_THREADS; | |
1887 | _result = (long )wxWindow_GetHandle(_arg0); | |
1888 | ||
1889 | wxPy_END_ALLOW_THREADS; | |
1890 | } _resultobj = Py_BuildValue("l",_result); | |
1891 | return _resultobj; | |
1892 | } | |
1893 | ||
8ab979d7 | 1894 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 1895 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1896 | PyObject * _resultobj; |
1897 | int _result; | |
1898 | wxWindow * _arg0; | |
1d99702e | 1899 | PyObject * _argo0 = 0; |
efc5f224 | 1900 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1901 | |
1902 | self = self; | |
efc5f224 | 1903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 1904 | return NULL; |
1d99702e RD |
1905 | if (_argo0) { |
1906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
1909 | return NULL; | |
1910 | } | |
1911 | } | |
cf694132 RD |
1912 | { |
1913 | wxPy_BEGIN_ALLOW_THREADS; | |
1914 | _result = (int )wxWindow_GetId(_arg0); | |
1915 | ||
1916 | wxPy_END_ALLOW_THREADS; | |
1917 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1918 | return _resultobj; |
1919 | } | |
1920 | ||
8ab979d7 | 1921 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 1922 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1923 | PyObject * _resultobj; |
1924 | wxString * _result; | |
1925 | wxWindow * _arg0; | |
1d99702e | 1926 | PyObject * _argo0 = 0; |
efc5f224 | 1927 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1928 | |
1929 | self = self; | |
efc5f224 | 1930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 1931 | return NULL; |
1d99702e RD |
1932 | if (_argo0) { |
1933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
1936 | return NULL; | |
1937 | } | |
1938 | } | |
8ab979d7 | 1939 | { |
cf694132 RD |
1940 | wxPy_BEGIN_ALLOW_THREADS; |
1941 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
1942 | ||
1943 | wxPy_END_ALLOW_THREADS; | |
1944 | }{ | |
eec92d76 | 1945 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1946 | } |
1947 | { | |
1948 | delete _result; | |
1949 | } | |
1950 | return _resultobj; | |
1951 | } | |
1952 | ||
bb0054cd | 1953 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 1954 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1955 | PyObject * _resultobj; |
1956 | wxWindow * _arg0; | |
1957 | wxString * _arg1; | |
1d99702e | 1958 | PyObject * _argo0 = 0; |
bb0054cd | 1959 | PyObject * _obj1 = 0; |
efc5f224 | 1960 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
1961 | |
1962 | self = self; | |
efc5f224 | 1963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 1964 | return NULL; |
1d99702e RD |
1965 | if (_argo0) { |
1966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
1969 | return NULL; | |
1970 | } | |
1971 | } | |
1972 | { | |
1973 | if (!PyString_Check(_obj1)) { | |
1974 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1975 | return NULL; | |
1976 | } | |
1977 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1978 | } | |
1979 | { | |
1980 | wxPy_BEGIN_ALLOW_THREADS; | |
1981 | wxWindow_SetLabel(_arg0,*_arg1); | |
1982 | ||
1983 | wxPy_END_ALLOW_THREADS; | |
1984 | } Py_INCREF(Py_None); | |
1985 | _resultobj = Py_None; | |
1986 | { | |
1987 | if (_obj1) | |
1988 | delete _arg1; | |
1989 | } | |
1990 | return _resultobj; | |
1991 | } | |
1992 | ||
8ab979d7 | 1993 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 1994 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1995 | PyObject * _resultobj; |
1996 | wxString * _result; | |
1997 | wxWindow * _arg0; | |
1d99702e | 1998 | PyObject * _argo0 = 0; |
efc5f224 | 1999 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2000 | |
2001 | self = self; | |
efc5f224 | 2002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2003 | return NULL; |
1d99702e RD |
2004 | if (_argo0) { |
2005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2008 | return NULL; | |
2009 | } | |
2010 | } | |
8ab979d7 | 2011 | { |
cf694132 RD |
2012 | wxPy_BEGIN_ALLOW_THREADS; |
2013 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2014 | ||
2015 | wxPy_END_ALLOW_THREADS; | |
2016 | }{ | |
eec92d76 | 2017 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2018 | } |
2019 | { | |
2020 | delete _result; | |
2021 | } | |
2022 | return _resultobj; | |
2023 | } | |
2024 | ||
2025 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2026 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2027 | PyObject * _resultobj; |
2028 | wxWindow * _result; | |
2029 | wxWindow * _arg0; | |
1d99702e | 2030 | PyObject * _argo0 = 0; |
efc5f224 | 2031 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2032 | char _ptemp[128]; |
2033 | ||
2034 | self = self; | |
efc5f224 | 2035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2036 | return NULL; |
1d99702e RD |
2037 | if (_argo0) { |
2038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2041 | return NULL; | |
2042 | } | |
2043 | } | |
cf694132 RD |
2044 | { |
2045 | wxPy_BEGIN_ALLOW_THREADS; | |
2046 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2047 | ||
2048 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2049 | } if (_result) { |
2050 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
2051 | _resultobj = Py_BuildValue("s",_ptemp); | |
2052 | } else { | |
2053 | Py_INCREF(Py_None); | |
2054 | _resultobj = Py_None; | |
2055 | } | |
8ab979d7 RD |
2056 | return _resultobj; |
2057 | } | |
2058 | ||
b8b8dda7 | 2059 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2060 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2061 | PyObject * _resultobj; |
2062 | wxWindow * _arg0; | |
2063 | int * _arg1; | |
2064 | int temp; | |
2065 | int * _arg2; | |
2066 | int temp0; | |
1d99702e | 2067 | PyObject * _argo0 = 0; |
efc5f224 | 2068 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2069 | |
2070 | self = self; | |
2071 | { | |
2072 | _arg1 = &temp; | |
2073 | } | |
2074 | { | |
2075 | _arg2 = &temp0; | |
2076 | } | |
efc5f224 | 2077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2078 | return NULL; |
1d99702e RD |
2079 | if (_argo0) { |
2080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2083 | return NULL; | |
2084 | } | |
2085 | } | |
cf694132 RD |
2086 | { |
2087 | wxPy_BEGIN_ALLOW_THREADS; | |
2088 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2089 | ||
2090 | wxPy_END_ALLOW_THREADS; | |
2091 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
2092 | _resultobj = Py_None; |
2093 | { | |
2094 | PyObject *o; | |
2095 | o = PyInt_FromLong((long) (*_arg1)); | |
2096 | _resultobj = t_output_helper(_resultobj, o); | |
2097 | } | |
2098 | { | |
2099 | PyObject *o; | |
2100 | o = PyInt_FromLong((long) (*_arg2)); | |
2101 | _resultobj = t_output_helper(_resultobj, o); | |
2102 | } | |
2103 | return _resultobj; | |
2104 | } | |
2105 | ||
2106 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2107 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2108 | PyObject * _resultobj; |
2109 | wxPoint * _result; | |
2110 | wxWindow * _arg0; | |
1d99702e | 2111 | PyObject * _argo0 = 0; |
efc5f224 | 2112 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2113 | char _ptemp[128]; |
2114 | ||
2115 | self = self; | |
efc5f224 | 2116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2117 | return NULL; |
1d99702e RD |
2118 | if (_argo0) { |
2119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2122 | return NULL; | |
2123 | } | |
2124 | } | |
cf694132 RD |
2125 | { |
2126 | wxPy_BEGIN_ALLOW_THREADS; | |
2127 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2128 | ||
2129 | wxPy_END_ALLOW_THREADS; | |
2130 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
2131 | _resultobj = Py_BuildValue("s",_ptemp); |
2132 | return _resultobj; | |
2133 | } | |
2134 | ||
2135 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2136 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2137 | PyObject * _resultobj; |
2138 | wxRect * _result; | |
2139 | wxWindow * _arg0; | |
1d99702e | 2140 | PyObject * _argo0 = 0; |
efc5f224 | 2141 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2142 | char _ptemp[128]; |
2143 | ||
2144 | self = self; | |
efc5f224 | 2145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2146 | return NULL; |
1d99702e RD |
2147 | if (_argo0) { |
2148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2151 | return NULL; | |
2152 | } | |
2153 | } | |
cf694132 RD |
2154 | { |
2155 | wxPy_BEGIN_ALLOW_THREADS; | |
2156 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2157 | ||
2158 | wxPy_END_ALLOW_THREADS; | |
2159 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
b8b8dda7 RD |
2160 | _resultobj = Py_BuildValue("s",_ptemp); |
2161 | return _resultobj; | |
2162 | } | |
2163 | ||
8ab979d7 | 2164 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2165 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2166 | PyObject * _resultobj; |
2167 | int _result; | |
2168 | wxWindow * _arg0; | |
2169 | int _arg1; | |
1d99702e | 2170 | PyObject * _argo0 = 0; |
efc5f224 | 2171 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2172 | |
2173 | self = self; | |
efc5f224 | 2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2175 | return NULL; |
1d99702e RD |
2176 | if (_argo0) { |
2177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2180 | return NULL; | |
2181 | } | |
2182 | } | |
cf694132 RD |
2183 | { |
2184 | wxPy_BEGIN_ALLOW_THREADS; | |
2185 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2186 | ||
2187 | wxPy_END_ALLOW_THREADS; | |
2188 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2189 | return _resultobj; |
2190 | } | |
2191 | ||
2192 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2193 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2194 | PyObject * _resultobj; |
2195 | int _result; | |
2196 | wxWindow * _arg0; | |
2197 | int _arg1; | |
1d99702e | 2198 | PyObject * _argo0 = 0; |
efc5f224 | 2199 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2200 | |
2201 | self = self; | |
efc5f224 | 2202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2203 | return NULL; |
1d99702e RD |
2204 | if (_argo0) { |
2205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2208 | return NULL; | |
2209 | } | |
2210 | } | |
cf694132 RD |
2211 | { |
2212 | wxPy_BEGIN_ALLOW_THREADS; | |
2213 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2214 | ||
2215 | wxPy_END_ALLOW_THREADS; | |
2216 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2217 | return _resultobj; |
2218 | } | |
2219 | ||
2220 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2221 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2222 | PyObject * _resultobj; |
2223 | int _result; | |
2224 | wxWindow * _arg0; | |
2225 | int _arg1; | |
1d99702e | 2226 | PyObject * _argo0 = 0; |
efc5f224 | 2227 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2228 | |
2229 | self = self; | |
efc5f224 | 2230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2231 | return NULL; |
1d99702e RD |
2232 | if (_argo0) { |
2233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2236 | return NULL; | |
2237 | } | |
2238 | } | |
cf694132 RD |
2239 | { |
2240 | wxPy_BEGIN_ALLOW_THREADS; | |
2241 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2242 | ||
2243 | wxPy_END_ALLOW_THREADS; | |
2244 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2245 | return _resultobj; |
2246 | } | |
2247 | ||
b8b8dda7 | 2248 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2249 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2250 | PyObject * _resultobj; |
2251 | wxWindow * _arg0; | |
2252 | int * _arg1; | |
2253 | int temp; | |
2254 | int * _arg2; | |
2255 | int temp0; | |
1d99702e | 2256 | PyObject * _argo0 = 0; |
efc5f224 | 2257 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2258 | |
2259 | self = self; | |
2260 | { | |
2261 | _arg1 = &temp; | |
2262 | } | |
2263 | { | |
2264 | _arg2 = &temp0; | |
2265 | } | |
efc5f224 | 2266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2267 | return NULL; |
1d99702e RD |
2268 | if (_argo0) { |
2269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2272 | return NULL; |
2273 | } | |
2274 | } | |
cf694132 RD |
2275 | { |
2276 | wxPy_BEGIN_ALLOW_THREADS; | |
2277 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2278 | ||
2279 | wxPy_END_ALLOW_THREADS; | |
2280 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2281 | _resultobj = Py_None; |
2282 | { | |
2283 | PyObject *o; | |
2284 | o = PyInt_FromLong((long) (*_arg1)); | |
2285 | _resultobj = t_output_helper(_resultobj, o); | |
2286 | } | |
2287 | { | |
2288 | PyObject *o; | |
2289 | o = PyInt_FromLong((long) (*_arg2)); | |
2290 | _resultobj = t_output_helper(_resultobj, o); | |
2291 | } | |
2292 | return _resultobj; | |
2293 | } | |
2294 | ||
b8b8dda7 | 2295 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2296 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2297 | PyObject * _resultobj; |
2298 | wxSize * _result; | |
2299 | wxWindow * _arg0; | |
1d99702e | 2300 | PyObject * _argo0 = 0; |
efc5f224 | 2301 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2302 | char _ptemp[128]; |
2303 | ||
2304 | self = self; | |
efc5f224 | 2305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2306 | return NULL; |
1d99702e RD |
2307 | if (_argo0) { |
2308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2311 | return NULL; | |
2312 | } | |
2313 | } | |
cf694132 RD |
2314 | { |
2315 | wxPy_BEGIN_ALLOW_THREADS; | |
2316 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2317 | ||
2318 | wxPy_END_ALLOW_THREADS; | |
2319 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
2320 | _resultobj = Py_BuildValue("s",_ptemp); |
2321 | return _resultobj; | |
2322 | } | |
2323 | ||
8ab979d7 | 2324 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2325 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2326 | PyObject * _resultobj; |
2327 | wxWindow * _arg0; | |
2328 | wxString * _arg1; | |
2329 | int * _arg2; | |
2330 | int temp; | |
2331 | int * _arg3; | |
2332 | int temp0; | |
1d99702e | 2333 | PyObject * _argo0 = 0; |
8ab979d7 | 2334 | PyObject * _obj1 = 0; |
efc5f224 | 2335 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2336 | |
2337 | self = self; | |
2338 | { | |
2339 | _arg2 = &temp; | |
2340 | } | |
2341 | { | |
2342 | _arg3 = &temp0; | |
2343 | } | |
efc5f224 | 2344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2345 | return NULL; |
1d99702e RD |
2346 | if (_argo0) { |
2347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2350 | return NULL; | |
2351 | } | |
2352 | } | |
2353 | { | |
2354 | if (!PyString_Check(_obj1)) { | |
2355 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2356 | return NULL; | |
2357 | } | |
cf694132 | 2358 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 2359 | } |
cf694132 RD |
2360 | { |
2361 | wxPy_BEGIN_ALLOW_THREADS; | |
2362 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2363 | ||
2364 | wxPy_END_ALLOW_THREADS; | |
2365 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2366 | _resultobj = Py_None; |
2367 | { | |
2368 | PyObject *o; | |
2369 | o = PyInt_FromLong((long) (*_arg2)); | |
2370 | _resultobj = t_output_helper(_resultobj, o); | |
2371 | } | |
2372 | { | |
2373 | PyObject *o; | |
2374 | o = PyInt_FromLong((long) (*_arg3)); | |
2375 | _resultobj = t_output_helper(_resultobj, o); | |
2376 | } | |
2377 | { | |
2378 | if (_obj1) | |
2379 | delete _arg1; | |
2380 | } | |
2381 | return _resultobj; | |
2382 | } | |
2383 | ||
af309447 | 2384 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2385 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2386 | PyObject * _resultobj; |
2387 | wxWindow * _arg0; | |
2388 | wxString * _arg1; | |
2389 | int * _arg2; | |
2390 | int temp; | |
2391 | int * _arg3; | |
2392 | int temp0; | |
2393 | int * _arg4; | |
2394 | int temp1; | |
2395 | int * _arg5; | |
2396 | int temp2; | |
1d99702e RD |
2397 | wxFont * _arg6 = (wxFont *) NULL; |
2398 | PyObject * _argo0 = 0; | |
af309447 | 2399 | PyObject * _obj1 = 0; |
1d99702e | 2400 | PyObject * _argo6 = 0; |
efc5f224 | 2401 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2402 | |
2403 | self = self; | |
2404 | { | |
2405 | _arg2 = &temp; | |
2406 | } | |
2407 | { | |
2408 | _arg3 = &temp0; | |
2409 | } | |
2410 | { | |
2411 | _arg4 = &temp1; | |
2412 | } | |
2413 | { | |
2414 | _arg5 = &temp2; | |
2415 | } | |
efc5f224 | 2416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2417 | return NULL; |
1d99702e RD |
2418 | if (_argo0) { |
2419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2422 | return NULL; | |
2423 | } | |
2424 | } | |
2425 | { | |
2426 | if (!PyString_Check(_obj1)) { | |
2427 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2428 | return NULL; | |
2429 | } | |
cf694132 | 2430 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
af309447 | 2431 | } |
1d99702e RD |
2432 | if (_argo6) { |
2433 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2434 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2436 | return NULL; | |
2437 | } | |
2438 | } | |
cf694132 RD |
2439 | { |
2440 | wxPy_BEGIN_ALLOW_THREADS; | |
2441 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2442 | ||
2443 | wxPy_END_ALLOW_THREADS; | |
2444 | } Py_INCREF(Py_None); | |
af309447 RD |
2445 | _resultobj = Py_None; |
2446 | { | |
2447 | PyObject *o; | |
2448 | o = PyInt_FromLong((long) (*_arg2)); | |
2449 | _resultobj = t_output_helper(_resultobj, o); | |
2450 | } | |
2451 | { | |
2452 | PyObject *o; | |
2453 | o = PyInt_FromLong((long) (*_arg3)); | |
2454 | _resultobj = t_output_helper(_resultobj, o); | |
2455 | } | |
2456 | { | |
2457 | PyObject *o; | |
2458 | o = PyInt_FromLong((long) (*_arg4)); | |
2459 | _resultobj = t_output_helper(_resultobj, o); | |
2460 | } | |
2461 | { | |
2462 | PyObject *o; | |
2463 | o = PyInt_FromLong((long) (*_arg5)); | |
2464 | _resultobj = t_output_helper(_resultobj, o); | |
2465 | } | |
2466 | { | |
2467 | if (_obj1) | |
2468 | delete _arg1; | |
2469 | } | |
2470 | return _resultobj; | |
2471 | } | |
2472 | ||
8ab979d7 | 2473 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2474 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2475 | PyObject * _resultobj; |
2476 | wxString * _result; | |
2477 | wxWindow * _arg0; | |
1d99702e | 2478 | PyObject * _argo0 = 0; |
efc5f224 | 2479 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2480 | |
2481 | self = self; | |
efc5f224 | 2482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2483 | return NULL; |
1d99702e RD |
2484 | if (_argo0) { |
2485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2488 | return NULL; | |
2489 | } | |
2490 | } | |
8ab979d7 | 2491 | { |
cf694132 RD |
2492 | wxPy_BEGIN_ALLOW_THREADS; |
2493 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2494 | ||
2495 | wxPy_END_ALLOW_THREADS; | |
2496 | }{ | |
eec92d76 | 2497 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2498 | } |
2499 | { | |
2500 | delete _result; | |
2501 | } | |
2502 | return _resultobj; | |
2503 | } | |
2504 | ||
8bf5d46e | 2505 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2506 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2507 | PyObject * _resultobj; |
2508 | wxRegion * _result; | |
2509 | wxWindow * _arg0; | |
1d99702e | 2510 | PyObject * _argo0 = 0; |
efc5f224 | 2511 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2512 | char _ptemp[128]; |
2513 | ||
2514 | self = self; | |
efc5f224 | 2515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2516 | return NULL; |
1d99702e RD |
2517 | if (_argo0) { |
2518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2521 | return NULL; | |
2522 | } | |
2523 | } | |
2524 | { | |
2525 | wxPy_BEGIN_ALLOW_THREADS; | |
2526 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2527 | ||
2528 | wxPy_END_ALLOW_THREADS; | |
2529 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); | |
2530 | _resultobj = Py_BuildValue("s",_ptemp); | |
2531 | return _resultobj; | |
2532 | } | |
2533 | ||
8ab979d7 | 2534 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2535 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2536 | PyObject * _resultobj; |
2537 | long _result; | |
2538 | wxWindow * _arg0; | |
1d99702e | 2539 | PyObject * _argo0 = 0; |
efc5f224 | 2540 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2541 | |
2542 | self = self; | |
efc5f224 | 2543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2544 | return NULL; |
1d99702e RD |
2545 | if (_argo0) { |
2546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2549 | return NULL; | |
2550 | } | |
2551 | } | |
cf694132 RD |
2552 | { |
2553 | wxPy_BEGIN_ALLOW_THREADS; | |
2554 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2555 | ||
2556 | wxPy_END_ALLOW_THREADS; | |
2557 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2558 | return _resultobj; |
2559 | } | |
2560 | ||
f6bcfd97 BP |
2561 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2562 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2563 | PyObject * _resultobj; | |
2564 | wxWindow * _arg0; | |
2565 | long _arg1; | |
2566 | PyObject * _argo0 = 0; | |
2567 | char *_kwnames[] = { "self","style", NULL }; | |
2568 | ||
2569 | self = self; | |
2570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2571 | return NULL; | |
2572 | if (_argo0) { | |
2573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2576 | return NULL; | |
2577 | } | |
2578 | } | |
2579 | { | |
2580 | wxPy_BEGIN_ALLOW_THREADS; | |
2581 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2582 | ||
2583 | wxPy_END_ALLOW_THREADS; | |
2584 | } Py_INCREF(Py_None); | |
2585 | _resultobj = Py_None; | |
2586 | return _resultobj; | |
2587 | } | |
2588 | ||
2589 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2590 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2591 | PyObject * _resultobj; | |
2592 | wxWindow * _arg0; | |
2593 | long _arg1; | |
2594 | PyObject * _argo0 = 0; | |
2595 | char *_kwnames[] = { "self","style", NULL }; | |
2596 | ||
2597 | self = self; | |
2598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2599 | return NULL; | |
2600 | if (_argo0) { | |
2601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2604 | return NULL; | |
2605 | } | |
2606 | } | |
2607 | { | |
2608 | wxPy_BEGIN_ALLOW_THREADS; | |
2609 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2610 | ||
2611 | wxPy_END_ALLOW_THREADS; | |
2612 | } Py_INCREF(Py_None); | |
2613 | _resultobj = Py_None; | |
2614 | return _resultobj; | |
2615 | } | |
2616 | ||
bb0054cd | 2617 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2618 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2619 | PyObject * _resultobj; |
2620 | bool _result; | |
2621 | wxWindow * _arg0; | |
1d99702e | 2622 | PyObject * _argo0 = 0; |
efc5f224 | 2623 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2624 | |
2625 | self = self; | |
efc5f224 | 2626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2627 | return NULL; |
1d99702e RD |
2628 | if (_argo0) { |
2629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2632 | return NULL; | |
2633 | } | |
2634 | } | |
2635 | { | |
2636 | wxPy_BEGIN_ALLOW_THREADS; | |
2637 | _result = (bool )wxWindow_Hide(_arg0); | |
2638 | ||
2639 | wxPy_END_ALLOW_THREADS; | |
2640 | } _resultobj = Py_BuildValue("i",_result); | |
2641 | return _resultobj; | |
2642 | } | |
2643 | ||
8ab979d7 | 2644 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2645 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2646 | PyObject * _resultobj; |
2647 | wxWindow * _arg0; | |
1d99702e | 2648 | PyObject * _argo0 = 0; |
efc5f224 | 2649 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2650 | |
2651 | self = self; | |
efc5f224 | 2652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2653 | return NULL; |
1d99702e RD |
2654 | if (_argo0) { |
2655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2658 | return NULL; | |
2659 | } | |
2660 | } | |
cf694132 RD |
2661 | { |
2662 | wxPy_BEGIN_ALLOW_THREADS; | |
2663 | wxWindow_InitDialog(_arg0); | |
2664 | ||
2665 | wxPy_END_ALLOW_THREADS; | |
2666 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2667 | _resultobj = Py_None; |
2668 | return _resultobj; | |
2669 | } | |
2670 | ||
2671 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2672 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2673 | PyObject * _resultobj; |
2674 | bool _result; | |
2675 | wxWindow * _arg0; | |
1d99702e | 2676 | PyObject * _argo0 = 0; |
efc5f224 | 2677 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2678 | |
2679 | self = self; | |
efc5f224 | 2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2681 | return NULL; |
1d99702e RD |
2682 | if (_argo0) { |
2683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2686 | return NULL; | |
2687 | } | |
2688 | } | |
cf694132 RD |
2689 | { |
2690 | wxPy_BEGIN_ALLOW_THREADS; | |
2691 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2692 | ||
2693 | wxPy_END_ALLOW_THREADS; | |
2694 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2695 | return _resultobj; |
2696 | } | |
2697 | ||
1b55cabf RD |
2698 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2699 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2700 | PyObject * _resultobj; | |
2701 | bool _result; | |
2702 | wxWindow * _arg0; | |
2703 | int _arg1; | |
2704 | int _arg2; | |
2705 | int _arg3 = (int ) 0; | |
2706 | int _arg4 = (int ) 0; | |
2707 | PyObject * _argo0 = 0; | |
2708 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2709 | ||
2710 | self = self; | |
2711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2712 | return NULL; | |
2713 | if (_argo0) { | |
2714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2717 | return NULL; | |
2718 | } | |
2719 | } | |
2720 | { | |
2721 | wxPy_BEGIN_ALLOW_THREADS; | |
2722 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2723 | ||
2724 | wxPy_END_ALLOW_THREADS; | |
2725 | } _resultobj = Py_BuildValue("i",_result); | |
2726 | return _resultobj; | |
2727 | } | |
2728 | ||
2729 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2730 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2731 | PyObject * _resultobj; | |
2732 | bool _result; | |
2733 | wxWindow * _arg0; | |
2734 | wxPoint * _arg1; | |
2735 | PyObject * _argo0 = 0; | |
2736 | wxPoint temp; | |
2737 | PyObject * _obj1 = 0; | |
2738 | char *_kwnames[] = { "self","pt", NULL }; | |
2739 | ||
2740 | self = self; | |
2741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2742 | return NULL; | |
2743 | if (_argo0) { | |
2744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2747 | return NULL; | |
2748 | } | |
2749 | } | |
2750 | { | |
2751 | _arg1 = &temp; | |
2752 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2753 | return NULL; | |
2754 | } | |
2755 | { | |
2756 | wxPy_BEGIN_ALLOW_THREADS; | |
2757 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2758 | ||
2759 | wxPy_END_ALLOW_THREADS; | |
2760 | } _resultobj = Py_BuildValue("i",_result); | |
2761 | return _resultobj; | |
2762 | } | |
2763 | ||
2764 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2765 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2766 | PyObject * _resultobj; | |
2767 | bool _result; | |
2768 | wxWindow * _arg0; | |
2769 | wxRect * _arg1; | |
2770 | PyObject * _argo0 = 0; | |
2771 | wxRect temp; | |
2772 | PyObject * _obj1 = 0; | |
2773 | char *_kwnames[] = { "self","rect", NULL }; | |
2774 | ||
2775 | self = self; | |
2776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2777 | return NULL; | |
2778 | if (_argo0) { | |
2779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2782 | return NULL; | |
2783 | } | |
2784 | } | |
2785 | { | |
2786 | _arg1 = &temp; | |
2787 | if (! wxRect_helper(_obj1, &_arg1)) | |
2788 | return NULL; | |
2789 | } | |
2790 | { | |
2791 | wxPy_BEGIN_ALLOW_THREADS; | |
2792 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2793 | ||
2794 | wxPy_END_ALLOW_THREADS; | |
2795 | } _resultobj = Py_BuildValue("i",_result); | |
2796 | return _resultobj; | |
2797 | } | |
2798 | ||
8ab979d7 | 2799 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 2800 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2801 | PyObject * _resultobj; |
2802 | bool _result; | |
2803 | wxWindow * _arg0; | |
1d99702e | 2804 | PyObject * _argo0 = 0; |
efc5f224 | 2805 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2806 | |
2807 | self = self; | |
efc5f224 | 2808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 2809 | return NULL; |
1d99702e RD |
2810 | if (_argo0) { |
2811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
2814 | return NULL; | |
2815 | } | |
2816 | } | |
cf694132 RD |
2817 | { |
2818 | wxPy_BEGIN_ALLOW_THREADS; | |
2819 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2820 | ||
2821 | wxPy_END_ALLOW_THREADS; | |
2822 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2823 | return _resultobj; |
2824 | } | |
2825 | ||
2826 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 2827 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2828 | PyObject * _resultobj; |
2829 | bool _result; | |
2830 | wxWindow * _arg0; | |
1d99702e | 2831 | PyObject * _argo0 = 0; |
efc5f224 | 2832 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2833 | |
2834 | self = self; | |
efc5f224 | 2835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 2836 | return NULL; |
1d99702e RD |
2837 | if (_argo0) { |
2838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
2841 | return NULL; | |
2842 | } | |
2843 | } | |
cf694132 RD |
2844 | { |
2845 | wxPy_BEGIN_ALLOW_THREADS; | |
2846 | _result = (bool )wxWindow_IsShown(_arg0); | |
2847 | ||
2848 | wxPy_END_ALLOW_THREADS; | |
2849 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2850 | return _resultobj; |
2851 | } | |
2852 | ||
bb0054cd | 2853 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 2854 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2855 | PyObject * _resultobj; |
2856 | bool _result; | |
2857 | wxWindow * _arg0; | |
1d99702e | 2858 | PyObject * _argo0 = 0; |
efc5f224 | 2859 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2860 | |
2861 | self = self; | |
efc5f224 | 2862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 2863 | return NULL; |
1d99702e RD |
2864 | if (_argo0) { |
2865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
2868 | return NULL; | |
2869 | } | |
2870 | } | |
2871 | { | |
2872 | wxPy_BEGIN_ALLOW_THREADS; | |
2873 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2874 | ||
2875 | wxPy_END_ALLOW_THREADS; | |
2876 | } _resultobj = Py_BuildValue("i",_result); | |
2877 | return _resultobj; | |
2878 | } | |
2879 | ||
8ab979d7 | 2880 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 2881 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2882 | PyObject * _resultobj; |
2883 | wxWindow * _arg0; | |
1d99702e | 2884 | PyObject * _argo0 = 0; |
efc5f224 | 2885 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2886 | |
2887 | self = self; | |
efc5f224 | 2888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 2889 | return NULL; |
1d99702e RD |
2890 | if (_argo0) { |
2891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
2894 | return NULL; | |
2895 | } | |
2896 | } | |
cf694132 RD |
2897 | { |
2898 | wxPy_BEGIN_ALLOW_THREADS; | |
2899 | wxWindow_Layout(_arg0); | |
2900 | ||
2901 | wxPy_END_ALLOW_THREADS; | |
2902 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2903 | _resultobj = Py_None; |
2904 | return _resultobj; | |
2905 | } | |
2906 | ||
2907 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2908 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2909 | PyObject * _resultobj; |
2910 | bool _result; | |
2911 | wxWindow * _arg0; | |
2912 | wxWindow * _arg1; | |
2913 | wxString * _arg2; | |
1d99702e RD |
2914 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
2915 | PyObject * _argo0 = 0; | |
2916 | PyObject * _argo1 = 0; | |
8ab979d7 | 2917 | PyObject * _obj2 = 0; |
1d99702e | 2918 | PyObject * _argo3 = 0; |
efc5f224 | 2919 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
2920 | |
2921 | self = self; | |
efc5f224 | 2922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 2923 | return NULL; |
1d99702e RD |
2924 | if (_argo0) { |
2925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
2928 | return NULL; | |
2929 | } | |
2930 | } | |
1d99702e RD |
2931 | if (_argo1) { |
2932 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2933 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
2934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
2935 | return NULL; | |
2936 | } | |
2937 | } | |
2938 | { | |
2939 | if (!PyString_Check(_obj2)) { | |
2940 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2941 | return NULL; | |
2942 | } | |
cf694132 | 2943 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 2944 | } |
1d99702e RD |
2945 | if (_argo3) { |
2946 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
2947 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
2948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
2949 | return NULL; | |
2950 | } | |
2951 | } | |
cf694132 RD |
2952 | { |
2953 | wxPy_BEGIN_ALLOW_THREADS; | |
2954 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
2955 | ||
2956 | wxPy_END_ALLOW_THREADS; | |
2957 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2958 | { |
2959 | if (_obj2) | |
2960 | delete _arg2; | |
2961 | } | |
2962 | return _resultobj; | |
2963 | } | |
2964 | ||
2965 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 2966 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2967 | PyObject * _resultobj; |
2968 | wxWindow * _arg0; | |
1d99702e | 2969 | PyObject * _argo0 = 0; |
efc5f224 | 2970 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2971 | |
2972 | self = self; | |
efc5f224 | 2973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 2974 | return NULL; |
1d99702e RD |
2975 | if (_argo0) { |
2976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
2979 | return NULL; | |
2980 | } | |
2981 | } | |
cf694132 RD |
2982 | { |
2983 | wxPy_BEGIN_ALLOW_THREADS; | |
2984 | wxWindow_Lower(_arg0); | |
2985 | ||
2986 | wxPy_END_ALLOW_THREADS; | |
2987 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2988 | _resultobj = Py_None; |
2989 | return _resultobj; | |
2990 | } | |
2991 | ||
2992 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 2993 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2994 | PyObject * _resultobj; |
2995 | wxWindow * _arg0; | |
2996 | bool _arg1; | |
1d99702e | 2997 | PyObject * _argo0 = 0; |
8ab979d7 | 2998 | int tempbool1; |
efc5f224 | 2999 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3000 | |
3001 | self = self; | |
efc5f224 | 3002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3003 | return NULL; |
1d99702e RD |
3004 | if (_argo0) { |
3005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3008 | return NULL; | |
3009 | } | |
3010 | } | |
3011 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3012 | { |
3013 | wxPy_BEGIN_ALLOW_THREADS; | |
3014 | wxWindow_MakeModal(_arg0,_arg1); | |
3015 | ||
3016 | wxPy_END_ALLOW_THREADS; | |
3017 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3018 | _resultobj = Py_None; |
3019 | return _resultobj; | |
3020 | } | |
3021 | ||
af309447 | 3022 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3023 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3024 | PyObject * _resultobj; |
3025 | wxWindow * _arg0; | |
3026 | int _arg1; | |
3027 | int _arg2; | |
1d99702e | 3028 | PyObject * _argo0 = 0; |
efc5f224 | 3029 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3030 | |
3031 | self = self; | |
efc5f224 | 3032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 3033 | return NULL; |
1d99702e RD |
3034 | if (_argo0) { |
3035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3038 | return NULL; | |
3039 | } | |
3040 | } | |
cf694132 RD |
3041 | { |
3042 | wxPy_BEGIN_ALLOW_THREADS; | |
3043 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
3044 | ||
3045 | wxPy_END_ALLOW_THREADS; | |
3046 | } Py_INCREF(Py_None); | |
af309447 RD |
3047 | _resultobj = Py_None; |
3048 | return _resultobj; | |
3049 | } | |
3050 | ||
3051 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
efc5f224 | 3052 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3053 | PyObject * _resultobj; |
3054 | wxWindow * _arg0; | |
3055 | wxPoint * _arg1; | |
1d99702e | 3056 | PyObject * _argo0 = 0; |
2f90df85 RD |
3057 | wxPoint temp; |
3058 | PyObject * _obj1 = 0; | |
efc5f224 | 3059 | char *_kwnames[] = { "self","point", NULL }; |
af309447 RD |
3060 | |
3061 | self = self; | |
2f90df85 | 3062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3063 | return NULL; |
1d99702e RD |
3064 | if (_argo0) { |
3065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3068 | return NULL; | |
3069 | } | |
3070 | } | |
2f90df85 RD |
3071 | { |
3072 | _arg1 = &temp; | |
3073 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3074 | return NULL; |
2f90df85 | 3075 | } |
cf694132 RD |
3076 | { |
3077 | wxPy_BEGIN_ALLOW_THREADS; | |
3078 | wxWindow_Move(_arg0,*_arg1); | |
3079 | ||
3080 | wxPy_END_ALLOW_THREADS; | |
3081 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3082 | _resultobj = Py_None; |
3083 | return _resultobj; | |
3084 | } | |
3085 | ||
1afc06c2 RD |
3086 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3087 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3088 | PyObject * _resultobj; | |
3089 | wxEvtHandler * _result; | |
3090 | wxWindow * _arg0; | |
3091 | bool _arg1 = (bool ) FALSE; | |
3092 | PyObject * _argo0 = 0; | |
3093 | int tempbool1 = (int) FALSE; | |
3094 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
3095 | char _ptemp[128]; | |
3096 | ||
3097 | self = self; | |
3098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3099 | return NULL; | |
3100 | if (_argo0) { | |
3101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3104 | return NULL; | |
3105 | } | |
3106 | } | |
3107 | _arg1 = (bool ) tempbool1; | |
3108 | { | |
3109 | wxPy_BEGIN_ALLOW_THREADS; | |
3110 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3111 | ||
3112 | wxPy_END_ALLOW_THREADS; | |
3113 | } if (_result) { | |
3114 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
3115 | _resultobj = Py_BuildValue("s",_ptemp); | |
3116 | } else { | |
3117 | Py_INCREF(Py_None); | |
3118 | _resultobj = Py_None; | |
3119 | } | |
3120 | return _resultobj; | |
3121 | } | |
3122 | ||
3123 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3124 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3125 | PyObject * _resultobj; | |
3126 | wxWindow * _arg0; | |
3127 | wxEvtHandler * _arg1; | |
3128 | PyObject * _argo0 = 0; | |
3129 | PyObject * _argo1 = 0; | |
3130 | char *_kwnames[] = { "self","handler", NULL }; | |
3131 | ||
3132 | self = self; | |
3133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3134 | return NULL; | |
3135 | if (_argo0) { | |
3136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3139 | return NULL; | |
3140 | } | |
3141 | } | |
3142 | if (_argo1) { | |
3143 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3144 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3146 | return NULL; | |
3147 | } | |
3148 | } | |
3149 | { | |
3150 | wxPy_BEGIN_ALLOW_THREADS; | |
3151 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3152 | ||
3153 | wxPy_END_ALLOW_THREADS; | |
3154 | } Py_INCREF(Py_None); | |
3155 | _resultobj = Py_None; | |
3156 | return _resultobj; | |
3157 | } | |
3158 | ||
8bf5d46e | 3159 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3160 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3161 | PyObject * _resultobj; |
3162 | bool _result; | |
3163 | wxWindow * _arg0; | |
3164 | wxMenu * _arg1; | |
3165 | int _arg2; | |
3166 | int _arg3; | |
1d99702e RD |
3167 | PyObject * _argo0 = 0; |
3168 | PyObject * _argo1 = 0; | |
efc5f224 | 3169 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3170 | |
3171 | self = self; | |
efc5f224 | 3172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3173 | return NULL; |
1d99702e RD |
3174 | if (_argo0) { |
3175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3178 | return NULL; | |
3179 | } | |
3180 | } | |
1d99702e RD |
3181 | if (_argo1) { |
3182 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3183 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3185 | return NULL; | |
3186 | } | |
3187 | } | |
3188 | { | |
3189 | wxPy_BEGIN_ALLOW_THREADS; | |
3190 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3191 | ||
3192 | wxPy_END_ALLOW_THREADS; | |
3193 | } _resultobj = Py_BuildValue("i",_result); | |
3194 | return _resultobj; | |
3195 | } | |
3196 | ||
3197 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3198 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3199 | PyObject * _resultobj; |
3200 | bool _result; | |
3201 | wxWindow * _arg0; | |
3202 | wxMenu * _arg1; | |
3203 | wxPoint * _arg2; | |
1d99702e RD |
3204 | PyObject * _argo0 = 0; |
3205 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3206 | wxPoint temp; |
3207 | PyObject * _obj2 = 0; | |
efc5f224 | 3208 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3209 | |
3210 | self = self; | |
2f90df85 | 3211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3212 | return NULL; |
1d99702e RD |
3213 | if (_argo0) { |
3214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3217 | return NULL; | |
3218 | } | |
3219 | } | |
1d99702e RD |
3220 | if (_argo1) { |
3221 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3222 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3224 | return NULL; | |
3225 | } | |
3226 | } | |
2f90df85 RD |
3227 | { |
3228 | _arg2 = &temp; | |
3229 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3230 | return NULL; |
2f90df85 | 3231 | } |
cf694132 RD |
3232 | { |
3233 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 3234 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 RD |
3235 | |
3236 | wxPy_END_ALLOW_THREADS; | |
3237 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3238 | return _resultobj; |
3239 | } | |
3240 | ||
3241 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3242 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3243 | PyObject * _resultobj; |
3244 | wxWindow * _arg0; | |
1d99702e | 3245 | PyObject * _argo0 = 0; |
efc5f224 | 3246 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3247 | |
3248 | self = self; | |
efc5f224 | 3249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3250 | return NULL; |
1d99702e RD |
3251 | if (_argo0) { |
3252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3255 | return NULL; | |
3256 | } | |
3257 | } | |
cf694132 RD |
3258 | { |
3259 | wxPy_BEGIN_ALLOW_THREADS; | |
3260 | wxWindow_Raise(_arg0); | |
3261 | ||
3262 | wxPy_END_ALLOW_THREADS; | |
3263 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3264 | _resultobj = Py_None; |
3265 | return _resultobj; | |
3266 | } | |
3267 | ||
3268 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3269 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3270 | PyObject * _resultobj; |
3271 | wxWindow * _arg0; | |
1d99702e RD |
3272 | bool _arg1 = (bool ) TRUE; |
3273 | wxRect * _arg2 = (wxRect *) NULL; | |
3274 | PyObject * _argo0 = 0; | |
3275 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3276 | wxRect temp; |
3277 | PyObject * _obj2 = 0; | |
efc5f224 | 3278 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3279 | |
3280 | self = self; | |
2f90df85 | 3281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3282 | return NULL; |
1d99702e RD |
3283 | if (_argo0) { |
3284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3287 | return NULL; | |
3288 | } | |
3289 | } | |
3290 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3291 | if (_obj2) |
3292 | { | |
3293 | _arg2 = &temp; | |
3294 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3295 | return NULL; |
2f90df85 | 3296 | } |
cf694132 RD |
3297 | { |
3298 | wxPy_BEGIN_ALLOW_THREADS; | |
3299 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3300 | ||
3301 | wxPy_END_ALLOW_THREADS; | |
3302 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3303 | _resultobj = Py_None; |
3304 | return _resultobj; | |
3305 | } | |
3306 | ||
3307 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
efc5f224 | 3308 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3309 | PyObject * _resultobj; |
3310 | wxWindow * _arg0; | |
1d99702e | 3311 | PyObject * _argo0 = 0; |
efc5f224 | 3312 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3313 | |
3314 | self = self; | |
efc5f224 | 3315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3316 | return NULL; |
1d99702e RD |
3317 | if (_argo0) { |
3318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3321 | return NULL; | |
3322 | } | |
3323 | } | |
cf694132 RD |
3324 | { |
3325 | wxPy_BEGIN_ALLOW_THREADS; | |
3326 | wxWindow_ReleaseMouse(_arg0); | |
3327 | ||
3328 | wxPy_END_ALLOW_THREADS; | |
3329 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3330 | _resultobj = Py_None; |
3331 | return _resultobj; | |
3332 | } | |
3333 | ||
b7e72427 RD |
3334 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3335 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3336 | PyObject * _resultobj; | |
3337 | wxWindow * _arg0; | |
3338 | wxWindow * _arg1; | |
3339 | PyObject * _argo0 = 0; | |
3340 | PyObject * _argo1 = 0; | |
3341 | char *_kwnames[] = { "self","child", NULL }; | |
3342 | ||
3343 | self = self; | |
3344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3345 | return NULL; | |
3346 | if (_argo0) { | |
3347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3350 | return NULL; | |
3351 | } | |
3352 | } | |
3353 | if (_argo1) { | |
3354 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3355 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3357 | return NULL; | |
3358 | } | |
3359 | } | |
3360 | { | |
3361 | wxPy_BEGIN_ALLOW_THREADS; | |
3362 | wxWindow_RemoveChild(_arg0,_arg1); | |
3363 | ||
3364 | wxPy_END_ALLOW_THREADS; | |
3365 | } Py_INCREF(Py_None); | |
3366 | _resultobj = Py_None; | |
3367 | return _resultobj; | |
3368 | } | |
3369 | ||
bb0054cd | 3370 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3371 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3372 | PyObject * _resultobj; |
3373 | bool _result; | |
3374 | wxWindow * _arg0; | |
3375 | wxWindow * _arg1; | |
1d99702e RD |
3376 | PyObject * _argo0 = 0; |
3377 | PyObject * _argo1 = 0; | |
efc5f224 | 3378 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3379 | |
3380 | self = self; | |
efc5f224 | 3381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3382 | return NULL; |
1d99702e RD |
3383 | if (_argo0) { |
3384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3387 | return NULL; | |
3388 | } | |
3389 | } | |
1d99702e RD |
3390 | if (_argo1) { |
3391 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3392 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3394 | return NULL; | |
3395 | } | |
3396 | } | |
3397 | { | |
3398 | wxPy_BEGIN_ALLOW_THREADS; | |
3399 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3400 | ||
3401 | wxPy_END_ALLOW_THREADS; | |
3402 | } _resultobj = Py_BuildValue("i",_result); | |
3403 | return _resultobj; | |
3404 | } | |
3405 | ||
af309447 | 3406 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3407 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3408 | PyObject * _resultobj; |
3409 | wxWindow * _arg0; | |
3410 | int * _arg1; | |
3411 | int * _arg2; | |
1d99702e | 3412 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3413 | int temp; |
3414 | PyObject * _obj1 = 0; | |
3415 | int temp0; | |
3416 | PyObject * _obj2 = 0; | |
efc5f224 | 3417 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3418 | |
3419 | self = self; | |
efc5f224 | 3420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3421 | return NULL; |
1d99702e RD |
3422 | if (_argo0) { |
3423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3426 | return NULL; |
3427 | } | |
3428 | } | |
3429 | { | |
3430 | temp = (int) PyInt_AsLong(_obj1); | |
3431 | _arg1 = &temp; | |
3432 | } | |
3433 | { | |
3434 | temp0 = (int) PyInt_AsLong(_obj2); | |
3435 | _arg2 = &temp0; | |
3436 | } | |
cf694132 RD |
3437 | { |
3438 | wxPy_BEGIN_ALLOW_THREADS; | |
3439 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3440 | ||
3441 | wxPy_END_ALLOW_THREADS; | |
3442 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3443 | _resultobj = Py_None; |
3444 | { | |
3445 | PyObject *o; | |
3446 | o = PyInt_FromLong((long) (*_arg1)); | |
3447 | _resultobj = t_output_helper(_resultobj, o); | |
3448 | } | |
3449 | { | |
3450 | PyObject *o; | |
3451 | o = PyInt_FromLong((long) (*_arg2)); | |
3452 | _resultobj = t_output_helper(_resultobj, o); | |
3453 | } | |
3454 | return _resultobj; | |
3455 | } | |
3456 | ||
af309447 | 3457 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3458 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3459 | PyObject * _resultobj; |
3460 | wxPoint * _result; | |
3461 | wxWindow * _arg0; | |
3462 | wxPoint * _arg1; | |
1d99702e | 3463 | PyObject * _argo0 = 0; |
2f90df85 RD |
3464 | wxPoint temp; |
3465 | PyObject * _obj1 = 0; | |
efc5f224 | 3466 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3467 | char _ptemp[128]; |
3468 | ||
3469 | self = self; | |
2f90df85 | 3470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3471 | return NULL; |
1d99702e RD |
3472 | if (_argo0) { |
3473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3476 | return NULL; | |
3477 | } | |
3478 | } | |
2f90df85 RD |
3479 | { |
3480 | _arg1 = &temp; | |
3481 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3482 | return NULL; |
2f90df85 | 3483 | } |
cf694132 RD |
3484 | { |
3485 | wxPy_BEGIN_ALLOW_THREADS; | |
3486 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3487 | ||
3488 | wxPy_END_ALLOW_THREADS; | |
3489 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
af309447 RD |
3490 | _resultobj = Py_BuildValue("s",_ptemp); |
3491 | return _resultobj; | |
3492 | } | |
3493 | ||
8ab979d7 | 3494 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3495 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3496 | PyObject * _resultobj; |
3497 | wxWindow * _arg0; | |
3498 | int _arg1; | |
3499 | int _arg2; | |
1d99702e RD |
3500 | wxRect * _arg3 = (wxRect *) NULL; |
3501 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3502 | wxRect temp; |
3503 | PyObject * _obj3 = 0; | |
efc5f224 | 3504 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3505 | |
3506 | self = self; | |
2f90df85 | 3507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3508 | return NULL; |
1d99702e RD |
3509 | if (_argo0) { |
3510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3513 | return NULL; | |
3514 | } | |
3515 | } | |
2f90df85 RD |
3516 | if (_obj3) |
3517 | { | |
3518 | _arg3 = &temp; | |
3519 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3520 | return NULL; |
2f90df85 | 3521 | } |
cf694132 RD |
3522 | { |
3523 | wxPy_BEGIN_ALLOW_THREADS; | |
3524 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3525 | ||
3526 | wxPy_END_ALLOW_THREADS; | |
3527 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3528 | _resultobj = Py_None; |
3529 | return _resultobj; | |
3530 | } | |
3531 | ||
b8b8dda7 | 3532 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
efc5f224 | 3533 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
3534 | PyObject * _resultobj; |
3535 | wxWindow * _arg0; | |
3536 | wxAcceleratorTable * _arg1; | |
1d99702e RD |
3537 | PyObject * _argo0 = 0; |
3538 | PyObject * _argo1 = 0; | |
efc5f224 | 3539 | char *_kwnames[] = { "self","accel", NULL }; |
b8b8dda7 RD |
3540 | |
3541 | self = self; | |
efc5f224 | 3542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 3543 | return NULL; |
1d99702e RD |
3544 | if (_argo0) { |
3545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
3547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); |
3548 | return NULL; | |
3549 | } | |
3550 | } | |
1d99702e RD |
3551 | if (_argo1) { |
3552 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3553 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
b8b8dda7 RD |
3554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
3555 | return NULL; | |
3556 | } | |
3557 | } | |
cf694132 RD |
3558 | { |
3559 | wxPy_BEGIN_ALLOW_THREADS; | |
3560 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
3561 | ||
3562 | wxPy_END_ALLOW_THREADS; | |
3563 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
3564 | _resultobj = Py_None; |
3565 | return _resultobj; | |
3566 | } | |
3567 | ||
8ab979d7 | 3568 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) |
efc5f224 | 3569 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3570 | PyObject * _resultobj; |
3571 | wxWindow * _arg0; | |
3572 | bool _arg1; | |
1d99702e | 3573 | PyObject * _argo0 = 0; |
8ab979d7 | 3574 | int tempbool1; |
efc5f224 | 3575 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3576 | |
3577 | self = self; | |
efc5f224 | 3578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3579 | return NULL; |
1d99702e RD |
3580 | if (_argo0) { |
3581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3584 | return NULL; | |
3585 | } | |
3586 | } | |
3587 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3588 | { |
3589 | wxPy_BEGIN_ALLOW_THREADS; | |
3590 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3591 | ||
3592 | wxPy_END_ALLOW_THREADS; | |
3593 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3594 | _resultobj = Py_None; |
3595 | return _resultobj; | |
3596 | } | |
3597 | ||
9d8bd15f RD |
3598 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3599 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3600 | PyObject * _resultobj; | |
3601 | bool _result; | |
3602 | wxWindow * _arg0; | |
3603 | PyObject * _argo0 = 0; | |
3604 | char *_kwnames[] = { "self", NULL }; | |
3605 | ||
3606 | self = self; | |
3607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3608 | return NULL; | |
3609 | if (_argo0) { | |
3610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3613 | return NULL; | |
3614 | } | |
3615 | } | |
3616 | { | |
3617 | wxPy_BEGIN_ALLOW_THREADS; | |
3618 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3619 | ||
3620 | wxPy_END_ALLOW_THREADS; | |
3621 | } _resultobj = Py_BuildValue("i",_result); | |
3622 | return _resultobj; | |
3623 | } | |
3624 | ||
8ab979d7 | 3625 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3626 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3627 | PyObject * _resultobj; |
3628 | wxWindow * _arg0; | |
3629 | wxColour * _arg1; | |
1d99702e | 3630 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3631 | wxColour temp; |
3632 | PyObject * _obj1 = 0; | |
efc5f224 | 3633 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3634 | |
3635 | self = self; | |
f6bcfd97 | 3636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3637 | return NULL; |
1d99702e RD |
3638 | if (_argo0) { |
3639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3642 | return NULL; | |
3643 | } | |
3644 | } | |
f6bcfd97 BP |
3645 | { |
3646 | _arg1 = &temp; | |
3647 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3648 | return NULL; |
f6bcfd97 | 3649 | } |
cf694132 RD |
3650 | { |
3651 | wxPy_BEGIN_ALLOW_THREADS; | |
3652 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3653 | ||
3654 | wxPy_END_ALLOW_THREADS; | |
3655 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3656 | _resultobj = Py_None; |
3657 | return _resultobj; | |
3658 | } | |
3659 | ||
3660 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3661 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3662 | PyObject * _resultobj; |
3663 | wxWindow * _arg0; | |
3664 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3665 | PyObject * _argo0 = 0; |
3666 | PyObject * _argo1 = 0; | |
efc5f224 | 3667 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3668 | |
3669 | self = self; | |
efc5f224 | 3670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3671 | return NULL; |
1d99702e RD |
3672 | if (_argo0) { |
3673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3676 | return NULL; | |
3677 | } | |
3678 | } | |
1d99702e RD |
3679 | if (_argo1) { |
3680 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3681 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3683 | return NULL; | |
3684 | } | |
3685 | } | |
cf694132 RD |
3686 | { |
3687 | wxPy_BEGIN_ALLOW_THREADS; | |
3688 | wxWindow_SetConstraints(_arg0,_arg1); | |
3689 | ||
3690 | wxPy_END_ALLOW_THREADS; | |
3691 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3692 | _resultobj = Py_None; |
3693 | return _resultobj; | |
3694 | } | |
3695 | ||
2f90df85 RD |
3696 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3697 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3698 | PyObject * _resultobj; | |
3699 | wxWindow * _arg0; | |
3700 | wxLayoutConstraints * _arg1; | |
3701 | PyObject * _argo0 = 0; | |
3702 | PyObject * _argo1 = 0; | |
3703 | char *_kwnames[] = { "self","constraints", NULL }; | |
3704 | ||
3705 | self = self; | |
3706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3707 | return NULL; | |
3708 | if (_argo0) { | |
3709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3712 | return NULL; | |
3713 | } | |
3714 | } | |
3715 | if (_argo1) { | |
3716 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3717 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3719 | return NULL; | |
3720 | } | |
3721 | } | |
3722 | { | |
3723 | wxPy_BEGIN_ALLOW_THREADS; | |
3724 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3725 | ||
3726 | wxPy_END_ALLOW_THREADS; | |
3727 | } Py_INCREF(Py_None); | |
3728 | _resultobj = Py_None; | |
3729 | return _resultobj; | |
3730 | } | |
3731 | ||
8ab979d7 | 3732 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3733 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3734 | PyObject * _resultobj; |
3735 | wxWindow * _arg0; | |
1d99702e | 3736 | PyObject * _argo0 = 0; |
efc5f224 | 3737 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3738 | |
3739 | self = self; | |
efc5f224 | 3740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3741 | return NULL; |
1d99702e RD |
3742 | if (_argo0) { |
3743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3746 | return NULL; | |
3747 | } | |
3748 | } | |
cf694132 RD |
3749 | { |
3750 | wxPy_BEGIN_ALLOW_THREADS; | |
3751 | wxWindow_SetFocus(_arg0); | |
3752 | ||
3753 | wxPy_END_ALLOW_THREADS; | |
3754 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3755 | _resultobj = Py_None; |
3756 | return _resultobj; | |
3757 | } | |
3758 | ||
2f90df85 RD |
3759 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3760 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3761 | PyObject * _resultobj; | |
3762 | bool _result; | |
3763 | wxWindow * _arg0; | |
3764 | PyObject * _argo0 = 0; | |
3765 | char *_kwnames[] = { "self", NULL }; | |
3766 | ||
3767 | self = self; | |
3768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3769 | return NULL; | |
3770 | if (_argo0) { | |
3771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3774 | return NULL; | |
3775 | } | |
3776 | } | |
3777 | { | |
3778 | wxPy_BEGIN_ALLOW_THREADS; | |
3779 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3780 | ||
3781 | wxPy_END_ALLOW_THREADS; | |
3782 | } _resultobj = Py_BuildValue("i",_result); | |
3783 | return _resultobj; | |
3784 | } | |
3785 | ||
8ab979d7 | 3786 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 3787 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3788 | PyObject * _resultobj; |
3789 | wxWindow * _arg0; | |
3790 | wxFont * _arg1; | |
1d99702e RD |
3791 | PyObject * _argo0 = 0; |
3792 | PyObject * _argo1 = 0; | |
efc5f224 | 3793 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
3794 | |
3795 | self = self; | |
efc5f224 | 3796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3797 | return NULL; |
1d99702e RD |
3798 | if (_argo0) { |
3799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3802 | return NULL; | |
3803 | } | |
3804 | } | |
1d99702e RD |
3805 | if (_argo1) { |
3806 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3807 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
3808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3809 | return NULL; | |
3810 | } | |
3811 | } | |
cf694132 RD |
3812 | { |
3813 | wxPy_BEGIN_ALLOW_THREADS; | |
3814 | wxWindow_SetFont(_arg0,*_arg1); | |
3815 | ||
3816 | wxPy_END_ALLOW_THREADS; | |
3817 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3818 | _resultobj = Py_None; |
3819 | return _resultobj; | |
3820 | } | |
3821 | ||
3822 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 3823 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3824 | PyObject * _resultobj; |
3825 | wxWindow * _arg0; | |
3826 | wxColour * _arg1; | |
1d99702e | 3827 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3828 | wxColour temp; |
3829 | PyObject * _obj1 = 0; | |
efc5f224 | 3830 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3831 | |
3832 | self = self; | |
f6bcfd97 | 3833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3834 | return NULL; |
1d99702e RD |
3835 | if (_argo0) { |
3836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
3839 | return NULL; | |
3840 | } | |
3841 | } | |
f6bcfd97 BP |
3842 | { |
3843 | _arg1 = &temp; | |
3844 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3845 | return NULL; |
f6bcfd97 | 3846 | } |
cf694132 RD |
3847 | { |
3848 | wxPy_BEGIN_ALLOW_THREADS; | |
3849 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3850 | ||
3851 | wxPy_END_ALLOW_THREADS; | |
3852 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3853 | _resultobj = Py_None; |
3854 | return _resultobj; | |
3855 | } | |
3856 | ||
3857 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 3858 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3859 | PyObject * _resultobj; |
3860 | wxWindow * _arg0; | |
3861 | int _arg1; | |
1d99702e | 3862 | PyObject * _argo0 = 0; |
efc5f224 | 3863 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
3864 | |
3865 | self = self; | |
efc5f224 | 3866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3867 | return NULL; |
1d99702e RD |
3868 | if (_argo0) { |
3869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
3872 | return NULL; | |
3873 | } | |
3874 | } | |
cf694132 RD |
3875 | { |
3876 | wxPy_BEGIN_ALLOW_THREADS; | |
3877 | wxWindow_SetId(_arg0,_arg1); | |
3878 | ||
3879 | wxPy_END_ALLOW_THREADS; | |
3880 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3881 | _resultobj = Py_None; |
3882 | return _resultobj; | |
3883 | } | |
3884 | ||
3885 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 3886 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3887 | PyObject * _resultobj; |
3888 | wxWindow * _arg0; | |
3889 | wxString * _arg1; | |
1d99702e | 3890 | PyObject * _argo0 = 0; |
8ab979d7 | 3891 | PyObject * _obj1 = 0; |
efc5f224 | 3892 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
3893 | |
3894 | self = self; | |
efc5f224 | 3895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3896 | return NULL; |
1d99702e RD |
3897 | if (_argo0) { |
3898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
3901 | return NULL; | |
3902 | } | |
3903 | } | |
3904 | { | |
3905 | if (!PyString_Check(_obj1)) { | |
3906 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3907 | return NULL; | |
3908 | } | |
cf694132 | 3909 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 3910 | } |
cf694132 RD |
3911 | { |
3912 | wxPy_BEGIN_ALLOW_THREADS; | |
3913 | wxWindow_SetName(_arg0,*_arg1); | |
3914 | ||
3915 | wxPy_END_ALLOW_THREADS; | |
3916 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3917 | _resultobj = Py_None; |
3918 | { | |
3919 | if (_obj1) | |
3920 | delete _arg1; | |
3921 | } | |
3922 | return _resultobj; | |
3923 | } | |
3924 | ||
8ab979d7 | 3925 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 3926 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3927 | PyObject * _resultobj; |
3928 | wxWindow * _arg0; | |
3929 | int _arg1; | |
3930 | int _arg2; | |
3931 | int _arg3; | |
3932 | int _arg4; | |
eb715945 | 3933 | int _arg5 = (int ) TRUE; |
1d99702e | 3934 | PyObject * _argo0 = 0; |
efc5f224 | 3935 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
3936 | |
3937 | self = self; | |
eb715945 | 3938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 3939 | return NULL; |
1d99702e RD |
3940 | if (_argo0) { |
3941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
3944 | return NULL; | |
3945 | } | |
3946 | } | |
cf694132 RD |
3947 | { |
3948 | wxPy_BEGIN_ALLOW_THREADS; | |
3949 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
3950 | ||
3951 | wxPy_END_ALLOW_THREADS; | |
3952 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3953 | _resultobj = Py_None; |
3954 | return _resultobj; | |
3955 | } | |
3956 | ||
3957 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3958 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3959 | PyObject * _resultobj; |
3960 | wxWindow * _arg0; | |
3961 | int _arg1; | |
3962 | int _arg2; | |
1d99702e RD |
3963 | bool _arg3 = (bool ) TRUE; |
3964 | PyObject * _argo0 = 0; | |
3965 | int tempbool3 = (int) TRUE; | |
efc5f224 | 3966 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
3967 | |
3968 | self = self; | |
efc5f224 | 3969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 3970 | return NULL; |
1d99702e RD |
3971 | if (_argo0) { |
3972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
3975 | return NULL; | |
3976 | } | |
3977 | } | |
3978 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
3979 | { |
3980 | wxPy_BEGIN_ALLOW_THREADS; | |
3981 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
3982 | ||
3983 | wxPy_END_ALLOW_THREADS; | |
3984 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3985 | _resultobj = Py_None; |
3986 | return _resultobj; | |
3987 | } | |
3988 | ||
3989 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 3990 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3991 | PyObject * _resultobj; |
3992 | wxWindow * _arg0; | |
3993 | int _arg1; | |
3994 | int _arg2; | |
3995 | int _arg3; | |
3996 | int _arg4; | |
1d99702e RD |
3997 | int _arg5 = (int ) wxSIZE_AUTO; |
3998 | PyObject * _argo0 = 0; | |
efc5f224 | 3999 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4000 | |
4001 | self = self; | |
efc5f224 | 4002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4003 | return NULL; |
1d99702e RD |
4004 | if (_argo0) { |
4005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4008 | return NULL; | |
4009 | } | |
4010 | } | |
cf694132 RD |
4011 | { |
4012 | wxPy_BEGIN_ALLOW_THREADS; | |
4013 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4014 | ||
4015 | wxPy_END_ALLOW_THREADS; | |
4016 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4017 | _resultobj = Py_None; |
4018 | return _resultobj; | |
4019 | } | |
4020 | ||
4021 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4022 | self->SetSize(size); |
8ab979d7 | 4023 | } |
efc5f224 | 4024 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4025 | PyObject * _resultobj; |
4026 | wxWindow * _arg0; | |
4027 | wxSize * _arg1; | |
1d99702e | 4028 | PyObject * _argo0 = 0; |
2f90df85 RD |
4029 | wxSize temp; |
4030 | PyObject * _obj1 = 0; | |
efc5f224 | 4031 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4032 | |
4033 | self = self; | |
2f90df85 | 4034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4035 | return NULL; |
1d99702e RD |
4036 | if (_argo0) { |
4037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4040 | return NULL; | |
4041 | } | |
4042 | } | |
2f90df85 RD |
4043 | { |
4044 | _arg1 = &temp; | |
4045 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4046 | return NULL; |
2f90df85 | 4047 | } |
cf694132 RD |
4048 | { |
4049 | wxPy_BEGIN_ALLOW_THREADS; | |
4050 | wxWindow_SetSize(_arg0,*_arg1); | |
4051 | ||
4052 | wxPy_END_ALLOW_THREADS; | |
4053 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4054 | _resultobj = Py_None; |
4055 | return _resultobj; | |
4056 | } | |
4057 | ||
4058 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
b7e72427 | 4059 | self->Move(pos); |
8ab979d7 | 4060 | } |
efc5f224 | 4061 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4062 | PyObject * _resultobj; |
4063 | wxWindow * _arg0; | |
4064 | wxPoint * _arg1; | |
1d99702e | 4065 | PyObject * _argo0 = 0; |
2f90df85 RD |
4066 | wxPoint temp; |
4067 | PyObject * _obj1 = 0; | |
efc5f224 | 4068 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4069 | |
4070 | self = self; | |
2f90df85 | 4071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4072 | return NULL; |
1d99702e RD |
4073 | if (_argo0) { |
4074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4077 | return NULL; | |
4078 | } | |
4079 | } | |
2f90df85 RD |
4080 | { |
4081 | _arg1 = &temp; | |
4082 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4083 | return NULL; |
2f90df85 | 4084 | } |
cf694132 RD |
4085 | { |
4086 | wxPy_BEGIN_ALLOW_THREADS; | |
4087 | wxWindow_SetPosition(_arg0,*_arg1); | |
4088 | ||
4089 | wxPy_END_ALLOW_THREADS; | |
4090 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4091 | _resultobj = Py_None; |
4092 | return _resultobj; | |
4093 | } | |
4094 | ||
4095 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 4096 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4097 | PyObject * _resultobj; |
4098 | wxWindow * _arg0; | |
1d99702e RD |
4099 | int _arg1 = (int ) -1; |
4100 | int _arg2 = (int ) -1; | |
4101 | int _arg3 = (int ) -1; | |
4102 | int _arg4 = (int ) -1; | |
4103 | int _arg5 = (int ) -1; | |
4104 | int _arg6 = (int ) -1; | |
4105 | PyObject * _argo0 = 0; | |
efc5f224 | 4106 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4107 | |
4108 | self = self; | |
efc5f224 | 4109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4110 | return NULL; |
1d99702e RD |
4111 | if (_argo0) { |
4112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4115 | return NULL; | |
4116 | } | |
4117 | } | |
cf694132 RD |
4118 | { |
4119 | wxPy_BEGIN_ALLOW_THREADS; | |
4120 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4121 | ||
4122 | wxPy_END_ALLOW_THREADS; | |
4123 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4124 | _resultobj = Py_None; |
4125 | return _resultobj; | |
4126 | } | |
4127 | ||
af309447 | 4128 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4129 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4130 | PyObject * _resultobj; |
4131 | wxWindow * _arg0; | |
4132 | int _arg1; | |
4133 | int _arg2; | |
1d99702e | 4134 | PyObject * _argo0 = 0; |
efc5f224 | 4135 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4136 | |
4137 | self = self; | |
efc5f224 | 4138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4139 | return NULL; |
1d99702e RD |
4140 | if (_argo0) { |
4141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4144 | return NULL; | |
4145 | } | |
4146 | } | |
cf694132 RD |
4147 | { |
4148 | wxPy_BEGIN_ALLOW_THREADS; | |
4149 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4150 | ||
4151 | wxPy_END_ALLOW_THREADS; | |
4152 | } Py_INCREF(Py_None); | |
af309447 RD |
4153 | _resultobj = Py_None; |
4154 | return _resultobj; | |
4155 | } | |
4156 | ||
4157 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4158 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4159 | PyObject * _resultobj; |
4160 | wxWindow * _arg0; | |
4161 | wxSize * _arg1; | |
1d99702e | 4162 | PyObject * _argo0 = 0; |
2f90df85 RD |
4163 | wxSize temp; |
4164 | PyObject * _obj1 = 0; | |
efc5f224 | 4165 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4166 | |
4167 | self = self; | |
2f90df85 | 4168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4169 | return NULL; |
1d99702e RD |
4170 | if (_argo0) { |
4171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4174 | return NULL; | |
4175 | } | |
4176 | } | |
2f90df85 RD |
4177 | { |
4178 | _arg1 = &temp; | |
4179 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4180 | return NULL; |
2f90df85 | 4181 | } |
cf694132 RD |
4182 | { |
4183 | wxPy_BEGIN_ALLOW_THREADS; | |
4184 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4185 | ||
4186 | wxPy_END_ALLOW_THREADS; | |
4187 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4188 | _resultobj = Py_None; |
4189 | return _resultobj; | |
4190 | } | |
4191 | ||
4192 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4193 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4194 | PyObject * _resultobj; |
4195 | wxWindow * _arg0; | |
4196 | wxCursor * _arg1; | |
1d99702e RD |
4197 | PyObject * _argo0 = 0; |
4198 | PyObject * _argo1 = 0; | |
efc5f224 | 4199 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4200 | |
4201 | self = self; | |
efc5f224 | 4202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4203 | return NULL; |
1d99702e RD |
4204 | if (_argo0) { |
4205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4208 | return NULL; | |
4209 | } | |
4210 | } | |
1d99702e RD |
4211 | if (_argo1) { |
4212 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4213 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4215 | return NULL; | |
4216 | } | |
4217 | } | |
cf694132 RD |
4218 | { |
4219 | wxPy_BEGIN_ALLOW_THREADS; | |
4220 | wxWindow_SetCursor(_arg0,*_arg1); | |
4221 | ||
4222 | wxPy_END_ALLOW_THREADS; | |
4223 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4224 | _resultobj = Py_None; |
4225 | return _resultobj; | |
4226 | } | |
4227 | ||
1afc06c2 RD |
4228 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4229 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4230 | PyObject * _resultobj; | |
4231 | wxWindow * _arg0; | |
4232 | wxEvtHandler * _arg1; | |
4233 | PyObject * _argo0 = 0; | |
4234 | PyObject * _argo1 = 0; | |
4235 | char *_kwnames[] = { "self","handler", NULL }; | |
4236 | ||
4237 | self = self; | |
4238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4239 | return NULL; | |
4240 | if (_argo0) { | |
4241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4244 | return NULL; | |
4245 | } | |
4246 | } | |
4247 | if (_argo1) { | |
4248 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4249 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4251 | return NULL; | |
4252 | } | |
4253 | } | |
4254 | { | |
4255 | wxPy_BEGIN_ALLOW_THREADS; | |
4256 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4257 | ||
4258 | wxPy_END_ALLOW_THREADS; | |
4259 | } Py_INCREF(Py_None); | |
4260 | _resultobj = Py_None; | |
4261 | return _resultobj; | |
4262 | } | |
4263 | ||
8ab979d7 | 4264 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4265 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4266 | PyObject * _resultobj; |
4267 | wxWindow * _arg0; | |
4268 | wxString * _arg1; | |
1d99702e | 4269 | PyObject * _argo0 = 0; |
8ab979d7 | 4270 | PyObject * _obj1 = 0; |
efc5f224 | 4271 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4272 | |
4273 | self = self; | |
efc5f224 | 4274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4275 | return NULL; |
1d99702e RD |
4276 | if (_argo0) { |
4277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4280 | return NULL; | |
4281 | } | |
4282 | } | |
4283 | { | |
4284 | if (!PyString_Check(_obj1)) { | |
4285 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4286 | return NULL; | |
4287 | } | |
cf694132 | 4288 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 4289 | } |
cf694132 RD |
4290 | { |
4291 | wxPy_BEGIN_ALLOW_THREADS; | |
4292 | wxWindow_SetTitle(_arg0,*_arg1); | |
4293 | ||
4294 | wxPy_END_ALLOW_THREADS; | |
4295 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4296 | _resultobj = Py_None; |
4297 | { | |
4298 | if (_obj1) | |
4299 | delete _arg1; | |
4300 | } | |
4301 | return _resultobj; | |
4302 | } | |
4303 | ||
4304 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4305 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4306 | PyObject * _resultobj; |
4307 | bool _result; | |
4308 | wxWindow * _arg0; | |
4309 | bool _arg1; | |
1d99702e | 4310 | PyObject * _argo0 = 0; |
8ab979d7 | 4311 | int tempbool1; |
efc5f224 | 4312 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4313 | |
4314 | self = self; | |
efc5f224 | 4315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4316 | return NULL; |
1d99702e RD |
4317 | if (_argo0) { |
4318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4321 | return NULL; | |
4322 | } | |
4323 | } | |
4324 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4325 | { |
4326 | wxPy_BEGIN_ALLOW_THREADS; | |
4327 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4328 | ||
4329 | wxPy_END_ALLOW_THREADS; | |
4330 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4331 | return _resultobj; |
4332 | } | |
4333 | ||
4334 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4335 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4336 | PyObject * _resultobj; |
4337 | bool _result; | |
4338 | wxWindow * _arg0; | |
1d99702e | 4339 | PyObject * _argo0 = 0; |
efc5f224 | 4340 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4341 | |
4342 | self = self; | |
efc5f224 | 4343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4344 | return NULL; |
1d99702e RD |
4345 | if (_argo0) { |
4346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4349 | return NULL; | |
4350 | } | |
4351 | } | |
cf694132 RD |
4352 | { |
4353 | wxPy_BEGIN_ALLOW_THREADS; | |
4354 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4355 | ||
4356 | wxPy_END_ALLOW_THREADS; | |
4357 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4358 | return _resultobj; |
4359 | } | |
4360 | ||
4361 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4362 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4363 | PyObject * _resultobj; |
4364 | bool _result; | |
4365 | wxWindow * _arg0; | |
1d99702e | 4366 | PyObject * _argo0 = 0; |
efc5f224 | 4367 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4368 | |
4369 | self = self; | |
efc5f224 | 4370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4371 | return NULL; |
1d99702e RD |
4372 | if (_argo0) { |
4373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4376 | return NULL; | |
4377 | } | |
4378 | } | |
cf694132 RD |
4379 | { |
4380 | wxPy_BEGIN_ALLOW_THREADS; | |
4381 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4382 | ||
4383 | wxPy_END_ALLOW_THREADS; | |
4384 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4385 | return _resultobj; |
4386 | } | |
4387 | ||
4388 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4389 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4390 | PyObject * _resultobj; |
4391 | bool _result; | |
4392 | wxWindow * _arg0; | |
1d99702e | 4393 | PyObject * _argo0 = 0; |
efc5f224 | 4394 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4395 | |
4396 | self = self; | |
efc5f224 | 4397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4398 | return NULL; |
1d99702e RD |
4399 | if (_argo0) { |
4400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4403 | return NULL; | |
4404 | } | |
4405 | } | |
cf694132 RD |
4406 | { |
4407 | wxPy_BEGIN_ALLOW_THREADS; | |
4408 | _result = (bool )wxWindow_Validate(_arg0); | |
4409 | ||
4410 | wxPy_END_ALLOW_THREADS; | |
4411 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4412 | return _resultobj; |
4413 | } | |
4414 | ||
4415 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4416 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4417 | PyObject * _resultobj; |
4418 | wxWindow * _arg0; | |
4419 | int _arg1; | |
4420 | int _arg2; | |
1d99702e | 4421 | PyObject * _argo0 = 0; |
efc5f224 | 4422 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4423 | |
4424 | self = self; | |
efc5f224 | 4425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4426 | return NULL; |
1d99702e RD |
4427 | if (_argo0) { |
4428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4431 | return NULL; | |
4432 | } | |
4433 | } | |
cf694132 RD |
4434 | { |
4435 | wxPy_BEGIN_ALLOW_THREADS; | |
4436 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4437 | ||
4438 | wxPy_END_ALLOW_THREADS; | |
4439 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4440 | _resultobj = Py_None; |
4441 | return _resultobj; | |
4442 | } | |
4443 | ||
b8b8dda7 | 4444 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4445 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4446 | PyObject * _resultobj; |
4447 | wxPoint * _result; | |
4448 | wxWindow * _arg0; | |
4449 | wxPoint * _arg1; | |
1d99702e | 4450 | PyObject * _argo0 = 0; |
2f90df85 RD |
4451 | wxPoint temp; |
4452 | PyObject * _obj1 = 0; | |
efc5f224 | 4453 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4454 | char _ptemp[128]; |
4455 | ||
4456 | self = self; | |
2f90df85 | 4457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4458 | return NULL; |
1d99702e RD |
4459 | if (_argo0) { |
4460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4463 | return NULL; | |
4464 | } | |
4465 | } | |
2f90df85 RD |
4466 | { |
4467 | _arg1 = &temp; | |
4468 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4469 | return NULL; |
2f90df85 | 4470 | } |
cf694132 RD |
4471 | { |
4472 | wxPy_BEGIN_ALLOW_THREADS; | |
4473 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4474 | ||
4475 | wxPy_END_ALLOW_THREADS; | |
4476 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
4477 | _resultobj = Py_BuildValue("s",_ptemp); |
4478 | return _resultobj; | |
4479 | } | |
4480 | ||
4481 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4482 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4483 | PyObject * _resultobj; |
4484 | wxSize * _result; | |
4485 | wxWindow * _arg0; | |
4486 | wxSize * _arg1; | |
1d99702e | 4487 | PyObject * _argo0 = 0; |
2f90df85 RD |
4488 | wxSize temp; |
4489 | PyObject * _obj1 = 0; | |
efc5f224 | 4490 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4491 | char _ptemp[128]; |
4492 | ||
4493 | self = self; | |
2f90df85 | 4494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4495 | return NULL; |
1d99702e RD |
4496 | if (_argo0) { |
4497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4500 | return NULL; | |
4501 | } | |
4502 | } | |
2f90df85 RD |
4503 | { |
4504 | _arg1 = &temp; | |
4505 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4506 | return NULL; |
2f90df85 | 4507 | } |
cf694132 RD |
4508 | { |
4509 | wxPy_BEGIN_ALLOW_THREADS; | |
4510 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4511 | ||
4512 | wxPy_END_ALLOW_THREADS; | |
4513 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
4514 | _resultobj = Py_BuildValue("s",_ptemp); |
4515 | return _resultobj; | |
4516 | } | |
4517 | ||
4518 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4519 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4520 | PyObject * _resultobj; |
4521 | wxPoint * _result; | |
4522 | wxWindow * _arg0; | |
4523 | wxPoint * _arg1; | |
1d99702e | 4524 | PyObject * _argo0 = 0; |
2f90df85 RD |
4525 | wxPoint temp; |
4526 | PyObject * _obj1 = 0; | |
efc5f224 | 4527 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4528 | char _ptemp[128]; |
4529 | ||
4530 | self = self; | |
2f90df85 | 4531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4532 | return NULL; |
1d99702e RD |
4533 | if (_argo0) { |
4534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4537 | return NULL; | |
4538 | } | |
4539 | } | |
2f90df85 RD |
4540 | { |
4541 | _arg1 = &temp; | |
4542 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4543 | return NULL; |
2f90df85 | 4544 | } |
cf694132 RD |
4545 | { |
4546 | wxPy_BEGIN_ALLOW_THREADS; | |
4547 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4548 | ||
4549 | wxPy_END_ALLOW_THREADS; | |
4550 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
4551 | _resultobj = Py_BuildValue("s",_ptemp); |
4552 | return _resultobj; | |
4553 | } | |
4554 | ||
4555 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4556 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4557 | PyObject * _resultobj; |
4558 | wxSize * _result; | |
4559 | wxWindow * _arg0; | |
4560 | wxSize * _arg1; | |
1d99702e | 4561 | PyObject * _argo0 = 0; |
2f90df85 RD |
4562 | wxSize temp; |
4563 | PyObject * _obj1 = 0; | |
efc5f224 | 4564 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4565 | char _ptemp[128]; |
4566 | ||
4567 | self = self; | |
2f90df85 | 4568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4569 | return NULL; |
1d99702e RD |
4570 | if (_argo0) { |
4571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4574 | return NULL; | |
4575 | } | |
4576 | } | |
2f90df85 RD |
4577 | { |
4578 | _arg1 = &temp; | |
4579 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4580 | return NULL; |
2f90df85 | 4581 | } |
cf694132 RD |
4582 | { |
4583 | wxPy_BEGIN_ALLOW_THREADS; | |
4584 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4585 | ||
4586 | wxPy_END_ALLOW_THREADS; | |
4587 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
4588 | _resultobj = Py_BuildValue("s",_ptemp); |
4589 | return _resultobj; | |
4590 | } | |
4591 | ||
af309447 | 4592 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4593 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4594 | PyObject * _resultobj; |
4595 | wxWindow * _arg0; | |
4596 | wxString * _arg1; | |
1d99702e | 4597 | PyObject * _argo0 = 0; |
af309447 | 4598 | PyObject * _obj1 = 0; |
efc5f224 | 4599 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4600 | |
4601 | self = self; | |
efc5f224 | 4602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4603 | return NULL; |
1d99702e RD |
4604 | if (_argo0) { |
4605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4608 | return NULL; | |
4609 | } | |
4610 | } | |
4611 | { | |
4612 | if (!PyString_Check(_obj1)) { | |
4613 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4614 | return NULL; | |
4615 | } | |
cf694132 | 4616 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
af309447 | 4617 | } |
cf694132 RD |
4618 | { |
4619 | wxPy_BEGIN_ALLOW_THREADS; | |
4620 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4621 | ||
4622 | wxPy_END_ALLOW_THREADS; | |
4623 | } Py_INCREF(Py_None); | |
af309447 RD |
4624 | _resultobj = Py_None; |
4625 | { | |
4626 | if (_obj1) | |
4627 | delete _arg1; | |
4628 | } | |
4629 | return _resultobj; | |
4630 | } | |
4631 | ||
4632 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4633 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4634 | PyObject * _resultobj; |
4635 | wxWindow * _arg0; | |
4636 | wxToolTip * _arg1; | |
1d99702e RD |
4637 | PyObject * _argo0 = 0; |
4638 | PyObject * _argo1 = 0; | |
efc5f224 | 4639 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4640 | |
4641 | self = self; | |
efc5f224 | 4642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4643 | return NULL; |
1d99702e RD |
4644 | if (_argo0) { |
4645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4648 | return NULL; | |
4649 | } | |
4650 | } | |
1d99702e RD |
4651 | if (_argo1) { |
4652 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4653 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4655 | return NULL; | |
4656 | } | |
4657 | } | |
cf694132 RD |
4658 | { |
4659 | wxPy_BEGIN_ALLOW_THREADS; | |
4660 | wxWindow_SetToolTip(_arg0,_arg1); | |
4661 | ||
4662 | wxPy_END_ALLOW_THREADS; | |
4663 | } Py_INCREF(Py_None); | |
af309447 RD |
4664 | _resultobj = Py_None; |
4665 | return _resultobj; | |
4666 | } | |
4667 | ||
4668 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 4669 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4670 | PyObject * _resultobj; |
4671 | wxToolTip * _result; | |
4672 | wxWindow * _arg0; | |
1d99702e | 4673 | PyObject * _argo0 = 0; |
efc5f224 | 4674 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
4675 | char _ptemp[128]; |
4676 | ||
4677 | self = self; | |
efc5f224 | 4678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 4679 | return NULL; |
1d99702e RD |
4680 | if (_argo0) { |
4681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4684 | return NULL; | |
4685 | } | |
4686 | } | |
cf694132 RD |
4687 | { |
4688 | wxPy_BEGIN_ALLOW_THREADS; | |
4689 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4690 | ||
4691 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4692 | } if (_result) { |
4693 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
4694 | _resultobj = Py_BuildValue("s",_ptemp); | |
4695 | } else { | |
4696 | Py_INCREF(Py_None); | |
4697 | _resultobj = Py_None; | |
4698 | } | |
af309447 RD |
4699 | return _resultobj; |
4700 | } | |
4701 | ||
2f90df85 RD |
4702 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
4703 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4704 | PyObject * _resultobj; | |
4705 | wxWindow * _arg0; | |
4706 | wxSizer * _arg1; | |
4707 | PyObject * _argo0 = 0; | |
4708 | PyObject * _argo1 = 0; | |
4709 | char *_kwnames[] = { "self","sizer", NULL }; | |
4710 | ||
4711 | self = self; | |
4712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4713 | return NULL; | |
4714 | if (_argo0) { | |
4715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4718 | return NULL; | |
4719 | } | |
4720 | } | |
4721 | if (_argo1) { | |
4722 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4723 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4725 | return NULL; | |
4726 | } | |
4727 | } | |
4728 | { | |
4729 | wxPy_BEGIN_ALLOW_THREADS; | |
4730 | wxWindow_SetSizer(_arg0,_arg1); | |
4731 | ||
4732 | wxPy_END_ALLOW_THREADS; | |
4733 | } Py_INCREF(Py_None); | |
4734 | _resultobj = Py_None; | |
4735 | return _resultobj; | |
4736 | } | |
4737 | ||
f6bcfd97 BP |
4738 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
4739 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4740 | PyObject * _resultobj; | |
4741 | wxSizer * _result; | |
4742 | wxWindow * _arg0; | |
4743 | PyObject * _argo0 = 0; | |
4744 | char *_kwnames[] = { "self", NULL }; | |
4745 | char _ptemp[128]; | |
4746 | ||
4747 | self = self; | |
4748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
4749 | return NULL; | |
4750 | if (_argo0) { | |
4751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
4754 | return NULL; | |
4755 | } | |
4756 | } | |
4757 | { | |
4758 | wxPy_BEGIN_ALLOW_THREADS; | |
4759 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
4760 | ||
4761 | wxPy_END_ALLOW_THREADS; | |
4762 | } if (_result) { | |
4763 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p"); | |
4764 | _resultobj = Py_BuildValue("s",_ptemp); | |
4765 | } else { | |
4766 | Py_INCREF(Py_None); | |
4767 | _resultobj = Py_None; | |
4768 | } | |
4769 | return _resultobj; | |
4770 | } | |
4771 | ||
2f90df85 RD |
4772 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
4773 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4774 | PyObject * _resultobj; | |
4775 | wxValidator * _result; | |
4776 | wxWindow * _arg0; | |
4777 | PyObject * _argo0 = 0; | |
4778 | char *_kwnames[] = { "self", NULL }; | |
4779 | char _ptemp[128]; | |
4780 | ||
4781 | self = self; | |
4782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
4783 | return NULL; | |
4784 | if (_argo0) { | |
4785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
4788 | return NULL; | |
4789 | } | |
4790 | } | |
4791 | { | |
4792 | wxPy_BEGIN_ALLOW_THREADS; | |
4793 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
4794 | ||
4795 | wxPy_END_ALLOW_THREADS; | |
4796 | } if (_result) { | |
4797 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
4798 | _resultobj = Py_BuildValue("s",_ptemp); | |
4799 | } else { | |
4800 | Py_INCREF(Py_None); | |
4801 | _resultobj = Py_None; | |
4802 | } | |
4803 | return _resultobj; | |
4804 | } | |
4805 | ||
4806 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
4807 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4808 | PyObject * _resultobj; | |
4809 | wxWindow * _arg0; | |
4810 | wxValidator * _arg1; | |
4811 | PyObject * _argo0 = 0; | |
4812 | PyObject * _argo1 = 0; | |
4813 | char *_kwnames[] = { "self","validator", NULL }; | |
4814 | ||
4815 | self = self; | |
4816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
4817 | return NULL; | |
4818 | if (_argo0) { | |
4819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
4822 | return NULL; | |
4823 | } | |
4824 | } | |
4825 | if (_argo1) { | |
4826 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4827 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
4828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
4829 | return NULL; | |
4830 | } | |
4831 | } | |
4832 | { | |
4833 | wxPy_BEGIN_ALLOW_THREADS; | |
4834 | wxWindow_SetValidator(_arg0,*_arg1); | |
4835 | ||
4836 | wxPy_END_ALLOW_THREADS; | |
4837 | } Py_INCREF(Py_None); | |
4838 | _resultobj = Py_None; | |
4839 | return _resultobj; | |
4840 | } | |
4841 | ||
b1462dfa RD |
4842 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
4843 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4844 | PyObject * _resultobj; | |
4845 | wxWindow * _arg0; | |
4846 | wxDropTarget * _arg1; | |
4847 | PyObject * _argo0 = 0; | |
4848 | PyObject * _argo1 = 0; | |
4849 | char *_kwnames[] = { "self","target", NULL }; | |
4850 | ||
4851 | self = self; | |
4852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
4853 | return NULL; | |
4854 | if (_argo0) { | |
4855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
4858 | return NULL; | |
4859 | } | |
4860 | } | |
4861 | if (_argo1) { | |
4862 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4863 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
4864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
4865 | return NULL; | |
4866 | } | |
4867 | } | |
4868 | { | |
4869 | wxPy_BEGIN_ALLOW_THREADS; | |
4870 | wxWindow_SetDropTarget(_arg0,_arg1); | |
4871 | ||
4872 | wxPy_END_ALLOW_THREADS; | |
4873 | } Py_INCREF(Py_None); | |
4874 | _resultobj = Py_None; | |
4875 | return _resultobj; | |
4876 | } | |
4877 | ||
4878 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
4879 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4880 | PyObject * _resultobj; | |
4881 | wxDropTarget * _result; | |
4882 | wxWindow * _arg0; | |
4883 | PyObject * _argo0 = 0; | |
4884 | char *_kwnames[] = { "self", NULL }; | |
4885 | char _ptemp[128]; | |
4886 | ||
4887 | self = self; | |
4888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
4889 | return NULL; | |
4890 | if (_argo0) { | |
4891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
4894 | return NULL; | |
4895 | } | |
4896 | } | |
4897 | { | |
4898 | wxPy_BEGIN_ALLOW_THREADS; | |
4899 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
4900 | ||
4901 | wxPy_END_ALLOW_THREADS; | |
4902 | } if (_result) { | |
4903 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
4904 | _resultobj = Py_BuildValue("s",_ptemp); | |
4905 | } else { | |
4906 | Py_INCREF(Py_None); | |
4907 | _resultobj = Py_None; | |
4908 | } | |
4909 | return _resultobj; | |
4910 | } | |
4911 | ||
694759cf RD |
4912 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
4913 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4914 | PyObject * _resultobj; | |
4915 | wxSize * _result; | |
4916 | wxWindow * _arg0; | |
4917 | PyObject * _argo0 = 0; | |
4918 | char *_kwnames[] = { "self", NULL }; | |
4919 | char _ptemp[128]; | |
4920 | ||
4921 | self = self; | |
4922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
4923 | return NULL; | |
4924 | if (_argo0) { | |
4925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
4928 | return NULL; | |
4929 | } | |
4930 | } | |
4931 | { | |
4932 | wxPy_BEGIN_ALLOW_THREADS; | |
4933 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
4934 | ||
4935 | wxPy_END_ALLOW_THREADS; | |
4936 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4937 | _resultobj = Py_BuildValue("s",_ptemp); | |
4938 | return _resultobj; | |
4939 | } | |
4940 | ||
a1df7a95 RD |
4941 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
4942 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4943 | PyObject * _resultobj; | |
4944 | wxWindow * _arg0; | |
4945 | wxCaret * _arg1; | |
4946 | PyObject * _argo0 = 0; | |
4947 | PyObject * _argo1 = 0; | |
4948 | char *_kwnames[] = { "self","caret", NULL }; | |
4949 | ||
4950 | self = self; | |
4951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
4952 | return NULL; | |
4953 | if (_argo0) { | |
4954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
4957 | return NULL; | |
4958 | } | |
4959 | } | |
4960 | if (_argo1) { | |
4961 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4962 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
4963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
4964 | return NULL; | |
4965 | } | |
4966 | } | |
4967 | { | |
4968 | wxPy_BEGIN_ALLOW_THREADS; | |
4969 | wxWindow_SetCaret(_arg0,_arg1); | |
4970 | ||
4971 | wxPy_END_ALLOW_THREADS; | |
4972 | } Py_INCREF(Py_None); | |
4973 | _resultobj = Py_None; | |
4974 | return _resultobj; | |
4975 | } | |
4976 | ||
4977 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
4978 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4979 | PyObject * _resultobj; | |
4980 | wxCaret * _result; | |
4981 | wxWindow * _arg0; | |
4982 | PyObject * _argo0 = 0; | |
4983 | char *_kwnames[] = { "self", NULL }; | |
4984 | char _ptemp[128]; | |
4985 | ||
4986 | self = self; | |
4987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
4988 | return NULL; | |
4989 | if (_argo0) { | |
4990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
4993 | return NULL; | |
4994 | } | |
4995 | } | |
4996 | { | |
4997 | wxPy_BEGIN_ALLOW_THREADS; | |
4998 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
4999 | ||
5000 | wxPy_END_ALLOW_THREADS; | |
5001 | } if (_result) { | |
5002 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5003 | _resultobj = Py_BuildValue("s",_ptemp); | |
5004 | } else { | |
5005 | Py_INCREF(Py_None); | |
5006 | _resultobj = Py_None; | |
5007 | } | |
5008 | return _resultobj; | |
5009 | } | |
5010 | ||
8ab979d7 RD |
5011 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5012 | wxPanel *src; | |
5013 | wxWindow *dest; | |
5014 | src = (wxPanel *) ptr; | |
5015 | dest = (wxWindow *) src; | |
5016 | return (void *) dest; | |
5017 | } | |
5018 | ||
5019 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5020 | wxPanel *src; | |
5021 | wxEvtHandler *dest; | |
5022 | src = (wxPanel *) ptr; | |
5023 | dest = (wxEvtHandler *) src; | |
5024 | return (void *) dest; | |
5025 | } | |
5026 | ||
5027 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 5028 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5029 | PyObject * _resultobj; |
5030 | wxPanel * _result; | |
5031 | wxWindow * _arg0; | |
5032 | wxWindowID _arg1; | |
1d99702e RD |
5033 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; |
5034 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
5035 | long _arg4 = (long ) wxTAB_TRAVERSAL; | |
5036 | char * _arg5 = (char *) "panel"; | |
5037 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5038 | wxPoint temp; |
5039 | PyObject * _obj2 = 0; | |
5040 | wxSize temp0; | |
5041 | PyObject * _obj3 = 0; | |
efc5f224 | 5042 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5043 | char _ptemp[128]; |
5044 | ||
5045 | self = self; | |
2f90df85 | 5046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5047 | return NULL; |
1d99702e RD |
5048 | if (_argo0) { |
5049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5052 | return NULL; | |
5053 | } | |
5054 | } | |
2f90df85 RD |
5055 | if (_obj2) |
5056 | { | |
5057 | _arg2 = &temp; | |
5058 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5059 | return NULL; |
2f90df85 RD |
5060 | } |
5061 | if (_obj3) | |
5062 | { | |
5063 | _arg3 = &temp0; | |
5064 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5065 | return NULL; |
2f90df85 | 5066 | } |
cf694132 RD |
5067 | { |
5068 | wxPy_BEGIN_ALLOW_THREADS; | |
5069 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5070 | ||
5071 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5072 | } if (_result) { |
5073 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5074 | _resultobj = Py_BuildValue("s",_ptemp); | |
5075 | } else { | |
5076 | Py_INCREF(Py_None); | |
5077 | _resultobj = Py_None; | |
5078 | } | |
8ab979d7 RD |
5079 | return _resultobj; |
5080 | } | |
5081 | ||
5082 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
efc5f224 | 5083 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5084 | PyObject * _resultobj; |
5085 | wxPanel * _arg0; | |
1d99702e | 5086 | PyObject * _argo0 = 0; |
efc5f224 | 5087 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5088 | |
5089 | self = self; | |
efc5f224 | 5090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 5091 | return NULL; |
1d99702e RD |
5092 | if (_argo0) { |
5093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
5095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
5096 | return NULL; | |
5097 | } | |
5098 | } | |
cf694132 RD |
5099 | { |
5100 | wxPy_BEGIN_ALLOW_THREADS; | |
5101 | wxPanel_InitDialog(_arg0); | |
5102 | ||
5103 | wxPy_END_ALLOW_THREADS; | |
5104 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5105 | _resultobj = Py_None; |
5106 | return _resultobj; | |
5107 | } | |
5108 | ||
bb0054cd | 5109 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
efc5f224 | 5110 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5111 | PyObject * _resultobj; |
5112 | wxButton * _result; | |
5113 | wxPanel * _arg0; | |
1d99702e | 5114 | PyObject * _argo0 = 0; |
efc5f224 | 5115 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5116 | char _ptemp[128]; |
5117 | ||
5118 | self = self; | |
efc5f224 | 5119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
bb0054cd | 5120 | return NULL; |
1d99702e RD |
5121 | if (_argo0) { |
5122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
5125 | return NULL; | |
5126 | } | |
5127 | } | |
5128 | { | |
5129 | wxPy_BEGIN_ALLOW_THREADS; | |
5130 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
5131 | ||
5132 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5133 | } if (_result) { |
5134 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
5135 | _resultobj = Py_BuildValue("s",_ptemp); | |
5136 | } else { | |
5137 | Py_INCREF(Py_None); | |
5138 | _resultobj = Py_None; | |
5139 | } | |
bb0054cd RD |
5140 | return _resultobj; |
5141 | } | |
5142 | ||
5143 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
efc5f224 | 5144 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5145 | PyObject * _resultobj; |
5146 | wxPanel * _arg0; | |
5147 | wxButton * _arg1; | |
1d99702e RD |
5148 | PyObject * _argo0 = 0; |
5149 | PyObject * _argo1 = 0; | |
efc5f224 | 5150 | char *_kwnames[] = { "self","btn", NULL }; |
bb0054cd RD |
5151 | |
5152 | self = self; | |
efc5f224 | 5153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 5154 | return NULL; |
1d99702e RD |
5155 | if (_argo0) { |
5156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
5159 | return NULL; | |
5160 | } | |
5161 | } | |
1d99702e RD |
5162 | if (_argo1) { |
5163 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5164 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
bb0054cd RD |
5165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
5166 | return NULL; | |
5167 | } | |
5168 | } | |
5169 | { | |
5170 | wxPy_BEGIN_ALLOW_THREADS; | |
5171 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
5172 | ||
5173 | wxPy_END_ALLOW_THREADS; | |
5174 | } Py_INCREF(Py_None); | |
5175 | _resultobj = Py_None; | |
5176 | return _resultobj; | |
5177 | } | |
5178 | ||
8ab979d7 RD |
5179 | static void *SwigwxDialogTowxPanel(void *ptr) { |
5180 | wxDialog *src; | |
5181 | wxPanel *dest; | |
5182 | src = (wxDialog *) ptr; | |
5183 | dest = (wxPanel *) src; | |
5184 | return (void *) dest; | |
5185 | } | |
5186 | ||
5187 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
5188 | wxDialog *src; | |
5189 | wxWindow *dest; | |
5190 | src = (wxDialog *) ptr; | |
5191 | dest = (wxWindow *) src; | |
5192 | return (void *) dest; | |
5193 | } | |
5194 | ||
5195 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
5196 | wxDialog *src; | |
5197 | wxEvtHandler *dest; | |
5198 | src = (wxDialog *) ptr; | |
5199 | dest = (wxEvtHandler *) src; | |
5200 | return (void *) dest; | |
5201 | } | |
5202 | ||
5203 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 5204 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5205 | PyObject * _resultobj; |
5206 | wxDialog * _result; | |
5207 | wxWindow * _arg0; | |
5208 | wxWindowID _arg1; | |
5209 | wxString * _arg2; | |
1d99702e RD |
5210 | wxPoint * _arg3 = (wxPoint *) &wxPyDefaultPosition; |
5211 | wxSize * _arg4 = (wxSize *) &wxPyDefaultSize; | |
5212 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; | |
5213 | char * _arg6 = (char *) "dialogBox"; | |
5214 | PyObject * _argo0 = 0; | |
8ab979d7 | 5215 | PyObject * _obj2 = 0; |
2f90df85 RD |
5216 | wxPoint temp; |
5217 | PyObject * _obj3 = 0; | |
5218 | wxSize temp0; | |
5219 | PyObject * _obj4 = 0; | |
efc5f224 | 5220 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
8ab979d7 RD |
5221 | char _ptemp[128]; |
5222 | ||
5223 | self = self; | |
2f90df85 | 5224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 5225 | return NULL; |
1d99702e RD |
5226 | if (_argo0) { |
5227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); |
5230 | return NULL; | |
5231 | } | |
5232 | } | |
5233 | { | |
5234 | if (!PyString_Check(_obj2)) { | |
5235 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5236 | return NULL; | |
5237 | } | |
cf694132 | 5238 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 5239 | } |
2f90df85 RD |
5240 | if (_obj3) |
5241 | { | |
5242 | _arg3 = &temp; | |
5243 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 5244 | return NULL; |
2f90df85 RD |
5245 | } |
5246 | if (_obj4) | |
5247 | { | |
5248 | _arg4 = &temp0; | |
5249 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 5250 | return NULL; |
2f90df85 | 5251 | } |
cf694132 RD |
5252 | { |
5253 | wxPy_BEGIN_ALLOW_THREADS; | |
5254 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5255 | ||
5256 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5257 | } if (_result) { |
5258 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
5259 | _resultobj = Py_BuildValue("s",_ptemp); | |
5260 | } else { | |
5261 | Py_INCREF(Py_None); | |
5262 | _resultobj = Py_None; | |
5263 | } | |
8ab979d7 RD |
5264 | { |
5265 | if (_obj2) | |
5266 | delete _arg2; | |
5267 | } | |
5268 | return _resultobj; | |
5269 | } | |
5270 | ||
5271 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 5272 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5273 | PyObject * _resultobj; |
5274 | wxDialog * _arg0; | |
1d99702e RD |
5275 | int _arg1 = (int ) wxBOTH; |
5276 | PyObject * _argo0 = 0; | |
efc5f224 | 5277 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
5278 | |
5279 | self = self; | |
efc5f224 | 5280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5281 | return NULL; |
1d99702e RD |
5282 | if (_argo0) { |
5283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); |
5286 | return NULL; | |
5287 | } | |
5288 | } | |
cf694132 RD |
5289 | { |
5290 | wxPy_BEGIN_ALLOW_THREADS; | |
5291 | wxDialog_Centre(_arg0,_arg1); | |
5292 | ||
5293 | wxPy_END_ALLOW_THREADS; | |
5294 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5295 | _resultobj = Py_None; |
5296 | return _resultobj; | |
5297 | } | |
5298 | ||
5299 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
efc5f224 | 5300 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5301 | PyObject * _resultobj; |
5302 | wxDialog * _arg0; | |
5303 | int _arg1; | |
1d99702e | 5304 | PyObject * _argo0 = 0; |
efc5f224 | 5305 | char *_kwnames[] = { "self","retCode", NULL }; |
8ab979d7 RD |
5306 | |
5307 | self = self; | |
efc5f224 | 5308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5309 | return NULL; |
1d99702e RD |
5310 | if (_argo0) { |
5311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); |
5314 | return NULL; | |
5315 | } | |
5316 | } | |
cf694132 RD |
5317 | { |
5318 | wxPy_BEGIN_ALLOW_THREADS; | |
5319 | wxDialog_EndModal(_arg0,_arg1); | |
5320 | ||
5321 | wxPy_END_ALLOW_THREADS; | |
5322 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5323 | _resultobj = Py_None; |
5324 | return _resultobj; | |
5325 | } | |
5326 | ||
5327 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
efc5f224 | 5328 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5329 | PyObject * _resultobj; |
5330 | wxString * _result; | |
5331 | wxDialog * _arg0; | |
1d99702e | 5332 | PyObject * _argo0 = 0; |
efc5f224 | 5333 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5334 | |
5335 | self = self; | |
efc5f224 | 5336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 5337 | return NULL; |
1d99702e RD |
5338 | if (_argo0) { |
5339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); |
5342 | return NULL; | |
5343 | } | |
5344 | } | |
8ab979d7 | 5345 | { |
cf694132 RD |
5346 | wxPy_BEGIN_ALLOW_THREADS; |
5347 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
5348 | ||
5349 | wxPy_END_ALLOW_THREADS; | |
5350 | }{ | |
eec92d76 | 5351 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
5352 | } |
5353 | { | |
5354 | delete _result; | |
5355 | } | |
5356 | return _resultobj; | |
5357 | } | |
5358 | ||
5359 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
efc5f224 | 5360 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5361 | PyObject * _resultobj; |
5362 | wxDialog * _arg0; | |
5363 | bool _arg1; | |
1d99702e | 5364 | PyObject * _argo0 = 0; |
8ab979d7 | 5365 | int tempbool1; |
efc5f224 | 5366 | char *_kwnames[] = { "self","iconize", NULL }; |
8ab979d7 RD |
5367 | |
5368 | self = self; | |
efc5f224 | 5369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5370 | return NULL; |
1d99702e RD |
5371 | if (_argo0) { |
5372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p."); |
5375 | return NULL; | |
5376 | } | |
5377 | } | |
5378 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5379 | { |
5380 | wxPy_BEGIN_ALLOW_THREADS; | |
5381 | wxDialog_Iconize(_arg0,_arg1); | |
5382 | ||
5383 | wxPy_END_ALLOW_THREADS; | |
5384 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5385 | _resultobj = Py_None; |
5386 | return _resultobj; | |
5387 | } | |
5388 | ||
5389 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
efc5f224 | 5390 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5391 | PyObject * _resultobj; |
5392 | bool _result; | |
5393 | wxDialog * _arg0; | |
1d99702e | 5394 | PyObject * _argo0 = 0; |
efc5f224 | 5395 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5396 | |
5397 | self = self; | |
efc5f224 | 5398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) |
8ab979d7 | 5399 | return NULL; |
1d99702e RD |
5400 | if (_argo0) { |
5401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); |
5404 | return NULL; | |
5405 | } | |
5406 | } | |
cf694132 RD |
5407 | { |
5408 | wxPy_BEGIN_ALLOW_THREADS; | |
5409 | _result = (bool )wxDialog_IsIconized(_arg0); | |
5410 | ||
5411 | wxPy_END_ALLOW_THREADS; | |
5412 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5413 | return _resultobj; |
5414 | } | |
5415 | ||
5416 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
efc5f224 | 5417 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5418 | PyObject * _resultobj; |
5419 | wxDialog * _arg0; | |
5420 | bool _arg1; | |
1d99702e | 5421 | PyObject * _argo0 = 0; |
8ab979d7 | 5422 | int tempbool1; |
efc5f224 | 5423 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
5424 | |
5425 | self = self; | |
efc5f224 | 5426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5427 | return NULL; |
1d99702e RD |
5428 | if (_argo0) { |
5429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); |
5432 | return NULL; | |
5433 | } | |
5434 | } | |
5435 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5436 | { |
5437 | wxPy_BEGIN_ALLOW_THREADS; | |
5438 | wxDialog_SetModal(_arg0,_arg1); | |
5439 | ||
5440 | wxPy_END_ALLOW_THREADS; | |
5441 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5442 | _resultobj = Py_None; |
5443 | return _resultobj; | |
5444 | } | |
5445 | ||
5446 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
efc5f224 | 5447 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5448 | PyObject * _resultobj; |
5449 | bool _result; | |
5450 | wxDialog * _arg0; | |
1d99702e | 5451 | PyObject * _argo0 = 0; |
efc5f224 | 5452 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5453 | |
5454 | self = self; | |
efc5f224 | 5455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) |
8ab979d7 | 5456 | return NULL; |
1d99702e RD |
5457 | if (_argo0) { |
5458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); |
5461 | return NULL; | |
5462 | } | |
5463 | } | |
cf694132 RD |
5464 | { |
5465 | wxPy_BEGIN_ALLOW_THREADS; | |
5466 | _result = (bool )wxDialog_IsModal(_arg0); | |
5467 | ||
5468 | wxPy_END_ALLOW_THREADS; | |
5469 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5470 | return _resultobj; |
5471 | } | |
5472 | ||
5473 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 5474 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5475 | PyObject * _resultobj; |
5476 | wxDialog * _arg0; | |
5477 | wxString * _arg1; | |
1d99702e | 5478 | PyObject * _argo0 = 0; |
8ab979d7 | 5479 | PyObject * _obj1 = 0; |
efc5f224 | 5480 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
5481 | |
5482 | self = self; | |
efc5f224 | 5483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5484 | return NULL; |
1d99702e RD |
5485 | if (_argo0) { |
5486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); |
5489 | return NULL; | |
5490 | } | |
5491 | } | |
5492 | { | |
5493 | if (!PyString_Check(_obj1)) { | |
5494 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5495 | return NULL; | |
5496 | } | |
cf694132 | 5497 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 5498 | } |
cf694132 RD |
5499 | { |
5500 | wxPy_BEGIN_ALLOW_THREADS; | |
5501 | wxDialog_SetTitle(_arg0,*_arg1); | |
5502 | ||
5503 | wxPy_END_ALLOW_THREADS; | |
5504 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5505 | _resultobj = Py_None; |
5506 | { | |
5507 | if (_obj1) | |
5508 | delete _arg1; | |
5509 | } | |
5510 | return _resultobj; | |
5511 | } | |
5512 | ||
5513 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 5514 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5515 | PyObject * _resultobj; |
5516 | bool _result; | |
5517 | wxDialog * _arg0; | |
5518 | bool _arg1; | |
1d99702e | 5519 | PyObject * _argo0 = 0; |
8ab979d7 | 5520 | int tempbool1; |
efc5f224 | 5521 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
5522 | |
5523 | self = self; | |
efc5f224 | 5524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5525 | return NULL; |
1d99702e RD |
5526 | if (_argo0) { |
5527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); |
5530 | return NULL; | |
5531 | } | |
5532 | } | |
5533 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5534 | { |
5535 | wxPy_BEGIN_ALLOW_THREADS; | |
5536 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
5537 | ||
5538 | wxPy_END_ALLOW_THREADS; | |
5539 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5540 | return _resultobj; |
5541 | } | |
5542 | ||
5543 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 5544 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5545 | PyObject * _resultobj; |
5546 | int _result; | |
5547 | wxDialog * _arg0; | |
1d99702e | 5548 | PyObject * _argo0 = 0; |
efc5f224 | 5549 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5550 | |
5551 | self = self; | |
efc5f224 | 5552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 5553 | return NULL; |
1d99702e RD |
5554 | if (_argo0) { |
5555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); |
5558 | return NULL; | |
5559 | } | |
5560 | } | |
cf694132 RD |
5561 | { |
5562 | wxPy_BEGIN_ALLOW_THREADS; | |
5563 | _result = (int )wxDialog_ShowModal(_arg0); | |
5564 | ||
5565 | wxPy_END_ALLOW_THREADS; | |
5566 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5567 | return _resultobj; |
5568 | } | |
5569 | ||
bb0054cd | 5570 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) |
efc5f224 | 5571 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5572 | PyObject * _resultobj; |
5573 | int _result; | |
5574 | wxDialog * _arg0; | |
1d99702e | 5575 | PyObject * _argo0 = 0; |
efc5f224 | 5576 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5577 | |
5578 | self = self; | |
efc5f224 | 5579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) |
bb0054cd | 5580 | return NULL; |
1d99702e RD |
5581 | if (_argo0) { |
5582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); |
5585 | return NULL; | |
5586 | } | |
5587 | } | |
5588 | { | |
5589 | wxPy_BEGIN_ALLOW_THREADS; | |
5590 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
5591 | ||
5592 | wxPy_END_ALLOW_THREADS; | |
5593 | } _resultobj = Py_BuildValue("i",_result); | |
5594 | return _resultobj; | |
5595 | } | |
5596 | ||
5597 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
efc5f224 | 5598 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5599 | PyObject * _resultobj; |
5600 | wxDialog * _arg0; | |
5601 | int _arg1; | |
1d99702e | 5602 | PyObject * _argo0 = 0; |
efc5f224 | 5603 | char *_kwnames[] = { "self","retCode", NULL }; |
bb0054cd RD |
5604 | |
5605 | self = self; | |
efc5f224 | 5606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 5607 | return NULL; |
1d99702e RD |
5608 | if (_argo0) { |
5609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); |
5612 | return NULL; | |
5613 | } | |
5614 | } | |
5615 | { | |
5616 | wxPy_BEGIN_ALLOW_THREADS; | |
5617 | wxDialog_SetReturnCode(_arg0,_arg1); | |
5618 | ||
5619 | wxPy_END_ALLOW_THREADS; | |
5620 | } Py_INCREF(Py_None); | |
5621 | _resultobj = Py_None; | |
5622 | return _resultobj; | |
5623 | } | |
5624 | ||
5625 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { | |
5626 | wxScrolledWindow *src; | |
5627 | wxPanel *dest; | |
5628 | src = (wxScrolledWindow *) ptr; | |
5629 | dest = (wxPanel *) src; | |
5630 | return (void *) dest; | |
5631 | } | |
5632 | ||
8ab979d7 RD |
5633 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
5634 | wxScrolledWindow *src; | |
5635 | wxWindow *dest; | |
5636 | src = (wxScrolledWindow *) ptr; | |
5637 | dest = (wxWindow *) src; | |
5638 | return (void *) dest; | |
5639 | } | |
5640 | ||
5641 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
5642 | wxScrolledWindow *src; | |
5643 | wxEvtHandler *dest; | |
5644 | src = (wxScrolledWindow *) ptr; | |
5645 | dest = (wxEvtHandler *) src; | |
5646 | return (void *) dest; | |
5647 | } | |
5648 | ||
5649 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 5650 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5651 | PyObject * _resultobj; |
5652 | wxScrolledWindow * _result; | |
5653 | wxWindow * _arg0; | |
1d99702e RD |
5654 | wxWindowID _arg1 = (wxWindowID ) -1; |
5655 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; | |
5656 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
5657 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; | |
5658 | char * _arg5 = (char *) "scrolledWindow"; | |
5659 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5660 | wxPoint temp; |
5661 | PyObject * _obj2 = 0; | |
5662 | wxSize temp0; | |
5663 | PyObject * _obj3 = 0; | |
efc5f224 | 5664 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5665 | char _ptemp[128]; |
5666 | ||
5667 | self = self; | |
2f90df85 | 5668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5669 | return NULL; |
1d99702e RD |
5670 | if (_argo0) { |
5671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
5674 | return NULL; | |
5675 | } | |
5676 | } | |
2f90df85 RD |
5677 | if (_obj2) |
5678 | { | |
5679 | _arg2 = &temp; | |
5680 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5681 | return NULL; |
2f90df85 RD |
5682 | } |
5683 | if (_obj3) | |
5684 | { | |
5685 | _arg3 = &temp0; | |
5686 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5687 | return NULL; |
2f90df85 | 5688 | } |
cf694132 RD |
5689 | { |
5690 | wxPy_BEGIN_ALLOW_THREADS; | |
5691 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5692 | ||
5693 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5694 | } if (_result) { |
5695 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
5696 | _resultobj = Py_BuildValue("s",_ptemp); | |
5697 | } else { | |
5698 | Py_INCREF(Py_None); | |
5699 | _resultobj = Py_None; | |
5700 | } | |
8ab979d7 RD |
5701 | return _resultobj; |
5702 | } | |
5703 | ||
5704 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
efc5f224 | 5705 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5706 | PyObject * _resultobj; |
5707 | wxScrolledWindow * _arg0; | |
5708 | bool _arg1; | |
5709 | bool _arg2; | |
1d99702e | 5710 | PyObject * _argo0 = 0; |
8ab979d7 RD |
5711 | int tempbool1; |
5712 | int tempbool2; | |
efc5f224 | 5713 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
5714 | |
5715 | self = self; | |
efc5f224 | 5716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 5717 | return NULL; |
1d99702e RD |
5718 | if (_argo0) { |
5719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
5722 | return NULL; | |
5723 | } | |
5724 | } | |
5725 | _arg1 = (bool ) tempbool1; | |
5726 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
5727 | { |
5728 | wxPy_BEGIN_ALLOW_THREADS; | |
5729 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
5730 | ||
5731 | wxPy_END_ALLOW_THREADS; | |
5732 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5733 | _resultobj = Py_None; |
5734 | return _resultobj; | |
5735 | } | |
5736 | ||
b7e72427 RD |
5737 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
5738 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5739 | PyObject * _resultobj; | |
5740 | int _result; | |
5741 | wxScrolledWindow * _arg0; | |
5742 | int _arg1; | |
5743 | PyObject * _argo0 = 0; | |
5744 | char *_kwnames[] = { "self","orient", NULL }; | |
5745 | ||
5746 | self = self; | |
5747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
5748 | return NULL; | |
5749 | if (_argo0) { | |
5750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
5753 | return NULL; | |
5754 | } | |
5755 | } | |
5756 | { | |
5757 | wxPy_BEGIN_ALLOW_THREADS; | |
5758 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
5759 | ||
5760 | wxPy_END_ALLOW_THREADS; | |
5761 | } _resultobj = Py_BuildValue("i",_result); | |
5762 | return _resultobj; | |
5763 | } | |
5764 | ||
8ab979d7 | 5765 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 5766 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5767 | PyObject * _resultobj; |
5768 | wxScrolledWindow * _arg0; | |
5769 | int * _arg1; | |
5770 | int temp; | |
5771 | int * _arg2; | |
5772 | int temp0; | |
1d99702e | 5773 | PyObject * _argo0 = 0; |
efc5f224 | 5774 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5775 | |
5776 | self = self; | |
5777 | { | |
5778 | _arg1 = &temp; | |
5779 | } | |
5780 | { | |
5781 | _arg2 = &temp0; | |
5782 | } | |
efc5f224 | 5783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 5784 | return NULL; |
1d99702e RD |
5785 | if (_argo0) { |
5786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
5789 | return NULL; | |
5790 | } | |
5791 | } | |
cf694132 RD |
5792 | { |
5793 | wxPy_BEGIN_ALLOW_THREADS; | |
5794 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
5795 | ||
5796 | wxPy_END_ALLOW_THREADS; | |
5797 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5798 | _resultobj = Py_None; |
5799 | { | |
5800 | PyObject *o; | |
5801 | o = PyInt_FromLong((long) (*_arg1)); | |
5802 | _resultobj = t_output_helper(_resultobj, o); | |
5803 | } | |
5804 | { | |
5805 | PyObject *o; | |
5806 | o = PyInt_FromLong((long) (*_arg2)); | |
5807 | _resultobj = t_output_helper(_resultobj, o); | |
5808 | } | |
5809 | return _resultobj; | |
5810 | } | |
5811 | ||
b7e72427 RD |
5812 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
5813 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5814 | PyObject * _resultobj; | |
5815 | wxWindow * _result; | |
5816 | wxScrolledWindow * _arg0; | |
5817 | PyObject * _argo0 = 0; | |
5818 | char *_kwnames[] = { "self", NULL }; | |
5819 | char _ptemp[128]; | |
5820 | ||
5821 | self = self; | |
5822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
5823 | return NULL; | |
5824 | if (_argo0) { | |
5825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
5828 | return NULL; | |
5829 | } | |
5830 | } | |
5831 | { | |
5832 | wxPy_BEGIN_ALLOW_THREADS; | |
5833 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
5834 | ||
5835 | wxPy_END_ALLOW_THREADS; | |
5836 | } if (_result) { | |
5837 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
5838 | _resultobj = Py_BuildValue("s",_ptemp); | |
5839 | } else { | |
5840 | Py_INCREF(Py_None); | |
5841 | _resultobj = Py_None; | |
5842 | } | |
5843 | return _resultobj; | |
5844 | } | |
5845 | ||
8ab979d7 | 5846 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 5847 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5848 | PyObject * _resultobj; |
5849 | wxScrolledWindow * _arg0; | |
5850 | int * _arg1; | |
5851 | int temp; | |
5852 | int * _arg2; | |
5853 | int temp0; | |
1d99702e | 5854 | PyObject * _argo0 = 0; |
efc5f224 | 5855 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5856 | |
5857 | self = self; | |
5858 | { | |
5859 | _arg1 = &temp; | |
5860 | } | |
5861 | { | |
5862 | _arg2 = &temp0; | |
5863 | } | |
efc5f224 | 5864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 5865 | return NULL; |
1d99702e RD |
5866 | if (_argo0) { |
5867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
5870 | return NULL; | |
5871 | } | |
5872 | } | |
cf694132 RD |
5873 | { |
5874 | wxPy_BEGIN_ALLOW_THREADS; | |
5875 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
5876 | ||
5877 | wxPy_END_ALLOW_THREADS; | |
5878 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5879 | _resultobj = Py_None; |
5880 | { | |
5881 | PyObject *o; | |
5882 | o = PyInt_FromLong((long) (*_arg1)); | |
5883 | _resultobj = t_output_helper(_resultobj, o); | |
5884 | } | |
5885 | { | |
5886 | PyObject *o; | |
5887 | o = PyInt_FromLong((long) (*_arg2)); | |
5888 | _resultobj = t_output_helper(_resultobj, o); | |
5889 | } | |
5890 | return _resultobj; | |
5891 | } | |
5892 | ||
5893 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 5894 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5895 | PyObject * _resultobj; |
5896 | bool _result; | |
5897 | wxScrolledWindow * _arg0; | |
1d99702e | 5898 | PyObject * _argo0 = 0; |
efc5f224 | 5899 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5900 | |
5901 | self = self; | |
efc5f224 | 5902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 5903 | return NULL; |
1d99702e RD |
5904 | if (_argo0) { |
5905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
5908 | return NULL; | |
5909 | } | |
5910 | } | |
cf694132 RD |
5911 | { |
5912 | wxPy_BEGIN_ALLOW_THREADS; | |
5913 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
5914 | ||
5915 | wxPy_END_ALLOW_THREADS; | |
5916 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5917 | return _resultobj; |
5918 | } | |
5919 | ||
5920 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 5921 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5922 | PyObject * _resultobj; |
5923 | wxScrolledWindow * _arg0; | |
5924 | wxDC * _arg1; | |
1d99702e RD |
5925 | PyObject * _argo0 = 0; |
5926 | PyObject * _argo1 = 0; | |
efc5f224 | 5927 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
5928 | |
5929 | self = self; | |
efc5f224 | 5930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5931 | return NULL; |
1d99702e RD |
5932 | if (_argo0) { |
5933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
5936 | return NULL; | |
5937 | } | |
5938 | } | |
1d99702e RD |
5939 | if (_argo1) { |
5940 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5941 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
5942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
5943 | return NULL; | |
5944 | } | |
5945 | } | |
cf694132 RD |
5946 | { |
5947 | wxPy_BEGIN_ALLOW_THREADS; | |
5948 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
5949 | ||
5950 | wxPy_END_ALLOW_THREADS; | |
5951 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5952 | _resultobj = Py_None; |
5953 | return _resultobj; | |
5954 | } | |
5955 | ||
5956 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 5957 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5958 | PyObject * _resultobj; |
5959 | wxScrolledWindow * _arg0; | |
5960 | int _arg1; | |
5961 | int _arg2; | |
1d99702e | 5962 | PyObject * _argo0 = 0; |
efc5f224 | 5963 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
5964 | |
5965 | self = self; | |
efc5f224 | 5966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5967 | return NULL; |
1d99702e RD |
5968 | if (_argo0) { |
5969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
5972 | return NULL; | |
5973 | } | |
5974 | } | |
cf694132 RD |
5975 | { |
5976 | wxPy_BEGIN_ALLOW_THREADS; | |
5977 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
5978 | ||
5979 | wxPy_END_ALLOW_THREADS; | |
5980 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5981 | _resultobj = Py_None; |
5982 | return _resultobj; | |
5983 | } | |
5984 | ||
f6bcfd97 | 5985 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 5986 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5987 | PyObject * _resultobj; |
5988 | wxScrolledWindow * _arg0; | |
5989 | int _arg1; | |
5990 | int _arg2; | |
5991 | int _arg3; | |
5992 | int _arg4; | |
1d99702e RD |
5993 | int _arg5 = (int ) 0; |
5994 | int _arg6 = (int ) 0; | |
f6bcfd97 | 5995 | int _arg7 = (int ) FALSE; |
1d99702e | 5996 | PyObject * _argo0 = 0; |
f6bcfd97 | 5997 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
5998 | |
5999 | self = self; | |
f6bcfd97 | 6000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6001 | return NULL; |
1d99702e RD |
6002 | if (_argo0) { |
6003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6006 | return NULL; | |
6007 | } | |
6008 | } | |
cf694132 RD |
6009 | { |
6010 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6011 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 RD |
6012 | |
6013 | wxPy_END_ALLOW_THREADS; | |
6014 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6015 | _resultobj = Py_None; |
6016 | return _resultobj; | |
6017 | } | |
6018 | ||
b7e72427 RD |
6019 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6020 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6021 | PyObject * _resultobj; | |
6022 | wxScrolledWindow * _arg0; | |
6023 | int _arg1; | |
6024 | int _arg2; | |
6025 | PyObject * _argo0 = 0; | |
6026 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6027 | ||
6028 | self = self; | |
6029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6030 | return NULL; | |
6031 | if (_argo0) { | |
6032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6035 | return NULL; | |
6036 | } | |
6037 | } | |
6038 | { | |
6039 | wxPy_BEGIN_ALLOW_THREADS; | |
6040 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6041 | ||
6042 | wxPy_END_ALLOW_THREADS; | |
6043 | } Py_INCREF(Py_None); | |
6044 | _resultobj = Py_None; | |
6045 | return _resultobj; | |
6046 | } | |
6047 | ||
eb715945 RD |
6048 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6049 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6050 | PyObject * _resultobj; | |
6051 | wxScrolledWindow * _arg0; | |
6052 | wxWindow * _arg1; | |
6053 | PyObject * _argo0 = 0; | |
6054 | PyObject * _argo1 = 0; | |
6055 | char *_kwnames[] = { "self","window", NULL }; | |
6056 | ||
6057 | self = self; | |
6058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6059 | return NULL; | |
6060 | if (_argo0) { | |
6061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6064 | return NULL; | |
6065 | } | |
6066 | } | |
6067 | if (_argo1) { | |
6068 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6069 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6071 | return NULL; | |
6072 | } | |
6073 | } | |
6074 | { | |
6075 | wxPy_BEGIN_ALLOW_THREADS; | |
6076 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6077 | ||
6078 | wxPy_END_ALLOW_THREADS; | |
6079 | } Py_INCREF(Py_None); | |
6080 | _resultobj = Py_None; | |
6081 | return _resultobj; | |
6082 | } | |
6083 | ||
4c9993c3 RD |
6084 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6085 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6086 | PyObject * _resultobj; | |
6087 | wxScrolledWindow * _arg0; | |
6088 | int * _arg1; | |
6089 | int temp; | |
6090 | int * _arg2; | |
6091 | int temp0; | |
6092 | PyObject * _argo0 = 0; | |
6093 | char *_kwnames[] = { "self", NULL }; | |
6094 | ||
6095 | self = self; | |
6096 | { | |
6097 | _arg1 = &temp; | |
6098 | } | |
6099 | { | |
6100 | _arg2 = &temp0; | |
6101 | } | |
6102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6103 | return NULL; | |
6104 | if (_argo0) { | |
6105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6108 | return NULL; | |
6109 | } | |
6110 | } | |
6111 | { | |
6112 | wxPy_BEGIN_ALLOW_THREADS; | |
6113 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6114 | ||
6115 | wxPy_END_ALLOW_THREADS; | |
6116 | } Py_INCREF(Py_None); | |
6117 | _resultobj = Py_None; | |
6118 | { | |
6119 | PyObject *o; | |
6120 | o = PyInt_FromLong((long) (*_arg1)); | |
6121 | _resultobj = t_output_helper(_resultobj, o); | |
6122 | } | |
6123 | { | |
6124 | PyObject *o; | |
6125 | o = PyInt_FromLong((long) (*_arg2)); | |
6126 | _resultobj = t_output_helper(_resultobj, o); | |
6127 | } | |
6128 | return _resultobj; | |
6129 | } | |
6130 | ||
8ab979d7 | 6131 | #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1)) |
efc5f224 | 6132 | static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6133 | PyObject * _resultobj; |
6134 | wxScrolledWindow * _arg0; | |
6135 | int * _arg1; | |
6136 | int temp; | |
6137 | int * _arg2; | |
6138 | int temp0; | |
1d99702e | 6139 | PyObject * _argo0 = 0; |
efc5f224 | 6140 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6141 | |
6142 | self = self; | |
6143 | { | |
6144 | _arg1 = &temp; | |
6145 | } | |
6146 | { | |
6147 | _arg2 = &temp0; | |
6148 | } | |
efc5f224 | 6149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0)) |
8ab979d7 | 6150 | return NULL; |
1d99702e RD |
6151 | if (_argo0) { |
6152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p."); |
6155 | return NULL; | |
6156 | } | |
6157 | } | |
cf694132 RD |
6158 | { |
6159 | wxPy_BEGIN_ALLOW_THREADS; | |
6160 | wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2); | |
6161 | ||
6162 | wxPy_END_ALLOW_THREADS; | |
6163 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6164 | _resultobj = Py_None; |
6165 | { | |
6166 | PyObject *o; | |
6167 | o = PyInt_FromLong((long) (*_arg1)); | |
6168 | _resultobj = t_output_helper(_resultobj, o); | |
6169 | } | |
6170 | { | |
6171 | PyObject *o; | |
6172 | o = PyInt_FromLong((long) (*_arg2)); | |
6173 | _resultobj = t_output_helper(_resultobj, o); | |
6174 | } | |
6175 | return _resultobj; | |
6176 | } | |
6177 | ||
9d8bd15f RD |
6178 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6179 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6180 | PyObject * _resultobj; | |
6181 | wxScrolledWindow * _arg0; | |
6182 | int _arg1; | |
6183 | int _arg2; | |
6184 | int * _arg3; | |
6185 | int temp; | |
6186 | int * _arg4; | |
6187 | int temp0; | |
6188 | PyObject * _argo0 = 0; | |
6189 | char *_kwnames[] = { "self","x","y", NULL }; | |
6190 | ||
6191 | self = self; | |
6192 | { | |
6193 | _arg3 = &temp; | |
6194 | } | |
6195 | { | |
6196 | _arg4 = &temp0; | |
6197 | } | |
6198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6199 | return NULL; | |
6200 | if (_argo0) { | |
6201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6204 | return NULL; | |
6205 | } | |
6206 | } | |
6207 | { | |
6208 | wxPy_BEGIN_ALLOW_THREADS; | |
6209 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6210 | ||
6211 | wxPy_END_ALLOW_THREADS; | |
6212 | } Py_INCREF(Py_None); | |
6213 | _resultobj = Py_None; | |
6214 | { | |
6215 | PyObject *o; | |
6216 | o = PyInt_FromLong((long) (*_arg3)); | |
6217 | _resultobj = t_output_helper(_resultobj, o); | |
6218 | } | |
6219 | { | |
6220 | PyObject *o; | |
6221 | o = PyInt_FromLong((long) (*_arg4)); | |
6222 | _resultobj = t_output_helper(_resultobj, o); | |
6223 | } | |
6224 | return _resultobj; | |
6225 | } | |
6226 | ||
6227 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6228 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6229 | PyObject * _resultobj; | |
6230 | wxScrolledWindow * _arg0; | |
6231 | int _arg1; | |
6232 | int _arg2; | |
6233 | int * _arg3; | |
6234 | int temp; | |
6235 | int * _arg4; | |
6236 | int temp0; | |
6237 | PyObject * _argo0 = 0; | |
6238 | char *_kwnames[] = { "self","x","y", NULL }; | |
6239 | ||
6240 | self = self; | |
6241 | { | |
6242 | _arg3 = &temp; | |
6243 | } | |
6244 | { | |
6245 | _arg4 = &temp0; | |
6246 | } | |
6247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6248 | return NULL; | |
6249 | if (_argo0) { | |
6250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6253 | return NULL; | |
6254 | } | |
6255 | } | |
6256 | { | |
6257 | wxPy_BEGIN_ALLOW_THREADS; | |
6258 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6259 | ||
6260 | wxPy_END_ALLOW_THREADS; | |
6261 | } Py_INCREF(Py_None); | |
6262 | _resultobj = Py_None; | |
6263 | { | |
6264 | PyObject *o; | |
6265 | o = PyInt_FromLong((long) (*_arg3)); | |
6266 | _resultobj = t_output_helper(_resultobj, o); | |
6267 | } | |
6268 | { | |
6269 | PyObject *o; | |
6270 | o = PyInt_FromLong((long) (*_arg4)); | |
6271 | _resultobj = t_output_helper(_resultobj, o); | |
6272 | } | |
6273 | return _resultobj; | |
6274 | } | |
6275 | ||
8ab979d7 RD |
6276 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
6277 | wxMenu *src; | |
6278 | wxEvtHandler *dest; | |
6279 | src = (wxMenu *) ptr; | |
6280 | dest = (wxEvtHandler *) src; | |
6281 | return (void *) dest; | |
6282 | } | |
6283 | ||
8bf5d46e | 6284 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 6285 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6286 | PyObject * _resultobj; |
6287 | wxMenu * _result; | |
1d99702e RD |
6288 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
6289 | long _arg1 = (long ) 0; | |
8ab979d7 | 6290 | PyObject * _obj0 = 0; |
efc5f224 | 6291 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
6292 | char _ptemp[128]; |
6293 | ||
6294 | self = self; | |
efc5f224 | 6295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
6296 | return NULL; |
6297 | if (_obj0) | |
6298 | { | |
6299 | if (!PyString_Check(_obj0)) { | |
6300 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6301 | return NULL; | |
6302 | } | |
cf694132 | 6303 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); |
8ab979d7 | 6304 | } |
cf694132 RD |
6305 | { |
6306 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 6307 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 RD |
6308 | |
6309 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6310 | } if (_result) { |
6311 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6312 | _resultobj = Py_BuildValue("s",_ptemp); | |
6313 | } else { | |
6314 | Py_INCREF(Py_None); | |
6315 | _resultobj = Py_None; | |
6316 | } | |
8ab979d7 RD |
6317 | { |
6318 | if (_obj0) | |
6319 | delete _arg0; | |
6320 | } | |
6321 | return _resultobj; | |
6322 | } | |
6323 | ||
6324 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6325 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6326 | PyObject * _resultobj; |
6327 | wxMenu * _arg0; | |
6328 | int _arg1; | |
6329 | wxString * _arg2; | |
1d99702e RD |
6330 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
6331 | int _arg4 = (int ) FALSE; | |
6332 | PyObject * _argo0 = 0; | |
8ab979d7 RD |
6333 | PyObject * _obj2 = 0; |
6334 | PyObject * _obj3 = 0; | |
efc5f224 | 6335 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
6336 | |
6337 | self = self; | |
efc5f224 | 6338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 6339 | return NULL; |
1d99702e RD |
6340 | if (_argo0) { |
6341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
6344 | return NULL; | |
6345 | } | |
6346 | } | |
6347 | { | |
6348 | if (!PyString_Check(_obj2)) { | |
6349 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6350 | return NULL; | |
6351 | } | |
cf694132 | 6352 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 RD |
6353 | } |
6354 | if (_obj3) | |
6355 | { | |
6356 | if (!PyString_Check(_obj3)) { | |
6357 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6358 | return NULL; | |
6359 | } | |
cf694132 | 6360 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); |
8ab979d7 | 6361 | } |
cf694132 RD |
6362 | { |
6363 | wxPy_BEGIN_ALLOW_THREADS; | |
6364 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
6365 | ||
6366 | wxPy_END_ALLOW_THREADS; | |
6367 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6368 | _resultobj = Py_None; |
6369 | { | |
6370 | if (_obj2) | |
6371 | delete _arg2; | |
6372 | } | |
6373 | { | |
6374 | if (_obj3) | |
6375 | delete _arg3; | |
6376 | } | |
6377 | return _resultobj; | |
6378 | } | |
6379 | ||
6380 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6381 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6382 | PyObject * _resultobj; |
6383 | wxMenu * _arg0; | |
6384 | int _arg1; | |
6385 | wxString * _arg2; | |
6386 | wxMenu * _arg3; | |
1d99702e RD |
6387 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
6388 | PyObject * _argo0 = 0; | |
8ab979d7 | 6389 | PyObject * _obj2 = 0; |
1d99702e | 6390 | PyObject * _argo3 = 0; |
8ab979d7 | 6391 | PyObject * _obj4 = 0; |
efc5f224 | 6392 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
6393 | |
6394 | self = self; | |
efc5f224 | 6395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 6396 | return NULL; |
1d99702e RD |
6397 | if (_argo0) { |
6398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6401 | return NULL; | |
6402 | } | |
6403 | } | |
6404 | { | |
6405 | if (!PyString_Check(_obj2)) { | |
6406 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6407 | return NULL; | |
6408 | } | |
cf694132 | 6409 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 6410 | } |
1d99702e RD |
6411 | if (_argo3) { |
6412 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6413 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
6414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6415 | return NULL; | |
6416 | } | |
6417 | } | |
6418 | if (_obj4) | |
6419 | { | |
6420 | if (!PyString_Check(_obj4)) { | |
6421 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6422 | return NULL; | |
6423 | } | |
cf694132 | 6424 | _arg4 = new wxString(PyString_AsString(_obj4), PyString_Size(_obj4)); |
8ab979d7 | 6425 | } |
cf694132 RD |
6426 | { |
6427 | wxPy_BEGIN_ALLOW_THREADS; | |
6428 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
6429 | ||
6430 | wxPy_END_ALLOW_THREADS; | |
6431 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6432 | _resultobj = Py_None; |
6433 | { | |
6434 | if (_obj2) | |
6435 | delete _arg2; | |
6436 | } | |
6437 | { | |
6438 | if (_obj4) | |
6439 | delete _arg4; | |
6440 | } | |
6441 | return _resultobj; | |
6442 | } | |
6443 | ||
af309447 | 6444 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 6445 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
6446 | PyObject * _resultobj; |
6447 | wxMenu * _arg0; | |
6448 | wxMenuItem * _arg1; | |
1d99702e RD |
6449 | PyObject * _argo0 = 0; |
6450 | PyObject * _argo1 = 0; | |
efc5f224 | 6451 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
6452 | |
6453 | self = self; | |
efc5f224 | 6454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 6455 | return NULL; |
1d99702e RD |
6456 | if (_argo0) { |
6457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
6459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
6460 | return NULL; | |
6461 | } | |
6462 | } | |
1d99702e RD |
6463 | if (_argo1) { |
6464 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6465 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
6466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
6467 | return NULL; | |
6468 | } | |
6469 | } | |
cf694132 RD |
6470 | { |
6471 | wxPy_BEGIN_ALLOW_THREADS; | |
6472 | wxMenu_AppendItem(_arg0,_arg1); | |
6473 | ||
6474 | wxPy_END_ALLOW_THREADS; | |
6475 | } Py_INCREF(Py_None); | |
af309447 RD |
6476 | _resultobj = Py_None; |
6477 | return _resultobj; | |
6478 | } | |
6479 | ||
8ab979d7 | 6480 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 6481 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6482 | PyObject * _resultobj; |
6483 | wxMenu * _arg0; | |
1d99702e | 6484 | PyObject * _argo0 = 0; |
efc5f224 | 6485 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6486 | |
6487 | self = self; | |
efc5f224 | 6488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 6489 | return NULL; |
1d99702e RD |
6490 | if (_argo0) { |
6491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
6494 | return NULL; | |
6495 | } | |
6496 | } | |
cf694132 RD |
6497 | { |
6498 | wxPy_BEGIN_ALLOW_THREADS; | |
6499 | wxMenu_AppendSeparator(_arg0); | |
6500 | ||
6501 | wxPy_END_ALLOW_THREADS; | |
6502 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6503 | _resultobj = Py_None; |
6504 | return _resultobj; | |
6505 | } | |
6506 | ||
6507 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 6508 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6509 | PyObject * _resultobj; |
6510 | wxMenu * _arg0; | |
1d99702e | 6511 | PyObject * _argo0 = 0; |
efc5f224 | 6512 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6513 | |
6514 | self = self; | |
efc5f224 | 6515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 6516 | return NULL; |
1d99702e RD |
6517 | if (_argo0) { |
6518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
6521 | return NULL; | |
6522 | } | |
6523 | } | |
cf694132 RD |
6524 | { |
6525 | wxPy_BEGIN_ALLOW_THREADS; | |
6526 | wxMenu_Break(_arg0); | |
6527 | ||
6528 | wxPy_END_ALLOW_THREADS; | |
6529 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6530 | _resultobj = Py_None; |
6531 | return _resultobj; | |
6532 | } | |
6533 | ||
6534 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 6535 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6536 | PyObject * _resultobj; |
6537 | wxMenu * _arg0; | |
6538 | int _arg1; | |
6539 | bool _arg2; | |
1d99702e | 6540 | PyObject * _argo0 = 0; |
8ab979d7 | 6541 | int tempbool2; |
efc5f224 | 6542 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
6543 | |
6544 | self = self; | |
efc5f224 | 6545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 6546 | return NULL; |
1d99702e RD |
6547 | if (_argo0) { |
6548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
6551 | return NULL; | |
6552 | } | |
6553 | } | |
6554 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6555 | { |
6556 | wxPy_BEGIN_ALLOW_THREADS; | |
6557 | wxMenu_Check(_arg0,_arg1,_arg2); | |
6558 | ||
6559 | wxPy_END_ALLOW_THREADS; | |
6560 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6561 | _resultobj = Py_None; |
6562 | return _resultobj; | |
6563 | } | |
6564 | ||
b1462dfa RD |
6565 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
6566 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6567 | PyObject * _resultobj; | |
6568 | bool _result; | |
6569 | wxMenu * _arg0; | |
6570 | int _arg1; | |
6571 | PyObject * _argo0 = 0; | |
6572 | char *_kwnames[] = { "self","id", NULL }; | |
6573 | ||
6574 | self = self; | |
6575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
6576 | return NULL; | |
6577 | if (_argo0) { | |
6578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
6581 | return NULL; | |
6582 | } | |
6583 | } | |
6584 | { | |
6585 | wxPy_BEGIN_ALLOW_THREADS; | |
6586 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
6587 | ||
6588 | wxPy_END_ALLOW_THREADS; | |
6589 | } _resultobj = Py_BuildValue("i",_result); | |
6590 | return _resultobj; | |
6591 | } | |
6592 | ||
8ab979d7 | 6593 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 6594 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6595 | PyObject * _resultobj; |
6596 | wxMenu * _arg0; | |
6597 | int _arg1; | |
6598 | bool _arg2; | |
1d99702e | 6599 | PyObject * _argo0 = 0; |
8ab979d7 | 6600 | int tempbool2; |
efc5f224 | 6601 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
6602 | |
6603 | self = self; | |
efc5f224 | 6604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 6605 | return NULL; |
1d99702e RD |
6606 | if (_argo0) { |
6607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
6610 | return NULL; | |
6611 | } | |
6612 | } | |
6613 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6614 | { |
6615 | wxPy_BEGIN_ALLOW_THREADS; | |
6616 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
6617 | ||
6618 | wxPy_END_ALLOW_THREADS; | |
6619 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6620 | _resultobj = Py_None; |
6621 | return _resultobj; | |
6622 | } | |
6623 | ||
b1462dfa RD |
6624 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
6625 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6626 | PyObject * _resultobj; | |
6627 | bool _result; | |
6628 | wxMenu * _arg0; | |
6629 | int _arg1; | |
6630 | PyObject * _argo0 = 0; | |
6631 | char *_kwnames[] = { "self","id", NULL }; | |
6632 | ||
6633 | self = self; | |
6634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
6635 | return NULL; | |
6636 | if (_argo0) { | |
6637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
6640 | return NULL; | |
6641 | } | |
6642 | } | |
6643 | { | |
6644 | wxPy_BEGIN_ALLOW_THREADS; | |
6645 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
6646 | ||
6647 | wxPy_END_ALLOW_THREADS; | |
6648 | } _resultobj = Py_BuildValue("i",_result); | |
6649 | return _resultobj; | |
6650 | } | |
6651 | ||
8ab979d7 | 6652 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 6653 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6654 | PyObject * _resultobj; |
6655 | int _result; | |
6656 | wxMenu * _arg0; | |
6657 | wxString * _arg1; | |
1d99702e | 6658 | PyObject * _argo0 = 0; |
8ab979d7 | 6659 | PyObject * _obj1 = 0; |
efc5f224 | 6660 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
6661 | |
6662 | self = self; | |
efc5f224 | 6663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6664 | return NULL; |
1d99702e RD |
6665 | if (_argo0) { |
6666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
6669 | return NULL; | |
6670 | } | |
6671 | } | |
6672 | { | |
6673 | if (!PyString_Check(_obj1)) { | |
6674 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6675 | return NULL; | |
6676 | } | |
cf694132 | 6677 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 6678 | } |
cf694132 RD |
6679 | { |
6680 | wxPy_BEGIN_ALLOW_THREADS; | |
6681 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
6682 | ||
6683 | wxPy_END_ALLOW_THREADS; | |
6684 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6685 | { |
6686 | if (_obj1) | |
6687 | delete _arg1; | |
6688 | } | |
6689 | return _resultobj; | |
6690 | } | |
6691 | ||
b1462dfa RD |
6692 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
6693 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6694 | PyObject * _resultobj; | |
6695 | wxMenuItem * _result; | |
6696 | wxMenu * _arg0; | |
6697 | int _arg1; | |
6698 | PyObject * _argo0 = 0; | |
6699 | char *_kwnames[] = { "self","id", NULL }; | |
6700 | char _ptemp[128]; | |
6701 | ||
6702 | self = self; | |
6703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
6704 | return NULL; | |
6705 | if (_argo0) { | |
6706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
6709 | return NULL; | |
6710 | } | |
6711 | } | |
6712 | { | |
6713 | wxPy_BEGIN_ALLOW_THREADS; | |
6714 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
6715 | ||
6716 | wxPy_END_ALLOW_THREADS; | |
6717 | } if (_result) { | |
6718 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
6719 | _resultobj = Py_BuildValue("s",_ptemp); | |
6720 | } else { | |
6721 | Py_INCREF(Py_None); | |
6722 | _resultobj = Py_None; | |
6723 | } | |
6724 | return _resultobj; | |
6725 | } | |
6726 | ||
8ab979d7 | 6727 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 6728 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6729 | PyObject * _resultobj; |
6730 | wxString * _result; | |
6731 | wxMenu * _arg0; | |
1d99702e | 6732 | PyObject * _argo0 = 0; |
efc5f224 | 6733 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6734 | |
6735 | self = self; | |
efc5f224 | 6736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 6737 | return NULL; |
1d99702e RD |
6738 | if (_argo0) { |
6739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
6742 | return NULL; | |
6743 | } | |
6744 | } | |
8ab979d7 | 6745 | { |
cf694132 RD |
6746 | wxPy_BEGIN_ALLOW_THREADS; |
6747 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
6748 | ||
6749 | wxPy_END_ALLOW_THREADS; | |
6750 | }{ | |
eec92d76 | 6751 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
6752 | } |
6753 | { | |
6754 | delete _result; | |
6755 | } | |
6756 | return _resultobj; | |
6757 | } | |
6758 | ||
6759 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 6760 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6761 | PyObject * _resultobj; |
6762 | wxMenu * _arg0; | |
6763 | wxString * _arg1; | |
1d99702e | 6764 | PyObject * _argo0 = 0; |
8ab979d7 | 6765 | PyObject * _obj1 = 0; |
efc5f224 | 6766 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
6767 | |
6768 | self = self; | |
efc5f224 | 6769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6770 | return NULL; |
1d99702e RD |
6771 | if (_argo0) { |
6772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
6775 | return NULL; | |
6776 | } | |
6777 | } | |
6778 | { | |
6779 | if (!PyString_Check(_obj1)) { | |
6780 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6781 | return NULL; | |
6782 | } | |
cf694132 | 6783 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 6784 | } |
cf694132 RD |
6785 | { |
6786 | wxPy_BEGIN_ALLOW_THREADS; | |
6787 | wxMenu_SetTitle(_arg0,*_arg1); | |
6788 | ||
6789 | wxPy_END_ALLOW_THREADS; | |
6790 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6791 | _resultobj = Py_None; |
6792 | { | |
6793 | if (_obj1) | |
6794 | delete _arg1; | |
6795 | } | |
6796 | return _resultobj; | |
6797 | } | |
6798 | ||
b1462dfa RD |
6799 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
6800 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6801 | PyObject * _resultobj; |
b1462dfa | 6802 | wxString * _result; |
8ab979d7 RD |
6803 | wxMenu * _arg0; |
6804 | int _arg1; | |
1d99702e | 6805 | PyObject * _argo0 = 0; |
efc5f224 | 6806 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
6807 | |
6808 | self = self; | |
b1462dfa | 6809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6810 | return NULL; |
1d99702e RD |
6811 | if (_argo0) { |
6812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 6814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
6815 | return NULL; |
6816 | } | |
6817 | } | |
cf694132 RD |
6818 | { |
6819 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6820 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 RD |
6821 | |
6822 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 6823 | }{ |
eec92d76 | 6824 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
6825 | } |
6826 | { | |
6827 | delete _result; | |
6828 | } | |
8ab979d7 RD |
6829 | return _resultobj; |
6830 | } | |
6831 | ||
b1462dfa RD |
6832 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
6833 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6834 | PyObject * _resultobj; |
8ab979d7 RD |
6835 | wxMenu * _arg0; |
6836 | int _arg1; | |
b1462dfa | 6837 | wxString * _arg2; |
1d99702e | 6838 | PyObject * _argo0 = 0; |
b1462dfa RD |
6839 | PyObject * _obj2 = 0; |
6840 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
6841 | |
6842 | self = self; | |
b1462dfa | 6843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 6844 | return NULL; |
1d99702e RD |
6845 | if (_argo0) { |
6846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 6848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
6849 | return NULL; |
6850 | } | |
6851 | } | |
b1462dfa RD |
6852 | { |
6853 | if (!PyString_Check(_obj2)) { | |
6854 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6855 | return NULL; | |
6856 | } | |
6857 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
6858 | } | |
8ab979d7 | 6859 | { |
cf694132 | 6860 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 6861 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
6862 | |
6863 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
6864 | } Py_INCREF(Py_None); |
6865 | _resultobj = Py_None; | |
8ab979d7 | 6866 | { |
b1462dfa RD |
6867 | if (_obj2) |
6868 | delete _arg2; | |
8ab979d7 RD |
6869 | } |
6870 | return _resultobj; | |
6871 | } | |
6872 | ||
b1462dfa RD |
6873 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
6874 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6875 | PyObject * _resultobj; |
6876 | wxString * _result; | |
6877 | wxMenu * _arg0; | |
6878 | int _arg1; | |
1d99702e | 6879 | PyObject * _argo0 = 0; |
efc5f224 | 6880 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
6881 | |
6882 | self = self; | |
b1462dfa | 6883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6884 | return NULL; |
1d99702e RD |
6885 | if (_argo0) { |
6886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 6888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
6889 | return NULL; |
6890 | } | |
6891 | } | |
8ab979d7 | 6892 | { |
cf694132 | 6893 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 6894 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
6895 | |
6896 | wxPy_END_ALLOW_THREADS; | |
6897 | }{ | |
eec92d76 | 6898 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
6899 | } |
6900 | { | |
6901 | delete _result; | |
6902 | } | |
6903 | return _resultobj; | |
6904 | } | |
6905 | ||
6906 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 6907 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6908 | PyObject * _resultobj; |
6909 | wxMenu * _arg0; | |
6910 | int _arg1; | |
6911 | wxString * _arg2; | |
1d99702e | 6912 | PyObject * _argo0 = 0; |
8ab979d7 | 6913 | PyObject * _obj2 = 0; |
efc5f224 | 6914 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
6915 | |
6916 | self = self; | |
efc5f224 | 6917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 6918 | return NULL; |
1d99702e RD |
6919 | if (_argo0) { |
6920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
6923 | return NULL; | |
6924 | } | |
6925 | } | |
6926 | { | |
6927 | if (!PyString_Check(_obj2)) { | |
6928 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6929 | return NULL; | |
6930 | } | |
cf694132 | 6931 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 6932 | } |
cf694132 RD |
6933 | { |
6934 | wxPy_BEGIN_ALLOW_THREADS; | |
6935 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
6936 | ||
6937 | wxPy_END_ALLOW_THREADS; | |
6938 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6939 | _resultobj = Py_None; |
6940 | { | |
6941 | if (_obj2) | |
6942 | delete _arg2; | |
6943 | } | |
6944 | return _resultobj; | |
6945 | } | |
6946 | ||
b1462dfa RD |
6947 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
6948 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6949 | PyObject * _resultobj; |
8ab979d7 | 6950 | wxMenu * _arg0; |
b1462dfa | 6951 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 6952 | PyObject * _argo0 = 0; |
b1462dfa RD |
6953 | PyObject * _argo1 = 0; |
6954 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
6955 | |
6956 | self = self; | |
b1462dfa | 6957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6958 | return NULL; |
1d99702e RD |
6959 | if (_argo0) { |
6960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
6962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
6963 | return NULL; | |
6964 | } | |
6965 | } | |
6966 | if (_argo1) { | |
6967 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6968 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
6969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
6970 | return NULL; |
6971 | } | |
6972 | } | |
cf694132 RD |
6973 | { |
6974 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6975 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 RD |
6976 | |
6977 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
6978 | } Py_INCREF(Py_None); |
6979 | _resultobj = Py_None; | |
8ab979d7 RD |
6980 | return _resultobj; |
6981 | } | |
6982 | ||
b1462dfa RD |
6983 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
6984 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6985 | PyObject * _resultobj; |
6986 | bool _result; | |
6987 | wxMenu * _arg0; | |
6988 | int _arg1; | |
1d99702e | 6989 | PyObject * _argo0 = 0; |
efc5f224 | 6990 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
6991 | |
6992 | self = self; | |
b1462dfa | 6993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6994 | return NULL; |
1d99702e RD |
6995 | if (_argo0) { |
6996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 6998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
6999 | return NULL; |
7000 | } | |
7001 | } | |
cf694132 RD |
7002 | { |
7003 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7004 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 RD |
7005 | |
7006 | wxPy_END_ALLOW_THREADS; | |
7007 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7008 | return _resultobj; |
7009 | } | |
7010 | ||
b1462dfa RD |
7011 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7012 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7013 | PyObject * _resultobj; |
b1462dfa | 7014 | bool _result; |
8ab979d7 | 7015 | wxMenu * _arg0; |
b1462dfa | 7016 | wxMenuItem * _arg1; |
1d99702e | 7017 | PyObject * _argo0 = 0; |
b1462dfa RD |
7018 | PyObject * _argo1 = 0; |
7019 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7020 | |
7021 | self = self; | |
b1462dfa | 7022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7023 | return NULL; |
1d99702e RD |
7024 | if (_argo0) { |
7025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7028 | return NULL; |
7029 | } | |
7030 | } | |
b1462dfa RD |
7031 | if (_argo1) { |
7032 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7033 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7035 | return NULL; |
b1462dfa | 7036 | } |
8ab979d7 | 7037 | } |
cf694132 RD |
7038 | { |
7039 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7040 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 RD |
7041 | |
7042 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7043 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7044 | return _resultobj; |
7045 | } | |
7046 | ||
b1462dfa RD |
7047 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7048 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7049 | PyObject * _resultobj; |
b1462dfa | 7050 | bool _result; |
8bf5d46e | 7051 | wxMenu * _arg0; |
b1462dfa RD |
7052 | size_t _arg1; |
7053 | wxMenuItem * _arg2; | |
1d99702e | 7054 | PyObject * _argo0 = 0; |
b1462dfa RD |
7055 | PyObject * _argo2 = 0; |
7056 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7057 | |
7058 | self = self; | |
b1462dfa | 7059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7060 | return NULL; |
1d99702e RD |
7061 | if (_argo0) { |
7062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7065 | return NULL; |
7066 | } | |
7067 | } | |
b1462dfa RD |
7068 | if (_argo2) { |
7069 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7070 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7072 | return NULL; |
7073 | } | |
7074 | } | |
cf694132 RD |
7075 | { |
7076 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7077 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 RD |
7078 | |
7079 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7080 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7081 | return _resultobj; |
7082 | } | |
7083 | ||
b1462dfa RD |
7084 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7085 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7086 | PyObject * _resultobj; |
b1462dfa | 7087 | wxMenuItem * _result; |
efc5f224 | 7088 | wxMenu * _arg0; |
b1462dfa | 7089 | int _arg1; |
efc5f224 | 7090 | PyObject * _argo0 = 0; |
b1462dfa RD |
7091 | char *_kwnames[] = { "self","id", NULL }; |
7092 | char _ptemp[128]; | |
efc5f224 RD |
7093 | |
7094 | self = self; | |
b1462dfa | 7095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7096 | return NULL; |
7097 | if (_argo0) { | |
7098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7101 | return NULL; |
7102 | } | |
7103 | } | |
7104 | { | |
7105 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7106 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 RD |
7107 | |
7108 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7109 | } if (_result) { |
7110 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7111 | _resultobj = Py_BuildValue("s",_ptemp); | |
7112 | } else { | |
7113 | Py_INCREF(Py_None); | |
7114 | _resultobj = Py_None; | |
7115 | } | |
efc5f224 RD |
7116 | return _resultobj; |
7117 | } | |
7118 | ||
b1462dfa RD |
7119 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7120 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7121 | PyObject * _resultobj; |
b1462dfa RD |
7122 | wxMenuItem * _result; |
7123 | wxMenu * _arg0; | |
7124 | wxMenuItem * _arg1; | |
7125 | PyObject * _argo0 = 0; | |
7126 | PyObject * _argo1 = 0; | |
7127 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7128 | char _ptemp[128]; |
7129 | ||
7130 | self = self; | |
b1462dfa RD |
7131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7132 | return NULL; | |
7133 | if (_argo0) { | |
7134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7137 | return NULL; | |
7138 | } | |
7139 | } | |
7140 | if (_argo1) { | |
7141 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7142 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7144 | return NULL; |
b1462dfa RD |
7145 | } |
7146 | } | |
cf694132 RD |
7147 | { |
7148 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7149 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 RD |
7150 | |
7151 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 7152 | } if (_result) { |
b1462dfa | 7153 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); |
1d99702e RD |
7154 | _resultobj = Py_BuildValue("s",_ptemp); |
7155 | } else { | |
7156 | Py_INCREF(Py_None); | |
7157 | _resultobj = Py_None; | |
7158 | } | |
8ab979d7 RD |
7159 | return _resultobj; |
7160 | } | |
7161 | ||
eb715945 | 7162 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7163 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7164 | PyObject * _resultobj; |
b1462dfa | 7165 | wxMenu * _arg0; |
1d99702e | 7166 | PyObject * _argo0 = 0; |
b1462dfa | 7167 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7168 | |
7169 | self = self; | |
b1462dfa | 7170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7171 | return NULL; |
1d99702e RD |
7172 | if (_argo0) { |
7173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7176 | return NULL; |
7177 | } | |
7178 | } | |
cf694132 RD |
7179 | { |
7180 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7181 | wxMenu_Destroy(_arg0); |
cf694132 RD |
7182 | |
7183 | wxPy_END_ALLOW_THREADS; | |
7184 | } Py_INCREF(Py_None); | |
8ab979d7 | 7185 | _resultobj = Py_None; |
8ab979d7 RD |
7186 | return _resultobj; |
7187 | } | |
7188 | ||
b1462dfa RD |
7189 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7190 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7191 | PyObject * _resultobj; |
b1462dfa RD |
7192 | bool _result; |
7193 | wxMenu * _arg0; | |
8ab979d7 | 7194 | int _arg1; |
1d99702e | 7195 | PyObject * _argo0 = 0; |
b1462dfa | 7196 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7197 | |
7198 | self = self; | |
b1462dfa | 7199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7200 | return NULL; |
1d99702e RD |
7201 | if (_argo0) { |
7202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
7205 | return NULL; |
7206 | } | |
7207 | } | |
cf694132 RD |
7208 | { |
7209 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7210 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 RD |
7211 | |
7212 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7213 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7214 | return _resultobj; |
7215 | } | |
7216 | ||
b1462dfa RD |
7217 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7218 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7219 | PyObject * _resultobj; |
b1462dfa RD |
7220 | bool _result; |
7221 | wxMenu * _arg0; | |
7222 | wxMenuItem * _arg1; | |
1d99702e | 7223 | PyObject * _argo0 = 0; |
b1462dfa RD |
7224 | PyObject * _argo1 = 0; |
7225 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7226 | |
7227 | self = self; | |
b1462dfa | 7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7229 | return NULL; |
1d99702e RD |
7230 | if (_argo0) { |
7231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7234 | return NULL; | |
7235 | } | |
7236 | } | |
7237 | if (_argo1) { | |
7238 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7239 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7241 | return NULL; |
7242 | } | |
7243 | } | |
cf694132 RD |
7244 | { |
7245 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7246 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 RD |
7247 | |
7248 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7249 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7250 | return _resultobj; |
7251 | } | |
7252 | ||
b1462dfa RD |
7253 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
7254 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7255 | PyObject * _resultobj; |
b1462dfa RD |
7256 | size_t _result; |
7257 | wxMenu * _arg0; | |
1d99702e | 7258 | PyObject * _argo0 = 0; |
b1462dfa | 7259 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7260 | |
7261 | self = self; | |
b1462dfa | 7262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 7263 | return NULL; |
1d99702e RD |
7264 | if (_argo0) { |
7265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
7268 | return NULL; |
7269 | } | |
7270 | } | |
cf694132 RD |
7271 | { |
7272 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7273 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 RD |
7274 | |
7275 | wxPy_END_ALLOW_THREADS; | |
2abc0a0f | 7276 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7277 | return _resultobj; |
7278 | } | |
7279 | ||
b1462dfa RD |
7280 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
7281 | wxMenuItemList& list = self->GetMenuItems(); | |
7282 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
7283 | } | |
7284 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7285 | PyObject * _resultobj; |
b1462dfa RD |
7286 | PyObject * _result; |
7287 | wxMenu * _arg0; | |
1d99702e | 7288 | PyObject * _argo0 = 0; |
b1462dfa | 7289 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7290 | |
7291 | self = self; | |
b1462dfa | 7292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 7293 | return NULL; |
1d99702e RD |
7294 | if (_argo0) { |
7295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
7298 | return NULL; |
7299 | } | |
7300 | } | |
cf694132 RD |
7301 | { |
7302 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7303 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 RD |
7304 | |
7305 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7306 | }{ |
7307 | _resultobj = _result; | |
7308 | } | |
8ab979d7 RD |
7309 | return _resultobj; |
7310 | } | |
7311 | ||
b1462dfa RD |
7312 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
7313 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7314 | PyObject * _resultobj; |
b1462dfa RD |
7315 | wxMenu * _arg0; |
7316 | wxEvtHandler * _arg1; | |
1d99702e | 7317 | PyObject * _argo0 = 0; |
b1462dfa RD |
7318 | PyObject * _argo1 = 0; |
7319 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
7320 | |
7321 | self = self; | |
b1462dfa | 7322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7323 | return NULL; |
1d99702e RD |
7324 | if (_argo0) { |
7325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7328 | return NULL; |
7329 | } | |
7330 | } | |
b1462dfa RD |
7331 | if (_argo1) { |
7332 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7333 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 7335 | return NULL; |
b1462dfa | 7336 | } |
8ab979d7 | 7337 | } |
cf694132 RD |
7338 | { |
7339 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7340 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 RD |
7341 | |
7342 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7343 | } Py_INCREF(Py_None); |
7344 | _resultobj = Py_None; | |
8ab979d7 RD |
7345 | return _resultobj; |
7346 | } | |
7347 | ||
b1462dfa RD |
7348 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
7349 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7350 | PyObject * _resultobj; |
b1462dfa RD |
7351 | wxEvtHandler * _result; |
7352 | wxMenu * _arg0; | |
1d99702e | 7353 | PyObject * _argo0 = 0; |
b1462dfa | 7354 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7355 | char _ptemp[128]; |
7356 | ||
7357 | self = self; | |
b1462dfa | 7358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 7359 | return NULL; |
1d99702e RD |
7360 | if (_argo0) { |
7361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7364 | return NULL; |
7365 | } | |
7366 | } | |
cf694132 RD |
7367 | { |
7368 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7369 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 RD |
7370 | |
7371 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 7372 | } if (_result) { |
b1462dfa | 7373 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); |
1d99702e RD |
7374 | _resultobj = Py_BuildValue("s",_ptemp); |
7375 | } else { | |
7376 | Py_INCREF(Py_None); | |
7377 | _resultobj = Py_None; | |
7378 | } | |
8ab979d7 RD |
7379 | return _resultobj; |
7380 | } | |
7381 | ||
b1462dfa RD |
7382 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
7383 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 7384 | PyObject * _resultobj; |
b1462dfa RD |
7385 | wxMenu * _arg0; |
7386 | wxWindow * _arg1; | |
2f90df85 | 7387 | PyObject * _argo0 = 0; |
b1462dfa RD |
7388 | PyObject * _argo1 = 0; |
7389 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
7390 | |
7391 | self = self; | |
b1462dfa | 7392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
7393 | return NULL; |
7394 | if (_argo0) { | |
7395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
7398 | return NULL; |
7399 | } | |
7400 | } | |
b1462dfa RD |
7401 | if (_argo1) { |
7402 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7403 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 7405 | return NULL; |
b1462dfa | 7406 | } |
2f90df85 | 7407 | } |
2f90df85 RD |
7408 | { |
7409 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7410 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 RD |
7411 | |
7412 | wxPy_END_ALLOW_THREADS; | |
7413 | } Py_INCREF(Py_None); | |
7414 | _resultobj = Py_None; | |
2f90df85 RD |
7415 | return _resultobj; |
7416 | } | |
7417 | ||
b1462dfa RD |
7418 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
7419 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7420 | PyObject * _resultobj; |
b1462dfa RD |
7421 | wxWindow * _result; |
7422 | wxMenu * _arg0; | |
1d99702e | 7423 | PyObject * _argo0 = 0; |
b1462dfa RD |
7424 | char *_kwnames[] = { "self", NULL }; |
7425 | char _ptemp[128]; | |
8ab979d7 RD |
7426 | |
7427 | self = self; | |
b1462dfa | 7428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 7429 | return NULL; |
1d99702e RD |
7430 | if (_argo0) { |
7431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
7434 | return NULL; |
7435 | } | |
7436 | } | |
cf694132 RD |
7437 | { |
7438 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7439 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 RD |
7440 | |
7441 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7442 | } if (_result) { |
7443 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
7444 | _resultobj = Py_BuildValue("s",_ptemp); | |
7445 | } else { | |
7446 | Py_INCREF(Py_None); | |
7447 | _resultobj = Py_None; | |
7448 | } | |
8ab979d7 RD |
7449 | return _resultobj; |
7450 | } | |
7451 | ||
b1462dfa RD |
7452 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
7453 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7454 | PyObject * _resultobj; |
b1462dfa RD |
7455 | long _result; |
7456 | wxMenu * _arg0; | |
1d99702e | 7457 | PyObject * _argo0 = 0; |
b1462dfa | 7458 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7459 | |
7460 | self = self; | |
b1462dfa | 7461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 7462 | return NULL; |
1d99702e RD |
7463 | if (_argo0) { |
7464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
7467 | return NULL; |
7468 | } | |
7469 | } | |
8ab979d7 | 7470 | { |
cf694132 | 7471 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7472 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 RD |
7473 | |
7474 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7475 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7476 | return _resultobj; |
7477 | } | |
7478 | ||
b1462dfa RD |
7479 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
7480 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7481 | PyObject * _resultobj; |
b1462dfa RD |
7482 | bool _result; |
7483 | wxMenu * _arg0; | |
1d99702e | 7484 | PyObject * _argo0 = 0; |
b1462dfa | 7485 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7486 | |
7487 | self = self; | |
b1462dfa | 7488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 7489 | return NULL; |
1d99702e RD |
7490 | if (_argo0) { |
7491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
7494 | return NULL; |
7495 | } | |
7496 | } | |
8ab979d7 | 7497 | { |
cf694132 | 7498 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7499 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 RD |
7500 | |
7501 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7502 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7503 | return _resultobj; |
7504 | } | |
7505 | ||
b1462dfa RD |
7506 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
7507 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7508 | PyObject * _resultobj; |
b1462dfa RD |
7509 | wxMenu * _arg0; |
7510 | wxMenu * _arg1; | |
1d99702e | 7511 | PyObject * _argo0 = 0; |
b1462dfa RD |
7512 | PyObject * _argo1 = 0; |
7513 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
7514 | |
7515 | self = self; | |
b1462dfa | 7516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7517 | return NULL; |
1d99702e RD |
7518 | if (_argo0) { |
7519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
7522 | return NULL; |
7523 | } | |
7524 | } | |
b1462dfa RD |
7525 | if (_argo1) { |
7526 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7527 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
7528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 7529 | return NULL; |
b1462dfa | 7530 | } |
8ab979d7 | 7531 | } |
cf694132 RD |
7532 | { |
7533 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7534 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 RD |
7535 | |
7536 | wxPy_END_ALLOW_THREADS; | |
7537 | } Py_INCREF(Py_None); | |
8ab979d7 | 7538 | _resultobj = Py_None; |
8ab979d7 RD |
7539 | return _resultobj; |
7540 | } | |
7541 | ||
b1462dfa RD |
7542 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
7543 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7544 | PyObject * _resultobj; |
b1462dfa RD |
7545 | wxMenu * _result; |
7546 | wxMenu * _arg0; | |
1d99702e | 7547 | PyObject * _argo0 = 0; |
b1462dfa RD |
7548 | char *_kwnames[] = { "self", NULL }; |
7549 | char _ptemp[128]; | |
8ab979d7 RD |
7550 | |
7551 | self = self; | |
b1462dfa | 7552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 7553 | return NULL; |
1d99702e RD |
7554 | if (_argo0) { |
7555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
7558 | return NULL; |
7559 | } | |
7560 | } | |
8ab979d7 | 7561 | { |
cf694132 | 7562 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7563 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 RD |
7564 | |
7565 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7566 | } if (_result) { |
7567 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7568 | _resultobj = Py_BuildValue("s",_ptemp); | |
7569 | } else { | |
7570 | Py_INCREF(Py_None); | |
7571 | _resultobj = Py_None; | |
7572 | } | |
7573 | return _resultobj; | |
8ab979d7 | 7574 | } |
b1462dfa RD |
7575 | |
7576 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
7577 | wxMenuBar *src; | |
7578 | wxWindow *dest; | |
7579 | src = (wxMenuBar *) ptr; | |
7580 | dest = (wxWindow *) src; | |
7581 | return (void *) dest; | |
7582 | } | |
7583 | ||
7584 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
7585 | wxMenuBar *src; | |
7586 | wxEvtHandler *dest; | |
7587 | src = (wxMenuBar *) ptr; | |
7588 | dest = (wxEvtHandler *) src; | |
7589 | return (void *) dest; | |
8ab979d7 | 7590 | } |
b1462dfa RD |
7591 | |
7592 | #define new_wxMenuBar() (new wxMenuBar()) | |
7593 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7594 | PyObject * _resultobj; | |
7595 | wxMenuBar * _result; | |
7596 | char *_kwnames[] = { NULL }; | |
7597 | char _ptemp[128]; | |
7598 | ||
7599 | self = self; | |
7600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMenuBar",_kwnames)) | |
7601 | return NULL; | |
7602 | { | |
7603 | wxPy_BEGIN_ALLOW_THREADS; | |
7604 | _result = (wxMenuBar *)new_wxMenuBar(); | |
7605 | ||
7606 | wxPy_END_ALLOW_THREADS; | |
7607 | } if (_result) { | |
7608 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
7609 | _resultobj = Py_BuildValue("s",_ptemp); | |
7610 | } else { | |
7611 | Py_INCREF(Py_None); | |
7612 | _resultobj = Py_None; | |
7613 | } | |
8ab979d7 RD |
7614 | return _resultobj; |
7615 | } | |
7616 | ||
b1462dfa RD |
7617 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
7618 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7619 | PyObject * _resultobj; |
b1462dfa | 7620 | bool _result; |
8ab979d7 | 7621 | wxMenuBar * _arg0; |
b1462dfa | 7622 | wxMenu * _arg1; |
8ab979d7 | 7623 | wxString * _arg2; |
1d99702e | 7624 | PyObject * _argo0 = 0; |
b1462dfa | 7625 | PyObject * _argo1 = 0; |
8ab979d7 | 7626 | PyObject * _obj2 = 0; |
b1462dfa | 7627 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
7628 | |
7629 | self = self; | |
b1462dfa | 7630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7631 | return NULL; |
1d99702e RD |
7632 | if (_argo0) { |
7633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
7635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
7636 | return NULL; | |
7637 | } | |
7638 | } | |
7639 | if (_argo1) { | |
7640 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7641 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
7642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
7643 | return NULL; |
7644 | } | |
7645 | } | |
7646 | { | |
7647 | if (!PyString_Check(_obj2)) { | |
7648 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7649 | return NULL; | |
7650 | } | |
cf694132 | 7651 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 7652 | } |
cf694132 RD |
7653 | { |
7654 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7655 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 RD |
7656 | |
7657 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7658 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7659 | { |
7660 | if (_obj2) | |
7661 | delete _arg2; | |
7662 | } | |
7663 | return _resultobj; | |
7664 | } | |
7665 | ||
b1462dfa RD |
7666 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
7667 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7668 | PyObject * _resultobj; |
b1462dfa | 7669 | bool _result; |
8ab979d7 | 7670 | wxMenuBar * _arg0; |
b1462dfa RD |
7671 | size_t _arg1; |
7672 | wxMenu * _arg2; | |
7673 | wxString * _arg3; | |
1d99702e | 7674 | PyObject * _argo0 = 0; |
b1462dfa RD |
7675 | PyObject * _argo2 = 0; |
7676 | PyObject * _obj3 = 0; | |
7677 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
7678 | |
7679 | self = self; | |
b1462dfa | 7680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 7681 | return NULL; |
1d99702e RD |
7682 | if (_argo0) { |
7683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
7685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
7686 | return NULL; | |
7687 | } | |
7688 | } | |
7689 | if (_argo2) { | |
7690 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7691 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
7692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
7693 | return NULL; |
7694 | } | |
7695 | } | |
b1462dfa RD |
7696 | { |
7697 | if (!PyString_Check(_obj3)) { | |
7698 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7699 | return NULL; | |
7700 | } | |
7701 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
7702 | } | |
cf694132 RD |
7703 | { |
7704 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7705 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
7706 | |
7707 | wxPy_END_ALLOW_THREADS; | |
7708 | } _resultobj = Py_BuildValue("i",_result); | |
b1462dfa RD |
7709 | { |
7710 | if (_obj3) | |
7711 | delete _arg3; | |
7712 | } | |
8ab979d7 RD |
7713 | return _resultobj; |
7714 | } | |
7715 | ||
b1462dfa RD |
7716 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
7717 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7718 | PyObject * _resultobj; |
b1462dfa | 7719 | size_t _result; |
8ab979d7 | 7720 | wxMenuBar * _arg0; |
1d99702e | 7721 | PyObject * _argo0 = 0; |
b1462dfa | 7722 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7723 | |
7724 | self = self; | |
b1462dfa | 7725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 7726 | return NULL; |
1d99702e RD |
7727 | if (_argo0) { |
7728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 7730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
7731 | return NULL; |
7732 | } | |
7733 | } | |
cf694132 RD |
7734 | { |
7735 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7736 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 RD |
7737 | |
7738 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7739 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7740 | return _resultobj; |
7741 | } | |
7742 | ||
b1462dfa RD |
7743 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
7744 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 7745 | PyObject * _resultobj; |
b1462dfa | 7746 | wxMenu * _result; |
06c0fba4 | 7747 | wxMenuBar * _arg0; |
b1462dfa | 7748 | size_t _arg1; |
06c0fba4 | 7749 | PyObject * _argo0 = 0; |
b1462dfa RD |
7750 | char *_kwnames[] = { "self","pos", NULL }; |
7751 | char _ptemp[128]; | |
06c0fba4 RD |
7752 | |
7753 | self = self; | |
b1462dfa | 7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
7755 | return NULL; |
7756 | if (_argo0) { | |
7757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 7759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
7760 | return NULL; |
7761 | } | |
7762 | } | |
7763 | { | |
7764 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7765 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 RD |
7766 | |
7767 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7768 | } if (_result) { |
7769 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7770 | _resultobj = Py_BuildValue("s",_ptemp); | |
7771 | } else { | |
7772 | Py_INCREF(Py_None); | |
7773 | _resultobj = Py_None; | |
7774 | } | |
06c0fba4 RD |
7775 | return _resultobj; |
7776 | } | |
7777 | ||
2abc0a0f RD |
7778 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
7779 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7780 | PyObject * _resultobj; | |
7781 | wxMenu * _result; | |
7782 | wxMenuBar * _arg0; | |
7783 | size_t _arg1; | |
7784 | wxMenu * _arg2; | |
7785 | wxString * _arg3; | |
7786 | PyObject * _argo0 = 0; | |
7787 | PyObject * _argo2 = 0; | |
7788 | PyObject * _obj3 = 0; | |
7789 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
7790 | char _ptemp[128]; | |
7791 | ||
7792 | self = self; | |
7793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
7794 | return NULL; | |
7795 | if (_argo0) { | |
7796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
7799 | return NULL; | |
7800 | } | |
7801 | } | |
7802 | if (_argo2) { | |
7803 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7804 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
7805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
7806 | return NULL; | |
7807 | } | |
7808 | } | |
7809 | { | |
7810 | if (!PyString_Check(_obj3)) { | |
7811 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7812 | return NULL; | |
7813 | } | |
7814 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
7815 | } | |
7816 | { | |
7817 | wxPy_BEGIN_ALLOW_THREADS; | |
7818 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
7819 | ||
7820 | wxPy_END_ALLOW_THREADS; | |
7821 | } if (_result) { | |
7822 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7823 | _resultobj = Py_BuildValue("s",_ptemp); | |
7824 | } else { | |
7825 | Py_INCREF(Py_None); | |
7826 | _resultobj = Py_None; | |
7827 | } | |
7828 | { | |
7829 | if (_obj3) | |
7830 | delete _arg3; | |
7831 | } | |
7832 | return _resultobj; | |
7833 | } | |
7834 | ||
7835 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
7836 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7837 | PyObject * _resultobj; | |
7838 | wxMenu * _result; | |
7839 | wxMenuBar * _arg0; | |
7840 | size_t _arg1; | |
7841 | PyObject * _argo0 = 0; | |
7842 | char *_kwnames[] = { "self","pos", NULL }; | |
7843 | char _ptemp[128]; | |
7844 | ||
7845 | self = self; | |
7846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
7847 | return NULL; | |
7848 | if (_argo0) { | |
7849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
7852 | return NULL; | |
7853 | } | |
7854 | } | |
7855 | { | |
7856 | wxPy_BEGIN_ALLOW_THREADS; | |
7857 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
7858 | ||
7859 | wxPy_END_ALLOW_THREADS; | |
7860 | } if (_result) { | |
7861 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7862 | _resultobj = Py_BuildValue("s",_ptemp); | |
7863 | } else { | |
7864 | Py_INCREF(Py_None); | |
7865 | _resultobj = Py_None; | |
7866 | } | |
7867 | return _resultobj; | |
7868 | } | |
7869 | ||
b1462dfa RD |
7870 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
7871 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 7872 | PyObject * _resultobj; |
b1462dfa RD |
7873 | wxMenuBar * _arg0; |
7874 | size_t _arg1; | |
7875 | bool _arg2; | |
7876 | PyObject * _argo0 = 0; | |
7877 | int tempbool2; | |
7878 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
7879 | ||
7880 | self = self; | |
7881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
7882 | return NULL; | |
7883 | if (_argo0) { | |
7884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
7887 | return NULL; | |
7888 | } | |
7889 | } | |
7890 | _arg2 = (bool ) tempbool2; | |
7891 | { | |
7892 | wxPy_BEGIN_ALLOW_THREADS; | |
7893 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
7894 | ||
7895 | wxPy_END_ALLOW_THREADS; | |
7896 | } Py_INCREF(Py_None); | |
7897 | _resultobj = Py_None; | |
7898 | return _resultobj; | |
7899 | } | |
7900 | ||
7901 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
7902 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7903 | PyObject * _resultobj; | |
7904 | wxMenuBar * _arg0; | |
7905 | size_t _arg1; | |
7906 | wxString * _arg2; | |
1d99702e | 7907 | PyObject * _argo0 = 0; |
cf694132 | 7908 | PyObject * _obj2 = 0; |
b1462dfa | 7909 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
7910 | |
7911 | self = self; | |
b1462dfa | 7912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 7913 | return NULL; |
1d99702e RD |
7914 | if (_argo0) { |
7915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
7917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
7918 | return NULL; |
7919 | } | |
7920 | } | |
cf694132 RD |
7921 | { |
7922 | if (!PyString_Check(_obj2)) { | |
7923 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7924 | return NULL; | |
7925 | } | |
7926 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7927 | } | |
cf694132 | 7928 | { |
b1462dfa RD |
7929 | wxPy_BEGIN_ALLOW_THREADS; |
7930 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
7931 | ||
7932 | wxPy_END_ALLOW_THREADS; | |
7933 | } Py_INCREF(Py_None); | |
7934 | _resultobj = Py_None; | |
7935 | { | |
7936 | if (_obj2) | |
7937 | delete _arg2; | |
7938 | } | |
7939 | return _resultobj; | |
7940 | } | |
7941 | ||
7942 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
7943 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7944 | PyObject * _resultobj; | |
7945 | wxString * _result; | |
7946 | wxMenuBar * _arg0; | |
7947 | size_t _arg1; | |
7948 | PyObject * _argo0 = 0; | |
7949 | char *_kwnames[] = { "self","pos", NULL }; | |
7950 | ||
7951 | self = self; | |
7952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
7953 | return NULL; | |
7954 | if (_argo0) { | |
7955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
7958 | return NULL; | |
7959 | } | |
7960 | } | |
7961 | { | |
7962 | wxPy_BEGIN_ALLOW_THREADS; | |
7963 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
7964 | ||
7965 | wxPy_END_ALLOW_THREADS; | |
7966 | }{ | |
eec92d76 | 7967 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7968 | } |
7969 | { | |
7970 | delete _result; | |
7971 | } | |
7972 | return _resultobj; | |
7973 | } | |
7974 | ||
7975 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
7976 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7977 | PyObject * _resultobj; | |
7978 | int _result; | |
7979 | wxMenuBar * _arg0; | |
7980 | wxString * _arg1; | |
7981 | wxString * _arg2; | |
7982 | PyObject * _argo0 = 0; | |
7983 | PyObject * _obj1 = 0; | |
7984 | PyObject * _obj2 = 0; | |
7985 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
7986 | ||
7987 | self = self; | |
7988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
7989 | return NULL; | |
7990 | if (_argo0) { | |
7991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
7994 | return NULL; | |
7995 | } | |
7996 | } | |
7997 | { | |
7998 | if (!PyString_Check(_obj1)) { | |
cf694132 RD |
7999 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
8000 | return NULL; | |
8001 | } | |
b1462dfa | 8002 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
cf694132 | 8003 | } |
b1462dfa RD |
8004 | { |
8005 | if (!PyString_Check(_obj2)) { | |
8006 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8007 | return NULL; | |
8008 | } | |
8009 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
8010 | } | |
8011 | { | |
8012 | wxPy_BEGIN_ALLOW_THREADS; | |
8013 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
8014 | ||
8015 | wxPy_END_ALLOW_THREADS; | |
8016 | } _resultobj = Py_BuildValue("i",_result); | |
8017 | { | |
8018 | if (_obj1) | |
8019 | delete _arg1; | |
8020 | } | |
8021 | { | |
8022 | if (_obj2) | |
8023 | delete _arg2; | |
8024 | } | |
8025 | return _resultobj; | |
8026 | } | |
8027 | ||
8028 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8029 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8030 | PyObject * _resultobj; | |
8031 | wxMenuItem * _result; | |
8032 | wxMenuBar * _arg0; | |
8033 | int _arg1; | |
8034 | PyObject * _argo0 = 0; | |
8035 | char *_kwnames[] = { "self","id", NULL }; | |
8036 | char _ptemp[128]; | |
8037 | ||
8038 | self = self; | |
8039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8040 | return NULL; | |
8041 | if (_argo0) { | |
8042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8045 | return NULL; |
8046 | } | |
8047 | } | |
8048 | { | |
8049 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8050 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 RD |
8051 | |
8052 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
8053 | } if (_result) { |
8054 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
8055 | _resultobj = Py_BuildValue("s",_ptemp); | |
8056 | } else { | |
8057 | Py_INCREF(Py_None); | |
8058 | _resultobj = Py_None; | |
8059 | } | |
b1462dfa | 8060 | return _resultobj; |
cf694132 | 8061 | } |
b1462dfa RD |
8062 | |
8063 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8064 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8065 | PyObject * _resultobj; | |
8066 | wxMenuBar * _arg0; | |
8067 | int _arg1; | |
8068 | bool _arg2; | |
8069 | PyObject * _argo0 = 0; | |
8070 | int tempbool2; | |
8071 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8072 | ||
8073 | self = self; | |
8074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8075 | return NULL; | |
8076 | if (_argo0) { | |
8077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8080 | return NULL; | |
8081 | } | |
8082 | } | |
8083 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8084 | { |
b1462dfa RD |
8085 | wxPy_BEGIN_ALLOW_THREADS; |
8086 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8087 | ||
8088 | wxPy_END_ALLOW_THREADS; | |
8089 | } Py_INCREF(Py_None); | |
8090 | _resultobj = Py_None; | |
8091 | return _resultobj; | |
cf694132 | 8092 | } |
b1462dfa RD |
8093 | |
8094 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8095 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8096 | PyObject * _resultobj; | |
8097 | wxMenuBar * _arg0; | |
8098 | int _arg1; | |
8099 | bool _arg2; | |
8100 | PyObject * _argo0 = 0; | |
8101 | int tempbool2; | |
8102 | char *_kwnames[] = { "self","id","check", NULL }; | |
8103 | ||
8104 | self = self; | |
8105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8106 | return NULL; | |
8107 | if (_argo0) { | |
8108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8111 | return NULL; | |
8112 | } | |
8113 | } | |
8114 | _arg2 = (bool ) tempbool2; | |
8115 | { | |
8116 | wxPy_BEGIN_ALLOW_THREADS; | |
8117 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8118 | ||
8119 | wxPy_END_ALLOW_THREADS; | |
8120 | } Py_INCREF(Py_None); | |
8121 | _resultobj = Py_None; | |
cf694132 RD |
8122 | return _resultobj; |
8123 | } | |
8124 | ||
b1462dfa RD |
8125 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8126 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8127 | PyObject * _resultobj; |
8128 | bool _result; | |
b1462dfa RD |
8129 | wxMenuBar * _arg0; |
8130 | int _arg1; | |
1d99702e | 8131 | PyObject * _argo0 = 0; |
b1462dfa | 8132 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8133 | |
8134 | self = self; | |
b1462dfa | 8135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8136 | return NULL; |
1d99702e RD |
8137 | if (_argo0) { |
8138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8141 | return NULL; |
8142 | } | |
8143 | } | |
cf694132 RD |
8144 | { |
8145 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8146 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 RD |
8147 | |
8148 | wxPy_END_ALLOW_THREADS; | |
8149 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
8150 | return _resultobj; |
8151 | } | |
8152 | ||
b1462dfa RD |
8153 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8154 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8155 | PyObject * _resultobj; |
8156 | bool _result; | |
b1462dfa RD |
8157 | wxMenuBar * _arg0; |
8158 | int _arg1; | |
1d99702e | 8159 | PyObject * _argo0 = 0; |
b1462dfa | 8160 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8161 | |
8162 | self = self; | |
b1462dfa | 8163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8164 | return NULL; |
1d99702e RD |
8165 | if (_argo0) { |
8166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8169 | return NULL; |
8170 | } | |
8171 | } | |
cf694132 RD |
8172 | { |
8173 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8174 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 RD |
8175 | |
8176 | wxPy_END_ALLOW_THREADS; | |
8177 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
8178 | return _resultobj; |
8179 | } | |
8180 | ||
b1462dfa RD |
8181 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8182 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8183 | PyObject * _resultobj; |
b1462dfa RD |
8184 | wxMenuBar * _arg0; |
8185 | int _arg1; | |
8186 | wxString * _arg2; | |
1d99702e | 8187 | PyObject * _argo0 = 0; |
b1462dfa RD |
8188 | PyObject * _obj2 = 0; |
8189 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8190 | |
8191 | self = self; | |
b1462dfa | 8192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8193 | return NULL; |
1d99702e RD |
8194 | if (_argo0) { |
8195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8198 | return NULL; |
8199 | } | |
8200 | } | |
b1462dfa RD |
8201 | { |
8202 | if (!PyString_Check(_obj2)) { | |
8203 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8204 | return NULL; | |
8205 | } | |
8206 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
8207 | } | |
cf694132 RD |
8208 | { |
8209 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8210 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
8211 | |
8212 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8213 | } Py_INCREF(Py_None); |
8214 | _resultobj = Py_None; | |
8215 | { | |
8216 | if (_obj2) | |
8217 | delete _arg2; | |
8218 | } | |
8ab979d7 RD |
8219 | return _resultobj; |
8220 | } | |
8221 | ||
b1462dfa RD |
8222 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8223 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8224 | PyObject * _resultobj; |
b1462dfa RD |
8225 | wxString * _result; |
8226 | wxMenuBar * _arg0; | |
8227 | int _arg1; | |
1d99702e | 8228 | PyObject * _argo0 = 0; |
b1462dfa | 8229 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8230 | |
8231 | self = self; | |
b1462dfa | 8232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8233 | return NULL; |
1d99702e RD |
8234 | if (_argo0) { |
8235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
8238 | return NULL; | |
8239 | } | |
8240 | } | |
8241 | { | |
8242 | wxPy_BEGIN_ALLOW_THREADS; | |
8243 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
8244 | ||
8245 | wxPy_END_ALLOW_THREADS; | |
8246 | }{ | |
eec92d76 | 8247 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8248 | } |
8249 | { | |
8250 | delete _result; | |
8251 | } | |
8252 | return _resultobj; | |
8253 | } | |
8254 | ||
8255 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
8256 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8257 | PyObject * _resultobj; | |
8258 | wxMenuBar * _arg0; | |
8259 | int _arg1; | |
8260 | wxString * _arg2; | |
8261 | PyObject * _argo0 = 0; | |
8262 | PyObject * _obj2 = 0; | |
8263 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
8264 | ||
8265 | self = self; | |
8266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8267 | return NULL; | |
8268 | if (_argo0) { | |
8269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
8272 | return NULL; | |
8273 | } | |
8274 | } | |
8275 | { | |
8276 | if (!PyString_Check(_obj2)) { | |
8277 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8278 | return NULL; | |
8279 | } | |
8280 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
8281 | } | |
8282 | { | |
8283 | wxPy_BEGIN_ALLOW_THREADS; | |
8284 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
8285 | ||
8286 | wxPy_END_ALLOW_THREADS; | |
8287 | } Py_INCREF(Py_None); | |
8288 | _resultobj = Py_None; | |
8289 | { | |
8290 | if (_obj2) | |
8291 | delete _arg2; | |
8292 | } | |
8293 | return _resultobj; | |
8294 | } | |
8295 | ||
8296 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
8297 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8298 | PyObject * _resultobj; | |
8299 | wxString * _result; | |
8300 | wxMenuBar * _arg0; | |
8301 | int _arg1; | |
8302 | PyObject * _argo0 = 0; | |
8303 | char *_kwnames[] = { "self","id", NULL }; | |
8304 | ||
8305 | self = self; | |
8306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
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_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8312 | return NULL; |
8313 | } | |
8314 | } | |
cf694132 RD |
8315 | { |
8316 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8317 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
8318 | |
8319 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8320 | }{ |
eec92d76 | 8321 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8322 | } |
8323 | { | |
8324 | delete _result; | |
8325 | } | |
8ab979d7 RD |
8326 | return _resultobj; |
8327 | } | |
8328 | ||
b1462dfa RD |
8329 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8330 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8331 | PyObject * _resultobj; |
b1462dfa RD |
8332 | wxMenuItem * _result; |
8333 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 8334 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
8335 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
8336 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
8337 | bool _arg4 = (bool ) FALSE; | |
8338 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 8339 | PyObject * _argo0 = 0; |
b1462dfa RD |
8340 | PyObject * _obj2 = 0; |
8341 | PyObject * _obj3 = 0; | |
8342 | int tempbool4 = (int) FALSE; | |
8343 | PyObject * _argo5 = 0; | |
8344 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
8345 | char _ptemp[128]; | |
8ab979d7 RD |
8346 | |
8347 | self = self; | |
b1462dfa | 8348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 8349 | return NULL; |
1d99702e RD |
8350 | if (_argo0) { |
8351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
8354 | return NULL; | |
8355 | } | |
8356 | } | |
8357 | if (_obj2) | |
8358 | { | |
8359 | if (!PyString_Check(_obj2)) { | |
8360 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8361 | return NULL; | |
8362 | } | |
8363 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
8364 | } | |
8365 | if (_obj3) | |
8366 | { | |
8367 | if (!PyString_Check(_obj3)) { | |
8368 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8369 | return NULL; | |
8370 | } | |
8371 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
8372 | } | |
8373 | _arg4 = (bool ) tempbool4; | |
8374 | if (_argo5) { | |
8375 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8376 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
8377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
8378 | return NULL; |
8379 | } | |
8380 | } | |
cf694132 RD |
8381 | { |
8382 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8383 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 RD |
8384 | |
8385 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8386 | } if (_result) { |
8387 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
8388 | _resultobj = Py_BuildValue("s",_ptemp); | |
8389 | } else { | |
8390 | Py_INCREF(Py_None); | |
8391 | _resultobj = Py_None; | |
8392 | } | |
8393 | { | |
8394 | if (_obj2) | |
8395 | delete _arg2; | |
8396 | } | |
8397 | { | |
8398 | if (_obj3) | |
8399 | delete _arg3; | |
8400 | } | |
8ab979d7 RD |
8401 | return _resultobj; |
8402 | } | |
8403 | ||
b1462dfa RD |
8404 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
8405 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8406 | PyObject * _resultobj; |
b1462dfa | 8407 | wxMenu * _result; |
8ab979d7 | 8408 | wxMenuItem * _arg0; |
1d99702e | 8409 | PyObject * _argo0 = 0; |
efc5f224 | 8410 | char *_kwnames[] = { "self", NULL }; |
b1462dfa | 8411 | char _ptemp[128]; |
8ab979d7 RD |
8412 | |
8413 | self = self; | |
b1462dfa | 8414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 8415 | return NULL; |
1d99702e RD |
8416 | if (_argo0) { |
8417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8420 | return NULL; |
8421 | } | |
8422 | } | |
cf694132 RD |
8423 | { |
8424 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8425 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 RD |
8426 | |
8427 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8428 | } if (_result) { |
8429 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8430 | _resultobj = Py_BuildValue("s",_ptemp); | |
8431 | } else { | |
8432 | Py_INCREF(Py_None); | |
8433 | _resultobj = Py_None; | |
8434 | } | |
8ab979d7 RD |
8435 | return _resultobj; |
8436 | } | |
8437 | ||
2abc0a0f RD |
8438 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
8439 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8440 | PyObject * _resultobj; |
8441 | wxMenuItem * _arg0; | |
2abc0a0f | 8442 | int _arg1; |
1d99702e | 8443 | PyObject * _argo0 = 0; |
2abc0a0f | 8444 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8445 | |
8446 | self = self; | |
2abc0a0f | 8447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8448 | return NULL; |
1d99702e RD |
8449 | if (_argo0) { |
8450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 8452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8453 | return NULL; |
8454 | } | |
8455 | } | |
cf694132 RD |
8456 | { |
8457 | wxPy_BEGIN_ALLOW_THREADS; | |
2abc0a0f | 8458 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 RD |
8459 | |
8460 | wxPy_END_ALLOW_THREADS; | |
8461 | } Py_INCREF(Py_None); | |
8ab979d7 | 8462 | _resultobj = Py_None; |
8ab979d7 RD |
8463 | return _resultobj; |
8464 | } | |
8465 | ||
b1462dfa RD |
8466 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
8467 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8468 | PyObject * _resultobj; |
b1462dfa | 8469 | int _result; |
8ab979d7 | 8470 | wxMenuItem * _arg0; |
1d99702e | 8471 | PyObject * _argo0 = 0; |
efc5f224 | 8472 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8473 | |
8474 | self = self; | |
b1462dfa | 8475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 8476 | return NULL; |
1d99702e RD |
8477 | if (_argo0) { |
8478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8481 | return NULL; |
8482 | } | |
8483 | } | |
8ab979d7 | 8484 | { |
cf694132 | 8485 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8486 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 RD |
8487 | |
8488 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8489 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8490 | return _resultobj; |
8491 | } | |
8492 | ||
b1462dfa RD |
8493 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
8494 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8495 | PyObject * _resultobj; |
b1462dfa | 8496 | bool _result; |
8ab979d7 | 8497 | wxMenuItem * _arg0; |
1d99702e | 8498 | PyObject * _argo0 = 0; |
efc5f224 | 8499 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8500 | |
8501 | self = self; | |
b1462dfa | 8502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 8503 | return NULL; |
1d99702e RD |
8504 | if (_argo0) { |
8505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8508 | return NULL; |
8509 | } | |
8510 | } | |
8ab979d7 | 8511 | { |
cf694132 | 8512 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8513 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 RD |
8514 | |
8515 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8516 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8517 | return _resultobj; |
8518 | } | |
8519 | ||
b1462dfa RD |
8520 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
8521 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8522 | PyObject * _resultobj; |
8523 | wxMenuItem * _arg0; | |
8524 | wxString * _arg1; | |
1d99702e | 8525 | PyObject * _argo0 = 0; |
8ab979d7 | 8526 | PyObject * _obj1 = 0; |
b1462dfa | 8527 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
8528 | |
8529 | self = self; | |
b1462dfa | 8530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8531 | return NULL; |
1d99702e RD |
8532 | if (_argo0) { |
8533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8536 | return NULL; |
8537 | } | |
8538 | } | |
8539 | { | |
8540 | if (!PyString_Check(_obj1)) { | |
8541 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8542 | return NULL; | |
8543 | } | |
cf694132 | 8544 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 8545 | } |
cf694132 RD |
8546 | { |
8547 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8548 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 RD |
8549 | |
8550 | wxPy_END_ALLOW_THREADS; | |
8551 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
8552 | _resultobj = Py_None; |
8553 | { | |
8554 | if (_obj1) | |
8555 | delete _arg1; | |
8556 | } | |
8557 | return _resultobj; | |
8558 | } | |
8559 | ||
b1462dfa RD |
8560 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
8561 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8562 | PyObject * _resultobj; |
b1462dfa | 8563 | wxString * _result; |
8ab979d7 | 8564 | wxMenuItem * _arg0; |
1d99702e | 8565 | PyObject * _argo0 = 0; |
b1462dfa | 8566 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8567 | |
8568 | self = self; | |
b1462dfa | 8569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 8570 | return NULL; |
1d99702e RD |
8571 | if (_argo0) { |
8572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8575 | return NULL; |
8576 | } | |
8577 | } | |
cf694132 RD |
8578 | { |
8579 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8580 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 RD |
8581 | |
8582 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8583 | }{ |
eec92d76 | 8584 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 8585 | } |
cf694132 | 8586 | { |
b1462dfa RD |
8587 | delete _result; |
8588 | } | |
cf694132 RD |
8589 | return _resultobj; |
8590 | } | |
8591 | ||
b1462dfa RD |
8592 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
8593 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8594 | PyObject * _resultobj; |
b1462dfa | 8595 | wxString * _result; |
cf694132 | 8596 | wxMenuItem * _arg0; |
1d99702e | 8597 | PyObject * _argo0 = 0; |
efc5f224 | 8598 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
8599 | |
8600 | self = self; | |
b1462dfa | 8601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 8602 | return NULL; |
1d99702e RD |
8603 | if (_argo0) { |
8604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
8607 | return NULL; |
8608 | } | |
8609 | } | |
8610 | { | |
8611 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
8612 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
8613 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
8614 | |
8615 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8616 | }{ |
eec92d76 | 8617 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 8618 | } |
cf694132 RD |
8619 | return _resultobj; |
8620 | } | |
8621 | ||
b1462dfa RD |
8622 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
8623 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8624 | PyObject * _resultobj; |
cf694132 | 8625 | wxMenuItem * _arg0; |
b1462dfa | 8626 | bool _arg1; |
1d99702e | 8627 | PyObject * _argo0 = 0; |
b1462dfa RD |
8628 | int tempbool1; |
8629 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
8630 | |
8631 | self = self; | |
b1462dfa | 8632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 8633 | return NULL; |
1d99702e RD |
8634 | if (_argo0) { |
8635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
8638 | return NULL; |
8639 | } | |
8640 | } | |
b1462dfa | 8641 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
8642 | { |
8643 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8644 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 RD |
8645 | |
8646 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8647 | } Py_INCREF(Py_None); |
8648 | _resultobj = Py_None; | |
cf694132 RD |
8649 | return _resultobj; |
8650 | } | |
8651 | ||
b1462dfa RD |
8652 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
8653 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8654 | PyObject * _resultobj; |
b1462dfa | 8655 | bool _result; |
cf694132 | 8656 | wxMenuItem * _arg0; |
1d99702e | 8657 | PyObject * _argo0 = 0; |
efc5f224 | 8658 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
8659 | |
8660 | self = self; | |
b1462dfa | 8661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 8662 | return NULL; |
1d99702e RD |
8663 | if (_argo0) { |
8664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
8667 | return NULL; |
8668 | } | |
8669 | } | |
8670 | { | |
8671 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8672 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 RD |
8673 | |
8674 | wxPy_END_ALLOW_THREADS; | |
8675 | } _resultobj = Py_BuildValue("i",_result); | |
8676 | return _resultobj; | |
8677 | } | |
8678 | ||
b1462dfa RD |
8679 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
8680 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8681 | PyObject * _resultobj; |
b1462dfa | 8682 | bool _result; |
cf694132 | 8683 | wxMenuItem * _arg0; |
1d99702e | 8684 | PyObject * _argo0 = 0; |
efc5f224 | 8685 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
8686 | |
8687 | self = self; | |
b1462dfa | 8688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 8689 | return NULL; |
1d99702e RD |
8690 | if (_argo0) { |
8691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
8694 | return NULL; |
8695 | } | |
8696 | } | |
8697 | { | |
8698 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8699 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 RD |
8700 | |
8701 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8702 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
8703 | return _resultobj; |
8704 | } | |
8705 | ||
b1462dfa RD |
8706 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
8707 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
8708 | PyObject * _resultobj; |
8709 | wxMenuItem * _arg0; | |
b1462dfa | 8710 | wxMenu * _arg1; |
1d99702e RD |
8711 | PyObject * _argo0 = 0; |
8712 | PyObject * _argo1 = 0; | |
b1462dfa | 8713 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
8714 | |
8715 | self = self; | |
b1462dfa | 8716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 8717 | return NULL; |
1d99702e RD |
8718 | if (_argo0) { |
8719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
8722 | return NULL; |
8723 | } | |
8724 | } | |
1d99702e RD |
8725 | if (_argo1) { |
8726 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
8727 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
8728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
8729 | return NULL; |
8730 | } | |
8731 | } | |
8732 | { | |
8733 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8734 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 RD |
8735 | |
8736 | wxPy_END_ALLOW_THREADS; | |
8737 | } Py_INCREF(Py_None); | |
8738 | _resultobj = Py_None; | |
8739 | return _resultobj; | |
8740 | } | |
8741 | ||
b1462dfa RD |
8742 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
8743 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8744 | PyObject * _resultobj; |
b1462dfa | 8745 | wxMenu * _result; |
cf694132 | 8746 | wxMenuItem * _arg0; |
1d99702e | 8747 | PyObject * _argo0 = 0; |
b1462dfa RD |
8748 | char *_kwnames[] = { "self", NULL }; |
8749 | char _ptemp[128]; | |
cf694132 RD |
8750 | |
8751 | self = self; | |
b1462dfa | 8752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 8753 | return NULL; |
1d99702e RD |
8754 | if (_argo0) { |
8755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
8758 | return NULL; |
8759 | } | |
8760 | } | |
b1462dfa RD |
8761 | { |
8762 | wxPy_BEGIN_ALLOW_THREADS; | |
8763 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
8764 | ||
8765 | wxPy_END_ALLOW_THREADS; | |
8766 | } if (_result) { | |
8767 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8768 | _resultobj = Py_BuildValue("s",_ptemp); | |
8769 | } else { | |
8770 | Py_INCREF(Py_None); | |
8771 | _resultobj = Py_None; | |
cf694132 | 8772 | } |
b1462dfa RD |
8773 | return _resultobj; |
8774 | } | |
8775 | ||
8776 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
8777 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8778 | PyObject * _resultobj; | |
8779 | wxMenuItem * _arg0; | |
8780 | bool _arg1 = (bool ) TRUE; | |
8781 | PyObject * _argo0 = 0; | |
8782 | int tempbool1 = (int) TRUE; | |
8783 | char *_kwnames[] = { "self","enable", NULL }; | |
8784 | ||
8785 | self = self; | |
8786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
8787 | return NULL; | |
8788 | if (_argo0) { | |
8789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
8792 | return NULL; |
8793 | } | |
8794 | } | |
b1462dfa | 8795 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
8796 | { |
8797 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8798 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 RD |
8799 | |
8800 | wxPy_END_ALLOW_THREADS; | |
8801 | } Py_INCREF(Py_None); | |
8802 | _resultobj = Py_None; | |
8803 | return _resultobj; | |
8804 | } | |
8805 | ||
b1462dfa RD |
8806 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
8807 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8808 | PyObject * _resultobj; |
b1462dfa | 8809 | bool _result; |
cf694132 | 8810 | wxMenuItem * _arg0; |
1d99702e | 8811 | PyObject * _argo0 = 0; |
b1462dfa | 8812 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
8813 | |
8814 | self = self; | |
b1462dfa | 8815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 8816 | return NULL; |
1d99702e RD |
8817 | if (_argo0) { |
8818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
8821 | return NULL; |
8822 | } | |
8823 | } | |
8824 | { | |
8825 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8826 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 RD |
8827 | |
8828 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8829 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
8830 | return _resultobj; |
8831 | } | |
8832 | ||
b1462dfa RD |
8833 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
8834 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
8835 | PyObject * _resultobj; |
8836 | wxMenuItem * _arg0; | |
b1462dfa | 8837 | bool _arg1 = (bool ) TRUE; |
1d99702e | 8838 | PyObject * _argo0 = 0; |
b1462dfa RD |
8839 | int tempbool1 = (int) TRUE; |
8840 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
8841 | |
8842 | self = self; | |
b1462dfa | 8843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 8844 | return NULL; |
1d99702e RD |
8845 | if (_argo0) { |
8846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
8849 | return NULL; |
8850 | } | |
8851 | } | |
b1462dfa | 8852 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
8853 | { |
8854 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8855 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 RD |
8856 | |
8857 | wxPy_END_ALLOW_THREADS; | |
8858 | } Py_INCREF(Py_None); | |
8859 | _resultobj = Py_None; | |
8860 | return _resultobj; | |
8861 | } | |
8862 | ||
b1462dfa RD |
8863 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
8864 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 8865 | PyObject * _resultobj; |
b1462dfa | 8866 | bool _result; |
2abc0a0f | 8867 | wxMenuItem * _arg0; |
2abc0a0f | 8868 | PyObject * _argo0 = 0; |
b1462dfa | 8869 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
8870 | |
8871 | self = self; | |
b1462dfa | 8872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
8873 | return NULL; |
8874 | if (_argo0) { | |
8875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
8878 | return NULL; |
8879 | } | |
8880 | } | |
2abc0a0f RD |
8881 | { |
8882 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8883 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f RD |
8884 | |
8885 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8886 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
8887 | return _resultobj; |
8888 | } | |
8889 | ||
b1462dfa RD |
8890 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
8891 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 8892 | PyObject * _resultobj; |
2abc0a0f RD |
8893 | wxMenuItem * _arg0; |
8894 | PyObject * _argo0 = 0; | |
8895 | char *_kwnames[] = { "self", NULL }; | |
8896 | ||
8897 | self = self; | |
b1462dfa | 8898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
8899 | return NULL; |
8900 | if (_argo0) { | |
8901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
8904 | return NULL; |
8905 | } | |
8906 | } | |
8907 | { | |
8908 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8909 | wxMenuItem_Toggle(_arg0); |
2abc0a0f RD |
8910 | |
8911 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8912 | } Py_INCREF(Py_None); |
8913 | _resultobj = Py_None; | |
2abc0a0f RD |
8914 | return _resultobj; |
8915 | } | |
8916 | ||
b1462dfa RD |
8917 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
8918 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
8919 | PyObject * _resultobj; |
8920 | wxMenuItem * _arg0; | |
b1462dfa | 8921 | wxString * _arg1; |
1d99702e | 8922 | PyObject * _argo0 = 0; |
b1462dfa RD |
8923 | PyObject * _obj1 = 0; |
8924 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
8925 | |
8926 | self = self; | |
b1462dfa | 8927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 8928 | return NULL; |
1d99702e RD |
8929 | if (_argo0) { |
8930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
8933 | return NULL; |
8934 | } | |
8935 | } | |
b1462dfa RD |
8936 | { |
8937 | if (!PyString_Check(_obj1)) { | |
8938 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 8939 | return NULL; |
cf694132 | 8940 | } |
b1462dfa RD |
8941 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8942 | } | |
cf694132 RD |
8943 | { |
8944 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8945 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 RD |
8946 | |
8947 | wxPy_END_ALLOW_THREADS; | |
8948 | } Py_INCREF(Py_None); | |
8ab979d7 | 8949 | _resultobj = Py_None; |
b1462dfa RD |
8950 | { |
8951 | if (_obj1) | |
8952 | delete _arg1; | |
8953 | } | |
8ab979d7 RD |
8954 | return _resultobj; |
8955 | } | |
8956 | ||
b1462dfa RD |
8957 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
8958 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 8959 | PyObject * _resultobj; |
b1462dfa | 8960 | wxString * _result; |
be4d9c1f | 8961 | wxMenuItem * _arg0; |
1d99702e | 8962 | PyObject * _argo0 = 0; |
efc5f224 | 8963 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
8964 | |
8965 | self = self; | |
b1462dfa | 8966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 8967 | return NULL; |
1d99702e RD |
8968 | if (_argo0) { |
8969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
8972 | return NULL; |
8973 | } | |
8974 | } | |
cf694132 RD |
8975 | { |
8976 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
8977 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
8978 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
8979 | |
8980 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8981 | }{ |
eec92d76 | 8982 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 8983 | } |
be4d9c1f RD |
8984 | return _resultobj; |
8985 | } | |
8986 | ||
b1462dfa RD |
8987 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
8988 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 8989 | PyObject * _resultobj; |
b1462dfa | 8990 | wxAcceleratorEntry * _result; |
2abc0a0f | 8991 | wxMenuItem * _arg0; |
2abc0a0f | 8992 | PyObject * _argo0 = 0; |
b1462dfa RD |
8993 | char *_kwnames[] = { "self", NULL }; |
8994 | char _ptemp[128]; | |
2abc0a0f RD |
8995 | |
8996 | self = self; | |
b1462dfa | 8997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
8998 | return NULL; |
8999 | if (_argo0) { | |
9000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9003 | return NULL; |
9004 | } | |
9005 | } | |
2abc0a0f RD |
9006 | { |
9007 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9008 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f RD |
9009 | |
9010 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9011 | } if (_result) { |
9012 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9013 | _resultobj = Py_BuildValue("s",_ptemp); | |
9014 | } else { | |
9015 | Py_INCREF(Py_None); | |
9016 | _resultobj = Py_None; | |
9017 | } | |
2abc0a0f RD |
9018 | return _resultobj; |
9019 | } | |
9020 | ||
b1462dfa RD |
9021 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9022 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9023 | PyObject * _resultobj; |
9024 | wxMenuItem * _arg0; | |
b1462dfa | 9025 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9026 | PyObject * _argo0 = 0; |
9027 | PyObject * _argo1 = 0; | |
b1462dfa | 9028 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9029 | |
9030 | self = self; | |
b1462dfa | 9031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9032 | return NULL; |
9033 | if (_argo0) { | |
9034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9037 | return NULL; |
9038 | } | |
9039 | } | |
9040 | if (_argo1) { | |
9041 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9042 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
9043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
9044 | return NULL; |
9045 | } | |
9046 | } | |
9047 | { | |
9048 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9049 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f RD |
9050 | |
9051 | wxPy_END_ALLOW_THREADS; | |
9052 | } Py_INCREF(Py_None); | |
9053 | _resultobj = Py_None; | |
9054 | return _resultobj; | |
9055 | } | |
9056 | ||
8ab979d7 | 9057 | static PyMethodDef windowscMethods[] = { |
b1462dfa RD |
9058 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
9059 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
9060 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9061 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9062 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
9063 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9064 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9065 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9066 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9067 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9068 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 9069 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9070 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9071 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
9072 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9073 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9074 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9075 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9076 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
9077 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9078 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9079 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9080 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9081 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
9082 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 9083 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
9084 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
9085 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9086 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9087 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
9088 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
9089 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
9090 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9091 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9092 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
9093 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9094 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
9095 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
9096 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
9097 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9098 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
9099 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
9100 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
9101 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
9102 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
9103 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
9104 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9105 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9106 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9107 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9108 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
9109 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9110 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
9111 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9112 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9113 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
9114 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9115 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
9116 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
9117 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9118 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9119 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9120 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9121 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
9122 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9123 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
9124 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 9125 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9126 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9127 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9128 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9129 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9130 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
9131 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
9132 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
9133 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
9134 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
9135 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
9136 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
9137 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
9138 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9139 | { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS }, |
4c9993c3 | 9140 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 9141 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 9142 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9143 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
9144 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
9145 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
9146 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
9147 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 9148 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9149 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 9150 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9151 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
9152 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
9153 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
9154 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
9155 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
9156 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
9157 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9158 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
9159 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
9160 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
9161 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
9162 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9163 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
9164 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
9165 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
9166 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
9167 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
9168 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
9169 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
9170 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
9171 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 9172 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9173 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
9174 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
9175 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
9176 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9177 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 9178 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9179 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
9180 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
9181 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
9182 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
9183 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
9184 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9185 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9186 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9187 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9188 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
9189 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
9190 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
9191 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
9192 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
9193 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 9194 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9195 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
9196 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
9197 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
9198 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
9199 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
9200 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
9201 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
9202 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
9203 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
9204 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
9205 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9206 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9207 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 9208 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9209 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 9210 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9211 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
9212 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 9213 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9214 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
9215 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
9216 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
9217 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
9218 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
9219 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 9220 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9221 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
9222 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
9223 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
9224 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
9225 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
9226 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
9227 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9228 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
9229 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
9230 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
9231 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
9232 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
9233 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
9234 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
9235 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
9236 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
9237 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
9238 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
9239 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9240 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
9241 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
9242 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9243 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
9244 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9245 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
9246 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
9247 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9248 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
9249 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
9250 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
9251 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
9252 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
9253 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
9254 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
9255 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
9256 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
9257 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
9258 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
9259 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
9260 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9261 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9262 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 9263 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9264 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
9265 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9266 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 9267 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9268 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
9269 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
9270 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
9271 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
9272 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 9273 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9274 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
9275 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
9276 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
9277 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
9278 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
9279 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
9280 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
9281 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9282 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
9283 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
9284 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
3ca6a5f0 BP |
9285 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
9286 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9287 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
9288 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
9289 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
9290 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
9291 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
9292 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
9293 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, |
9294 | { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9295 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, | |
9296 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9297 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9298 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
9299 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 9300 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9301 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
9302 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
9303 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
9304 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
9305 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
9306 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9307 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9308 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9309 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
a1df7a95 RD |
9310 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
9311 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
9312 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9313 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
9314 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
9315 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
9316 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
9317 | { NULL, NULL } |
9318 | }; | |
1d99702e RD |
9319 | #ifdef __cplusplus |
9320 | } | |
9321 | #endif | |
9322 | /* | |
9323 | * This table is used by the pointer type-checker | |
9324 | */ | |
9325 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
9326 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
9327 | { "_signed_long","_long",0}, | |
65dd82cb | 9328 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
b1462dfa RD |
9329 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, |
9330 | { "_wxPrintQuality","_wxCoord",0}, | |
1d99702e RD |
9331 | { "_wxPrintQuality","_int",0}, |
9332 | { "_wxPrintQuality","_signed_int",0}, | |
9333 | { "_wxPrintQuality","_unsigned_int",0}, | |
9334 | { "_wxPrintQuality","_wxWindowID",0}, | |
9335 | { "_wxPrintQuality","_uint",0}, | |
9336 | { "_wxPrintQuality","_EBool",0}, | |
9337 | { "_wxPrintQuality","_size_t",0}, | |
b1462dfa | 9338 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
1d99702e | 9339 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 9340 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e RD |
9341 | { "_class_wxMenuBar","_wxMenuBar",0}, |
9342 | { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9343 | { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9344 | { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9345 | { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9346 | { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9347 | { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9348 | { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9349 | { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9350 | { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9351 | { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9352 | { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
9353 | { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
9354 | { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
9355 | { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
9356 | { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
9357 | { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e RD |
9358 | { "_class_wxEvtHandler","_wxEvtHandler",0}, |
9359 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
9360 | { "_wxCursor","_class_wxCursor",0}, | |
9361 | { "_wxMask","_class_wxMask",0}, | |
9362 | { "_wxPen","_class_wxPen",0}, | |
9363 | { "_byte","_unsigned_char",0}, | |
b1462dfa | 9364 | { "_wxDataObject","_class_wxDataObject",0}, |
65dd82cb RD |
9365 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
9366 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
9367 | { "_long","_unsigned_long",0}, |
9368 | { "_long","_signed_long",0}, | |
9369 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa | 9370 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
1d99702e | 9371 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, |
b1462dfa | 9372 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e | 9373 | { "_wxDC","_class_wxDC",0}, |
b1462dfa RD |
9374 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
9375 | { "_size_t","_wxCoord",0}, | |
1d99702e RD |
9376 | { "_size_t","_wxPrintQuality",0}, |
9377 | { "_size_t","_unsigned_int",0}, | |
9378 | { "_size_t","_int",0}, | |
9379 | { "_size_t","_wxWindowID",0}, | |
9380 | { "_size_t","_uint",0}, | |
9381 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
9382 | { "_wxPrinterDC","_class_wxPrinterDC",0}, | |
9383 | { "_class_wxMenuItem","_wxMenuItem",0}, | |
9384 | { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9385 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9386 | { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
9387 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
9388 | { "_wxPanel","_class_wxPanel",0}, | |
9389 | { "_class_wxMask","_wxMask",0}, | |
b1462dfa | 9390 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
1d99702e RD |
9391 | { "_wxColour","_class_wxColour",0}, |
9392 | { "_class_wxDialog","_wxDialog",0}, | |
b1462dfa RD |
9393 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
9394 | { "_class_wxDataObject","_wxDataObject",0}, | |
1d99702e | 9395 | { "_wxBrush","_class_wxBrush",0}, |
b1462dfa RD |
9396 | { "_wxDataFormat","_class_wxDataFormat",0}, |
9397 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
9398 | { "_uint","_wxCoord",0}, | |
1d99702e RD |
9399 | { "_uint","_wxPrintQuality",0}, |
9400 | { "_uint","_size_t",0}, | |
9401 | { "_uint","_unsigned_int",0}, | |
9402 | { "_uint","_int",0}, | |
9403 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 9404 | { "_wxChar","_char",0}, |
2f90df85 | 9405 | { "_wxPyValidator","_class_wxPyValidator",0}, |
1d99702e RD |
9406 | { "_wxRect","_class_wxRect",0}, |
9407 | { "_wxPoint","_class_wxPoint",0}, | |
f6bcfd97 | 9408 | { "_char","_wxChar",0}, |
1d99702e | 9409 | { "_wxBitmap","_class_wxBitmap",0}, |
1d99702e RD |
9410 | { "_wxWindowDC","_class_wxWindowDC",0}, |
9411 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
2f90df85 RD |
9412 | { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
9413 | { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
9414 | { "_class_wxValidator","_wxValidator",0}, | |
b1462dfa RD |
9415 | { "_wxDropTarget","_class_wxDropTarget",0}, |
9416 | { "_EBool","_wxCoord",0}, | |
1d99702e RD |
9417 | { "_EBool","_wxPrintQuality",0}, |
9418 | { "_EBool","_signed_int",0}, | |
9419 | { "_EBool","_int",0}, | |
9420 | { "_EBool","_wxWindowID",0}, | |
9421 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa | 9422 | { "_class_wxDataFormat","_wxDataFormat",0}, |
1d99702e | 9423 | { "_wxFont","_class_wxFont",0}, |
b1462dfa | 9424 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
1d99702e RD |
9425 | { "_unsigned_long","_long",0}, |
9426 | { "_class_wxRect","_wxRect",0}, | |
9427 | { "_class_wxDC","_wxDC",0}, | |
1d99702e RD |
9428 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, |
9429 | { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9430 | { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9431 | { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
9432 | { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
9433 | { "_class_wxPanel","_wxPanel",0}, | |
b1462dfa | 9434 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
9435 | { "_signed_int","_wxPrintQuality",0}, |
9436 | { "_signed_int","_EBool",0}, | |
9437 | { "_signed_int","_wxWindowID",0}, | |
9438 | { "_signed_int","_int",0}, | |
9439 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
9440 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
b1462dfa | 9441 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e RD |
9442 | { "_wxMenu","_class_wxMenu",0}, |
9443 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
9444 | { "_WXTYPE","_short",0}, | |
9445 | { "_WXTYPE","_signed_short",0}, | |
9446 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 9447 | { "_class_wxDropTarget","_wxDropTarget",0}, |
1d99702e RD |
9448 | { "_class_wxBrush","_wxBrush",0}, |
9449 | { "_unsigned_short","_WXTYPE",0}, | |
9450 | { "_unsigned_short","_short",0}, | |
b1462dfa RD |
9451 | { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, |
9452 | { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
9453 | { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
9454 | { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
9455 | { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
9456 | { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
9457 | { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
9458 | { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
9459 | { "_class_wxWindow","_wxWindow",0}, | |
9460 | { "_class_wxFont","_wxFont",0}, | |
b1462dfa | 9461 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 9462 | { "_class_wxPyValidator","_wxPyValidator",0}, |
2abc0a0f | 9463 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
65dd82cb | 9464 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, |
1d99702e RD |
9465 | { "_wxClientDC","_class_wxClientDC",0}, |
9466 | { "_class_wxPoint","_wxPoint",0}, | |
9467 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
9468 | { "_signed_short","_WXTYPE",0}, | |
9469 | { "_signed_short","_short",0}, | |
9470 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
65dd82cb | 9471 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
9472 | { "_wxPaintDC","_class_wxPaintDC",0}, |
9473 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
9474 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
9475 | { "_class_wxCursor","_wxCursor",0}, | |
b1462dfa | 9476 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
1d99702e RD |
9477 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
9478 | { "_unsigned_char","_byte",0}, | |
9479 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
9480 | { "_class_wxMenu","_wxMenu",0}, | |
b1462dfa | 9481 | { "_unsigned_int","_wxCoord",0}, |
1d99702e RD |
9482 | { "_unsigned_int","_wxPrintQuality",0}, |
9483 | { "_unsigned_int","_size_t",0}, | |
9484 | { "_unsigned_int","_uint",0}, | |
9485 | { "_unsigned_int","_wxWindowID",0}, | |
9486 | { "_unsigned_int","_int",0}, | |
9487 | { "_wxIcon","_class_wxIcon",0}, | |
9488 | { "_wxDialog","_class_wxDialog",0}, | |
9489 | { "_class_wxPen","_wxPen",0}, | |
9490 | { "_short","_WXTYPE",0}, | |
9491 | { "_short","_unsigned_short",0}, | |
9492 | { "_short","_signed_short",0}, | |
65dd82cb RD |
9493 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
9494 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
1d99702e | 9495 | { "_class_wxImageList","_wxImageList",0}, |
b1462dfa | 9496 | { "_wxWindowID","_wxCoord",0}, |
1d99702e RD |
9497 | { "_wxWindowID","_wxPrintQuality",0}, |
9498 | { "_wxWindowID","_size_t",0}, | |
9499 | { "_wxWindowID","_EBool",0}, | |
9500 | { "_wxWindowID","_uint",0}, | |
9501 | { "_wxWindowID","_int",0}, | |
9502 | { "_wxWindowID","_signed_int",0}, | |
9503 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 9504 | { "_int","_wxCoord",0}, |
1d99702e RD |
9505 | { "_int","_wxPrintQuality",0}, |
9506 | { "_int","_size_t",0}, | |
9507 | { "_int","_EBool",0}, | |
9508 | { "_int","_uint",0}, | |
9509 | { "_int","_wxWindowID",0}, | |
9510 | { "_int","_unsigned_int",0}, | |
9511 | { "_int","_signed_int",0}, | |
9512 | { "_wxSize","_class_wxSize",0}, | |
9513 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
9514 | { "_class_wxPrinterDC","_wxPrinterDC",0}, | |
65dd82cb | 9515 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
1d99702e | 9516 | { "_class_wxPaintDC","_wxPaintDC",0}, |
b1462dfa | 9517 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, |
2f90df85 RD |
9518 | { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
9519 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
9520 | { "_wxValidator","_class_wxValidator",0}, | |
1d99702e RD |
9521 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
9522 | { "_class_wxIcon","_wxIcon",0}, | |
9523 | { "_class_wxColour","_wxColour",0}, | |
9524 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
9525 | { "_wxPalette","_class_wxPalette",0}, | |
b1462dfa RD |
9526 | { "_wxCoord","_int",0}, |
9527 | { "_wxCoord","_signed_int",0}, | |
9528 | { "_wxCoord","_unsigned_int",0}, | |
9529 | { "_wxCoord","_wxWindowID",0}, | |
9530 | { "_wxCoord","_uint",0}, | |
9531 | { "_wxCoord","_EBool",0}, | |
9532 | { "_wxCoord","_size_t",0}, | |
9533 | { "_wxCoord","_wxPrintQuality",0}, | |
9534 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, | |
1d99702e | 9535 | { "_wxRegion","_class_wxRegion",0}, |
b1462dfa | 9536 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
2abc0a0f | 9537 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
1d99702e | 9538 | { "_class_wxClientDC","_wxClientDC",0}, |
b1462dfa | 9539 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
1d99702e RD |
9540 | { "_class_wxSize","_wxSize",0}, |
9541 | { "_class_wxBitmap","_wxBitmap",0}, | |
9542 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 9543 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e RD |
9544 | { "_wxMenuBar","_class_wxMenuBar",0}, |
9545 | { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9546 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9547 | { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9548 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9549 | { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9550 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9551 | { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9552 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9553 | { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9554 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9555 | { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
9556 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
9557 | { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
9558 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
9559 | { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
9560 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e RD |
9561 | { "_wxEvtHandler","_class_wxEvtHandler",0}, |
9562 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
1d99702e RD |
9563 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, |
9564 | { "_class_wxPalette","_wxPalette",0}, | |
b1462dfa RD |
9565 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
9566 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, | |
9567 | { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
9568 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
9569 | { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
9570 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
9571 | { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
9572 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
9573 | { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
9574 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
9575 | { "_wxWindow","_class_wxWindow",0}, | |
9576 | {0,0,0}}; | |
9577 | ||
8ab979d7 RD |
9578 | static PyObject *SWIG_globals; |
9579 | #ifdef __cplusplus | |
9580 | extern "C" | |
9581 | #endif | |
1d99702e | 9582 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
9583 | PyObject *m, *d; |
9584 | SWIG_globals = SWIG_newvarlink(); | |
9585 | m = Py_InitModule("windowsc", windowscMethods); | |
9586 | d = PyModule_GetDict(m); | |
1d99702e RD |
9587 | { |
9588 | int i; | |
9589 | for (i = 0; _swig_mapping[i].n1; i++) | |
9590 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
9591 | } | |
8ab979d7 | 9592 | } |