]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/windows.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
dbbb98cd | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
dbbb98cd | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initwindowsc |
55 | ||
56 | #define SWIG_name "windowsc" | |
57 | ||
58 | #include "helpers.h" | |
8ab979d7 | 59 | #include <wx/menuitem.h> |
8ab979d7 RD |
60 | |
61 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
62 | PyObject* o2; | |
dbbb98cd | 63 | if (!target) { |
8ab979d7 | 64 | target = o; |
dbbb98cd | 65 | } else if (target == Py_None) { |
8ab979d7 RD |
66 | Py_DECREF(Py_None); |
67 | target = o; | |
dbbb98cd | 68 | } else { |
8ab979d7 RD |
69 | if (!PyList_Check(target)) { |
70 | o2 = target; | |
71 | target = PyList_New(0); | |
72 | PyList_Append(target, o2); | |
73 | Py_XDECREF(o2); | |
74 | } | |
75 | PyList_Append(target,o); | |
76 | Py_XDECREF(o); | |
77 | } | |
78 | return target; | |
79 | } | |
80 | ||
81 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
82 | PyObject* o2; | |
83 | PyObject* o3; | |
84 | ||
dbbb98cd | 85 | if (!target) { |
8ab979d7 | 86 | target = o; |
dbbb98cd | 87 | } else if (target == Py_None) { |
8ab979d7 RD |
88 | Py_DECREF(Py_None); |
89 | target = o; | |
dbbb98cd | 90 | } else { |
8ab979d7 RD |
91 | if (!PyTuple_Check(target)) { |
92 | o2 = target; | |
93 | target = PyTuple_New(1); | |
94 | PyTuple_SetItem(target, 0, o2); | |
95 | } | |
dbbb98cd RD |
96 | o3 = PyTuple_New(1); |
97 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
98 | |
99 | o2 = target; | |
dbbb98cd RD |
100 | target = PySequence_Concat(o2, o3); |
101 | Py_DECREF(o2); | |
8ab979d7 RD |
102 | Py_DECREF(o3); |
103 | } | |
104 | return target; | |
105 | } | |
106 | ||
2f90df85 RD |
107 | static char* wxStringErrorMsg = "string type is required for parameter"; |
108 | ||
e508a2b6 RD |
109 | static wxString wxPyEmptyStr(""); |
110 | ||
2f90df85 RD |
111 | bool wxValidator_IsSilent() { |
112 | return wxValidator::IsSilent(); | |
113 | } | |
8ab979d7 | 114 | |
2f90df85 RD |
115 | void wxValidator_SetBellOnError(int doIt = TRUE) { |
116 | wxValidator::SetBellOnError(doIt); | |
117 | } | |
8ab979d7 | 118 | |
2f90df85 RD |
119 | class wxPyValidator : public wxValidator { |
120 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
121 | public: | |
122 | wxPyValidator() { | |
123 | } | |
124 | // wxPyValidator(const wxPyValidator& other); | |
125 | ||
126 | ~wxPyValidator() { | |
127 | } | |
128 | ||
129 | wxObject* wxPyValidator::Clone() const { | |
694759cf RD |
130 | wxPyValidator* ptr = NULL; |
131 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 132 | |
694759cf RD |
133 | bool doSave = wxPyRestoreThread(); |
134 | if (self->m_myInst.findCallback("Clone")) { | |
135 | PyObject* ro; | |
136 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
137 | if (ro) { |
138 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
139 | Py_DECREF(ro); | |
140 | } | |
694759cf RD |
141 | } |
142 | // This is very dangerous!!! But is the only way I could find | |
143 | // to squash a memory leak. Currently it is okay, but if the | |
144 | // validator architecture in wxWindows ever changes, problems | |
145 | // could arise. | |
146 | delete self; | |
2f90df85 | 147 | |
694759cf RD |
148 | wxPySaveThread(doSave); |
149 | return ptr; | |
150 | } | |
2f90df85 RD |
151 | |
152 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); | |
153 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
154 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
155 | ||
156 | PYPRIVATE; | |
157 | // PyObject* m_data; | |
158 | }; | |
159 | ||
160 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
161 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
162 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
163 | ||
164 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 165 | |
8ab979d7 RD |
166 | |
167 | wxWindow* wxWindow_FindFocus() { | |
168 | return wxWindow::FindFocus(); | |
169 | } | |
2f90df85 RD |
170 | |
171 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
172 | wxWindow* win = new wxWindow; | |
173 | win->SetHWND(hWnd); | |
174 | win->SubclassWin(hWnd); | |
175 | return win; | |
176 | } | |
a1df7a95 RD |
177 | |
178 | int wxWindow_NewControlId() { | |
179 | return wxWindow::NewControlId(); | |
180 | } | |
181 | int wxWindow_NextControlId(int id) { | |
182 | return wxWindow::NextControlId(id); | |
183 | } | |
184 | int wxWindow_PrevControlId(int id) { | |
185 | return wxWindow::PrevControlId(id); | |
186 | } | |
2f90df85 RD |
187 | #ifdef __cplusplus |
188 | extern "C" { | |
189 | #endif | |
190 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
191 | PyObject * _resultobj; | |
192 | bool _result; | |
193 | char *_kwnames[] = { NULL }; | |
194 | ||
195 | self = self; | |
196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
197 | return NULL; | |
198 | { | |
199 | wxPy_BEGIN_ALLOW_THREADS; | |
200 | _result = (bool )wxValidator_IsSilent(); | |
201 | ||
202 | wxPy_END_ALLOW_THREADS; | |
203 | } _resultobj = Py_BuildValue("i",_result); | |
204 | return _resultobj; | |
205 | } | |
206 | ||
207 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
208 | PyObject * _resultobj; | |
209 | int _arg0 = (int ) TRUE; | |
210 | char *_kwnames[] = { "doIt", NULL }; | |
211 | ||
212 | self = self; | |
213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
214 | return NULL; | |
215 | { | |
216 | wxPy_BEGIN_ALLOW_THREADS; | |
217 | wxValidator_SetBellOnError(_arg0); | |
218 | ||
219 | wxPy_END_ALLOW_THREADS; | |
220 | } Py_INCREF(Py_None); | |
221 | _resultobj = Py_None; | |
222 | return _resultobj; | |
223 | } | |
224 | ||
225 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
226 | PyObject * _resultobj; | |
227 | wxWindow * _result; | |
228 | char *_kwnames[] = { NULL }; | |
229 | char _ptemp[128]; | |
230 | ||
231 | self = self; | |
232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
233 | return NULL; | |
234 | { | |
235 | wxPy_BEGIN_ALLOW_THREADS; | |
236 | _result = (wxWindow *)wxWindow_FindFocus(); | |
237 | ||
238 | wxPy_END_ALLOW_THREADS; | |
239 | } if (_result) { | |
240 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
241 | _resultobj = Py_BuildValue("s",_ptemp); | |
242 | } else { | |
243 | Py_INCREF(Py_None); | |
244 | _resultobj = Py_None; | |
245 | } | |
246 | return _resultobj; | |
247 | } | |
248 | ||
249 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
250 | PyObject * _resultobj; | |
251 | wxWindow * _result; | |
252 | unsigned long _arg0; | |
253 | char *_kwnames[] = { "hWnd", NULL }; | |
254 | char _ptemp[128]; | |
255 | ||
256 | self = self; | |
257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
258 | return NULL; | |
259 | { | |
260 | wxPy_BEGIN_ALLOW_THREADS; | |
261 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); | |
262 | ||
263 | wxPy_END_ALLOW_THREADS; | |
264 | } if (_result) { | |
265 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
266 | _resultobj = Py_BuildValue("s",_ptemp); | |
267 | } else { | |
268 | Py_INCREF(Py_None); | |
269 | _resultobj = Py_None; | |
270 | } | |
271 | return _resultobj; | |
272 | } | |
273 | ||
a1df7a95 RD |
274 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { |
275 | PyObject * _resultobj; | |
276 | int _result; | |
277 | char *_kwnames[] = { NULL }; | |
278 | ||
279 | self = self; | |
280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
281 | return NULL; | |
282 | { | |
283 | wxPy_BEGIN_ALLOW_THREADS; | |
284 | _result = (int )wxWindow_NewControlId(); | |
285 | ||
286 | wxPy_END_ALLOW_THREADS; | |
287 | } _resultobj = Py_BuildValue("i",_result); | |
288 | return _resultobj; | |
289 | } | |
290 | ||
291 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
292 | PyObject * _resultobj; | |
293 | int _result; | |
294 | int _arg0; | |
295 | char *_kwnames[] = { "id", NULL }; | |
296 | ||
297 | self = self; | |
298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
299 | return NULL; | |
300 | { | |
301 | wxPy_BEGIN_ALLOW_THREADS; | |
302 | _result = (int )wxWindow_NextControlId(_arg0); | |
303 | ||
304 | wxPy_END_ALLOW_THREADS; | |
305 | } _resultobj = Py_BuildValue("i",_result); | |
306 | return _resultobj; | |
307 | } | |
308 | ||
309 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
310 | PyObject * _resultobj; | |
311 | int _result; | |
312 | int _arg0; | |
313 | char *_kwnames[] = { "id", NULL }; | |
314 | ||
315 | self = self; | |
316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
317 | return NULL; | |
318 | { | |
319 | wxPy_BEGIN_ALLOW_THREADS; | |
320 | _result = (int )wxWindow_PrevControlId(_arg0); | |
321 | ||
322 | wxPy_END_ALLOW_THREADS; | |
323 | } _resultobj = Py_BuildValue("i",_result); | |
324 | return _resultobj; | |
325 | } | |
326 | ||
c368d904 RD |
327 | #define new_wxEvtHandler() (new wxEvtHandler()) |
328 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
329 | PyObject * _resultobj; | |
330 | wxEvtHandler * _result; | |
331 | char *_kwnames[] = { NULL }; | |
332 | char _ptemp[128]; | |
333 | ||
334 | self = self; | |
335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
336 | return NULL; | |
337 | { | |
338 | wxPy_BEGIN_ALLOW_THREADS; | |
339 | _result = (wxEvtHandler *)new_wxEvtHandler(); | |
340 | ||
341 | wxPy_END_ALLOW_THREADS; | |
342 | } if (_result) { | |
343 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
344 | _resultobj = Py_BuildValue("s",_ptemp); | |
345 | } else { | |
346 | Py_INCREF(Py_None); | |
347 | _resultobj = Py_None; | |
348 | } | |
349 | return _resultobj; | |
350 | } | |
351 | ||
2f90df85 RD |
352 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
353 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
354 | PyObject * _resultobj; | |
355 | bool _result; | |
356 | wxEvtHandler * _arg0; | |
357 | wxEvent * _arg1; | |
358 | PyObject * _argo0 = 0; | |
359 | PyObject * _argo1 = 0; | |
360 | char *_kwnames[] = { "self","event", NULL }; | |
361 | ||
362 | self = self; | |
363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
364 | return NULL; | |
365 | if (_argo0) { | |
366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
369 | return NULL; | |
370 | } | |
371 | } | |
372 | if (_argo1) { | |
373 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
374 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
376 | return NULL; | |
377 | } | |
378 | } | |
379 | { | |
380 | wxPy_BEGIN_ALLOW_THREADS; | |
381 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
382 | ||
383 | wxPy_END_ALLOW_THREADS; | |
384 | } _resultobj = Py_BuildValue("i",_result); | |
385 | return _resultobj; | |
386 | } | |
387 | ||
f6bcfd97 BP |
388 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
389 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
390 | PyObject * _resultobj; | |
391 | wxEvtHandler * _arg0; | |
392 | wxEvent * _arg1; | |
393 | PyObject * _argo0 = 0; | |
394 | PyObject * _argo1 = 0; | |
395 | char *_kwnames[] = { "self","event", NULL }; | |
396 | ||
397 | self = self; | |
398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
399 | return NULL; | |
400 | if (_argo0) { | |
401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
404 | return NULL; | |
405 | } | |
406 | } | |
407 | if (_argo1) { | |
408 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
409 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
411 | return NULL; | |
412 | } | |
413 | } | |
414 | { | |
415 | wxPy_BEGIN_ALLOW_THREADS; | |
416 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); | |
417 | ||
418 | wxPy_END_ALLOW_THREADS; | |
419 | } Py_INCREF(Py_None); | |
420 | _resultobj = Py_None; | |
421 | return _resultobj; | |
422 | } | |
423 | ||
2f90df85 RD |
424 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
425 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
426 | PyObject * _resultobj; | |
427 | bool _result; | |
428 | wxEvtHandler * _arg0; | |
429 | PyObject * _argo0 = 0; | |
430 | char *_kwnames[] = { "self", NULL }; | |
431 | ||
432 | self = self; | |
433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
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_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
439 | return NULL; | |
440 | } | |
441 | } | |
442 | { | |
443 | wxPy_BEGIN_ALLOW_THREADS; | |
444 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
445 | ||
446 | wxPy_END_ALLOW_THREADS; | |
447 | } _resultobj = Py_BuildValue("i",_result); | |
448 | return _resultobj; | |
449 | } | |
450 | ||
451 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
452 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
453 | PyObject * _resultobj; | |
454 | wxEvtHandler * _arg0; | |
455 | bool _arg1; | |
456 | PyObject * _argo0 = 0; | |
457 | int tempbool1; | |
458 | char *_kwnames[] = { "self","enabled", NULL }; | |
459 | ||
460 | self = self; | |
461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
462 | return NULL; | |
463 | if (_argo0) { | |
464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
467 | return NULL; | |
468 | } | |
469 | } | |
470 | _arg1 = (bool ) tempbool1; | |
471 | { | |
472 | wxPy_BEGIN_ALLOW_THREADS; | |
473 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
474 | ||
475 | wxPy_END_ALLOW_THREADS; | |
476 | } Py_INCREF(Py_None); | |
477 | _resultobj = Py_None; | |
478 | return _resultobj; | |
479 | } | |
480 | ||
481 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
482 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
483 | PyObject * _resultobj; | |
484 | wxEvtHandler * _result; | |
485 | wxEvtHandler * _arg0; | |
486 | PyObject * _argo0 = 0; | |
487 | char *_kwnames[] = { "self", NULL }; | |
488 | char _ptemp[128]; | |
489 | ||
490 | self = self; | |
491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
492 | return NULL; | |
493 | if (_argo0) { | |
494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
497 | return NULL; | |
498 | } | |
499 | } | |
500 | { | |
501 | wxPy_BEGIN_ALLOW_THREADS; | |
502 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
503 | ||
504 | wxPy_END_ALLOW_THREADS; | |
505 | } if (_result) { | |
506 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
507 | _resultobj = Py_BuildValue("s",_ptemp); | |
508 | } else { | |
509 | Py_INCREF(Py_None); | |
510 | _resultobj = Py_None; | |
511 | } | |
512 | return _resultobj; | |
513 | } | |
514 | ||
515 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
516 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
517 | PyObject * _resultobj; | |
518 | wxEvtHandler * _result; | |
519 | wxEvtHandler * _arg0; | |
520 | PyObject * _argo0 = 0; | |
521 | char *_kwnames[] = { "self", NULL }; | |
522 | char _ptemp[128]; | |
523 | ||
524 | self = self; | |
525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
526 | return NULL; | |
527 | if (_argo0) { | |
528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
531 | return NULL; | |
532 | } | |
533 | } | |
534 | { | |
535 | wxPy_BEGIN_ALLOW_THREADS; | |
536 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
537 | ||
538 | wxPy_END_ALLOW_THREADS; | |
539 | } if (_result) { | |
540 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
541 | _resultobj = Py_BuildValue("s",_ptemp); | |
542 | } else { | |
543 | Py_INCREF(Py_None); | |
544 | _resultobj = Py_None; | |
545 | } | |
546 | return _resultobj; | |
547 | } | |
548 | ||
549 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
550 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
551 | PyObject * _resultobj; | |
552 | wxEvtHandler * _arg0; | |
553 | wxEvtHandler * _arg1; | |
554 | PyObject * _argo0 = 0; | |
555 | PyObject * _argo1 = 0; | |
556 | char *_kwnames[] = { "self","handler", NULL }; | |
557 | ||
558 | self = self; | |
559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
560 | return NULL; | |
561 | if (_argo0) { | |
562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
565 | return NULL; | |
566 | } | |
567 | } | |
568 | if (_argo1) { | |
569 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
570 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
572 | return NULL; | |
573 | } | |
574 | } | |
575 | { | |
576 | wxPy_BEGIN_ALLOW_THREADS; | |
577 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
578 | ||
579 | wxPy_END_ALLOW_THREADS; | |
580 | } Py_INCREF(Py_None); | |
581 | _resultobj = Py_None; | |
582 | return _resultobj; | |
583 | } | |
584 | ||
585 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
586 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
587 | PyObject * _resultobj; | |
588 | wxEvtHandler * _arg0; | |
589 | wxEvtHandler * _arg1; | |
590 | PyObject * _argo0 = 0; | |
591 | PyObject * _argo1 = 0; | |
592 | char *_kwnames[] = { "self","handler", NULL }; | |
593 | ||
594 | self = self; | |
595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
596 | return NULL; | |
597 | if (_argo0) { | |
598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
601 | return NULL; | |
602 | } | |
603 | } | |
604 | if (_argo1) { | |
605 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
606 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
608 | return NULL; | |
609 | } | |
610 | } | |
611 | { | |
612 | wxPy_BEGIN_ALLOW_THREADS; | |
613 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
614 | ||
615 | wxPy_END_ALLOW_THREADS; | |
616 | } Py_INCREF(Py_None); | |
617 | _resultobj = Py_None; | |
618 | return _resultobj; | |
619 | } | |
620 | ||
621 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
622 | if (PyCallable_Check(func)) { | |
623 | self->Connect(id, lastId, eventType, | |
624 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
625 | new wxPyCallback(func)); | |
626 | } | |
627 | } | |
628 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
629 | PyObject * _resultobj; | |
630 | wxEvtHandler * _arg0; | |
631 | int _arg1; | |
632 | int _arg2; | |
633 | int _arg3; | |
634 | PyObject * _arg4; | |
635 | PyObject * _argo0 = 0; | |
636 | PyObject * _obj4 = 0; | |
637 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
638 | ||
639 | self = self; | |
640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
641 | return NULL; | |
642 | if (_argo0) { | |
643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
646 | return NULL; | |
647 | } | |
648 | } | |
649 | { | |
650 | _arg4 = _obj4; | |
651 | } | |
652 | { | |
653 | wxPy_BEGIN_ALLOW_THREADS; | |
654 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
655 | ||
656 | wxPy_END_ALLOW_THREADS; | |
657 | } Py_INCREF(Py_None); | |
658 | _resultobj = Py_None; | |
659 | return _resultobj; | |
660 | } | |
661 | ||
6999b0d8 RD |
662 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
663 | return self->Disconnect(id, lastId, eventType, | |
664 | (wxObjectEventFunction) | |
665 | &wxPyCallback::EventThunker); | |
666 | } | |
667 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
668 | PyObject * _resultobj; | |
669 | bool _result; | |
670 | wxEvtHandler * _arg0; | |
671 | int _arg1; | |
672 | int _arg2 = (int ) -1; | |
673 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
674 | PyObject * _argo0 = 0; | |
675 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
676 | ||
677 | self = self; | |
678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
679 | return NULL; | |
680 | if (_argo0) { | |
681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
684 | return NULL; | |
685 | } | |
686 | } | |
687 | { | |
688 | wxPy_BEGIN_ALLOW_THREADS; | |
689 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
690 | ||
691 | wxPy_END_ALLOW_THREADS; | |
692 | } _resultobj = Py_BuildValue("i",_result); | |
693 | return _resultobj; | |
694 | } | |
695 | ||
2f90df85 RD |
696 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
697 | wxValidator *src; | |
698 | wxEvtHandler *dest; | |
699 | src = (wxValidator *) ptr; | |
700 | dest = (wxEvtHandler *) src; | |
701 | return (void *) dest; | |
702 | } | |
703 | ||
704 | #define new_wxValidator() (new wxValidator()) | |
705 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
706 | PyObject * _resultobj; | |
707 | wxValidator * _result; | |
708 | char *_kwnames[] = { NULL }; | |
709 | char _ptemp[128]; | |
710 | ||
711 | self = self; | |
712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
713 | return NULL; | |
714 | { | |
715 | wxPy_BEGIN_ALLOW_THREADS; | |
716 | _result = (wxValidator *)new_wxValidator(); | |
717 | ||
718 | wxPy_END_ALLOW_THREADS; | |
719 | } if (_result) { | |
720 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
721 | _resultobj = Py_BuildValue("s",_ptemp); | |
722 | } else { | |
723 | Py_INCREF(Py_None); | |
724 | _resultobj = Py_None; | |
725 | } | |
726 | return _resultobj; | |
af309447 | 727 | } |
2f90df85 RD |
728 | |
729 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
730 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 731 | PyObject * _resultobj; |
2f90df85 RD |
732 | wxValidator * _result; |
733 | wxValidator * _arg0; | |
734 | PyObject * _argo0 = 0; | |
735 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
736 | char _ptemp[128]; |
737 | ||
738 | self = self; | |
2f90df85 RD |
739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
740 | return NULL; | |
741 | if (_argo0) { | |
742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 745 | return NULL; |
2f90df85 RD |
746 | } |
747 | } | |
cf694132 RD |
748 | { |
749 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 750 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 RD |
751 | |
752 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 753 | } if (_result) { |
2f90df85 | 754 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); |
1d99702e RD |
755 | _resultobj = Py_BuildValue("s",_ptemp); |
756 | } else { | |
757 | Py_INCREF(Py_None); | |
758 | _resultobj = Py_None; | |
759 | } | |
8ab979d7 RD |
760 | return _resultobj; |
761 | } | |
762 | ||
2f90df85 RD |
763 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
764 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
765 | PyObject * _resultobj; |
766 | wxWindow * _result; | |
2f90df85 RD |
767 | wxValidator * _arg0; |
768 | PyObject * _argo0 = 0; | |
769 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
770 | char _ptemp[128]; |
771 | ||
772 | self = self; | |
2f90df85 RD |
773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
774 | return NULL; | |
775 | if (_argo0) { | |
776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 779 | return NULL; |
2f90df85 RD |
780 | } |
781 | } | |
cf694132 RD |
782 | { |
783 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 784 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 RD |
785 | |
786 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
787 | } if (_result) { |
788 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
789 | _resultobj = Py_BuildValue("s",_ptemp); | |
790 | } else { | |
791 | Py_INCREF(Py_None); | |
792 | _resultobj = Py_None; | |
793 | } | |
af309447 RD |
794 | return _resultobj; |
795 | } | |
796 | ||
2f90df85 RD |
797 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
798 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 799 | PyObject * _resultobj; |
2f90df85 RD |
800 | wxValidator * _arg0; |
801 | wxWindow * _arg1; | |
1d99702e RD |
802 | PyObject * _argo0 = 0; |
803 | PyObject * _argo1 = 0; | |
2f90df85 | 804 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
805 | |
806 | self = self; | |
2f90df85 | 807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 808 | return NULL; |
1d99702e RD |
809 | if (_argo0) { |
810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
813 | return NULL; |
814 | } | |
815 | } | |
1d99702e RD |
816 | if (_argo1) { |
817 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
818 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
820 | return NULL; |
821 | } | |
822 | } | |
823 | { | |
824 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 825 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 RD |
826 | |
827 | wxPy_END_ALLOW_THREADS; | |
2f90df85 RD |
828 | } Py_INCREF(Py_None); |
829 | _resultobj = Py_None; | |
cf694132 RD |
830 | return _resultobj; |
831 | } | |
832 | ||
2f90df85 RD |
833 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
834 | wxPyValidator *src; | |
835 | wxValidator *dest; | |
836 | src = (wxPyValidator *) ptr; | |
837 | dest = (wxValidator *) src; | |
838 | return (void *) dest; | |
839 | } | |
840 | ||
841 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
842 | wxPyValidator *src; | |
843 | wxEvtHandler *dest; | |
844 | src = (wxPyValidator *) ptr; | |
845 | dest = (wxEvtHandler *) src; | |
846 | return (void *) dest; | |
847 | } | |
848 | ||
849 | #define new_wxPyValidator() (new wxPyValidator()) | |
850 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
851 | PyObject * _resultobj; | |
852 | wxPyValidator * _result; | |
853 | char *_kwnames[] = { NULL }; | |
854 | char _ptemp[128]; | |
855 | ||
856 | self = self; | |
857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
858 | return NULL; | |
859 | { | |
860 | wxPy_BEGIN_ALLOW_THREADS; | |
861 | _result = (wxPyValidator *)new_wxPyValidator(); | |
862 | ||
863 | wxPy_END_ALLOW_THREADS; | |
864 | } if (_result) { | |
865 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
866 | _resultobj = Py_BuildValue("s",_ptemp); | |
867 | } else { | |
868 | Py_INCREF(Py_None); | |
869 | _resultobj = Py_None; | |
870 | } | |
871 | return _resultobj; | |
872 | } | |
873 | ||
874 | static void wxPyValidator_Destroy(wxPyValidator *self) { delete self; } | |
875 | static PyObject *_wrap_wxPyValidator_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
876 | PyObject * _resultobj; | |
877 | wxPyValidator * _arg0; | |
878 | PyObject * _argo0 = 0; | |
879 | char *_kwnames[] = { "self", NULL }; | |
880 | ||
881 | self = self; | |
882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyValidator_Destroy",_kwnames,&_argo0)) | |
883 | return NULL; | |
884 | if (_argo0) { | |
885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator_Destroy. Expected _wxPyValidator_p."); | |
888 | return NULL; | |
8ab979d7 | 889 | } |
2f90df85 RD |
890 | } |
891 | { | |
892 | wxPy_BEGIN_ALLOW_THREADS; | |
893 | wxPyValidator_Destroy(_arg0); | |
894 | ||
895 | wxPy_END_ALLOW_THREADS; | |
896 | } Py_INCREF(Py_None); | |
897 | _resultobj = Py_None; | |
898 | return _resultobj; | |
899 | } | |
900 | ||
f6bcfd97 | 901 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2)) |
2f90df85 | 902 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 903 | PyObject * _resultobj; |
2f90df85 RD |
904 | wxPyValidator * _arg0; |
905 | PyObject * _arg1; | |
f6bcfd97 BP |
906 | PyObject * _arg2; |
907 | int _arg3 = (int ) TRUE; | |
1d99702e | 908 | PyObject * _argo0 = 0; |
2f90df85 | 909 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
910 | PyObject * _obj2 = 0; |
911 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
912 | |
913 | self = self; | |
f6bcfd97 | 914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 915 | return NULL; |
1d99702e RD |
916 | if (_argo0) { |
917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
8ab979d7 RD |
920 | return NULL; |
921 | } | |
922 | } | |
923 | { | |
2f90df85 | 924 | _arg1 = _obj1; |
8ab979d7 | 925 | } |
f6bcfd97 BP |
926 | { |
927 | _arg2 = _obj2; | |
928 | } | |
cf694132 RD |
929 | { |
930 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 931 | wxPyValidator__setSelf(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
932 | |
933 | wxPy_END_ALLOW_THREADS; | |
934 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
935 | _resultobj = Py_None; |
936 | return _resultobj; | |
937 | } | |
938 | ||
939 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
940 | wxWindow *src; | |
941 | wxEvtHandler *dest; | |
942 | src = (wxWindow *) ptr; | |
943 | dest = (wxEvtHandler *) src; | |
944 | return (void *) dest; | |
945 | } | |
946 | ||
947 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 948 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
949 | PyObject * _resultobj; |
950 | wxWindow * _result; | |
951 | wxWindow * _arg0; | |
952 | wxWindowID _arg1; | |
e508a2b6 RD |
953 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
954 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
955 | long _arg4 = (long ) 0; |
956 | char * _arg5 = (char *) "panel"; | |
957 | PyObject * _argo0 = 0; | |
2f90df85 RD |
958 | wxPoint temp; |
959 | PyObject * _obj2 = 0; | |
960 | wxSize temp0; | |
961 | PyObject * _obj3 = 0; | |
efc5f224 | 962 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
963 | char _ptemp[128]; |
964 | ||
965 | self = self; | |
2f90df85 | 966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 967 | return NULL; |
1d99702e RD |
968 | if (_argo0) { |
969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
972 | return NULL; | |
973 | } | |
974 | } | |
2f90df85 RD |
975 | if (_obj2) |
976 | { | |
977 | _arg2 = &temp; | |
978 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 979 | return NULL; |
2f90df85 RD |
980 | } |
981 | if (_obj3) | |
982 | { | |
983 | _arg3 = &temp0; | |
984 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 985 | return NULL; |
2f90df85 | 986 | } |
cf694132 RD |
987 | { |
988 | wxPy_BEGIN_ALLOW_THREADS; | |
989 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
990 | ||
991 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
992 | } if (_result) { |
993 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
994 | _resultobj = Py_BuildValue("s",_ptemp); | |
995 | } else { | |
996 | Py_INCREF(Py_None); | |
997 | _resultobj = Py_None; | |
998 | } | |
8ab979d7 RD |
999 | return _resultobj; |
1000 | } | |
1001 | ||
1002 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
efc5f224 | 1003 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1004 | PyObject * _resultobj; |
1005 | wxWindow * _arg0; | |
1d99702e | 1006 | PyObject * _argo0 = 0; |
efc5f224 | 1007 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1008 | |
1009 | self = self; | |
efc5f224 | 1010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
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_CaptureMouse. Expected _wxWindow_p."); |
1016 | return NULL; | |
1017 | } | |
1018 | } | |
cf694132 RD |
1019 | { |
1020 | wxPy_BEGIN_ALLOW_THREADS; | |
1021 | wxWindow_CaptureMouse(_arg0); | |
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_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 1030 | static PyObject *_wrap_wxWindow_Center(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_Center",_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_Center. Expected _wxWindow_p."); |
1044 | return NULL; | |
1045 | } | |
1046 | } | |
cf694132 RD |
1047 | { |
1048 | wxPy_BEGIN_ALLOW_THREADS; | |
1049 | wxWindow_Center(_arg0,_arg1); | |
1050 | ||
1051 | wxPy_END_ALLOW_THREADS; | |
1052 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1053 | _resultobj = Py_None; |
1054 | return _resultobj; | |
1055 | } | |
1056 | ||
1057 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1058 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 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 }; |
8ab979d7 RD |
1064 | |
1065 | self = self; | |
efc5f224 | 1066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 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")) { | |
8ab979d7 RD |
1071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1072 | return NULL; | |
1073 | } | |
1074 | } | |
cf694132 RD |
1075 | { |
1076 | wxPy_BEGIN_ALLOW_THREADS; | |
1077 | wxWindow_Centre(_arg0,_arg1); | |
1078 | ||
1079 | wxPy_END_ALLOW_THREADS; | |
1080 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1081 | _resultobj = Py_None; |
1082 | return _resultobj; | |
1083 | } | |
1084 | ||
bb0054cd | 1085 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1086 | static PyObject *_wrap_wxWindow_CentreOnParent(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_CentreOnParent",_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_CentreOnParent. Expected _wxWindow_p."); |
1100 | return NULL; | |
1101 | } | |
1102 | } | |
1103 | { | |
1104 | wxPy_BEGIN_ALLOW_THREADS; | |
1105 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1106 | ||
1107 | wxPy_END_ALLOW_THREADS; | |
1108 | } Py_INCREF(Py_None); | |
1109 | _resultobj = Py_None; | |
1110 | return _resultobj; | |
1111 | } | |
1112 | ||
1113 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1114 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1115 | PyObject * _resultobj; |
1116 | wxWindow * _arg0; | |
1d99702e RD |
1117 | int _arg1 = (int ) wxBOTH; |
1118 | PyObject * _argo0 = 0; | |
efc5f224 | 1119 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1120 | |
1121 | self = self; | |
efc5f224 | 1122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1123 | return NULL; |
1d99702e RD |
1124 | if (_argo0) { |
1125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1128 | return NULL; | |
1129 | } | |
1130 | } | |
1131 | { | |
1132 | wxPy_BEGIN_ALLOW_THREADS; | |
1133 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1134 | ||
1135 | wxPy_END_ALLOW_THREADS; | |
1136 | } Py_INCREF(Py_None); | |
1137 | _resultobj = Py_None; | |
1138 | return _resultobj; | |
1139 | } | |
1140 | ||
3ca6a5f0 BP |
1141 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1142 | static PyObject *_wrap_wxWindow_CentreOnScreen(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_CentreOnScreen",_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_CentreOnScreen. Expected _wxWindow_p."); | |
1156 | return NULL; | |
1157 | } | |
1158 | } | |
1159 | { | |
1160 | wxPy_BEGIN_ALLOW_THREADS; | |
1161 | wxWindow_CentreOnScreen(_arg0,_arg1); | |
1162 | ||
1163 | wxPy_END_ALLOW_THREADS; | |
1164 | } Py_INCREF(Py_None); | |
1165 | _resultobj = Py_None; | |
1166 | return _resultobj; | |
1167 | } | |
1168 | ||
1169 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1170 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1171 | PyObject * _resultobj; | |
1172 | wxWindow * _arg0; | |
1173 | int _arg1 = (int ) wxBOTH; | |
1174 | PyObject * _argo0 = 0; | |
1175 | char *_kwnames[] = { "self","direction", NULL }; | |
1176 | ||
1177 | self = self; | |
1178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1179 | return NULL; | |
1180 | if (_argo0) { | |
1181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1184 | return NULL; | |
1185 | } | |
1186 | } | |
1187 | { | |
1188 | wxPy_BEGIN_ALLOW_THREADS; | |
1189 | wxWindow_CenterOnScreen(_arg0,_arg1); | |
1190 | ||
1191 | wxPy_END_ALLOW_THREADS; | |
1192 | } Py_INCREF(Py_None); | |
1193 | _resultobj = Py_None; | |
1194 | return _resultobj; | |
1195 | } | |
1196 | ||
af309447 | 1197 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1198 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1199 | PyObject * _resultobj; |
1200 | wxWindow * _arg0; | |
1201 | int * _arg1; | |
1202 | int * _arg2; | |
1d99702e | 1203 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1204 | int temp; |
1205 | PyObject * _obj1 = 0; | |
1206 | int temp0; | |
1207 | PyObject * _obj2 = 0; | |
efc5f224 | 1208 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1209 | |
1210 | self = self; | |
efc5f224 | 1211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1212 | return NULL; |
1d99702e RD |
1213 | if (_argo0) { |
1214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1217 | return NULL; |
1218 | } | |
1219 | } | |
1220 | { | |
1221 | temp = (int) PyInt_AsLong(_obj1); | |
1222 | _arg1 = &temp; | |
1223 | } | |
1224 | { | |
1225 | temp0 = (int) PyInt_AsLong(_obj2); | |
1226 | _arg2 = &temp0; | |
1227 | } | |
cf694132 RD |
1228 | { |
1229 | wxPy_BEGIN_ALLOW_THREADS; | |
1230 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1231 | ||
1232 | wxPy_END_ALLOW_THREADS; | |
1233 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1234 | _resultobj = Py_None; |
1235 | { | |
1236 | PyObject *o; | |
1237 | o = PyInt_FromLong((long) (*_arg1)); | |
1238 | _resultobj = t_output_helper(_resultobj, o); | |
1239 | } | |
1240 | { | |
1241 | PyObject *o; | |
1242 | o = PyInt_FromLong((long) (*_arg2)); | |
1243 | _resultobj = t_output_helper(_resultobj, o); | |
1244 | } | |
1245 | return _resultobj; | |
1246 | } | |
1247 | ||
af309447 | 1248 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1249 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1250 | PyObject * _resultobj; |
1251 | wxPoint * _result; | |
1252 | wxWindow * _arg0; | |
1253 | wxPoint * _arg1; | |
1d99702e | 1254 | PyObject * _argo0 = 0; |
2f90df85 RD |
1255 | wxPoint temp; |
1256 | PyObject * _obj1 = 0; | |
efc5f224 | 1257 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1258 | char _ptemp[128]; |
1259 | ||
1260 | self = self; | |
2f90df85 | 1261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1262 | return NULL; |
1d99702e RD |
1263 | if (_argo0) { |
1264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1267 | return NULL; | |
1268 | } | |
1269 | } | |
2f90df85 RD |
1270 | { |
1271 | _arg1 = &temp; | |
1272 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1273 | return NULL; |
2f90df85 | 1274 | } |
cf694132 RD |
1275 | { |
1276 | wxPy_BEGIN_ALLOW_THREADS; | |
1277 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1278 | ||
1279 | wxPy_END_ALLOW_THREADS; | |
1280 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
af309447 RD |
1281 | _resultobj = Py_BuildValue("s",_ptemp); |
1282 | return _resultobj; | |
1283 | } | |
1284 | ||
8ab979d7 | 1285 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1286 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1287 | PyObject * _resultobj; |
1288 | bool _result; | |
1289 | wxWindow * _arg0; | |
1d99702e RD |
1290 | int _arg1 = (int ) FALSE; |
1291 | PyObject * _argo0 = 0; | |
efc5f224 | 1292 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1293 | |
1294 | self = self; | |
efc5f224 | 1295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1296 | return NULL; |
1d99702e RD |
1297 | if (_argo0) { |
1298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1301 | return NULL; | |
1302 | } | |
1303 | } | |
cf694132 RD |
1304 | { |
1305 | wxPy_BEGIN_ALLOW_THREADS; | |
1306 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1307 | ||
1308 | wxPy_END_ALLOW_THREADS; | |
1309 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1310 | return _resultobj; |
1311 | } | |
1312 | ||
1313 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1314 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1315 | PyObject * _resultobj; |
1316 | bool _result; | |
1317 | wxWindow * _arg0; | |
1d99702e | 1318 | PyObject * _argo0 = 0; |
efc5f224 | 1319 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1320 | |
1321 | self = self; | |
efc5f224 | 1322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1323 | return NULL; |
1d99702e RD |
1324 | if (_argo0) { |
1325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1328 | return NULL; | |
1329 | } | |
1330 | } | |
cf694132 RD |
1331 | { |
1332 | wxPy_BEGIN_ALLOW_THREADS; | |
1333 | _result = (bool )wxWindow_Destroy(_arg0); | |
1334 | ||
1335 | wxPy_END_ALLOW_THREADS; | |
1336 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1337 | return _resultobj; |
1338 | } | |
1339 | ||
1340 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1341 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1342 | PyObject * _resultobj; |
1343 | wxWindow * _arg0; | |
1d99702e | 1344 | PyObject * _argo0 = 0; |
efc5f224 | 1345 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1346 | |
1347 | self = self; | |
efc5f224 | 1348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1349 | return NULL; |
1d99702e RD |
1350 | if (_argo0) { |
1351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1354 | return NULL; | |
1355 | } | |
1356 | } | |
cf694132 RD |
1357 | { |
1358 | wxPy_BEGIN_ALLOW_THREADS; | |
1359 | wxWindow_DestroyChildren(_arg0); | |
1360 | ||
1361 | wxPy_END_ALLOW_THREADS; | |
1362 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1363 | _resultobj = Py_None; |
1364 | return _resultobj; | |
1365 | } | |
1366 | ||
1367 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) | |
efc5f224 | 1368 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1369 | PyObject * _resultobj; |
1370 | wxWindow * _arg0; | |
1371 | bool _arg1; | |
1d99702e | 1372 | PyObject * _argo0 = 0; |
8ab979d7 | 1373 | int tempbool1; |
efc5f224 | 1374 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1375 | |
1376 | self = self; | |
efc5f224 | 1377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1378 | return NULL; |
1d99702e RD |
1379 | if (_argo0) { |
1380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1383 | return NULL; | |
1384 | } | |
1385 | } | |
1386 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1387 | { |
1388 | wxPy_BEGIN_ALLOW_THREADS; | |
1389 | wxWindow_DragAcceptFiles(_arg0,_arg1); | |
1390 | ||
1391 | wxPy_END_ALLOW_THREADS; | |
1392 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1393 | _resultobj = Py_None; |
1394 | return _resultobj; | |
1395 | } | |
1396 | ||
1397 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1398 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1399 | PyObject * _resultobj; |
1400 | wxWindow * _arg0; | |
1401 | bool _arg1; | |
1d99702e | 1402 | PyObject * _argo0 = 0; |
8ab979d7 | 1403 | int tempbool1; |
efc5f224 | 1404 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1405 | |
1406 | self = self; | |
efc5f224 | 1407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1408 | return NULL; |
1d99702e RD |
1409 | if (_argo0) { |
1410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1413 | return NULL; | |
1414 | } | |
1415 | } | |
1416 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1417 | { |
1418 | wxPy_BEGIN_ALLOW_THREADS; | |
1419 | wxWindow_Enable(_arg0,_arg1); | |
1420 | ||
1421 | wxPy_END_ALLOW_THREADS; | |
1422 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1423 | _resultobj = Py_None; |
1424 | return _resultobj; | |
1425 | } | |
1426 | ||
af309447 | 1427 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1428 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1429 | PyObject * _resultobj; |
1430 | wxWindow * _result; | |
1431 | wxWindow * _arg0; | |
1432 | long _arg1; | |
1d99702e | 1433 | PyObject * _argo0 = 0; |
efc5f224 | 1434 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1435 | char _ptemp[128]; |
1436 | ||
1437 | self = self; | |
efc5f224 | 1438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1439 | return NULL; |
1d99702e RD |
1440 | if (_argo0) { |
1441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1444 | return NULL; |
1445 | } | |
1446 | } | |
cf694132 RD |
1447 | { |
1448 | wxPy_BEGIN_ALLOW_THREADS; | |
1449 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1450 | ||
1451 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1452 | } if (_result) { |
1453 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1454 | _resultobj = Py_BuildValue("s",_ptemp); | |
1455 | } else { | |
1456 | Py_INCREF(Py_None); | |
1457 | _resultobj = Py_None; | |
1458 | } | |
8ab979d7 RD |
1459 | return _resultobj; |
1460 | } | |
1461 | ||
1462 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1463 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1464 | PyObject * _resultobj; |
1465 | wxWindow * _result; | |
1466 | wxWindow * _arg0; | |
1467 | wxString * _arg1; | |
1d99702e | 1468 | PyObject * _argo0 = 0; |
8ab979d7 | 1469 | PyObject * _obj1 = 0; |
efc5f224 | 1470 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1471 | char _ptemp[128]; |
1472 | ||
1473 | self = self; | |
efc5f224 | 1474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1475 | return NULL; |
1d99702e RD |
1476 | if (_argo0) { |
1477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1480 | return NULL; | |
1481 | } | |
1482 | } | |
1483 | { | |
185d7c3e RD |
1484 | #if PYTHON_API_VERSION >= 1009 |
1485 | char* tmpPtr; int tmpSize; | |
1486 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1487 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1488 | return NULL; | |
1489 | } | |
1490 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1491 | return NULL; | |
1492 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1493 | #else | |
8ab979d7 RD |
1494 | if (!PyString_Check(_obj1)) { |
1495 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1496 | return NULL; | |
1497 | } | |
185d7c3e RD |
1498 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1499 | #endif | |
8ab979d7 | 1500 | } |
cf694132 RD |
1501 | { |
1502 | wxPy_BEGIN_ALLOW_THREADS; | |
1503 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1504 | ||
1505 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1506 | } if (_result) { |
1507 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1508 | _resultobj = Py_BuildValue("s",_ptemp); | |
1509 | } else { | |
1510 | Py_INCREF(Py_None); | |
1511 | _resultobj = Py_None; | |
1512 | } | |
8ab979d7 RD |
1513 | { |
1514 | if (_obj1) | |
1515 | delete _arg1; | |
1516 | } | |
1517 | return _resultobj; | |
1518 | } | |
1519 | ||
1520 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1521 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1522 | PyObject * _resultobj; |
1523 | wxWindow * _arg0; | |
1d99702e | 1524 | PyObject * _argo0 = 0; |
efc5f224 | 1525 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1526 | |
1527 | self = self; | |
efc5f224 | 1528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1529 | return NULL; |
1d99702e RD |
1530 | if (_argo0) { |
1531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1534 | return NULL; | |
1535 | } | |
1536 | } | |
cf694132 RD |
1537 | { |
1538 | wxPy_BEGIN_ALLOW_THREADS; | |
1539 | wxWindow_Fit(_arg0); | |
1540 | ||
1541 | wxPy_END_ALLOW_THREADS; | |
1542 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1543 | _resultobj = Py_None; |
1544 | return _resultobj; | |
1545 | } | |
1546 | ||
1547 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1548 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1549 | PyObject * _resultobj; |
1550 | wxColour * _result; | |
1551 | wxWindow * _arg0; | |
1d99702e | 1552 | PyObject * _argo0 = 0; |
efc5f224 | 1553 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1554 | char _ptemp[128]; |
1555 | ||
1556 | self = self; | |
efc5f224 | 1557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1558 | return NULL; |
1d99702e RD |
1559 | if (_argo0) { |
1560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1563 | return NULL; | |
1564 | } | |
1565 | } | |
cf694132 RD |
1566 | { |
1567 | wxPy_BEGIN_ALLOW_THREADS; | |
1568 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1569 | ||
1570 | wxPy_END_ALLOW_THREADS; | |
1571 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
1572 | _resultobj = Py_BuildValue("s",_ptemp); |
1573 | return _resultobj; | |
1574 | } | |
1575 | ||
d426c97e RD |
1576 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1577 | wxWindowList& list = self->GetChildren(); | |
1578 | return wxPy_ConvertList(&list, "wxWindow"); | |
1579 | } | |
1580 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1581 | PyObject * _resultobj; | |
1582 | PyObject * _result; | |
1583 | wxWindow * _arg0; | |
1584 | PyObject * _argo0 = 0; | |
1585 | char *_kwnames[] = { "self", NULL }; | |
1586 | ||
1587 | self = self; | |
1588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1589 | return NULL; | |
1590 | if (_argo0) { | |
1591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1594 | return NULL; | |
1595 | } | |
1596 | } | |
1597 | { | |
1598 | wxPy_BEGIN_ALLOW_THREADS; | |
1599 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1600 | ||
1601 | wxPy_END_ALLOW_THREADS; | |
1602 | }{ | |
1603 | _resultobj = _result; | |
1604 | } | |
1605 | return _resultobj; | |
1606 | } | |
1607 | ||
8ab979d7 | 1608 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1609 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1610 | PyObject * _resultobj; |
1611 | int _result; | |
1612 | wxWindow * _arg0; | |
1d99702e | 1613 | PyObject * _argo0 = 0; |
efc5f224 | 1614 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1615 | |
1616 | self = self; | |
efc5f224 | 1617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1618 | return NULL; |
1d99702e RD |
1619 | if (_argo0) { |
1620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1623 | return NULL; | |
1624 | } | |
1625 | } | |
cf694132 RD |
1626 | { |
1627 | wxPy_BEGIN_ALLOW_THREADS; | |
1628 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1629 | ||
1630 | wxPy_END_ALLOW_THREADS; | |
1631 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1632 | return _resultobj; |
1633 | } | |
1634 | ||
1635 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1636 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1637 | PyObject * _resultobj; |
1638 | int _result; | |
1639 | wxWindow * _arg0; | |
1d99702e | 1640 | PyObject * _argo0 = 0; |
efc5f224 | 1641 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1642 | |
1643 | self = self; | |
efc5f224 | 1644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1645 | return NULL; |
1d99702e RD |
1646 | if (_argo0) { |
1647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1650 | return NULL; | |
1651 | } | |
1652 | } | |
cf694132 RD |
1653 | { |
1654 | wxPy_BEGIN_ALLOW_THREADS; | |
1655 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1656 | ||
1657 | wxPy_END_ALLOW_THREADS; | |
1658 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1659 | return _resultobj; |
1660 | } | |
1661 | ||
b8b8dda7 | 1662 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1663 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1664 | PyObject * _resultobj; |
1665 | wxWindow * _arg0; | |
1666 | int * _arg1; | |
1667 | int temp; | |
1668 | int * _arg2; | |
1669 | int temp0; | |
1d99702e | 1670 | PyObject * _argo0 = 0; |
efc5f224 | 1671 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1672 | |
1673 | self = self; | |
1674 | { | |
1675 | _arg1 = &temp; | |
1676 | } | |
1677 | { | |
1678 | _arg2 = &temp0; | |
1679 | } | |
efc5f224 | 1680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 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 | 1685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1686 | return NULL; |
1687 | } | |
1688 | } | |
cf694132 RD |
1689 | { |
1690 | wxPy_BEGIN_ALLOW_THREADS; | |
1691 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1692 | ||
1693 | wxPy_END_ALLOW_THREADS; | |
1694 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1695 | _resultobj = Py_None; |
1696 | { | |
1697 | PyObject *o; | |
1698 | o = PyInt_FromLong((long) (*_arg1)); | |
1699 | _resultobj = t_output_helper(_resultobj, o); | |
1700 | } | |
1701 | { | |
1702 | PyObject *o; | |
1703 | o = PyInt_FromLong((long) (*_arg2)); | |
1704 | _resultobj = t_output_helper(_resultobj, o); | |
1705 | } | |
1706 | return _resultobj; | |
1707 | } | |
1708 | ||
b8b8dda7 | 1709 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1710 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1711 | PyObject * _resultobj; |
1712 | wxSize * _result; | |
1713 | wxWindow * _arg0; | |
1d99702e | 1714 | PyObject * _argo0 = 0; |
efc5f224 | 1715 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1716 | char _ptemp[128]; |
1717 | ||
1718 | self = self; | |
efc5f224 | 1719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1720 | return NULL; |
1d99702e RD |
1721 | if (_argo0) { |
1722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1725 | return NULL; | |
1726 | } | |
1727 | } | |
cf694132 RD |
1728 | { |
1729 | wxPy_BEGIN_ALLOW_THREADS; | |
1730 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1731 | ||
1732 | wxPy_END_ALLOW_THREADS; | |
1733 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
1734 | _resultobj = Py_BuildValue("s",_ptemp); |
1735 | return _resultobj; | |
1736 | } | |
1737 | ||
8ab979d7 | 1738 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1739 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1740 | PyObject * _resultobj; |
1741 | wxLayoutConstraints * _result; | |
1742 | wxWindow * _arg0; | |
1d99702e | 1743 | PyObject * _argo0 = 0; |
efc5f224 | 1744 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1745 | char _ptemp[128]; |
1746 | ||
1747 | self = self; | |
efc5f224 | 1748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1749 | return NULL; |
1d99702e RD |
1750 | if (_argo0) { |
1751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1754 | return NULL; | |
1755 | } | |
1756 | } | |
cf694132 RD |
1757 | { |
1758 | wxPy_BEGIN_ALLOW_THREADS; | |
1759 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1760 | ||
1761 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1762 | } if (_result) { |
1763 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1764 | _resultobj = Py_BuildValue("s",_ptemp); | |
1765 | } else { | |
1766 | Py_INCREF(Py_None); | |
1767 | _resultobj = Py_None; | |
1768 | } | |
8ab979d7 RD |
1769 | return _resultobj; |
1770 | } | |
1771 | ||
1afc06c2 RD |
1772 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1773 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1774 | PyObject * _resultobj; | |
1775 | wxEvtHandler * _result; | |
1776 | wxWindow * _arg0; | |
1777 | PyObject * _argo0 = 0; | |
1778 | char *_kwnames[] = { "self", NULL }; | |
1779 | char _ptemp[128]; | |
1780 | ||
1781 | self = self; | |
1782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1783 | return NULL; | |
1784 | if (_argo0) { | |
1785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1788 | return NULL; | |
1789 | } | |
1790 | } | |
1791 | { | |
1792 | wxPy_BEGIN_ALLOW_THREADS; | |
1793 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1794 | ||
1795 | wxPy_END_ALLOW_THREADS; | |
1796 | } if (_result) { | |
1797 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
1798 | _resultobj = Py_BuildValue("s",_ptemp); | |
1799 | } else { | |
1800 | Py_INCREF(Py_None); | |
1801 | _resultobj = Py_None; | |
1802 | } | |
1803 | return _resultobj; | |
1804 | } | |
1805 | ||
8ab979d7 | 1806 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1807 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1808 | PyObject * _resultobj; |
1809 | wxFont * _result; | |
1810 | wxWindow * _arg0; | |
1d99702e | 1811 | PyObject * _argo0 = 0; |
efc5f224 | 1812 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1813 | char _ptemp[128]; |
1814 | ||
1815 | self = self; | |
efc5f224 | 1816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1817 | return NULL; |
1d99702e RD |
1818 | if (_argo0) { |
1819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1822 | return NULL; | |
1823 | } | |
1824 | } | |
cf694132 RD |
1825 | { |
1826 | wxPy_BEGIN_ALLOW_THREADS; | |
1827 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
b8b8dda7 | 1828 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
1829 | |
1830 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1831 | } if (_result) { |
1832 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1833 | _resultobj = Py_BuildValue("s",_ptemp); | |
1834 | } else { | |
1835 | Py_INCREF(Py_None); | |
1836 | _resultobj = Py_None; | |
1837 | } | |
8ab979d7 RD |
1838 | return _resultobj; |
1839 | } | |
1840 | ||
1841 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1842 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1843 | PyObject * _resultobj; |
1844 | wxColour * _result; | |
1845 | wxWindow * _arg0; | |
1d99702e | 1846 | PyObject * _argo0 = 0; |
efc5f224 | 1847 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1848 | char _ptemp[128]; |
1849 | ||
1850 | self = self; | |
efc5f224 | 1851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1852 | return NULL; |
1d99702e RD |
1853 | if (_argo0) { |
1854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1857 | return NULL; | |
1858 | } | |
1859 | } | |
cf694132 RD |
1860 | { |
1861 | wxPy_BEGIN_ALLOW_THREADS; | |
1862 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1863 | ||
1864 | wxPy_END_ALLOW_THREADS; | |
1865 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
1866 | _resultobj = Py_BuildValue("s",_ptemp); |
1867 | return _resultobj; | |
1868 | } | |
1869 | ||
1870 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1871 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1872 | PyObject * _resultobj; |
1873 | wxWindow * _result; | |
1874 | wxWindow * _arg0; | |
1d99702e | 1875 | PyObject * _argo0 = 0; |
efc5f224 | 1876 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1877 | char _ptemp[128]; |
1878 | ||
1879 | self = self; | |
efc5f224 | 1880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1881 | return NULL; |
1d99702e RD |
1882 | if (_argo0) { |
1883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1886 | return NULL; | |
1887 | } | |
1888 | } | |
cf694132 RD |
1889 | { |
1890 | wxPy_BEGIN_ALLOW_THREADS; | |
1891 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1892 | ||
1893 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1894 | } if (_result) { |
1895 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1896 | _resultobj = Py_BuildValue("s",_ptemp); | |
1897 | } else { | |
1898 | Py_INCREF(Py_None); | |
1899 | _resultobj = Py_None; | |
1900 | } | |
8ab979d7 RD |
1901 | return _resultobj; |
1902 | } | |
1903 | ||
2abc0a0f | 1904 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1905 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1906 | } |
1907 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1908 | PyObject * _resultobj; | |
1909 | long _result; | |
1910 | wxWindow * _arg0; | |
1911 | PyObject * _argo0 = 0; | |
1912 | char *_kwnames[] = { "self", NULL }; | |
1913 | ||
1914 | self = self; | |
1915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1916 | return NULL; | |
1917 | if (_argo0) { | |
1918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1921 | return NULL; | |
1922 | } | |
1923 | } | |
1924 | { | |
1925 | wxPy_BEGIN_ALLOW_THREADS; | |
1926 | _result = (long )wxWindow_GetHandle(_arg0); | |
1927 | ||
1928 | wxPy_END_ALLOW_THREADS; | |
1929 | } _resultobj = Py_BuildValue("l",_result); | |
1930 | return _resultobj; | |
1931 | } | |
1932 | ||
8ab979d7 | 1933 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 1934 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1935 | PyObject * _resultobj; |
1936 | int _result; | |
1937 | wxWindow * _arg0; | |
1d99702e | 1938 | PyObject * _argo0 = 0; |
efc5f224 | 1939 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1940 | |
1941 | self = self; | |
efc5f224 | 1942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 1943 | return NULL; |
1d99702e RD |
1944 | if (_argo0) { |
1945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
1948 | return NULL; | |
1949 | } | |
1950 | } | |
cf694132 RD |
1951 | { |
1952 | wxPy_BEGIN_ALLOW_THREADS; | |
1953 | _result = (int )wxWindow_GetId(_arg0); | |
1954 | ||
1955 | wxPy_END_ALLOW_THREADS; | |
1956 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1957 | return _resultobj; |
1958 | } | |
1959 | ||
8ab979d7 | 1960 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 1961 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1962 | PyObject * _resultobj; |
1963 | wxString * _result; | |
1964 | wxWindow * _arg0; | |
1d99702e | 1965 | PyObject * _argo0 = 0; |
efc5f224 | 1966 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1967 | |
1968 | self = self; | |
efc5f224 | 1969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 1970 | return NULL; |
1d99702e RD |
1971 | if (_argo0) { |
1972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
1975 | return NULL; | |
1976 | } | |
1977 | } | |
8ab979d7 | 1978 | { |
cf694132 RD |
1979 | wxPy_BEGIN_ALLOW_THREADS; |
1980 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
1981 | ||
1982 | wxPy_END_ALLOW_THREADS; | |
1983 | }{ | |
eec92d76 | 1984 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1985 | } |
1986 | { | |
1987 | delete _result; | |
1988 | } | |
1989 | return _resultobj; | |
1990 | } | |
1991 | ||
bb0054cd | 1992 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 1993 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1994 | PyObject * _resultobj; |
1995 | wxWindow * _arg0; | |
1996 | wxString * _arg1; | |
1d99702e | 1997 | PyObject * _argo0 = 0; |
bb0054cd | 1998 | PyObject * _obj1 = 0; |
efc5f224 | 1999 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2000 | |
2001 | self = self; | |
efc5f224 | 2002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 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")) { | |
bb0054cd RD |
2007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2008 | return NULL; | |
2009 | } | |
2010 | } | |
2011 | { | |
185d7c3e RD |
2012 | #if PYTHON_API_VERSION >= 1009 |
2013 | char* tmpPtr; int tmpSize; | |
2014 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2015 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2016 | return NULL; | |
2017 | } | |
2018 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2019 | return NULL; | |
2020 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2021 | #else | |
bb0054cd RD |
2022 | if (!PyString_Check(_obj1)) { |
2023 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2024 | return NULL; | |
2025 | } | |
185d7c3e RD |
2026 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2027 | #endif | |
bb0054cd RD |
2028 | } |
2029 | { | |
2030 | wxPy_BEGIN_ALLOW_THREADS; | |
2031 | wxWindow_SetLabel(_arg0,*_arg1); | |
2032 | ||
2033 | wxPy_END_ALLOW_THREADS; | |
2034 | } Py_INCREF(Py_None); | |
2035 | _resultobj = Py_None; | |
2036 | { | |
2037 | if (_obj1) | |
2038 | delete _arg1; | |
2039 | } | |
2040 | return _resultobj; | |
2041 | } | |
2042 | ||
8ab979d7 | 2043 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2044 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2045 | PyObject * _resultobj; |
2046 | wxString * _result; | |
2047 | wxWindow * _arg0; | |
1d99702e | 2048 | PyObject * _argo0 = 0; |
efc5f224 | 2049 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2050 | |
2051 | self = self; | |
efc5f224 | 2052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2053 | return NULL; |
1d99702e RD |
2054 | if (_argo0) { |
2055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2058 | return NULL; | |
2059 | } | |
2060 | } | |
8ab979d7 | 2061 | { |
cf694132 RD |
2062 | wxPy_BEGIN_ALLOW_THREADS; |
2063 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2064 | ||
2065 | wxPy_END_ALLOW_THREADS; | |
2066 | }{ | |
eec92d76 | 2067 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2068 | } |
2069 | { | |
2070 | delete _result; | |
2071 | } | |
2072 | return _resultobj; | |
2073 | } | |
2074 | ||
2075 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2076 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2077 | PyObject * _resultobj; |
2078 | wxWindow * _result; | |
2079 | wxWindow * _arg0; | |
1d99702e | 2080 | PyObject * _argo0 = 0; |
efc5f224 | 2081 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2082 | char _ptemp[128]; |
2083 | ||
2084 | self = self; | |
efc5f224 | 2085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2086 | return NULL; |
1d99702e RD |
2087 | if (_argo0) { |
2088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2091 | return NULL; | |
2092 | } | |
2093 | } | |
cf694132 RD |
2094 | { |
2095 | wxPy_BEGIN_ALLOW_THREADS; | |
2096 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2097 | ||
2098 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2099 | } if (_result) { |
2100 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
2101 | _resultobj = Py_BuildValue("s",_ptemp); | |
2102 | } else { | |
2103 | Py_INCREF(Py_None); | |
2104 | _resultobj = Py_None; | |
2105 | } | |
8ab979d7 RD |
2106 | return _resultobj; |
2107 | } | |
2108 | ||
b8b8dda7 | 2109 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2110 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2111 | PyObject * _resultobj; |
2112 | wxWindow * _arg0; | |
2113 | int * _arg1; | |
2114 | int temp; | |
2115 | int * _arg2; | |
2116 | int temp0; | |
1d99702e | 2117 | PyObject * _argo0 = 0; |
efc5f224 | 2118 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2119 | |
2120 | self = self; | |
2121 | { | |
2122 | _arg1 = &temp; | |
2123 | } | |
2124 | { | |
2125 | _arg2 = &temp0; | |
2126 | } | |
efc5f224 | 2127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2128 | return NULL; |
1d99702e RD |
2129 | if (_argo0) { |
2130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2133 | return NULL; | |
2134 | } | |
2135 | } | |
cf694132 RD |
2136 | { |
2137 | wxPy_BEGIN_ALLOW_THREADS; | |
2138 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2139 | ||
2140 | wxPy_END_ALLOW_THREADS; | |
2141 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
2142 | _resultobj = Py_None; |
2143 | { | |
2144 | PyObject *o; | |
2145 | o = PyInt_FromLong((long) (*_arg1)); | |
2146 | _resultobj = t_output_helper(_resultobj, o); | |
2147 | } | |
2148 | { | |
2149 | PyObject *o; | |
2150 | o = PyInt_FromLong((long) (*_arg2)); | |
2151 | _resultobj = t_output_helper(_resultobj, o); | |
2152 | } | |
2153 | return _resultobj; | |
2154 | } | |
2155 | ||
2156 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2157 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2158 | PyObject * _resultobj; |
2159 | wxPoint * _result; | |
2160 | wxWindow * _arg0; | |
1d99702e | 2161 | PyObject * _argo0 = 0; |
efc5f224 | 2162 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2163 | char _ptemp[128]; |
2164 | ||
2165 | self = self; | |
efc5f224 | 2166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2167 | return NULL; |
1d99702e RD |
2168 | if (_argo0) { |
2169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2172 | return NULL; | |
2173 | } | |
2174 | } | |
cf694132 RD |
2175 | { |
2176 | wxPy_BEGIN_ALLOW_THREADS; | |
2177 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2178 | ||
2179 | wxPy_END_ALLOW_THREADS; | |
2180 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
2181 | _resultobj = Py_BuildValue("s",_ptemp); |
2182 | return _resultobj; | |
2183 | } | |
2184 | ||
2185 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2186 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2187 | PyObject * _resultobj; |
2188 | wxRect * _result; | |
2189 | wxWindow * _arg0; | |
1d99702e | 2190 | PyObject * _argo0 = 0; |
efc5f224 | 2191 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2192 | char _ptemp[128]; |
2193 | ||
2194 | self = self; | |
efc5f224 | 2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2196 | return NULL; |
1d99702e RD |
2197 | if (_argo0) { |
2198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2201 | return NULL; | |
2202 | } | |
2203 | } | |
cf694132 RD |
2204 | { |
2205 | wxPy_BEGIN_ALLOW_THREADS; | |
2206 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2207 | ||
2208 | wxPy_END_ALLOW_THREADS; | |
2209 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
b8b8dda7 RD |
2210 | _resultobj = Py_BuildValue("s",_ptemp); |
2211 | return _resultobj; | |
2212 | } | |
2213 | ||
8ab979d7 | 2214 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2215 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2216 | PyObject * _resultobj; |
2217 | int _result; | |
2218 | wxWindow * _arg0; | |
2219 | int _arg1; | |
1d99702e | 2220 | PyObject * _argo0 = 0; |
efc5f224 | 2221 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2222 | |
2223 | self = self; | |
efc5f224 | 2224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2225 | return NULL; |
1d99702e RD |
2226 | if (_argo0) { |
2227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2230 | return NULL; | |
2231 | } | |
2232 | } | |
cf694132 RD |
2233 | { |
2234 | wxPy_BEGIN_ALLOW_THREADS; | |
2235 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2236 | ||
2237 | wxPy_END_ALLOW_THREADS; | |
2238 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2239 | return _resultobj; |
2240 | } | |
2241 | ||
2242 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2243 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2244 | PyObject * _resultobj; |
2245 | int _result; | |
2246 | wxWindow * _arg0; | |
2247 | int _arg1; | |
1d99702e | 2248 | PyObject * _argo0 = 0; |
efc5f224 | 2249 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2250 | |
2251 | self = self; | |
efc5f224 | 2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2253 | return NULL; |
1d99702e RD |
2254 | if (_argo0) { |
2255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2258 | return NULL; | |
2259 | } | |
2260 | } | |
cf694132 RD |
2261 | { |
2262 | wxPy_BEGIN_ALLOW_THREADS; | |
2263 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2264 | ||
2265 | wxPy_END_ALLOW_THREADS; | |
2266 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2267 | return _resultobj; |
2268 | } | |
2269 | ||
2270 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2271 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2272 | PyObject * _resultobj; |
2273 | int _result; | |
2274 | wxWindow * _arg0; | |
2275 | int _arg1; | |
1d99702e | 2276 | PyObject * _argo0 = 0; |
efc5f224 | 2277 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2278 | |
2279 | self = self; | |
efc5f224 | 2280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2281 | return NULL; |
1d99702e RD |
2282 | if (_argo0) { |
2283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2286 | return NULL; | |
2287 | } | |
2288 | } | |
cf694132 RD |
2289 | { |
2290 | wxPy_BEGIN_ALLOW_THREADS; | |
2291 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2292 | ||
2293 | wxPy_END_ALLOW_THREADS; | |
2294 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2295 | return _resultobj; |
2296 | } | |
2297 | ||
b8b8dda7 | 2298 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2299 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2300 | PyObject * _resultobj; |
2301 | wxWindow * _arg0; | |
2302 | int * _arg1; | |
2303 | int temp; | |
2304 | int * _arg2; | |
2305 | int temp0; | |
1d99702e | 2306 | PyObject * _argo0 = 0; |
efc5f224 | 2307 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2308 | |
2309 | self = self; | |
2310 | { | |
2311 | _arg1 = &temp; | |
2312 | } | |
2313 | { | |
2314 | _arg2 = &temp0; | |
2315 | } | |
efc5f224 | 2316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2317 | return NULL; |
1d99702e RD |
2318 | if (_argo0) { |
2319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2322 | return NULL; |
2323 | } | |
2324 | } | |
cf694132 RD |
2325 | { |
2326 | wxPy_BEGIN_ALLOW_THREADS; | |
2327 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2328 | ||
2329 | wxPy_END_ALLOW_THREADS; | |
2330 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2331 | _resultobj = Py_None; |
2332 | { | |
2333 | PyObject *o; | |
2334 | o = PyInt_FromLong((long) (*_arg1)); | |
2335 | _resultobj = t_output_helper(_resultobj, o); | |
2336 | } | |
2337 | { | |
2338 | PyObject *o; | |
2339 | o = PyInt_FromLong((long) (*_arg2)); | |
2340 | _resultobj = t_output_helper(_resultobj, o); | |
2341 | } | |
2342 | return _resultobj; | |
2343 | } | |
2344 | ||
b8b8dda7 | 2345 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2346 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2347 | PyObject * _resultobj; |
2348 | wxSize * _result; | |
2349 | wxWindow * _arg0; | |
1d99702e | 2350 | PyObject * _argo0 = 0; |
efc5f224 | 2351 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2352 | char _ptemp[128]; |
2353 | ||
2354 | self = self; | |
efc5f224 | 2355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2356 | return NULL; |
1d99702e RD |
2357 | if (_argo0) { |
2358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2361 | return NULL; | |
2362 | } | |
2363 | } | |
cf694132 RD |
2364 | { |
2365 | wxPy_BEGIN_ALLOW_THREADS; | |
2366 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2367 | ||
2368 | wxPy_END_ALLOW_THREADS; | |
2369 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
2370 | _resultobj = Py_BuildValue("s",_ptemp); |
2371 | return _resultobj; | |
2372 | } | |
2373 | ||
8ab979d7 | 2374 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2375 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2376 | PyObject * _resultobj; |
2377 | wxWindow * _arg0; | |
2378 | wxString * _arg1; | |
2379 | int * _arg2; | |
2380 | int temp; | |
2381 | int * _arg3; | |
2382 | int temp0; | |
1d99702e | 2383 | PyObject * _argo0 = 0; |
8ab979d7 | 2384 | PyObject * _obj1 = 0; |
efc5f224 | 2385 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2386 | |
2387 | self = self; | |
2388 | { | |
2389 | _arg2 = &temp; | |
2390 | } | |
2391 | { | |
2392 | _arg3 = &temp0; | |
2393 | } | |
efc5f224 | 2394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2395 | return NULL; |
1d99702e RD |
2396 | if (_argo0) { |
2397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2400 | return NULL; | |
2401 | } | |
2402 | } | |
2403 | { | |
185d7c3e RD |
2404 | #if PYTHON_API_VERSION >= 1009 |
2405 | char* tmpPtr; int tmpSize; | |
2406 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2407 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2408 | return NULL; | |
2409 | } | |
2410 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2411 | return NULL; | |
2412 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2413 | #else | |
8ab979d7 RD |
2414 | if (!PyString_Check(_obj1)) { |
2415 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2416 | return NULL; | |
2417 | } | |
185d7c3e RD |
2418 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2419 | #endif | |
8ab979d7 | 2420 | } |
cf694132 RD |
2421 | { |
2422 | wxPy_BEGIN_ALLOW_THREADS; | |
2423 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2424 | ||
2425 | wxPy_END_ALLOW_THREADS; | |
2426 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2427 | _resultobj = Py_None; |
2428 | { | |
2429 | PyObject *o; | |
2430 | o = PyInt_FromLong((long) (*_arg2)); | |
2431 | _resultobj = t_output_helper(_resultobj, o); | |
2432 | } | |
2433 | { | |
2434 | PyObject *o; | |
2435 | o = PyInt_FromLong((long) (*_arg3)); | |
2436 | _resultobj = t_output_helper(_resultobj, o); | |
2437 | } | |
2438 | { | |
2439 | if (_obj1) | |
2440 | delete _arg1; | |
2441 | } | |
2442 | return _resultobj; | |
2443 | } | |
2444 | ||
af309447 | 2445 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2446 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2447 | PyObject * _resultobj; |
2448 | wxWindow * _arg0; | |
2449 | wxString * _arg1; | |
2450 | int * _arg2; | |
2451 | int temp; | |
2452 | int * _arg3; | |
2453 | int temp0; | |
2454 | int * _arg4; | |
2455 | int temp1; | |
2456 | int * _arg5; | |
2457 | int temp2; | |
1d99702e RD |
2458 | wxFont * _arg6 = (wxFont *) NULL; |
2459 | PyObject * _argo0 = 0; | |
af309447 | 2460 | PyObject * _obj1 = 0; |
1d99702e | 2461 | PyObject * _argo6 = 0; |
efc5f224 | 2462 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2463 | |
2464 | self = self; | |
2465 | { | |
2466 | _arg2 = &temp; | |
2467 | } | |
2468 | { | |
2469 | _arg3 = &temp0; | |
2470 | } | |
2471 | { | |
2472 | _arg4 = &temp1; | |
2473 | } | |
2474 | { | |
2475 | _arg5 = &temp2; | |
2476 | } | |
efc5f224 | 2477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2478 | return NULL; |
1d99702e RD |
2479 | if (_argo0) { |
2480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2483 | return NULL; | |
2484 | } | |
2485 | } | |
2486 | { | |
185d7c3e RD |
2487 | #if PYTHON_API_VERSION >= 1009 |
2488 | char* tmpPtr; int tmpSize; | |
2489 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2490 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2491 | return NULL; | |
2492 | } | |
2493 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2494 | return NULL; | |
2495 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2496 | #else | |
af309447 RD |
2497 | if (!PyString_Check(_obj1)) { |
2498 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2499 | return NULL; | |
2500 | } | |
185d7c3e RD |
2501 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2502 | #endif | |
af309447 | 2503 | } |
1d99702e RD |
2504 | if (_argo6) { |
2505 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2506 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2508 | return NULL; | |
2509 | } | |
2510 | } | |
cf694132 RD |
2511 | { |
2512 | wxPy_BEGIN_ALLOW_THREADS; | |
2513 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2514 | ||
2515 | wxPy_END_ALLOW_THREADS; | |
2516 | } Py_INCREF(Py_None); | |
af309447 RD |
2517 | _resultobj = Py_None; |
2518 | { | |
2519 | PyObject *o; | |
2520 | o = PyInt_FromLong((long) (*_arg2)); | |
2521 | _resultobj = t_output_helper(_resultobj, o); | |
2522 | } | |
2523 | { | |
2524 | PyObject *o; | |
2525 | o = PyInt_FromLong((long) (*_arg3)); | |
2526 | _resultobj = t_output_helper(_resultobj, o); | |
2527 | } | |
2528 | { | |
2529 | PyObject *o; | |
2530 | o = PyInt_FromLong((long) (*_arg4)); | |
2531 | _resultobj = t_output_helper(_resultobj, o); | |
2532 | } | |
2533 | { | |
2534 | PyObject *o; | |
2535 | o = PyInt_FromLong((long) (*_arg5)); | |
2536 | _resultobj = t_output_helper(_resultobj, o); | |
2537 | } | |
2538 | { | |
2539 | if (_obj1) | |
2540 | delete _arg1; | |
2541 | } | |
2542 | return _resultobj; | |
2543 | } | |
2544 | ||
8ab979d7 | 2545 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2546 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2547 | PyObject * _resultobj; |
2548 | wxString * _result; | |
2549 | wxWindow * _arg0; | |
1d99702e | 2550 | PyObject * _argo0 = 0; |
efc5f224 | 2551 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2552 | |
2553 | self = self; | |
efc5f224 | 2554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2555 | return NULL; |
1d99702e RD |
2556 | if (_argo0) { |
2557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2560 | return NULL; | |
2561 | } | |
2562 | } | |
8ab979d7 | 2563 | { |
cf694132 RD |
2564 | wxPy_BEGIN_ALLOW_THREADS; |
2565 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2566 | ||
2567 | wxPy_END_ALLOW_THREADS; | |
2568 | }{ | |
eec92d76 | 2569 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2570 | } |
2571 | { | |
2572 | delete _result; | |
2573 | } | |
2574 | return _resultobj; | |
2575 | } | |
2576 | ||
8bf5d46e | 2577 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2578 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2579 | PyObject * _resultobj; |
2580 | wxRegion * _result; | |
2581 | wxWindow * _arg0; | |
1d99702e | 2582 | PyObject * _argo0 = 0; |
efc5f224 | 2583 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2584 | char _ptemp[128]; |
2585 | ||
2586 | self = self; | |
efc5f224 | 2587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2588 | return NULL; |
1d99702e RD |
2589 | if (_argo0) { |
2590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2593 | return NULL; | |
2594 | } | |
2595 | } | |
2596 | { | |
2597 | wxPy_BEGIN_ALLOW_THREADS; | |
2598 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2599 | ||
2600 | wxPy_END_ALLOW_THREADS; | |
2601 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); | |
2602 | _resultobj = Py_BuildValue("s",_ptemp); | |
2603 | return _resultobj; | |
2604 | } | |
2605 | ||
8ab979d7 | 2606 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2607 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2608 | PyObject * _resultobj; |
2609 | long _result; | |
2610 | wxWindow * _arg0; | |
1d99702e | 2611 | PyObject * _argo0 = 0; |
efc5f224 | 2612 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2613 | |
2614 | self = self; | |
efc5f224 | 2615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2616 | return NULL; |
1d99702e RD |
2617 | if (_argo0) { |
2618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2621 | return NULL; | |
2622 | } | |
2623 | } | |
cf694132 RD |
2624 | { |
2625 | wxPy_BEGIN_ALLOW_THREADS; | |
2626 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2627 | ||
2628 | wxPy_END_ALLOW_THREADS; | |
2629 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2630 | return _resultobj; |
2631 | } | |
2632 | ||
f6bcfd97 BP |
2633 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2634 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2635 | PyObject * _resultobj; | |
2636 | wxWindow * _arg0; | |
2637 | long _arg1; | |
2638 | PyObject * _argo0 = 0; | |
2639 | char *_kwnames[] = { "self","style", NULL }; | |
2640 | ||
2641 | self = self; | |
2642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2643 | return NULL; | |
2644 | if (_argo0) { | |
2645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2648 | return NULL; | |
2649 | } | |
2650 | } | |
2651 | { | |
2652 | wxPy_BEGIN_ALLOW_THREADS; | |
2653 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2654 | ||
2655 | wxPy_END_ALLOW_THREADS; | |
2656 | } Py_INCREF(Py_None); | |
2657 | _resultobj = Py_None; | |
2658 | return _resultobj; | |
2659 | } | |
2660 | ||
2661 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2662 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2663 | PyObject * _resultobj; | |
2664 | wxWindow * _arg0; | |
2665 | long _arg1; | |
2666 | PyObject * _argo0 = 0; | |
2667 | char *_kwnames[] = { "self","style", NULL }; | |
2668 | ||
2669 | self = self; | |
2670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2671 | return NULL; | |
2672 | if (_argo0) { | |
2673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2676 | return NULL; | |
2677 | } | |
2678 | } | |
2679 | { | |
2680 | wxPy_BEGIN_ALLOW_THREADS; | |
2681 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2682 | ||
2683 | wxPy_END_ALLOW_THREADS; | |
2684 | } Py_INCREF(Py_None); | |
2685 | _resultobj = Py_None; | |
2686 | return _resultobj; | |
2687 | } | |
2688 | ||
bb0054cd | 2689 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2690 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2691 | PyObject * _resultobj; |
2692 | bool _result; | |
2693 | wxWindow * _arg0; | |
1d99702e | 2694 | PyObject * _argo0 = 0; |
efc5f224 | 2695 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2696 | |
2697 | self = self; | |
efc5f224 | 2698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2699 | return NULL; |
1d99702e RD |
2700 | if (_argo0) { |
2701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2704 | return NULL; | |
2705 | } | |
2706 | } | |
2707 | { | |
2708 | wxPy_BEGIN_ALLOW_THREADS; | |
2709 | _result = (bool )wxWindow_Hide(_arg0); | |
2710 | ||
2711 | wxPy_END_ALLOW_THREADS; | |
2712 | } _resultobj = Py_BuildValue("i",_result); | |
2713 | return _resultobj; | |
2714 | } | |
2715 | ||
8ab979d7 | 2716 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2717 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2718 | PyObject * _resultobj; |
2719 | wxWindow * _arg0; | |
1d99702e | 2720 | PyObject * _argo0 = 0; |
efc5f224 | 2721 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2722 | |
2723 | self = self; | |
efc5f224 | 2724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2725 | return NULL; |
1d99702e RD |
2726 | if (_argo0) { |
2727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2730 | return NULL; | |
2731 | } | |
2732 | } | |
cf694132 RD |
2733 | { |
2734 | wxPy_BEGIN_ALLOW_THREADS; | |
2735 | wxWindow_InitDialog(_arg0); | |
2736 | ||
2737 | wxPy_END_ALLOW_THREADS; | |
2738 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2739 | _resultobj = Py_None; |
2740 | return _resultobj; | |
2741 | } | |
2742 | ||
2743 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2744 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2745 | PyObject * _resultobj; |
2746 | bool _result; | |
2747 | wxWindow * _arg0; | |
1d99702e | 2748 | PyObject * _argo0 = 0; |
efc5f224 | 2749 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2750 | |
2751 | self = self; | |
efc5f224 | 2752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2753 | return NULL; |
1d99702e RD |
2754 | if (_argo0) { |
2755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2758 | return NULL; | |
2759 | } | |
2760 | } | |
cf694132 RD |
2761 | { |
2762 | wxPy_BEGIN_ALLOW_THREADS; | |
2763 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2764 | ||
2765 | wxPy_END_ALLOW_THREADS; | |
2766 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2767 | return _resultobj; |
2768 | } | |
2769 | ||
1b55cabf RD |
2770 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2771 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2772 | PyObject * _resultobj; | |
2773 | bool _result; | |
2774 | wxWindow * _arg0; | |
2775 | int _arg1; | |
2776 | int _arg2; | |
2777 | int _arg3 = (int ) 0; | |
2778 | int _arg4 = (int ) 0; | |
2779 | PyObject * _argo0 = 0; | |
2780 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2781 | ||
2782 | self = self; | |
2783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2784 | return NULL; | |
2785 | if (_argo0) { | |
2786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2789 | return NULL; | |
2790 | } | |
2791 | } | |
2792 | { | |
2793 | wxPy_BEGIN_ALLOW_THREADS; | |
2794 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2795 | ||
2796 | wxPy_END_ALLOW_THREADS; | |
2797 | } _resultobj = Py_BuildValue("i",_result); | |
2798 | return _resultobj; | |
2799 | } | |
2800 | ||
2801 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2802 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2803 | PyObject * _resultobj; | |
2804 | bool _result; | |
2805 | wxWindow * _arg0; | |
2806 | wxPoint * _arg1; | |
2807 | PyObject * _argo0 = 0; | |
2808 | wxPoint temp; | |
2809 | PyObject * _obj1 = 0; | |
2810 | char *_kwnames[] = { "self","pt", NULL }; | |
2811 | ||
2812 | self = self; | |
2813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2814 | return NULL; | |
2815 | if (_argo0) { | |
2816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2819 | return NULL; | |
2820 | } | |
2821 | } | |
2822 | { | |
2823 | _arg1 = &temp; | |
2824 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2825 | return NULL; | |
2826 | } | |
2827 | { | |
2828 | wxPy_BEGIN_ALLOW_THREADS; | |
2829 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2830 | ||
2831 | wxPy_END_ALLOW_THREADS; | |
2832 | } _resultobj = Py_BuildValue("i",_result); | |
2833 | return _resultobj; | |
2834 | } | |
2835 | ||
2836 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2837 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2838 | PyObject * _resultobj; | |
2839 | bool _result; | |
2840 | wxWindow * _arg0; | |
2841 | wxRect * _arg1; | |
2842 | PyObject * _argo0 = 0; | |
2843 | wxRect temp; | |
2844 | PyObject * _obj1 = 0; | |
2845 | char *_kwnames[] = { "self","rect", NULL }; | |
2846 | ||
2847 | self = self; | |
2848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2849 | return NULL; | |
2850 | if (_argo0) { | |
2851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2854 | return NULL; | |
2855 | } | |
2856 | } | |
2857 | { | |
2858 | _arg1 = &temp; | |
2859 | if (! wxRect_helper(_obj1, &_arg1)) | |
2860 | return NULL; | |
2861 | } | |
2862 | { | |
2863 | wxPy_BEGIN_ALLOW_THREADS; | |
2864 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2865 | ||
2866 | wxPy_END_ALLOW_THREADS; | |
2867 | } _resultobj = Py_BuildValue("i",_result); | |
2868 | return _resultobj; | |
2869 | } | |
2870 | ||
8ab979d7 | 2871 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 2872 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2873 | PyObject * _resultobj; |
2874 | bool _result; | |
2875 | wxWindow * _arg0; | |
1d99702e | 2876 | PyObject * _argo0 = 0; |
efc5f224 | 2877 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2878 | |
2879 | self = self; | |
efc5f224 | 2880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 2881 | return NULL; |
1d99702e RD |
2882 | if (_argo0) { |
2883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
2886 | return NULL; | |
2887 | } | |
2888 | } | |
cf694132 RD |
2889 | { |
2890 | wxPy_BEGIN_ALLOW_THREADS; | |
2891 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2892 | ||
2893 | wxPy_END_ALLOW_THREADS; | |
2894 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2895 | return _resultobj; |
2896 | } | |
2897 | ||
2898 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 2899 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2900 | PyObject * _resultobj; |
2901 | bool _result; | |
2902 | wxWindow * _arg0; | |
1d99702e | 2903 | PyObject * _argo0 = 0; |
efc5f224 | 2904 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2905 | |
2906 | self = self; | |
efc5f224 | 2907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 2908 | return NULL; |
1d99702e RD |
2909 | if (_argo0) { |
2910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
2913 | return NULL; | |
2914 | } | |
2915 | } | |
cf694132 RD |
2916 | { |
2917 | wxPy_BEGIN_ALLOW_THREADS; | |
2918 | _result = (bool )wxWindow_IsShown(_arg0); | |
2919 | ||
2920 | wxPy_END_ALLOW_THREADS; | |
2921 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2922 | return _resultobj; |
2923 | } | |
2924 | ||
bb0054cd | 2925 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 2926 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2927 | PyObject * _resultobj; |
2928 | bool _result; | |
2929 | wxWindow * _arg0; | |
1d99702e | 2930 | PyObject * _argo0 = 0; |
efc5f224 | 2931 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2932 | |
2933 | self = self; | |
efc5f224 | 2934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 2935 | return NULL; |
1d99702e RD |
2936 | if (_argo0) { |
2937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
2940 | return NULL; | |
2941 | } | |
2942 | } | |
2943 | { | |
2944 | wxPy_BEGIN_ALLOW_THREADS; | |
2945 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2946 | ||
2947 | wxPy_END_ALLOW_THREADS; | |
2948 | } _resultobj = Py_BuildValue("i",_result); | |
2949 | return _resultobj; | |
2950 | } | |
2951 | ||
8ab979d7 | 2952 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 2953 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2954 | PyObject * _resultobj; |
2955 | wxWindow * _arg0; | |
1d99702e | 2956 | PyObject * _argo0 = 0; |
efc5f224 | 2957 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2958 | |
2959 | self = self; | |
efc5f224 | 2960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 2961 | return NULL; |
1d99702e RD |
2962 | if (_argo0) { |
2963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
2966 | return NULL; | |
2967 | } | |
2968 | } | |
cf694132 RD |
2969 | { |
2970 | wxPy_BEGIN_ALLOW_THREADS; | |
2971 | wxWindow_Layout(_arg0); | |
2972 | ||
2973 | wxPy_END_ALLOW_THREADS; | |
2974 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2975 | _resultobj = Py_None; |
2976 | return _resultobj; | |
2977 | } | |
2978 | ||
2979 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2980 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2981 | PyObject * _resultobj; |
2982 | bool _result; | |
2983 | wxWindow * _arg0; | |
2984 | wxWindow * _arg1; | |
2985 | wxString * _arg2; | |
1d99702e RD |
2986 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
2987 | PyObject * _argo0 = 0; | |
2988 | PyObject * _argo1 = 0; | |
8ab979d7 | 2989 | PyObject * _obj2 = 0; |
1d99702e | 2990 | PyObject * _argo3 = 0; |
efc5f224 | 2991 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
2992 | |
2993 | self = self; | |
efc5f224 | 2994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 2995 | return NULL; |
1d99702e RD |
2996 | if (_argo0) { |
2997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3000 | return NULL; | |
3001 | } | |
3002 | } | |
1d99702e RD |
3003 | if (_argo1) { |
3004 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3005 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3007 | return NULL; | |
3008 | } | |
3009 | } | |
3010 | { | |
185d7c3e RD |
3011 | #if PYTHON_API_VERSION >= 1009 |
3012 | char* tmpPtr; int tmpSize; | |
3013 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3014 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3015 | return NULL; | |
3016 | } | |
3017 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3018 | return NULL; | |
3019 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3020 | #else | |
8ab979d7 RD |
3021 | if (!PyString_Check(_obj2)) { |
3022 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3023 | return NULL; | |
3024 | } | |
185d7c3e RD |
3025 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3026 | #endif | |
8ab979d7 | 3027 | } |
1d99702e RD |
3028 | if (_argo3) { |
3029 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3030 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3032 | return NULL; | |
3033 | } | |
3034 | } | |
cf694132 RD |
3035 | { |
3036 | wxPy_BEGIN_ALLOW_THREADS; | |
3037 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
3038 | ||
3039 | wxPy_END_ALLOW_THREADS; | |
3040 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3041 | { |
3042 | if (_obj2) | |
3043 | delete _arg2; | |
3044 | } | |
3045 | return _resultobj; | |
3046 | } | |
3047 | ||
3048 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3049 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3050 | PyObject * _resultobj; |
3051 | wxWindow * _arg0; | |
1d99702e | 3052 | PyObject * _argo0 = 0; |
efc5f224 | 3053 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3054 | |
3055 | self = self; | |
efc5f224 | 3056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3057 | return NULL; |
1d99702e RD |
3058 | if (_argo0) { |
3059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3062 | return NULL; | |
3063 | } | |
3064 | } | |
cf694132 RD |
3065 | { |
3066 | wxPy_BEGIN_ALLOW_THREADS; | |
3067 | wxWindow_Lower(_arg0); | |
3068 | ||
3069 | wxPy_END_ALLOW_THREADS; | |
3070 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3071 | _resultobj = Py_None; |
3072 | return _resultobj; | |
3073 | } | |
3074 | ||
3075 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3076 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3077 | PyObject * _resultobj; |
3078 | wxWindow * _arg0; | |
3079 | bool _arg1; | |
1d99702e | 3080 | PyObject * _argo0 = 0; |
8ab979d7 | 3081 | int tempbool1; |
efc5f224 | 3082 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3083 | |
3084 | self = self; | |
efc5f224 | 3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3086 | return NULL; |
1d99702e RD |
3087 | if (_argo0) { |
3088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3091 | return NULL; | |
3092 | } | |
3093 | } | |
3094 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3095 | { |
3096 | wxPy_BEGIN_ALLOW_THREADS; | |
3097 | wxWindow_MakeModal(_arg0,_arg1); | |
3098 | ||
3099 | wxPy_END_ALLOW_THREADS; | |
3100 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3101 | _resultobj = Py_None; |
3102 | return _resultobj; | |
3103 | } | |
3104 | ||
af309447 | 3105 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3106 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3107 | PyObject * _resultobj; |
3108 | wxWindow * _arg0; | |
3109 | int _arg1; | |
3110 | int _arg2; | |
1d99702e | 3111 | PyObject * _argo0 = 0; |
efc5f224 | 3112 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3113 | |
3114 | self = self; | |
efc5f224 | 3115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 3116 | return NULL; |
1d99702e RD |
3117 | if (_argo0) { |
3118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3121 | return NULL; | |
3122 | } | |
3123 | } | |
cf694132 RD |
3124 | { |
3125 | wxPy_BEGIN_ALLOW_THREADS; | |
3126 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
3127 | ||
3128 | wxPy_END_ALLOW_THREADS; | |
3129 | } Py_INCREF(Py_None); | |
af309447 RD |
3130 | _resultobj = Py_None; |
3131 | return _resultobj; | |
3132 | } | |
3133 | ||
3134 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
efc5f224 | 3135 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3136 | PyObject * _resultobj; |
3137 | wxWindow * _arg0; | |
3138 | wxPoint * _arg1; | |
1d99702e | 3139 | PyObject * _argo0 = 0; |
2f90df85 RD |
3140 | wxPoint temp; |
3141 | PyObject * _obj1 = 0; | |
efc5f224 | 3142 | char *_kwnames[] = { "self","point", NULL }; |
af309447 RD |
3143 | |
3144 | self = self; | |
2f90df85 | 3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3146 | return NULL; |
1d99702e RD |
3147 | if (_argo0) { |
3148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3151 | return NULL; | |
3152 | } | |
3153 | } | |
2f90df85 RD |
3154 | { |
3155 | _arg1 = &temp; | |
3156 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3157 | return NULL; |
2f90df85 | 3158 | } |
cf694132 RD |
3159 | { |
3160 | wxPy_BEGIN_ALLOW_THREADS; | |
3161 | wxWindow_Move(_arg0,*_arg1); | |
3162 | ||
3163 | wxPy_END_ALLOW_THREADS; | |
3164 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3165 | _resultobj = Py_None; |
3166 | return _resultobj; | |
3167 | } | |
3168 | ||
1afc06c2 RD |
3169 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3170 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3171 | PyObject * _resultobj; | |
3172 | wxEvtHandler * _result; | |
3173 | wxWindow * _arg0; | |
3174 | bool _arg1 = (bool ) FALSE; | |
3175 | PyObject * _argo0 = 0; | |
3176 | int tempbool1 = (int) FALSE; | |
3177 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
3178 | char _ptemp[128]; | |
3179 | ||
3180 | self = self; | |
3181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3182 | return NULL; | |
3183 | if (_argo0) { | |
3184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3187 | return NULL; | |
3188 | } | |
3189 | } | |
3190 | _arg1 = (bool ) tempbool1; | |
3191 | { | |
3192 | wxPy_BEGIN_ALLOW_THREADS; | |
3193 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3194 | ||
3195 | wxPy_END_ALLOW_THREADS; | |
3196 | } if (_result) { | |
3197 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
3198 | _resultobj = Py_BuildValue("s",_ptemp); | |
3199 | } else { | |
3200 | Py_INCREF(Py_None); | |
3201 | _resultobj = Py_None; | |
3202 | } | |
3203 | return _resultobj; | |
3204 | } | |
3205 | ||
3206 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3207 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3208 | PyObject * _resultobj; | |
3209 | wxWindow * _arg0; | |
3210 | wxEvtHandler * _arg1; | |
3211 | PyObject * _argo0 = 0; | |
3212 | PyObject * _argo1 = 0; | |
3213 | char *_kwnames[] = { "self","handler", NULL }; | |
3214 | ||
3215 | self = self; | |
3216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3217 | return NULL; | |
3218 | if (_argo0) { | |
3219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3222 | return NULL; | |
3223 | } | |
3224 | } | |
3225 | if (_argo1) { | |
3226 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3227 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3229 | return NULL; | |
3230 | } | |
3231 | } | |
3232 | { | |
3233 | wxPy_BEGIN_ALLOW_THREADS; | |
3234 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3235 | ||
3236 | wxPy_END_ALLOW_THREADS; | |
3237 | } Py_INCREF(Py_None); | |
3238 | _resultobj = Py_None; | |
3239 | return _resultobj; | |
3240 | } | |
3241 | ||
8bf5d46e | 3242 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3243 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3244 | PyObject * _resultobj; |
3245 | bool _result; | |
3246 | wxWindow * _arg0; | |
3247 | wxMenu * _arg1; | |
3248 | int _arg2; | |
3249 | int _arg3; | |
1d99702e RD |
3250 | PyObject * _argo0 = 0; |
3251 | PyObject * _argo1 = 0; | |
efc5f224 | 3252 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3253 | |
3254 | self = self; | |
efc5f224 | 3255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3256 | return NULL; |
1d99702e RD |
3257 | if (_argo0) { |
3258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3261 | return NULL; | |
3262 | } | |
3263 | } | |
1d99702e RD |
3264 | if (_argo1) { |
3265 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3266 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3268 | return NULL; | |
3269 | } | |
3270 | } | |
3271 | { | |
3272 | wxPy_BEGIN_ALLOW_THREADS; | |
3273 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3274 | ||
3275 | wxPy_END_ALLOW_THREADS; | |
3276 | } _resultobj = Py_BuildValue("i",_result); | |
3277 | return _resultobj; | |
3278 | } | |
3279 | ||
3280 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3281 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3282 | PyObject * _resultobj; |
3283 | bool _result; | |
3284 | wxWindow * _arg0; | |
3285 | wxMenu * _arg1; | |
3286 | wxPoint * _arg2; | |
1d99702e RD |
3287 | PyObject * _argo0 = 0; |
3288 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3289 | wxPoint temp; |
3290 | PyObject * _obj2 = 0; | |
efc5f224 | 3291 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3292 | |
3293 | self = self; | |
2f90df85 | 3294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3295 | return NULL; |
1d99702e RD |
3296 | if (_argo0) { |
3297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3300 | return NULL; | |
3301 | } | |
3302 | } | |
1d99702e RD |
3303 | if (_argo1) { |
3304 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3305 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3307 | return NULL; | |
3308 | } | |
3309 | } | |
2f90df85 RD |
3310 | { |
3311 | _arg2 = &temp; | |
3312 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3313 | return NULL; |
2f90df85 | 3314 | } |
cf694132 RD |
3315 | { |
3316 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 3317 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 RD |
3318 | |
3319 | wxPy_END_ALLOW_THREADS; | |
3320 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3321 | return _resultobj; |
3322 | } | |
3323 | ||
3324 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3325 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3326 | PyObject * _resultobj; |
3327 | wxWindow * _arg0; | |
1d99702e | 3328 | PyObject * _argo0 = 0; |
efc5f224 | 3329 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3330 | |
3331 | self = self; | |
efc5f224 | 3332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3333 | return NULL; |
1d99702e RD |
3334 | if (_argo0) { |
3335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3338 | return NULL; | |
3339 | } | |
3340 | } | |
cf694132 RD |
3341 | { |
3342 | wxPy_BEGIN_ALLOW_THREADS; | |
3343 | wxWindow_Raise(_arg0); | |
3344 | ||
3345 | wxPy_END_ALLOW_THREADS; | |
3346 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3347 | _resultobj = Py_None; |
3348 | return _resultobj; | |
3349 | } | |
3350 | ||
3351 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3352 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3353 | PyObject * _resultobj; |
3354 | wxWindow * _arg0; | |
1d99702e RD |
3355 | bool _arg1 = (bool ) TRUE; |
3356 | wxRect * _arg2 = (wxRect *) NULL; | |
3357 | PyObject * _argo0 = 0; | |
3358 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3359 | wxRect temp; |
3360 | PyObject * _obj2 = 0; | |
efc5f224 | 3361 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3362 | |
3363 | self = self; | |
2f90df85 | 3364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3365 | return NULL; |
1d99702e RD |
3366 | if (_argo0) { |
3367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3370 | return NULL; | |
3371 | } | |
3372 | } | |
3373 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3374 | if (_obj2) |
3375 | { | |
3376 | _arg2 = &temp; | |
3377 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3378 | return NULL; |
2f90df85 | 3379 | } |
cf694132 RD |
3380 | { |
3381 | wxPy_BEGIN_ALLOW_THREADS; | |
3382 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3383 | ||
3384 | wxPy_END_ALLOW_THREADS; | |
3385 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3386 | _resultobj = Py_None; |
3387 | return _resultobj; | |
3388 | } | |
3389 | ||
3390 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
efc5f224 | 3391 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3392 | PyObject * _resultobj; |
3393 | wxWindow * _arg0; | |
1d99702e | 3394 | PyObject * _argo0 = 0; |
efc5f224 | 3395 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3396 | |
3397 | self = self; | |
efc5f224 | 3398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3399 | return NULL; |
1d99702e RD |
3400 | if (_argo0) { |
3401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3404 | return NULL; | |
3405 | } | |
3406 | } | |
cf694132 RD |
3407 | { |
3408 | wxPy_BEGIN_ALLOW_THREADS; | |
3409 | wxWindow_ReleaseMouse(_arg0); | |
3410 | ||
3411 | wxPy_END_ALLOW_THREADS; | |
3412 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3413 | _resultobj = Py_None; |
3414 | return _resultobj; | |
3415 | } | |
3416 | ||
b7e72427 RD |
3417 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3418 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3419 | PyObject * _resultobj; | |
3420 | wxWindow * _arg0; | |
3421 | wxWindow * _arg1; | |
3422 | PyObject * _argo0 = 0; | |
3423 | PyObject * _argo1 = 0; | |
3424 | char *_kwnames[] = { "self","child", NULL }; | |
3425 | ||
3426 | self = self; | |
3427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3428 | return NULL; | |
3429 | if (_argo0) { | |
3430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3433 | return NULL; | |
3434 | } | |
3435 | } | |
3436 | if (_argo1) { | |
3437 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3438 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3440 | return NULL; | |
3441 | } | |
3442 | } | |
3443 | { | |
3444 | wxPy_BEGIN_ALLOW_THREADS; | |
3445 | wxWindow_RemoveChild(_arg0,_arg1); | |
3446 | ||
3447 | wxPy_END_ALLOW_THREADS; | |
3448 | } Py_INCREF(Py_None); | |
3449 | _resultobj = Py_None; | |
3450 | return _resultobj; | |
3451 | } | |
3452 | ||
bb0054cd | 3453 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3454 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3455 | PyObject * _resultobj; |
3456 | bool _result; | |
3457 | wxWindow * _arg0; | |
3458 | wxWindow * _arg1; | |
1d99702e RD |
3459 | PyObject * _argo0 = 0; |
3460 | PyObject * _argo1 = 0; | |
efc5f224 | 3461 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3462 | |
3463 | self = self; | |
efc5f224 | 3464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3465 | return NULL; |
1d99702e RD |
3466 | if (_argo0) { |
3467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3470 | return NULL; | |
3471 | } | |
3472 | } | |
1d99702e RD |
3473 | if (_argo1) { |
3474 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3475 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3477 | return NULL; | |
3478 | } | |
3479 | } | |
3480 | { | |
3481 | wxPy_BEGIN_ALLOW_THREADS; | |
3482 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3483 | ||
3484 | wxPy_END_ALLOW_THREADS; | |
3485 | } _resultobj = Py_BuildValue("i",_result); | |
3486 | return _resultobj; | |
3487 | } | |
3488 | ||
af309447 | 3489 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3490 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3491 | PyObject * _resultobj; |
3492 | wxWindow * _arg0; | |
3493 | int * _arg1; | |
3494 | int * _arg2; | |
1d99702e | 3495 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3496 | int temp; |
3497 | PyObject * _obj1 = 0; | |
3498 | int temp0; | |
3499 | PyObject * _obj2 = 0; | |
efc5f224 | 3500 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3501 | |
3502 | self = self; | |
efc5f224 | 3503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3504 | return NULL; |
1d99702e RD |
3505 | if (_argo0) { |
3506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3509 | return NULL; |
3510 | } | |
3511 | } | |
3512 | { | |
3513 | temp = (int) PyInt_AsLong(_obj1); | |
3514 | _arg1 = &temp; | |
3515 | } | |
3516 | { | |
3517 | temp0 = (int) PyInt_AsLong(_obj2); | |
3518 | _arg2 = &temp0; | |
3519 | } | |
cf694132 RD |
3520 | { |
3521 | wxPy_BEGIN_ALLOW_THREADS; | |
3522 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3523 | ||
3524 | wxPy_END_ALLOW_THREADS; | |
3525 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3526 | _resultobj = Py_None; |
3527 | { | |
3528 | PyObject *o; | |
3529 | o = PyInt_FromLong((long) (*_arg1)); | |
3530 | _resultobj = t_output_helper(_resultobj, o); | |
3531 | } | |
3532 | { | |
3533 | PyObject *o; | |
3534 | o = PyInt_FromLong((long) (*_arg2)); | |
3535 | _resultobj = t_output_helper(_resultobj, o); | |
3536 | } | |
3537 | return _resultobj; | |
3538 | } | |
3539 | ||
af309447 | 3540 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3541 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3542 | PyObject * _resultobj; |
3543 | wxPoint * _result; | |
3544 | wxWindow * _arg0; | |
3545 | wxPoint * _arg1; | |
1d99702e | 3546 | PyObject * _argo0 = 0; |
2f90df85 RD |
3547 | wxPoint temp; |
3548 | PyObject * _obj1 = 0; | |
efc5f224 | 3549 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3550 | char _ptemp[128]; |
3551 | ||
3552 | self = self; | |
2f90df85 | 3553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3554 | return NULL; |
1d99702e RD |
3555 | if (_argo0) { |
3556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3559 | return NULL; | |
3560 | } | |
3561 | } | |
2f90df85 RD |
3562 | { |
3563 | _arg1 = &temp; | |
3564 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3565 | return NULL; |
2f90df85 | 3566 | } |
cf694132 RD |
3567 | { |
3568 | wxPy_BEGIN_ALLOW_THREADS; | |
3569 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3570 | ||
3571 | wxPy_END_ALLOW_THREADS; | |
3572 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
af309447 RD |
3573 | _resultobj = Py_BuildValue("s",_ptemp); |
3574 | return _resultobj; | |
3575 | } | |
3576 | ||
8ab979d7 | 3577 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3578 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3579 | PyObject * _resultobj; |
3580 | wxWindow * _arg0; | |
3581 | int _arg1; | |
3582 | int _arg2; | |
1d99702e RD |
3583 | wxRect * _arg3 = (wxRect *) NULL; |
3584 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3585 | wxRect temp; |
3586 | PyObject * _obj3 = 0; | |
efc5f224 | 3587 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3588 | |
3589 | self = self; | |
2f90df85 | 3590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3591 | return NULL; |
1d99702e RD |
3592 | if (_argo0) { |
3593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3596 | return NULL; | |
3597 | } | |
3598 | } | |
2f90df85 RD |
3599 | if (_obj3) |
3600 | { | |
3601 | _arg3 = &temp; | |
3602 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3603 | return NULL; |
2f90df85 | 3604 | } |
cf694132 RD |
3605 | { |
3606 | wxPy_BEGIN_ALLOW_THREADS; | |
3607 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3608 | ||
3609 | wxPy_END_ALLOW_THREADS; | |
3610 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3611 | _resultobj = Py_None; |
3612 | return _resultobj; | |
3613 | } | |
3614 | ||
b8b8dda7 | 3615 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
efc5f224 | 3616 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
3617 | PyObject * _resultobj; |
3618 | wxWindow * _arg0; | |
3619 | wxAcceleratorTable * _arg1; | |
1d99702e RD |
3620 | PyObject * _argo0 = 0; |
3621 | PyObject * _argo1 = 0; | |
efc5f224 | 3622 | char *_kwnames[] = { "self","accel", NULL }; |
b8b8dda7 RD |
3623 | |
3624 | self = self; | |
efc5f224 | 3625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 3626 | return NULL; |
1d99702e RD |
3627 | if (_argo0) { |
3628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
3630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); |
3631 | return NULL; | |
3632 | } | |
3633 | } | |
1d99702e RD |
3634 | if (_argo1) { |
3635 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3636 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
b8b8dda7 RD |
3637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
3638 | return NULL; | |
3639 | } | |
3640 | } | |
cf694132 RD |
3641 | { |
3642 | wxPy_BEGIN_ALLOW_THREADS; | |
3643 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
3644 | ||
3645 | wxPy_END_ALLOW_THREADS; | |
3646 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
3647 | _resultobj = Py_None; |
3648 | return _resultobj; | |
3649 | } | |
3650 | ||
8ab979d7 | 3651 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) |
efc5f224 | 3652 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3653 | PyObject * _resultobj; |
3654 | wxWindow * _arg0; | |
3655 | bool _arg1; | |
1d99702e | 3656 | PyObject * _argo0 = 0; |
8ab979d7 | 3657 | int tempbool1; |
efc5f224 | 3658 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3659 | |
3660 | self = self; | |
efc5f224 | 3661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3662 | return NULL; |
1d99702e RD |
3663 | if (_argo0) { |
3664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3667 | return NULL; | |
3668 | } | |
3669 | } | |
3670 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3671 | { |
3672 | wxPy_BEGIN_ALLOW_THREADS; | |
3673 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3674 | ||
3675 | wxPy_END_ALLOW_THREADS; | |
3676 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3677 | _resultobj = Py_None; |
3678 | return _resultobj; | |
3679 | } | |
3680 | ||
9d8bd15f RD |
3681 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3682 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3683 | PyObject * _resultobj; | |
3684 | bool _result; | |
3685 | wxWindow * _arg0; | |
3686 | PyObject * _argo0 = 0; | |
3687 | char *_kwnames[] = { "self", NULL }; | |
3688 | ||
3689 | self = self; | |
3690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3691 | return NULL; | |
3692 | if (_argo0) { | |
3693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3696 | return NULL; | |
3697 | } | |
3698 | } | |
3699 | { | |
3700 | wxPy_BEGIN_ALLOW_THREADS; | |
3701 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3702 | ||
3703 | wxPy_END_ALLOW_THREADS; | |
3704 | } _resultobj = Py_BuildValue("i",_result); | |
3705 | return _resultobj; | |
3706 | } | |
3707 | ||
8ab979d7 | 3708 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3709 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3710 | PyObject * _resultobj; |
3711 | wxWindow * _arg0; | |
3712 | wxColour * _arg1; | |
1d99702e | 3713 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3714 | wxColour temp; |
3715 | PyObject * _obj1 = 0; | |
efc5f224 | 3716 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3717 | |
3718 | self = self; | |
f6bcfd97 | 3719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3720 | return NULL; |
1d99702e RD |
3721 | if (_argo0) { |
3722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3725 | return NULL; | |
3726 | } | |
3727 | } | |
f6bcfd97 BP |
3728 | { |
3729 | _arg1 = &temp; | |
3730 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3731 | return NULL; |
f6bcfd97 | 3732 | } |
cf694132 RD |
3733 | { |
3734 | wxPy_BEGIN_ALLOW_THREADS; | |
3735 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3736 | ||
3737 | wxPy_END_ALLOW_THREADS; | |
3738 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3739 | _resultobj = Py_None; |
3740 | return _resultobj; | |
3741 | } | |
3742 | ||
3743 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3744 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3745 | PyObject * _resultobj; |
3746 | wxWindow * _arg0; | |
3747 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3748 | PyObject * _argo0 = 0; |
3749 | PyObject * _argo1 = 0; | |
efc5f224 | 3750 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3751 | |
3752 | self = self; | |
efc5f224 | 3753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3754 | return NULL; |
1d99702e RD |
3755 | if (_argo0) { |
3756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3759 | return NULL; | |
3760 | } | |
3761 | } | |
1d99702e RD |
3762 | if (_argo1) { |
3763 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3764 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3766 | return NULL; | |
3767 | } | |
3768 | } | |
cf694132 RD |
3769 | { |
3770 | wxPy_BEGIN_ALLOW_THREADS; | |
3771 | wxWindow_SetConstraints(_arg0,_arg1); | |
3772 | ||
3773 | wxPy_END_ALLOW_THREADS; | |
3774 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3775 | _resultobj = Py_None; |
3776 | return _resultobj; | |
3777 | } | |
3778 | ||
2f90df85 RD |
3779 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3780 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3781 | PyObject * _resultobj; | |
3782 | wxWindow * _arg0; | |
3783 | wxLayoutConstraints * _arg1; | |
3784 | PyObject * _argo0 = 0; | |
3785 | PyObject * _argo1 = 0; | |
3786 | char *_kwnames[] = { "self","constraints", NULL }; | |
3787 | ||
3788 | self = self; | |
3789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3790 | return NULL; | |
3791 | if (_argo0) { | |
3792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3795 | return NULL; | |
3796 | } | |
3797 | } | |
3798 | if (_argo1) { | |
3799 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3800 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3802 | return NULL; | |
3803 | } | |
3804 | } | |
3805 | { | |
3806 | wxPy_BEGIN_ALLOW_THREADS; | |
3807 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3808 | ||
3809 | wxPy_END_ALLOW_THREADS; | |
3810 | } Py_INCREF(Py_None); | |
3811 | _resultobj = Py_None; | |
3812 | return _resultobj; | |
3813 | } | |
3814 | ||
8ab979d7 | 3815 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3816 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3817 | PyObject * _resultobj; |
3818 | wxWindow * _arg0; | |
1d99702e | 3819 | PyObject * _argo0 = 0; |
efc5f224 | 3820 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3821 | |
3822 | self = self; | |
efc5f224 | 3823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3824 | return NULL; |
1d99702e RD |
3825 | if (_argo0) { |
3826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3829 | return NULL; | |
3830 | } | |
3831 | } | |
cf694132 RD |
3832 | { |
3833 | wxPy_BEGIN_ALLOW_THREADS; | |
3834 | wxWindow_SetFocus(_arg0); | |
3835 | ||
3836 | wxPy_END_ALLOW_THREADS; | |
3837 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3838 | _resultobj = Py_None; |
3839 | return _resultobj; | |
3840 | } | |
3841 | ||
2f90df85 RD |
3842 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3843 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3844 | PyObject * _resultobj; | |
3845 | bool _result; | |
3846 | wxWindow * _arg0; | |
3847 | PyObject * _argo0 = 0; | |
3848 | char *_kwnames[] = { "self", NULL }; | |
3849 | ||
3850 | self = self; | |
3851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3852 | return NULL; | |
3853 | if (_argo0) { | |
3854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3857 | return NULL; | |
3858 | } | |
3859 | } | |
3860 | { | |
3861 | wxPy_BEGIN_ALLOW_THREADS; | |
3862 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3863 | ||
3864 | wxPy_END_ALLOW_THREADS; | |
3865 | } _resultobj = Py_BuildValue("i",_result); | |
3866 | return _resultobj; | |
3867 | } | |
3868 | ||
8ab979d7 | 3869 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 3870 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3871 | PyObject * _resultobj; |
3872 | wxWindow * _arg0; | |
3873 | wxFont * _arg1; | |
1d99702e RD |
3874 | PyObject * _argo0 = 0; |
3875 | PyObject * _argo1 = 0; | |
efc5f224 | 3876 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
3877 | |
3878 | self = self; | |
efc5f224 | 3879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3880 | return NULL; |
1d99702e RD |
3881 | if (_argo0) { |
3882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3885 | return NULL; | |
3886 | } | |
3887 | } | |
1d99702e RD |
3888 | if (_argo1) { |
3889 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3890 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
3891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3892 | return NULL; | |
3893 | } | |
3894 | } | |
cf694132 RD |
3895 | { |
3896 | wxPy_BEGIN_ALLOW_THREADS; | |
3897 | wxWindow_SetFont(_arg0,*_arg1); | |
3898 | ||
3899 | wxPy_END_ALLOW_THREADS; | |
3900 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3901 | _resultobj = Py_None; |
3902 | return _resultobj; | |
3903 | } | |
3904 | ||
3905 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 3906 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3907 | PyObject * _resultobj; |
3908 | wxWindow * _arg0; | |
3909 | wxColour * _arg1; | |
1d99702e | 3910 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3911 | wxColour temp; |
3912 | PyObject * _obj1 = 0; | |
efc5f224 | 3913 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3914 | |
3915 | self = self; | |
f6bcfd97 | 3916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3917 | return NULL; |
1d99702e RD |
3918 | if (_argo0) { |
3919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
3922 | return NULL; | |
3923 | } | |
3924 | } | |
f6bcfd97 BP |
3925 | { |
3926 | _arg1 = &temp; | |
3927 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3928 | return NULL; |
f6bcfd97 | 3929 | } |
cf694132 RD |
3930 | { |
3931 | wxPy_BEGIN_ALLOW_THREADS; | |
3932 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3933 | ||
3934 | wxPy_END_ALLOW_THREADS; | |
3935 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3936 | _resultobj = Py_None; |
3937 | return _resultobj; | |
3938 | } | |
3939 | ||
3940 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 3941 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3942 | PyObject * _resultobj; |
3943 | wxWindow * _arg0; | |
3944 | int _arg1; | |
1d99702e | 3945 | PyObject * _argo0 = 0; |
efc5f224 | 3946 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
3947 | |
3948 | self = self; | |
efc5f224 | 3949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3950 | return NULL; |
1d99702e RD |
3951 | if (_argo0) { |
3952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
3955 | return NULL; | |
3956 | } | |
3957 | } | |
cf694132 RD |
3958 | { |
3959 | wxPy_BEGIN_ALLOW_THREADS; | |
3960 | wxWindow_SetId(_arg0,_arg1); | |
3961 | ||
3962 | wxPy_END_ALLOW_THREADS; | |
3963 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3964 | _resultobj = Py_None; |
3965 | return _resultobj; | |
3966 | } | |
3967 | ||
3968 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 3969 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3970 | PyObject * _resultobj; |
3971 | wxWindow * _arg0; | |
3972 | wxString * _arg1; | |
1d99702e | 3973 | PyObject * _argo0 = 0; |
8ab979d7 | 3974 | PyObject * _obj1 = 0; |
efc5f224 | 3975 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
3976 | |
3977 | self = self; | |
efc5f224 | 3978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3979 | return NULL; |
1d99702e RD |
3980 | if (_argo0) { |
3981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
3984 | return NULL; | |
3985 | } | |
3986 | } | |
3987 | { | |
185d7c3e RD |
3988 | #if PYTHON_API_VERSION >= 1009 |
3989 | char* tmpPtr; int tmpSize; | |
3990 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3991 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3992 | return NULL; | |
3993 | } | |
3994 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3995 | return NULL; | |
3996 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3997 | #else | |
8ab979d7 RD |
3998 | if (!PyString_Check(_obj1)) { |
3999 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4000 | return NULL; | |
4001 | } | |
185d7c3e RD |
4002 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4003 | #endif | |
8ab979d7 | 4004 | } |
cf694132 RD |
4005 | { |
4006 | wxPy_BEGIN_ALLOW_THREADS; | |
4007 | wxWindow_SetName(_arg0,*_arg1); | |
4008 | ||
4009 | wxPy_END_ALLOW_THREADS; | |
4010 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4011 | _resultobj = Py_None; |
4012 | { | |
4013 | if (_obj1) | |
4014 | delete _arg1; | |
4015 | } | |
4016 | return _resultobj; | |
4017 | } | |
4018 | ||
8ab979d7 | 4019 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4020 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4021 | PyObject * _resultobj; |
4022 | wxWindow * _arg0; | |
4023 | int _arg1; | |
4024 | int _arg2; | |
4025 | int _arg3; | |
4026 | int _arg4; | |
eb715945 | 4027 | int _arg5 = (int ) TRUE; |
1d99702e | 4028 | PyObject * _argo0 = 0; |
efc5f224 | 4029 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4030 | |
4031 | self = self; | |
eb715945 | 4032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4033 | return NULL; |
1d99702e RD |
4034 | if (_argo0) { |
4035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4038 | return NULL; | |
4039 | } | |
4040 | } | |
cf694132 RD |
4041 | { |
4042 | wxPy_BEGIN_ALLOW_THREADS; | |
4043 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4044 | ||
4045 | wxPy_END_ALLOW_THREADS; | |
4046 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4047 | _resultobj = Py_None; |
4048 | return _resultobj; | |
4049 | } | |
4050 | ||
4051 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4052 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4053 | PyObject * _resultobj; |
4054 | wxWindow * _arg0; | |
4055 | int _arg1; | |
4056 | int _arg2; | |
1d99702e RD |
4057 | bool _arg3 = (bool ) TRUE; |
4058 | PyObject * _argo0 = 0; | |
4059 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4060 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4061 | |
4062 | self = self; | |
efc5f224 | 4063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4064 | return NULL; |
1d99702e RD |
4065 | if (_argo0) { |
4066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4069 | return NULL; | |
4070 | } | |
4071 | } | |
4072 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
4073 | { |
4074 | wxPy_BEGIN_ALLOW_THREADS; | |
4075 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4076 | ||
4077 | wxPy_END_ALLOW_THREADS; | |
4078 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4079 | _resultobj = Py_None; |
4080 | return _resultobj; | |
4081 | } | |
4082 | ||
4083 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4084 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4085 | PyObject * _resultobj; |
4086 | wxWindow * _arg0; | |
4087 | int _arg1; | |
4088 | int _arg2; | |
4089 | int _arg3; | |
4090 | int _arg4; | |
1d99702e RD |
4091 | int _arg5 = (int ) wxSIZE_AUTO; |
4092 | PyObject * _argo0 = 0; | |
efc5f224 | 4093 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4094 | |
4095 | self = self; | |
efc5f224 | 4096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4097 | return NULL; |
1d99702e RD |
4098 | if (_argo0) { |
4099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4102 | return NULL; | |
4103 | } | |
4104 | } | |
cf694132 RD |
4105 | { |
4106 | wxPy_BEGIN_ALLOW_THREADS; | |
4107 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4108 | ||
4109 | wxPy_END_ALLOW_THREADS; | |
4110 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4111 | _resultobj = Py_None; |
4112 | return _resultobj; | |
4113 | } | |
4114 | ||
4115 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4116 | self->SetSize(size); |
8ab979d7 | 4117 | } |
efc5f224 | 4118 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4119 | PyObject * _resultobj; |
4120 | wxWindow * _arg0; | |
4121 | wxSize * _arg1; | |
1d99702e | 4122 | PyObject * _argo0 = 0; |
2f90df85 RD |
4123 | wxSize temp; |
4124 | PyObject * _obj1 = 0; | |
efc5f224 | 4125 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4126 | |
4127 | self = self; | |
2f90df85 | 4128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4129 | return NULL; |
1d99702e RD |
4130 | if (_argo0) { |
4131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4134 | return NULL; | |
4135 | } | |
4136 | } | |
2f90df85 RD |
4137 | { |
4138 | _arg1 = &temp; | |
4139 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4140 | return NULL; |
2f90df85 | 4141 | } |
cf694132 RD |
4142 | { |
4143 | wxPy_BEGIN_ALLOW_THREADS; | |
4144 | wxWindow_SetSize(_arg0,*_arg1); | |
4145 | ||
4146 | wxPy_END_ALLOW_THREADS; | |
4147 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4148 | _resultobj = Py_None; |
4149 | return _resultobj; | |
4150 | } | |
4151 | ||
4152 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
b7e72427 | 4153 | self->Move(pos); |
8ab979d7 | 4154 | } |
efc5f224 | 4155 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4156 | PyObject * _resultobj; |
4157 | wxWindow * _arg0; | |
4158 | wxPoint * _arg1; | |
1d99702e | 4159 | PyObject * _argo0 = 0; |
2f90df85 RD |
4160 | wxPoint temp; |
4161 | PyObject * _obj1 = 0; | |
efc5f224 | 4162 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4163 | |
4164 | self = self; | |
2f90df85 | 4165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4166 | return NULL; |
1d99702e RD |
4167 | if (_argo0) { |
4168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4171 | return NULL; | |
4172 | } | |
4173 | } | |
2f90df85 RD |
4174 | { |
4175 | _arg1 = &temp; | |
4176 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4177 | return NULL; |
2f90df85 | 4178 | } |
cf694132 RD |
4179 | { |
4180 | wxPy_BEGIN_ALLOW_THREADS; | |
4181 | wxWindow_SetPosition(_arg0,*_arg1); | |
4182 | ||
4183 | wxPy_END_ALLOW_THREADS; | |
4184 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4185 | _resultobj = Py_None; |
4186 | return _resultobj; | |
4187 | } | |
4188 | ||
dbbb98cd RD |
4189 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4190 | self->SetSize(rect, sizeFlags); | |
4191 | } | |
4192 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4193 | PyObject * _resultobj; | |
4194 | wxWindow * _arg0; | |
4195 | wxRect * _arg1; | |
4196 | int _arg2 = (int ) wxSIZE_AUTO; | |
4197 | PyObject * _argo0 = 0; | |
4198 | wxRect temp; | |
4199 | PyObject * _obj1 = 0; | |
4200 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4201 | ||
4202 | self = self; | |
4203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4204 | return NULL; | |
4205 | if (_argo0) { | |
4206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4209 | return NULL; | |
4210 | } | |
4211 | } | |
4212 | { | |
4213 | _arg1 = &temp; | |
4214 | if (! wxRect_helper(_obj1, &_arg1)) | |
4215 | return NULL; | |
4216 | } | |
4217 | { | |
4218 | wxPy_BEGIN_ALLOW_THREADS; | |
4219 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4220 | ||
4221 | wxPy_END_ALLOW_THREADS; | |
4222 | } Py_INCREF(Py_None); | |
4223 | _resultobj = Py_None; | |
4224 | return _resultobj; | |
4225 | } | |
4226 | ||
8ab979d7 | 4227 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4228 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4229 | PyObject * _resultobj; |
4230 | wxWindow * _arg0; | |
1d99702e RD |
4231 | int _arg1 = (int ) -1; |
4232 | int _arg2 = (int ) -1; | |
4233 | int _arg3 = (int ) -1; | |
4234 | int _arg4 = (int ) -1; | |
4235 | int _arg5 = (int ) -1; | |
4236 | int _arg6 = (int ) -1; | |
4237 | PyObject * _argo0 = 0; | |
efc5f224 | 4238 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4239 | |
4240 | self = self; | |
efc5f224 | 4241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4242 | return NULL; |
1d99702e RD |
4243 | if (_argo0) { |
4244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4247 | return NULL; | |
4248 | } | |
4249 | } | |
cf694132 RD |
4250 | { |
4251 | wxPy_BEGIN_ALLOW_THREADS; | |
4252 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4253 | ||
4254 | wxPy_END_ALLOW_THREADS; | |
4255 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4256 | _resultobj = Py_None; |
4257 | return _resultobj; | |
4258 | } | |
4259 | ||
af309447 | 4260 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4261 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4262 | PyObject * _resultobj; |
4263 | wxWindow * _arg0; | |
4264 | int _arg1; | |
4265 | int _arg2; | |
1d99702e | 4266 | PyObject * _argo0 = 0; |
efc5f224 | 4267 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4268 | |
4269 | self = self; | |
efc5f224 | 4270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4271 | return NULL; |
1d99702e RD |
4272 | if (_argo0) { |
4273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4276 | return NULL; | |
4277 | } | |
4278 | } | |
cf694132 RD |
4279 | { |
4280 | wxPy_BEGIN_ALLOW_THREADS; | |
4281 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4282 | ||
4283 | wxPy_END_ALLOW_THREADS; | |
4284 | } Py_INCREF(Py_None); | |
af309447 RD |
4285 | _resultobj = Py_None; |
4286 | return _resultobj; | |
4287 | } | |
4288 | ||
4289 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4290 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4291 | PyObject * _resultobj; |
4292 | wxWindow * _arg0; | |
4293 | wxSize * _arg1; | |
1d99702e | 4294 | PyObject * _argo0 = 0; |
2f90df85 RD |
4295 | wxSize temp; |
4296 | PyObject * _obj1 = 0; | |
efc5f224 | 4297 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4298 | |
4299 | self = self; | |
2f90df85 | 4300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4301 | return NULL; |
1d99702e RD |
4302 | if (_argo0) { |
4303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4306 | return NULL; | |
4307 | } | |
4308 | } | |
2f90df85 RD |
4309 | { |
4310 | _arg1 = &temp; | |
4311 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4312 | return NULL; |
2f90df85 | 4313 | } |
cf694132 RD |
4314 | { |
4315 | wxPy_BEGIN_ALLOW_THREADS; | |
4316 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4317 | ||
4318 | wxPy_END_ALLOW_THREADS; | |
4319 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4320 | _resultobj = Py_None; |
4321 | return _resultobj; | |
4322 | } | |
4323 | ||
4324 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4325 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4326 | PyObject * _resultobj; |
4327 | wxWindow * _arg0; | |
4328 | wxCursor * _arg1; | |
1d99702e RD |
4329 | PyObject * _argo0 = 0; |
4330 | PyObject * _argo1 = 0; | |
efc5f224 | 4331 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4332 | |
4333 | self = self; | |
efc5f224 | 4334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4335 | return NULL; |
1d99702e RD |
4336 | if (_argo0) { |
4337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4340 | return NULL; | |
4341 | } | |
4342 | } | |
1d99702e RD |
4343 | if (_argo1) { |
4344 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4345 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4347 | return NULL; | |
4348 | } | |
4349 | } | |
cf694132 RD |
4350 | { |
4351 | wxPy_BEGIN_ALLOW_THREADS; | |
4352 | wxWindow_SetCursor(_arg0,*_arg1); | |
4353 | ||
4354 | wxPy_END_ALLOW_THREADS; | |
4355 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4356 | _resultobj = Py_None; |
4357 | return _resultobj; | |
4358 | } | |
4359 | ||
1afc06c2 RD |
4360 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4361 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4362 | PyObject * _resultobj; | |
4363 | wxWindow * _arg0; | |
4364 | wxEvtHandler * _arg1; | |
4365 | PyObject * _argo0 = 0; | |
4366 | PyObject * _argo1 = 0; | |
4367 | char *_kwnames[] = { "self","handler", NULL }; | |
4368 | ||
4369 | self = self; | |
4370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4371 | return NULL; | |
4372 | if (_argo0) { | |
4373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4376 | return NULL; | |
4377 | } | |
4378 | } | |
4379 | if (_argo1) { | |
4380 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4381 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4383 | return NULL; | |
4384 | } | |
4385 | } | |
4386 | { | |
4387 | wxPy_BEGIN_ALLOW_THREADS; | |
4388 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4389 | ||
4390 | wxPy_END_ALLOW_THREADS; | |
4391 | } Py_INCREF(Py_None); | |
4392 | _resultobj = Py_None; | |
4393 | return _resultobj; | |
4394 | } | |
4395 | ||
8ab979d7 | 4396 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4397 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4398 | PyObject * _resultobj; |
4399 | wxWindow * _arg0; | |
4400 | wxString * _arg1; | |
1d99702e | 4401 | PyObject * _argo0 = 0; |
8ab979d7 | 4402 | PyObject * _obj1 = 0; |
efc5f224 | 4403 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4404 | |
4405 | self = self; | |
efc5f224 | 4406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4407 | return NULL; |
1d99702e RD |
4408 | if (_argo0) { |
4409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4412 | return NULL; | |
4413 | } | |
4414 | } | |
4415 | { | |
185d7c3e RD |
4416 | #if PYTHON_API_VERSION >= 1009 |
4417 | char* tmpPtr; int tmpSize; | |
4418 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4419 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4420 | return NULL; | |
4421 | } | |
4422 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4423 | return NULL; | |
4424 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4425 | #else | |
8ab979d7 RD |
4426 | if (!PyString_Check(_obj1)) { |
4427 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4428 | return NULL; | |
4429 | } | |
185d7c3e RD |
4430 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4431 | #endif | |
8ab979d7 | 4432 | } |
cf694132 RD |
4433 | { |
4434 | wxPy_BEGIN_ALLOW_THREADS; | |
4435 | wxWindow_SetTitle(_arg0,*_arg1); | |
4436 | ||
4437 | wxPy_END_ALLOW_THREADS; | |
4438 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4439 | _resultobj = Py_None; |
4440 | { | |
4441 | if (_obj1) | |
4442 | delete _arg1; | |
4443 | } | |
4444 | return _resultobj; | |
4445 | } | |
4446 | ||
4447 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4448 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4449 | PyObject * _resultobj; |
4450 | bool _result; | |
4451 | wxWindow * _arg0; | |
4452 | bool _arg1; | |
1d99702e | 4453 | PyObject * _argo0 = 0; |
8ab979d7 | 4454 | int tempbool1; |
efc5f224 | 4455 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4456 | |
4457 | self = self; | |
efc5f224 | 4458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4459 | return NULL; |
1d99702e RD |
4460 | if (_argo0) { |
4461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4464 | return NULL; | |
4465 | } | |
4466 | } | |
4467 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4468 | { |
4469 | wxPy_BEGIN_ALLOW_THREADS; | |
4470 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4471 | ||
4472 | wxPy_END_ALLOW_THREADS; | |
4473 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4474 | return _resultobj; |
4475 | } | |
4476 | ||
4477 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4478 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4479 | PyObject * _resultobj; |
4480 | bool _result; | |
4481 | wxWindow * _arg0; | |
1d99702e | 4482 | PyObject * _argo0 = 0; |
efc5f224 | 4483 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4484 | |
4485 | self = self; | |
efc5f224 | 4486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4487 | return NULL; |
1d99702e RD |
4488 | if (_argo0) { |
4489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4492 | return NULL; | |
4493 | } | |
4494 | } | |
cf694132 RD |
4495 | { |
4496 | wxPy_BEGIN_ALLOW_THREADS; | |
4497 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4498 | ||
4499 | wxPy_END_ALLOW_THREADS; | |
4500 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4501 | return _resultobj; |
4502 | } | |
4503 | ||
4504 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4505 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4506 | PyObject * _resultobj; |
4507 | bool _result; | |
4508 | wxWindow * _arg0; | |
1d99702e | 4509 | PyObject * _argo0 = 0; |
efc5f224 | 4510 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4511 | |
4512 | self = self; | |
efc5f224 | 4513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4514 | return NULL; |
1d99702e RD |
4515 | if (_argo0) { |
4516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4519 | return NULL; | |
4520 | } | |
4521 | } | |
cf694132 RD |
4522 | { |
4523 | wxPy_BEGIN_ALLOW_THREADS; | |
4524 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4525 | ||
4526 | wxPy_END_ALLOW_THREADS; | |
4527 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4528 | return _resultobj; |
4529 | } | |
4530 | ||
4531 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4532 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4533 | PyObject * _resultobj; |
4534 | bool _result; | |
4535 | wxWindow * _arg0; | |
1d99702e | 4536 | PyObject * _argo0 = 0; |
efc5f224 | 4537 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4538 | |
4539 | self = self; | |
efc5f224 | 4540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4541 | return NULL; |
1d99702e RD |
4542 | if (_argo0) { |
4543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4546 | return NULL; | |
4547 | } | |
4548 | } | |
cf694132 RD |
4549 | { |
4550 | wxPy_BEGIN_ALLOW_THREADS; | |
4551 | _result = (bool )wxWindow_Validate(_arg0); | |
4552 | ||
4553 | wxPy_END_ALLOW_THREADS; | |
4554 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4555 | return _resultobj; |
4556 | } | |
4557 | ||
4558 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4559 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4560 | PyObject * _resultobj; |
4561 | wxWindow * _arg0; | |
4562 | int _arg1; | |
4563 | int _arg2; | |
1d99702e | 4564 | PyObject * _argo0 = 0; |
efc5f224 | 4565 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4566 | |
4567 | self = self; | |
efc5f224 | 4568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 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")) { | |
8ab979d7 RD |
4573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4574 | return NULL; | |
4575 | } | |
4576 | } | |
cf694132 RD |
4577 | { |
4578 | wxPy_BEGIN_ALLOW_THREADS; | |
4579 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4580 | ||
4581 | wxPy_END_ALLOW_THREADS; | |
4582 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4583 | _resultobj = Py_None; |
4584 | return _resultobj; | |
4585 | } | |
4586 | ||
b8b8dda7 | 4587 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4588 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4589 | PyObject * _resultobj; |
4590 | wxPoint * _result; | |
4591 | wxWindow * _arg0; | |
4592 | wxPoint * _arg1; | |
1d99702e | 4593 | PyObject * _argo0 = 0; |
2f90df85 RD |
4594 | wxPoint temp; |
4595 | PyObject * _obj1 = 0; | |
efc5f224 | 4596 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4597 | char _ptemp[128]; |
4598 | ||
4599 | self = self; | |
2f90df85 | 4600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4601 | return NULL; |
1d99702e RD |
4602 | if (_argo0) { |
4603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4606 | return NULL; | |
4607 | } | |
4608 | } | |
2f90df85 RD |
4609 | { |
4610 | _arg1 = &temp; | |
4611 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4612 | return NULL; |
2f90df85 | 4613 | } |
cf694132 RD |
4614 | { |
4615 | wxPy_BEGIN_ALLOW_THREADS; | |
4616 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4617 | ||
4618 | wxPy_END_ALLOW_THREADS; | |
4619 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
4620 | _resultobj = Py_BuildValue("s",_ptemp); |
4621 | return _resultobj; | |
4622 | } | |
4623 | ||
4624 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4625 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4626 | PyObject * _resultobj; |
4627 | wxSize * _result; | |
4628 | wxWindow * _arg0; | |
4629 | wxSize * _arg1; | |
1d99702e | 4630 | PyObject * _argo0 = 0; |
2f90df85 RD |
4631 | wxSize temp; |
4632 | PyObject * _obj1 = 0; | |
efc5f224 | 4633 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4634 | char _ptemp[128]; |
4635 | ||
4636 | self = self; | |
2f90df85 | 4637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4638 | return NULL; |
1d99702e RD |
4639 | if (_argo0) { |
4640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4643 | return NULL; | |
4644 | } | |
4645 | } | |
2f90df85 RD |
4646 | { |
4647 | _arg1 = &temp; | |
4648 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4649 | return NULL; |
2f90df85 | 4650 | } |
cf694132 RD |
4651 | { |
4652 | wxPy_BEGIN_ALLOW_THREADS; | |
4653 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4654 | ||
4655 | wxPy_END_ALLOW_THREADS; | |
4656 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
4657 | _resultobj = Py_BuildValue("s",_ptemp); |
4658 | return _resultobj; | |
4659 | } | |
4660 | ||
4661 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4662 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4663 | PyObject * _resultobj; |
4664 | wxPoint * _result; | |
4665 | wxWindow * _arg0; | |
4666 | wxPoint * _arg1; | |
1d99702e | 4667 | PyObject * _argo0 = 0; |
2f90df85 RD |
4668 | wxPoint temp; |
4669 | PyObject * _obj1 = 0; | |
efc5f224 | 4670 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4671 | char _ptemp[128]; |
4672 | ||
4673 | self = self; | |
2f90df85 | 4674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4675 | return NULL; |
1d99702e RD |
4676 | if (_argo0) { |
4677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4680 | return NULL; | |
4681 | } | |
4682 | } | |
2f90df85 RD |
4683 | { |
4684 | _arg1 = &temp; | |
4685 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4686 | return NULL; |
2f90df85 | 4687 | } |
cf694132 RD |
4688 | { |
4689 | wxPy_BEGIN_ALLOW_THREADS; | |
4690 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4691 | ||
4692 | wxPy_END_ALLOW_THREADS; | |
4693 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
4694 | _resultobj = Py_BuildValue("s",_ptemp); |
4695 | return _resultobj; | |
4696 | } | |
4697 | ||
4698 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4699 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4700 | PyObject * _resultobj; |
4701 | wxSize * _result; | |
4702 | wxWindow * _arg0; | |
4703 | wxSize * _arg1; | |
1d99702e | 4704 | PyObject * _argo0 = 0; |
2f90df85 RD |
4705 | wxSize temp; |
4706 | PyObject * _obj1 = 0; | |
efc5f224 | 4707 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4708 | char _ptemp[128]; |
4709 | ||
4710 | self = self; | |
2f90df85 | 4711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4712 | return NULL; |
1d99702e RD |
4713 | if (_argo0) { |
4714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4717 | return NULL; | |
4718 | } | |
4719 | } | |
2f90df85 RD |
4720 | { |
4721 | _arg1 = &temp; | |
4722 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4723 | return NULL; |
2f90df85 | 4724 | } |
cf694132 RD |
4725 | { |
4726 | wxPy_BEGIN_ALLOW_THREADS; | |
4727 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4728 | ||
4729 | wxPy_END_ALLOW_THREADS; | |
4730 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
4731 | _resultobj = Py_BuildValue("s",_ptemp); |
4732 | return _resultobj; | |
4733 | } | |
4734 | ||
af309447 | 4735 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4736 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4737 | PyObject * _resultobj; |
4738 | wxWindow * _arg0; | |
4739 | wxString * _arg1; | |
1d99702e | 4740 | PyObject * _argo0 = 0; |
af309447 | 4741 | PyObject * _obj1 = 0; |
efc5f224 | 4742 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4743 | |
4744 | self = self; | |
efc5f224 | 4745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4746 | return NULL; |
1d99702e RD |
4747 | if (_argo0) { |
4748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4751 | return NULL; | |
4752 | } | |
4753 | } | |
4754 | { | |
185d7c3e RD |
4755 | #if PYTHON_API_VERSION >= 1009 |
4756 | char* tmpPtr; int tmpSize; | |
4757 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4758 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4759 | return NULL; | |
4760 | } | |
4761 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4762 | return NULL; | |
4763 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4764 | #else | |
af309447 RD |
4765 | if (!PyString_Check(_obj1)) { |
4766 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4767 | return NULL; | |
4768 | } | |
185d7c3e RD |
4769 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4770 | #endif | |
af309447 | 4771 | } |
cf694132 RD |
4772 | { |
4773 | wxPy_BEGIN_ALLOW_THREADS; | |
4774 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4775 | ||
4776 | wxPy_END_ALLOW_THREADS; | |
4777 | } Py_INCREF(Py_None); | |
af309447 RD |
4778 | _resultobj = Py_None; |
4779 | { | |
4780 | if (_obj1) | |
4781 | delete _arg1; | |
4782 | } | |
4783 | return _resultobj; | |
4784 | } | |
4785 | ||
4786 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4787 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4788 | PyObject * _resultobj; |
4789 | wxWindow * _arg0; | |
4790 | wxToolTip * _arg1; | |
1d99702e RD |
4791 | PyObject * _argo0 = 0; |
4792 | PyObject * _argo1 = 0; | |
efc5f224 | 4793 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4794 | |
4795 | self = self; | |
efc5f224 | 4796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4797 | return NULL; |
1d99702e RD |
4798 | if (_argo0) { |
4799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4802 | return NULL; | |
4803 | } | |
4804 | } | |
1d99702e RD |
4805 | if (_argo1) { |
4806 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4807 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4809 | return NULL; | |
4810 | } | |
4811 | } | |
cf694132 RD |
4812 | { |
4813 | wxPy_BEGIN_ALLOW_THREADS; | |
4814 | wxWindow_SetToolTip(_arg0,_arg1); | |
4815 | ||
4816 | wxPy_END_ALLOW_THREADS; | |
4817 | } Py_INCREF(Py_None); | |
af309447 RD |
4818 | _resultobj = Py_None; |
4819 | return _resultobj; | |
4820 | } | |
4821 | ||
4822 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 4823 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4824 | PyObject * _resultobj; |
4825 | wxToolTip * _result; | |
4826 | wxWindow * _arg0; | |
1d99702e | 4827 | PyObject * _argo0 = 0; |
efc5f224 | 4828 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
4829 | char _ptemp[128]; |
4830 | ||
4831 | self = self; | |
efc5f224 | 4832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 4833 | return NULL; |
1d99702e RD |
4834 | if (_argo0) { |
4835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4838 | return NULL; | |
4839 | } | |
4840 | } | |
cf694132 RD |
4841 | { |
4842 | wxPy_BEGIN_ALLOW_THREADS; | |
4843 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4844 | ||
4845 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4846 | } if (_result) { |
4847 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
4848 | _resultobj = Py_BuildValue("s",_ptemp); | |
4849 | } else { | |
4850 | Py_INCREF(Py_None); | |
4851 | _resultobj = Py_None; | |
4852 | } | |
af309447 RD |
4853 | return _resultobj; |
4854 | } | |
4855 | ||
2f90df85 RD |
4856 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
4857 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4858 | PyObject * _resultobj; | |
4859 | wxWindow * _arg0; | |
4860 | wxSizer * _arg1; | |
4861 | PyObject * _argo0 = 0; | |
4862 | PyObject * _argo1 = 0; | |
4863 | char *_kwnames[] = { "self","sizer", NULL }; | |
4864 | ||
4865 | self = self; | |
4866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4867 | return NULL; | |
4868 | if (_argo0) { | |
4869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4872 | return NULL; | |
4873 | } | |
4874 | } | |
4875 | if (_argo1) { | |
4876 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4877 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4879 | return NULL; | |
4880 | } | |
4881 | } | |
4882 | { | |
4883 | wxPy_BEGIN_ALLOW_THREADS; | |
4884 | wxWindow_SetSizer(_arg0,_arg1); | |
4885 | ||
4886 | wxPy_END_ALLOW_THREADS; | |
4887 | } Py_INCREF(Py_None); | |
4888 | _resultobj = Py_None; | |
4889 | return _resultobj; | |
4890 | } | |
4891 | ||
f6bcfd97 BP |
4892 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
4893 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4894 | PyObject * _resultobj; | |
4895 | wxSizer * _result; | |
4896 | wxWindow * _arg0; | |
4897 | PyObject * _argo0 = 0; | |
4898 | char *_kwnames[] = { "self", NULL }; | |
4899 | char _ptemp[128]; | |
4900 | ||
4901 | self = self; | |
4902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
4903 | return NULL; | |
4904 | if (_argo0) { | |
4905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
4908 | return NULL; | |
4909 | } | |
4910 | } | |
4911 | { | |
4912 | wxPy_BEGIN_ALLOW_THREADS; | |
4913 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
4914 | ||
4915 | wxPy_END_ALLOW_THREADS; | |
4916 | } if (_result) { | |
4917 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p"); | |
4918 | _resultobj = Py_BuildValue("s",_ptemp); | |
4919 | } else { | |
4920 | Py_INCREF(Py_None); | |
4921 | _resultobj = Py_None; | |
4922 | } | |
4923 | return _resultobj; | |
4924 | } | |
4925 | ||
2f90df85 RD |
4926 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
4927 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4928 | PyObject * _resultobj; | |
4929 | wxValidator * _result; | |
4930 | wxWindow * _arg0; | |
4931 | PyObject * _argo0 = 0; | |
4932 | char *_kwnames[] = { "self", NULL }; | |
4933 | char _ptemp[128]; | |
4934 | ||
4935 | self = self; | |
4936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
4937 | return NULL; | |
4938 | if (_argo0) { | |
4939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
4942 | return NULL; | |
4943 | } | |
4944 | } | |
4945 | { | |
4946 | wxPy_BEGIN_ALLOW_THREADS; | |
4947 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
4948 | ||
4949 | wxPy_END_ALLOW_THREADS; | |
4950 | } if (_result) { | |
4951 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
4952 | _resultobj = Py_BuildValue("s",_ptemp); | |
4953 | } else { | |
4954 | Py_INCREF(Py_None); | |
4955 | _resultobj = Py_None; | |
4956 | } | |
4957 | return _resultobj; | |
4958 | } | |
4959 | ||
4960 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
4961 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4962 | PyObject * _resultobj; | |
4963 | wxWindow * _arg0; | |
4964 | wxValidator * _arg1; | |
4965 | PyObject * _argo0 = 0; | |
4966 | PyObject * _argo1 = 0; | |
4967 | char *_kwnames[] = { "self","validator", NULL }; | |
4968 | ||
4969 | self = self; | |
4970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
4971 | return NULL; | |
4972 | if (_argo0) { | |
4973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
4976 | return NULL; | |
4977 | } | |
4978 | } | |
4979 | if (_argo1) { | |
4980 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4981 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
4982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
4983 | return NULL; | |
4984 | } | |
4985 | } | |
4986 | { | |
4987 | wxPy_BEGIN_ALLOW_THREADS; | |
4988 | wxWindow_SetValidator(_arg0,*_arg1); | |
4989 | ||
4990 | wxPy_END_ALLOW_THREADS; | |
4991 | } Py_INCREF(Py_None); | |
4992 | _resultobj = Py_None; | |
4993 | return _resultobj; | |
4994 | } | |
4995 | ||
b1462dfa RD |
4996 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
4997 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4998 | PyObject * _resultobj; | |
4999 | wxWindow * _arg0; | |
5000 | wxDropTarget * _arg1; | |
5001 | PyObject * _argo0 = 0; | |
5002 | PyObject * _argo1 = 0; | |
5003 | char *_kwnames[] = { "self","target", NULL }; | |
5004 | ||
5005 | self = self; | |
5006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5007 | return NULL; | |
5008 | if (_argo0) { | |
5009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5012 | return NULL; | |
5013 | } | |
5014 | } | |
5015 | if (_argo1) { | |
5016 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5017 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5019 | return NULL; | |
5020 | } | |
5021 | } | |
5022 | { | |
5023 | wxPy_BEGIN_ALLOW_THREADS; | |
5024 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5025 | ||
5026 | wxPy_END_ALLOW_THREADS; | |
5027 | } Py_INCREF(Py_None); | |
5028 | _resultobj = Py_None; | |
5029 | return _resultobj; | |
5030 | } | |
5031 | ||
5032 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5033 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5034 | PyObject * _resultobj; | |
5035 | wxDropTarget * _result; | |
5036 | wxWindow * _arg0; | |
5037 | PyObject * _argo0 = 0; | |
5038 | char *_kwnames[] = { "self", NULL }; | |
5039 | char _ptemp[128]; | |
5040 | ||
5041 | self = self; | |
5042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5043 | return NULL; | |
5044 | if (_argo0) { | |
5045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5048 | return NULL; | |
5049 | } | |
5050 | } | |
5051 | { | |
5052 | wxPy_BEGIN_ALLOW_THREADS; | |
5053 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5054 | ||
5055 | wxPy_END_ALLOW_THREADS; | |
5056 | } if (_result) { | |
5057 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5058 | _resultobj = Py_BuildValue("s",_ptemp); | |
5059 | } else { | |
5060 | Py_INCREF(Py_None); | |
5061 | _resultobj = Py_None; | |
5062 | } | |
5063 | return _resultobj; | |
5064 | } | |
5065 | ||
694759cf RD |
5066 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5067 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5068 | PyObject * _resultobj; | |
5069 | wxSize * _result; | |
5070 | wxWindow * _arg0; | |
5071 | PyObject * _argo0 = 0; | |
5072 | char *_kwnames[] = { "self", NULL }; | |
5073 | char _ptemp[128]; | |
5074 | ||
5075 | self = self; | |
5076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5077 | return NULL; | |
5078 | if (_argo0) { | |
5079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5082 | return NULL; | |
5083 | } | |
5084 | } | |
5085 | { | |
5086 | wxPy_BEGIN_ALLOW_THREADS; | |
5087 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5088 | ||
5089 | wxPy_END_ALLOW_THREADS; | |
5090 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5091 | _resultobj = Py_BuildValue("s",_ptemp); | |
5092 | return _resultobj; | |
5093 | } | |
5094 | ||
a1df7a95 RD |
5095 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5096 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5097 | PyObject * _resultobj; | |
5098 | wxWindow * _arg0; | |
5099 | wxCaret * _arg1; | |
5100 | PyObject * _argo0 = 0; | |
5101 | PyObject * _argo1 = 0; | |
5102 | char *_kwnames[] = { "self","caret", NULL }; | |
5103 | ||
5104 | self = self; | |
5105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5106 | return NULL; | |
5107 | if (_argo0) { | |
5108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5111 | return NULL; | |
5112 | } | |
5113 | } | |
5114 | if (_argo1) { | |
5115 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5116 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5118 | return NULL; | |
5119 | } | |
5120 | } | |
5121 | { | |
5122 | wxPy_BEGIN_ALLOW_THREADS; | |
5123 | wxWindow_SetCaret(_arg0,_arg1); | |
5124 | ||
5125 | wxPy_END_ALLOW_THREADS; | |
5126 | } Py_INCREF(Py_None); | |
5127 | _resultobj = Py_None; | |
5128 | return _resultobj; | |
5129 | } | |
5130 | ||
5131 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5132 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5133 | PyObject * _resultobj; | |
5134 | wxCaret * _result; | |
5135 | wxWindow * _arg0; | |
5136 | PyObject * _argo0 = 0; | |
5137 | char *_kwnames[] = { "self", NULL }; | |
5138 | char _ptemp[128]; | |
5139 | ||
5140 | self = self; | |
5141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5142 | return NULL; | |
5143 | if (_argo0) { | |
5144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5147 | return NULL; | |
5148 | } | |
5149 | } | |
5150 | { | |
5151 | wxPy_BEGIN_ALLOW_THREADS; | |
5152 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5153 | ||
5154 | wxPy_END_ALLOW_THREADS; | |
5155 | } if (_result) { | |
5156 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5157 | _resultobj = Py_BuildValue("s",_ptemp); | |
5158 | } else { | |
5159 | Py_INCREF(Py_None); | |
5160 | _resultobj = Py_None; | |
5161 | } | |
5162 | return _resultobj; | |
5163 | } | |
5164 | ||
8ab979d7 RD |
5165 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5166 | wxPanel *src; | |
5167 | wxWindow *dest; | |
5168 | src = (wxPanel *) ptr; | |
5169 | dest = (wxWindow *) src; | |
5170 | return (void *) dest; | |
5171 | } | |
5172 | ||
5173 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5174 | wxPanel *src; | |
5175 | wxEvtHandler *dest; | |
5176 | src = (wxPanel *) ptr; | |
5177 | dest = (wxEvtHandler *) src; | |
5178 | return (void *) dest; | |
5179 | } | |
5180 | ||
5181 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 5182 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5183 | PyObject * _resultobj; |
5184 | wxPanel * _result; | |
5185 | wxWindow * _arg0; | |
5186 | wxWindowID _arg1; | |
e508a2b6 RD |
5187 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5188 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5189 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
5190 | char * _arg5 = (char *) "panel"; | |
5191 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5192 | wxPoint temp; |
5193 | PyObject * _obj2 = 0; | |
5194 | wxSize temp0; | |
5195 | PyObject * _obj3 = 0; | |
efc5f224 | 5196 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5197 | char _ptemp[128]; |
5198 | ||
5199 | self = self; | |
2f90df85 | 5200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5201 | return NULL; |
1d99702e RD |
5202 | if (_argo0) { |
5203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5206 | return NULL; | |
5207 | } | |
5208 | } | |
2f90df85 RD |
5209 | if (_obj2) |
5210 | { | |
5211 | _arg2 = &temp; | |
5212 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5213 | return NULL; |
2f90df85 RD |
5214 | } |
5215 | if (_obj3) | |
5216 | { | |
5217 | _arg3 = &temp0; | |
5218 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5219 | return NULL; |
2f90df85 | 5220 | } |
cf694132 RD |
5221 | { |
5222 | wxPy_BEGIN_ALLOW_THREADS; | |
5223 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5224 | ||
5225 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5226 | } if (_result) { |
5227 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5228 | _resultobj = Py_BuildValue("s",_ptemp); | |
5229 | } else { | |
5230 | Py_INCREF(Py_None); | |
5231 | _resultobj = Py_None; | |
5232 | } | |
8ab979d7 RD |
5233 | return _resultobj; |
5234 | } | |
5235 | ||
5236 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
efc5f224 | 5237 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5238 | PyObject * _resultobj; |
5239 | wxPanel * _arg0; | |
1d99702e | 5240 | PyObject * _argo0 = 0; |
efc5f224 | 5241 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5242 | |
5243 | self = self; | |
efc5f224 | 5244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 5245 | return NULL; |
1d99702e RD |
5246 | if (_argo0) { |
5247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
5249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
5250 | return NULL; | |
5251 | } | |
5252 | } | |
cf694132 RD |
5253 | { |
5254 | wxPy_BEGIN_ALLOW_THREADS; | |
5255 | wxPanel_InitDialog(_arg0); | |
5256 | ||
5257 | wxPy_END_ALLOW_THREADS; | |
5258 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5259 | _resultobj = Py_None; |
5260 | return _resultobj; | |
5261 | } | |
5262 | ||
bb0054cd | 5263 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
efc5f224 | 5264 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5265 | PyObject * _resultobj; |
5266 | wxButton * _result; | |
5267 | wxPanel * _arg0; | |
1d99702e | 5268 | PyObject * _argo0 = 0; |
efc5f224 | 5269 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5270 | char _ptemp[128]; |
5271 | ||
5272 | self = self; | |
efc5f224 | 5273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
bb0054cd | 5274 | return NULL; |
1d99702e RD |
5275 | if (_argo0) { |
5276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
5279 | return NULL; | |
5280 | } | |
5281 | } | |
5282 | { | |
5283 | wxPy_BEGIN_ALLOW_THREADS; | |
5284 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
5285 | ||
5286 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5287 | } if (_result) { |
5288 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
5289 | _resultobj = Py_BuildValue("s",_ptemp); | |
5290 | } else { | |
5291 | Py_INCREF(Py_None); | |
5292 | _resultobj = Py_None; | |
5293 | } | |
bb0054cd RD |
5294 | return _resultobj; |
5295 | } | |
5296 | ||
5297 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
efc5f224 | 5298 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5299 | PyObject * _resultobj; |
5300 | wxPanel * _arg0; | |
5301 | wxButton * _arg1; | |
1d99702e RD |
5302 | PyObject * _argo0 = 0; |
5303 | PyObject * _argo1 = 0; | |
efc5f224 | 5304 | char *_kwnames[] = { "self","btn", NULL }; |
bb0054cd RD |
5305 | |
5306 | self = self; | |
efc5f224 | 5307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 5308 | return NULL; |
1d99702e RD |
5309 | if (_argo0) { |
5310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
5313 | return NULL; | |
5314 | } | |
5315 | } | |
1d99702e RD |
5316 | if (_argo1) { |
5317 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5318 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
bb0054cd RD |
5319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
5320 | return NULL; | |
5321 | } | |
5322 | } | |
5323 | { | |
5324 | wxPy_BEGIN_ALLOW_THREADS; | |
5325 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
5326 | ||
5327 | wxPy_END_ALLOW_THREADS; | |
5328 | } Py_INCREF(Py_None); | |
5329 | _resultobj = Py_None; | |
5330 | return _resultobj; | |
5331 | } | |
5332 | ||
8ab979d7 RD |
5333 | static void *SwigwxDialogTowxPanel(void *ptr) { |
5334 | wxDialog *src; | |
5335 | wxPanel *dest; | |
5336 | src = (wxDialog *) ptr; | |
5337 | dest = (wxPanel *) src; | |
5338 | return (void *) dest; | |
5339 | } | |
5340 | ||
5341 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
5342 | wxDialog *src; | |
5343 | wxWindow *dest; | |
5344 | src = (wxDialog *) ptr; | |
5345 | dest = (wxWindow *) src; | |
5346 | return (void *) dest; | |
5347 | } | |
5348 | ||
5349 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
5350 | wxDialog *src; | |
5351 | wxEvtHandler *dest; | |
5352 | src = (wxDialog *) ptr; | |
5353 | dest = (wxEvtHandler *) src; | |
5354 | return (void *) dest; | |
5355 | } | |
5356 | ||
5357 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 5358 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5359 | PyObject * _resultobj; |
5360 | wxDialog * _result; | |
5361 | wxWindow * _arg0; | |
5362 | wxWindowID _arg1; | |
5363 | wxString * _arg2; | |
e508a2b6 RD |
5364 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
5365 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5366 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; |
5367 | char * _arg6 = (char *) "dialogBox"; | |
5368 | PyObject * _argo0 = 0; | |
8ab979d7 | 5369 | PyObject * _obj2 = 0; |
2f90df85 RD |
5370 | wxPoint temp; |
5371 | PyObject * _obj3 = 0; | |
5372 | wxSize temp0; | |
5373 | PyObject * _obj4 = 0; | |
efc5f224 | 5374 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
8ab979d7 RD |
5375 | char _ptemp[128]; |
5376 | ||
5377 | self = self; | |
2f90df85 | 5378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 5379 | return NULL; |
1d99702e RD |
5380 | if (_argo0) { |
5381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); |
5384 | return NULL; | |
5385 | } | |
5386 | } | |
5387 | { | |
185d7c3e RD |
5388 | #if PYTHON_API_VERSION >= 1009 |
5389 | char* tmpPtr; int tmpSize; | |
5390 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
5391 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5392 | return NULL; | |
5393 | } | |
5394 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5395 | return NULL; | |
5396 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5397 | #else | |
8ab979d7 RD |
5398 | if (!PyString_Check(_obj2)) { |
5399 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5400 | return NULL; | |
5401 | } | |
185d7c3e RD |
5402 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5403 | #endif | |
8ab979d7 | 5404 | } |
2f90df85 RD |
5405 | if (_obj3) |
5406 | { | |
5407 | _arg3 = &temp; | |
5408 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 5409 | return NULL; |
2f90df85 RD |
5410 | } |
5411 | if (_obj4) | |
5412 | { | |
5413 | _arg4 = &temp0; | |
5414 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 5415 | return NULL; |
2f90df85 | 5416 | } |
cf694132 RD |
5417 | { |
5418 | wxPy_BEGIN_ALLOW_THREADS; | |
5419 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5420 | ||
5421 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5422 | } if (_result) { |
5423 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
5424 | _resultobj = Py_BuildValue("s",_ptemp); | |
5425 | } else { | |
5426 | Py_INCREF(Py_None); | |
5427 | _resultobj = Py_None; | |
5428 | } | |
8ab979d7 RD |
5429 | { |
5430 | if (_obj2) | |
5431 | delete _arg2; | |
5432 | } | |
5433 | return _resultobj; | |
5434 | } | |
5435 | ||
5436 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 5437 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5438 | PyObject * _resultobj; |
5439 | wxDialog * _arg0; | |
1d99702e RD |
5440 | int _arg1 = (int ) wxBOTH; |
5441 | PyObject * _argo0 = 0; | |
efc5f224 | 5442 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
5443 | |
5444 | self = self; | |
efc5f224 | 5445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5446 | return NULL; |
1d99702e RD |
5447 | if (_argo0) { |
5448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); |
5451 | return NULL; | |
5452 | } | |
5453 | } | |
cf694132 RD |
5454 | { |
5455 | wxPy_BEGIN_ALLOW_THREADS; | |
5456 | wxDialog_Centre(_arg0,_arg1); | |
5457 | ||
5458 | wxPy_END_ALLOW_THREADS; | |
5459 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5460 | _resultobj = Py_None; |
5461 | return _resultobj; | |
5462 | } | |
5463 | ||
5464 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
efc5f224 | 5465 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5466 | PyObject * _resultobj; |
5467 | wxDialog * _arg0; | |
5468 | int _arg1; | |
1d99702e | 5469 | PyObject * _argo0 = 0; |
efc5f224 | 5470 | char *_kwnames[] = { "self","retCode", NULL }; |
8ab979d7 RD |
5471 | |
5472 | self = self; | |
efc5f224 | 5473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5474 | return NULL; |
1d99702e RD |
5475 | if (_argo0) { |
5476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); |
5479 | return NULL; | |
5480 | } | |
5481 | } | |
cf694132 RD |
5482 | { |
5483 | wxPy_BEGIN_ALLOW_THREADS; | |
5484 | wxDialog_EndModal(_arg0,_arg1); | |
5485 | ||
5486 | wxPy_END_ALLOW_THREADS; | |
5487 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5488 | _resultobj = Py_None; |
5489 | return _resultobj; | |
5490 | } | |
5491 | ||
5492 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
efc5f224 | 5493 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5494 | PyObject * _resultobj; |
5495 | wxString * _result; | |
5496 | wxDialog * _arg0; | |
1d99702e | 5497 | PyObject * _argo0 = 0; |
efc5f224 | 5498 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5499 | |
5500 | self = self; | |
efc5f224 | 5501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 5502 | return NULL; |
1d99702e RD |
5503 | if (_argo0) { |
5504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); |
5507 | return NULL; | |
5508 | } | |
5509 | } | |
8ab979d7 | 5510 | { |
cf694132 RD |
5511 | wxPy_BEGIN_ALLOW_THREADS; |
5512 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
5513 | ||
5514 | wxPy_END_ALLOW_THREADS; | |
5515 | }{ | |
eec92d76 | 5516 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
5517 | } |
5518 | { | |
5519 | delete _result; | |
5520 | } | |
5521 | return _resultobj; | |
5522 | } | |
5523 | ||
5524 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
efc5f224 | 5525 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5526 | PyObject * _resultobj; |
5527 | wxDialog * _arg0; | |
5528 | bool _arg1; | |
1d99702e | 5529 | PyObject * _argo0 = 0; |
8ab979d7 | 5530 | int tempbool1; |
efc5f224 | 5531 | char *_kwnames[] = { "self","iconize", NULL }; |
8ab979d7 RD |
5532 | |
5533 | self = self; | |
efc5f224 | 5534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5535 | return NULL; |
1d99702e RD |
5536 | if (_argo0) { |
5537 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5538 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p."); |
5540 | return NULL; | |
5541 | } | |
5542 | } | |
5543 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5544 | { |
5545 | wxPy_BEGIN_ALLOW_THREADS; | |
5546 | wxDialog_Iconize(_arg0,_arg1); | |
5547 | ||
5548 | wxPy_END_ALLOW_THREADS; | |
5549 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5550 | _resultobj = Py_None; |
5551 | return _resultobj; | |
5552 | } | |
5553 | ||
5554 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
efc5f224 | 5555 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5556 | PyObject * _resultobj; |
5557 | bool _result; | |
5558 | wxDialog * _arg0; | |
1d99702e | 5559 | PyObject * _argo0 = 0; |
efc5f224 | 5560 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5561 | |
5562 | self = self; | |
efc5f224 | 5563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) |
8ab979d7 | 5564 | return NULL; |
1d99702e RD |
5565 | if (_argo0) { |
5566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); |
5569 | return NULL; | |
5570 | } | |
5571 | } | |
cf694132 RD |
5572 | { |
5573 | wxPy_BEGIN_ALLOW_THREADS; | |
5574 | _result = (bool )wxDialog_IsIconized(_arg0); | |
5575 | ||
5576 | wxPy_END_ALLOW_THREADS; | |
5577 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5578 | return _resultobj; |
5579 | } | |
5580 | ||
5581 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
efc5f224 | 5582 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5583 | PyObject * _resultobj; |
5584 | wxDialog * _arg0; | |
5585 | bool _arg1; | |
1d99702e | 5586 | PyObject * _argo0 = 0; |
8ab979d7 | 5587 | int tempbool1; |
efc5f224 | 5588 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
5589 | |
5590 | self = self; | |
efc5f224 | 5591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5592 | return NULL; |
1d99702e RD |
5593 | if (_argo0) { |
5594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); |
5597 | return NULL; | |
5598 | } | |
5599 | } | |
5600 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5601 | { |
5602 | wxPy_BEGIN_ALLOW_THREADS; | |
5603 | wxDialog_SetModal(_arg0,_arg1); | |
5604 | ||
5605 | wxPy_END_ALLOW_THREADS; | |
5606 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5607 | _resultobj = Py_None; |
5608 | return _resultobj; | |
5609 | } | |
5610 | ||
5611 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
efc5f224 | 5612 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5613 | PyObject * _resultobj; |
5614 | bool _result; | |
5615 | wxDialog * _arg0; | |
1d99702e | 5616 | PyObject * _argo0 = 0; |
efc5f224 | 5617 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5618 | |
5619 | self = self; | |
efc5f224 | 5620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) |
8ab979d7 | 5621 | return NULL; |
1d99702e RD |
5622 | if (_argo0) { |
5623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); |
5626 | return NULL; | |
5627 | } | |
5628 | } | |
cf694132 RD |
5629 | { |
5630 | wxPy_BEGIN_ALLOW_THREADS; | |
5631 | _result = (bool )wxDialog_IsModal(_arg0); | |
5632 | ||
5633 | wxPy_END_ALLOW_THREADS; | |
5634 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5635 | return _resultobj; |
5636 | } | |
5637 | ||
5638 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 5639 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5640 | PyObject * _resultobj; |
5641 | wxDialog * _arg0; | |
5642 | wxString * _arg1; | |
1d99702e | 5643 | PyObject * _argo0 = 0; |
8ab979d7 | 5644 | PyObject * _obj1 = 0; |
efc5f224 | 5645 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
5646 | |
5647 | self = self; | |
efc5f224 | 5648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5649 | return NULL; |
1d99702e RD |
5650 | if (_argo0) { |
5651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); |
5654 | return NULL; | |
5655 | } | |
5656 | } | |
5657 | { | |
185d7c3e RD |
5658 | #if PYTHON_API_VERSION >= 1009 |
5659 | char* tmpPtr; int tmpSize; | |
5660 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5661 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5662 | return NULL; | |
5663 | } | |
5664 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5665 | return NULL; | |
5666 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5667 | #else | |
8ab979d7 RD |
5668 | if (!PyString_Check(_obj1)) { |
5669 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5670 | return NULL; | |
5671 | } | |
185d7c3e RD |
5672 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5673 | #endif | |
8ab979d7 | 5674 | } |
cf694132 RD |
5675 | { |
5676 | wxPy_BEGIN_ALLOW_THREADS; | |
5677 | wxDialog_SetTitle(_arg0,*_arg1); | |
5678 | ||
5679 | wxPy_END_ALLOW_THREADS; | |
5680 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5681 | _resultobj = Py_None; |
5682 | { | |
5683 | if (_obj1) | |
5684 | delete _arg1; | |
5685 | } | |
5686 | return _resultobj; | |
5687 | } | |
5688 | ||
5689 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 5690 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5691 | PyObject * _resultobj; |
5692 | bool _result; | |
5693 | wxDialog * _arg0; | |
5694 | bool _arg1; | |
1d99702e | 5695 | PyObject * _argo0 = 0; |
8ab979d7 | 5696 | int tempbool1; |
efc5f224 | 5697 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
5698 | |
5699 | self = self; | |
efc5f224 | 5700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5701 | return NULL; |
1d99702e RD |
5702 | if (_argo0) { |
5703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); |
5706 | return NULL; | |
5707 | } | |
5708 | } | |
5709 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5710 | { |
5711 | wxPy_BEGIN_ALLOW_THREADS; | |
5712 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
5713 | ||
5714 | wxPy_END_ALLOW_THREADS; | |
5715 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5716 | return _resultobj; |
5717 | } | |
5718 | ||
5719 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 5720 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5721 | PyObject * _resultobj; |
5722 | int _result; | |
5723 | wxDialog * _arg0; | |
1d99702e | 5724 | PyObject * _argo0 = 0; |
efc5f224 | 5725 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5726 | |
5727 | self = self; | |
efc5f224 | 5728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 5729 | return NULL; |
1d99702e RD |
5730 | if (_argo0) { |
5731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); |
5734 | return NULL; | |
5735 | } | |
5736 | } | |
cf694132 RD |
5737 | { |
5738 | wxPy_BEGIN_ALLOW_THREADS; | |
5739 | _result = (int )wxDialog_ShowModal(_arg0); | |
5740 | ||
5741 | wxPy_END_ALLOW_THREADS; | |
5742 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5743 | return _resultobj; |
5744 | } | |
5745 | ||
bb0054cd | 5746 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) |
efc5f224 | 5747 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5748 | PyObject * _resultobj; |
5749 | int _result; | |
5750 | wxDialog * _arg0; | |
1d99702e | 5751 | PyObject * _argo0 = 0; |
efc5f224 | 5752 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5753 | |
5754 | self = self; | |
efc5f224 | 5755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) |
bb0054cd | 5756 | return NULL; |
1d99702e RD |
5757 | if (_argo0) { |
5758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); |
5761 | return NULL; | |
5762 | } | |
5763 | } | |
5764 | { | |
5765 | wxPy_BEGIN_ALLOW_THREADS; | |
5766 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
5767 | ||
5768 | wxPy_END_ALLOW_THREADS; | |
5769 | } _resultobj = Py_BuildValue("i",_result); | |
5770 | return _resultobj; | |
5771 | } | |
5772 | ||
5773 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
efc5f224 | 5774 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5775 | PyObject * _resultobj; |
5776 | wxDialog * _arg0; | |
5777 | int _arg1; | |
1d99702e | 5778 | PyObject * _argo0 = 0; |
efc5f224 | 5779 | char *_kwnames[] = { "self","retCode", NULL }; |
bb0054cd RD |
5780 | |
5781 | self = self; | |
efc5f224 | 5782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 5783 | return NULL; |
1d99702e RD |
5784 | if (_argo0) { |
5785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); |
5788 | return NULL; | |
5789 | } | |
5790 | } | |
5791 | { | |
5792 | wxPy_BEGIN_ALLOW_THREADS; | |
5793 | wxDialog_SetReturnCode(_arg0,_arg1); | |
5794 | ||
5795 | wxPy_END_ALLOW_THREADS; | |
5796 | } Py_INCREF(Py_None); | |
5797 | _resultobj = Py_None; | |
5798 | return _resultobj; | |
5799 | } | |
5800 | ||
5801 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { | |
5802 | wxScrolledWindow *src; | |
5803 | wxPanel *dest; | |
5804 | src = (wxScrolledWindow *) ptr; | |
5805 | dest = (wxPanel *) src; | |
5806 | return (void *) dest; | |
5807 | } | |
5808 | ||
8ab979d7 RD |
5809 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
5810 | wxScrolledWindow *src; | |
5811 | wxWindow *dest; | |
5812 | src = (wxScrolledWindow *) ptr; | |
5813 | dest = (wxWindow *) src; | |
5814 | return (void *) dest; | |
5815 | } | |
5816 | ||
5817 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
5818 | wxScrolledWindow *src; | |
5819 | wxEvtHandler *dest; | |
5820 | src = (wxScrolledWindow *) ptr; | |
5821 | dest = (wxEvtHandler *) src; | |
5822 | return (void *) dest; | |
5823 | } | |
5824 | ||
5825 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 5826 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5827 | PyObject * _resultobj; |
5828 | wxScrolledWindow * _result; | |
5829 | wxWindow * _arg0; | |
1d99702e | 5830 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
5831 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5832 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5833 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
5834 | char * _arg5 = (char *) "scrolledWindow"; | |
5835 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5836 | wxPoint temp; |
5837 | PyObject * _obj2 = 0; | |
5838 | wxSize temp0; | |
5839 | PyObject * _obj3 = 0; | |
efc5f224 | 5840 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5841 | char _ptemp[128]; |
5842 | ||
5843 | self = self; | |
2f90df85 | 5844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5845 | return NULL; |
1d99702e RD |
5846 | if (_argo0) { |
5847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
5850 | return NULL; | |
5851 | } | |
5852 | } | |
2f90df85 RD |
5853 | if (_obj2) |
5854 | { | |
5855 | _arg2 = &temp; | |
5856 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5857 | return NULL; |
2f90df85 RD |
5858 | } |
5859 | if (_obj3) | |
5860 | { | |
5861 | _arg3 = &temp0; | |
5862 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5863 | return NULL; |
2f90df85 | 5864 | } |
cf694132 RD |
5865 | { |
5866 | wxPy_BEGIN_ALLOW_THREADS; | |
5867 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5868 | ||
5869 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5870 | } if (_result) { |
5871 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
5872 | _resultobj = Py_BuildValue("s",_ptemp); | |
5873 | } else { | |
5874 | Py_INCREF(Py_None); | |
5875 | _resultobj = Py_None; | |
5876 | } | |
8ab979d7 RD |
5877 | return _resultobj; |
5878 | } | |
5879 | ||
5880 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
efc5f224 | 5881 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5882 | PyObject * _resultobj; |
5883 | wxScrolledWindow * _arg0; | |
5884 | bool _arg1; | |
5885 | bool _arg2; | |
1d99702e | 5886 | PyObject * _argo0 = 0; |
8ab979d7 RD |
5887 | int tempbool1; |
5888 | int tempbool2; | |
efc5f224 | 5889 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
5890 | |
5891 | self = self; | |
efc5f224 | 5892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 5893 | return NULL; |
1d99702e RD |
5894 | if (_argo0) { |
5895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
5898 | return NULL; | |
5899 | } | |
5900 | } | |
5901 | _arg1 = (bool ) tempbool1; | |
5902 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
5903 | { |
5904 | wxPy_BEGIN_ALLOW_THREADS; | |
5905 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
5906 | ||
5907 | wxPy_END_ALLOW_THREADS; | |
5908 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5909 | _resultobj = Py_None; |
5910 | return _resultobj; | |
5911 | } | |
5912 | ||
b7e72427 RD |
5913 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
5914 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5915 | PyObject * _resultobj; | |
5916 | int _result; | |
5917 | wxScrolledWindow * _arg0; | |
5918 | int _arg1; | |
5919 | PyObject * _argo0 = 0; | |
5920 | char *_kwnames[] = { "self","orient", NULL }; | |
5921 | ||
5922 | self = self; | |
5923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
5924 | return NULL; | |
5925 | if (_argo0) { | |
5926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
5929 | return NULL; | |
5930 | } | |
5931 | } | |
5932 | { | |
5933 | wxPy_BEGIN_ALLOW_THREADS; | |
5934 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
5935 | ||
5936 | wxPy_END_ALLOW_THREADS; | |
5937 | } _resultobj = Py_BuildValue("i",_result); | |
5938 | return _resultobj; | |
5939 | } | |
5940 | ||
8ab979d7 | 5941 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 5942 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5943 | PyObject * _resultobj; |
5944 | wxScrolledWindow * _arg0; | |
5945 | int * _arg1; | |
5946 | int temp; | |
5947 | int * _arg2; | |
5948 | int temp0; | |
1d99702e | 5949 | PyObject * _argo0 = 0; |
efc5f224 | 5950 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5951 | |
5952 | self = self; | |
5953 | { | |
5954 | _arg1 = &temp; | |
5955 | } | |
5956 | { | |
5957 | _arg2 = &temp0; | |
5958 | } | |
efc5f224 | 5959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 5960 | return NULL; |
1d99702e RD |
5961 | if (_argo0) { |
5962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
5965 | return NULL; | |
5966 | } | |
5967 | } | |
cf694132 RD |
5968 | { |
5969 | wxPy_BEGIN_ALLOW_THREADS; | |
5970 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
5971 | ||
5972 | wxPy_END_ALLOW_THREADS; | |
5973 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5974 | _resultobj = Py_None; |
5975 | { | |
5976 | PyObject *o; | |
5977 | o = PyInt_FromLong((long) (*_arg1)); | |
5978 | _resultobj = t_output_helper(_resultobj, o); | |
5979 | } | |
5980 | { | |
5981 | PyObject *o; | |
5982 | o = PyInt_FromLong((long) (*_arg2)); | |
5983 | _resultobj = t_output_helper(_resultobj, o); | |
5984 | } | |
5985 | return _resultobj; | |
5986 | } | |
5987 | ||
b7e72427 RD |
5988 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
5989 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5990 | PyObject * _resultobj; | |
5991 | wxWindow * _result; | |
5992 | wxScrolledWindow * _arg0; | |
5993 | PyObject * _argo0 = 0; | |
5994 | char *_kwnames[] = { "self", NULL }; | |
5995 | char _ptemp[128]; | |
5996 | ||
5997 | self = self; | |
5998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
5999 | return NULL; | |
6000 | if (_argo0) { | |
6001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6004 | return NULL; | |
6005 | } | |
6006 | } | |
6007 | { | |
6008 | wxPy_BEGIN_ALLOW_THREADS; | |
6009 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6010 | ||
6011 | wxPy_END_ALLOW_THREADS; | |
6012 | } if (_result) { | |
6013 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
6014 | _resultobj = Py_BuildValue("s",_ptemp); | |
6015 | } else { | |
6016 | Py_INCREF(Py_None); | |
6017 | _resultobj = Py_None; | |
6018 | } | |
6019 | return _resultobj; | |
6020 | } | |
6021 | ||
8ab979d7 | 6022 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6023 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6024 | PyObject * _resultobj; |
6025 | wxScrolledWindow * _arg0; | |
6026 | int * _arg1; | |
6027 | int temp; | |
6028 | int * _arg2; | |
6029 | int temp0; | |
1d99702e | 6030 | PyObject * _argo0 = 0; |
efc5f224 | 6031 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6032 | |
6033 | self = self; | |
6034 | { | |
6035 | _arg1 = &temp; | |
6036 | } | |
6037 | { | |
6038 | _arg2 = &temp0; | |
6039 | } | |
efc5f224 | 6040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6041 | return NULL; |
1d99702e RD |
6042 | if (_argo0) { |
6043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6046 | return NULL; | |
6047 | } | |
6048 | } | |
cf694132 RD |
6049 | { |
6050 | wxPy_BEGIN_ALLOW_THREADS; | |
6051 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6052 | ||
6053 | wxPy_END_ALLOW_THREADS; | |
6054 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6055 | _resultobj = Py_None; |
6056 | { | |
6057 | PyObject *o; | |
6058 | o = PyInt_FromLong((long) (*_arg1)); | |
6059 | _resultobj = t_output_helper(_resultobj, o); | |
6060 | } | |
6061 | { | |
6062 | PyObject *o; | |
6063 | o = PyInt_FromLong((long) (*_arg2)); | |
6064 | _resultobj = t_output_helper(_resultobj, o); | |
6065 | } | |
6066 | return _resultobj; | |
6067 | } | |
6068 | ||
6069 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6070 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6071 | PyObject * _resultobj; |
6072 | bool _result; | |
6073 | wxScrolledWindow * _arg0; | |
1d99702e | 6074 | PyObject * _argo0 = 0; |
efc5f224 | 6075 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6076 | |
6077 | self = self; | |
efc5f224 | 6078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6079 | return NULL; |
1d99702e RD |
6080 | if (_argo0) { |
6081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6084 | return NULL; | |
6085 | } | |
6086 | } | |
cf694132 RD |
6087 | { |
6088 | wxPy_BEGIN_ALLOW_THREADS; | |
6089 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6090 | ||
6091 | wxPy_END_ALLOW_THREADS; | |
6092 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6093 | return _resultobj; |
6094 | } | |
6095 | ||
6096 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6097 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6098 | PyObject * _resultobj; |
6099 | wxScrolledWindow * _arg0; | |
6100 | wxDC * _arg1; | |
1d99702e RD |
6101 | PyObject * _argo0 = 0; |
6102 | PyObject * _argo1 = 0; | |
efc5f224 | 6103 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6104 | |
6105 | self = self; | |
efc5f224 | 6106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6107 | return NULL; |
1d99702e RD |
6108 | if (_argo0) { |
6109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6112 | return NULL; | |
6113 | } | |
6114 | } | |
1d99702e RD |
6115 | if (_argo1) { |
6116 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6117 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6119 | return NULL; | |
6120 | } | |
6121 | } | |
cf694132 RD |
6122 | { |
6123 | wxPy_BEGIN_ALLOW_THREADS; | |
6124 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
6125 | ||
6126 | wxPy_END_ALLOW_THREADS; | |
6127 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6128 | _resultobj = Py_None; |
6129 | return _resultobj; | |
6130 | } | |
6131 | ||
6132 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6133 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6134 | PyObject * _resultobj; |
6135 | wxScrolledWindow * _arg0; | |
6136 | int _arg1; | |
6137 | int _arg2; | |
1d99702e | 6138 | PyObject * _argo0 = 0; |
efc5f224 | 6139 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6140 | |
6141 | self = self; | |
efc5f224 | 6142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6143 | return NULL; |
1d99702e RD |
6144 | if (_argo0) { |
6145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6148 | return NULL; | |
6149 | } | |
6150 | } | |
cf694132 RD |
6151 | { |
6152 | wxPy_BEGIN_ALLOW_THREADS; | |
6153 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
6154 | ||
6155 | wxPy_END_ALLOW_THREADS; | |
6156 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6157 | _resultobj = Py_None; |
6158 | return _resultobj; | |
6159 | } | |
6160 | ||
f6bcfd97 | 6161 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6162 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6163 | PyObject * _resultobj; |
6164 | wxScrolledWindow * _arg0; | |
6165 | int _arg1; | |
6166 | int _arg2; | |
6167 | int _arg3; | |
6168 | int _arg4; | |
1d99702e RD |
6169 | int _arg5 = (int ) 0; |
6170 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6171 | int _arg7 = (int ) FALSE; |
1d99702e | 6172 | PyObject * _argo0 = 0; |
f6bcfd97 | 6173 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6174 | |
6175 | self = self; | |
f6bcfd97 | 6176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6177 | return NULL; |
1d99702e RD |
6178 | if (_argo0) { |
6179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6182 | return NULL; | |
6183 | } | |
6184 | } | |
cf694132 RD |
6185 | { |
6186 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6187 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 RD |
6188 | |
6189 | wxPy_END_ALLOW_THREADS; | |
6190 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6191 | _resultobj = Py_None; |
6192 | return _resultobj; | |
6193 | } | |
6194 | ||
b7e72427 RD |
6195 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6196 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6197 | PyObject * _resultobj; | |
6198 | wxScrolledWindow * _arg0; | |
6199 | int _arg1; | |
6200 | int _arg2; | |
6201 | PyObject * _argo0 = 0; | |
6202 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6203 | ||
6204 | self = self; | |
6205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6206 | return NULL; | |
6207 | if (_argo0) { | |
6208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6211 | return NULL; | |
6212 | } | |
6213 | } | |
6214 | { | |
6215 | wxPy_BEGIN_ALLOW_THREADS; | |
6216 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6217 | ||
6218 | wxPy_END_ALLOW_THREADS; | |
6219 | } Py_INCREF(Py_None); | |
6220 | _resultobj = Py_None; | |
6221 | return _resultobj; | |
6222 | } | |
6223 | ||
eb715945 RD |
6224 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6225 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6226 | PyObject * _resultobj; | |
6227 | wxScrolledWindow * _arg0; | |
6228 | wxWindow * _arg1; | |
6229 | PyObject * _argo0 = 0; | |
6230 | PyObject * _argo1 = 0; | |
6231 | char *_kwnames[] = { "self","window", NULL }; | |
6232 | ||
6233 | self = self; | |
6234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6235 | return NULL; | |
6236 | if (_argo0) { | |
6237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6240 | return NULL; | |
6241 | } | |
6242 | } | |
6243 | if (_argo1) { | |
6244 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6245 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6247 | return NULL; | |
6248 | } | |
6249 | } | |
6250 | { | |
6251 | wxPy_BEGIN_ALLOW_THREADS; | |
6252 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6253 | ||
6254 | wxPy_END_ALLOW_THREADS; | |
6255 | } Py_INCREF(Py_None); | |
6256 | _resultobj = Py_None; | |
6257 | return _resultobj; | |
6258 | } | |
6259 | ||
4c9993c3 RD |
6260 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6261 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6262 | PyObject * _resultobj; | |
6263 | wxScrolledWindow * _arg0; | |
6264 | int * _arg1; | |
6265 | int temp; | |
6266 | int * _arg2; | |
6267 | int temp0; | |
6268 | PyObject * _argo0 = 0; | |
6269 | char *_kwnames[] = { "self", NULL }; | |
6270 | ||
6271 | self = self; | |
6272 | { | |
6273 | _arg1 = &temp; | |
6274 | } | |
6275 | { | |
6276 | _arg2 = &temp0; | |
6277 | } | |
6278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6279 | return NULL; | |
6280 | if (_argo0) { | |
6281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6284 | return NULL; | |
6285 | } | |
6286 | } | |
6287 | { | |
6288 | wxPy_BEGIN_ALLOW_THREADS; | |
6289 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6290 | ||
6291 | wxPy_END_ALLOW_THREADS; | |
6292 | } Py_INCREF(Py_None); | |
6293 | _resultobj = Py_None; | |
6294 | { | |
6295 | PyObject *o; | |
6296 | o = PyInt_FromLong((long) (*_arg1)); | |
6297 | _resultobj = t_output_helper(_resultobj, o); | |
6298 | } | |
6299 | { | |
6300 | PyObject *o; | |
6301 | o = PyInt_FromLong((long) (*_arg2)); | |
6302 | _resultobj = t_output_helper(_resultobj, o); | |
6303 | } | |
6304 | return _resultobj; | |
6305 | } | |
6306 | ||
8ab979d7 | 6307 | #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1)) |
efc5f224 | 6308 | static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6309 | PyObject * _resultobj; |
6310 | wxScrolledWindow * _arg0; | |
6311 | int * _arg1; | |
6312 | int temp; | |
6313 | int * _arg2; | |
6314 | int temp0; | |
1d99702e | 6315 | PyObject * _argo0 = 0; |
efc5f224 | 6316 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6317 | |
6318 | self = self; | |
6319 | { | |
6320 | _arg1 = &temp; | |
6321 | } | |
6322 | { | |
6323 | _arg2 = &temp0; | |
6324 | } | |
efc5f224 | 6325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0)) |
8ab979d7 | 6326 | return NULL; |
1d99702e RD |
6327 | if (_argo0) { |
6328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p."); |
6331 | return NULL; | |
6332 | } | |
6333 | } | |
cf694132 RD |
6334 | { |
6335 | wxPy_BEGIN_ALLOW_THREADS; | |
6336 | wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2); | |
6337 | ||
6338 | wxPy_END_ALLOW_THREADS; | |
6339 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6340 | _resultobj = Py_None; |
6341 | { | |
6342 | PyObject *o; | |
6343 | o = PyInt_FromLong((long) (*_arg1)); | |
6344 | _resultobj = t_output_helper(_resultobj, o); | |
6345 | } | |
6346 | { | |
6347 | PyObject *o; | |
6348 | o = PyInt_FromLong((long) (*_arg2)); | |
6349 | _resultobj = t_output_helper(_resultobj, o); | |
6350 | } | |
6351 | return _resultobj; | |
6352 | } | |
6353 | ||
9d8bd15f RD |
6354 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6355 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6356 | PyObject * _resultobj; | |
6357 | wxScrolledWindow * _arg0; | |
6358 | int _arg1; | |
6359 | int _arg2; | |
6360 | int * _arg3; | |
6361 | int temp; | |
6362 | int * _arg4; | |
6363 | int temp0; | |
6364 | PyObject * _argo0 = 0; | |
6365 | char *_kwnames[] = { "self","x","y", NULL }; | |
6366 | ||
6367 | self = self; | |
6368 | { | |
6369 | _arg3 = &temp; | |
6370 | } | |
6371 | { | |
6372 | _arg4 = &temp0; | |
6373 | } | |
6374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6375 | return NULL; | |
6376 | if (_argo0) { | |
6377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6380 | return NULL; | |
6381 | } | |
6382 | } | |
6383 | { | |
6384 | wxPy_BEGIN_ALLOW_THREADS; | |
6385 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6386 | ||
6387 | wxPy_END_ALLOW_THREADS; | |
6388 | } Py_INCREF(Py_None); | |
6389 | _resultobj = Py_None; | |
6390 | { | |
6391 | PyObject *o; | |
6392 | o = PyInt_FromLong((long) (*_arg3)); | |
6393 | _resultobj = t_output_helper(_resultobj, o); | |
6394 | } | |
6395 | { | |
6396 | PyObject *o; | |
6397 | o = PyInt_FromLong((long) (*_arg4)); | |
6398 | _resultobj = t_output_helper(_resultobj, o); | |
6399 | } | |
6400 | return _resultobj; | |
6401 | } | |
6402 | ||
6403 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6404 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6405 | PyObject * _resultobj; | |
6406 | wxScrolledWindow * _arg0; | |
6407 | int _arg1; | |
6408 | int _arg2; | |
6409 | int * _arg3; | |
6410 | int temp; | |
6411 | int * _arg4; | |
6412 | int temp0; | |
6413 | PyObject * _argo0 = 0; | |
6414 | char *_kwnames[] = { "self","x","y", NULL }; | |
6415 | ||
6416 | self = self; | |
6417 | { | |
6418 | _arg3 = &temp; | |
6419 | } | |
6420 | { | |
6421 | _arg4 = &temp0; | |
6422 | } | |
6423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6424 | return NULL; | |
6425 | if (_argo0) { | |
6426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6429 | return NULL; | |
6430 | } | |
6431 | } | |
6432 | { | |
6433 | wxPy_BEGIN_ALLOW_THREADS; | |
6434 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6435 | ||
6436 | wxPy_END_ALLOW_THREADS; | |
6437 | } Py_INCREF(Py_None); | |
6438 | _resultobj = Py_None; | |
6439 | { | |
6440 | PyObject *o; | |
6441 | o = PyInt_FromLong((long) (*_arg3)); | |
6442 | _resultobj = t_output_helper(_resultobj, o); | |
6443 | } | |
6444 | { | |
6445 | PyObject *o; | |
6446 | o = PyInt_FromLong((long) (*_arg4)); | |
6447 | _resultobj = t_output_helper(_resultobj, o); | |
6448 | } | |
6449 | return _resultobj; | |
6450 | } | |
6451 | ||
8ab979d7 RD |
6452 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
6453 | wxMenu *src; | |
6454 | wxEvtHandler *dest; | |
6455 | src = (wxMenu *) ptr; | |
6456 | dest = (wxEvtHandler *) src; | |
6457 | return (void *) dest; | |
6458 | } | |
6459 | ||
8bf5d46e | 6460 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 6461 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6462 | PyObject * _resultobj; |
6463 | wxMenu * _result; | |
1d99702e RD |
6464 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
6465 | long _arg1 = (long ) 0; | |
8ab979d7 | 6466 | PyObject * _obj0 = 0; |
efc5f224 | 6467 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
6468 | char _ptemp[128]; |
6469 | ||
6470 | self = self; | |
efc5f224 | 6471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
6472 | return NULL; |
6473 | if (_obj0) | |
6474 | { | |
185d7c3e RD |
6475 | #if PYTHON_API_VERSION >= 1009 |
6476 | char* tmpPtr; int tmpSize; | |
6477 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
6478 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6479 | return NULL; | |
6480 | } | |
6481 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6482 | return NULL; | |
6483 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6484 | #else | |
8ab979d7 RD |
6485 | if (!PyString_Check(_obj0)) { |
6486 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6487 | return NULL; | |
6488 | } | |
185d7c3e RD |
6489 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
6490 | #endif | |
8ab979d7 | 6491 | } |
cf694132 RD |
6492 | { |
6493 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 6494 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 RD |
6495 | |
6496 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6497 | } if (_result) { |
6498 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6499 | _resultobj = Py_BuildValue("s",_ptemp); | |
6500 | } else { | |
6501 | Py_INCREF(Py_None); | |
6502 | _resultobj = Py_None; | |
6503 | } | |
8ab979d7 RD |
6504 | { |
6505 | if (_obj0) | |
6506 | delete _arg0; | |
6507 | } | |
6508 | return _resultobj; | |
6509 | } | |
6510 | ||
6511 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6512 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6513 | PyObject * _resultobj; |
6514 | wxMenu * _arg0; | |
6515 | int _arg1; | |
6516 | wxString * _arg2; | |
1d99702e RD |
6517 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
6518 | int _arg4 = (int ) FALSE; | |
6519 | PyObject * _argo0 = 0; | |
8ab979d7 RD |
6520 | PyObject * _obj2 = 0; |
6521 | PyObject * _obj3 = 0; | |
efc5f224 | 6522 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
6523 | |
6524 | self = self; | |
efc5f224 | 6525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 6526 | return NULL; |
1d99702e RD |
6527 | if (_argo0) { |
6528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
6531 | return NULL; | |
6532 | } | |
6533 | } | |
6534 | { | |
185d7c3e RD |
6535 | #if PYTHON_API_VERSION >= 1009 |
6536 | char* tmpPtr; int tmpSize; | |
6537 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6538 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6539 | return NULL; | |
6540 | } | |
6541 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6542 | return NULL; | |
6543 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6544 | #else | |
8ab979d7 RD |
6545 | if (!PyString_Check(_obj2)) { |
6546 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6547 | return NULL; | |
6548 | } | |
185d7c3e RD |
6549 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6550 | #endif | |
8ab979d7 RD |
6551 | } |
6552 | if (_obj3) | |
6553 | { | |
185d7c3e RD |
6554 | #if PYTHON_API_VERSION >= 1009 |
6555 | char* tmpPtr; int tmpSize; | |
6556 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
6557 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6558 | return NULL; | |
6559 | } | |
6560 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6561 | return NULL; | |
6562 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6563 | #else | |
8ab979d7 RD |
6564 | if (!PyString_Check(_obj3)) { |
6565 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6566 | return NULL; | |
6567 | } | |
185d7c3e RD |
6568 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6569 | #endif | |
8ab979d7 | 6570 | } |
cf694132 RD |
6571 | { |
6572 | wxPy_BEGIN_ALLOW_THREADS; | |
6573 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
6574 | ||
6575 | wxPy_END_ALLOW_THREADS; | |
6576 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6577 | _resultobj = Py_None; |
6578 | { | |
6579 | if (_obj2) | |
6580 | delete _arg2; | |
6581 | } | |
6582 | { | |
6583 | if (_obj3) | |
6584 | delete _arg3; | |
6585 | } | |
6586 | return _resultobj; | |
6587 | } | |
6588 | ||
6589 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6590 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6591 | PyObject * _resultobj; |
6592 | wxMenu * _arg0; | |
6593 | int _arg1; | |
6594 | wxString * _arg2; | |
6595 | wxMenu * _arg3; | |
1d99702e RD |
6596 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
6597 | PyObject * _argo0 = 0; | |
8ab979d7 | 6598 | PyObject * _obj2 = 0; |
1d99702e | 6599 | PyObject * _argo3 = 0; |
8ab979d7 | 6600 | PyObject * _obj4 = 0; |
efc5f224 | 6601 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
6602 | |
6603 | self = self; | |
efc5f224 | 6604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
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_AppendMenu. Expected _wxMenu_p."); |
6610 | return NULL; | |
6611 | } | |
6612 | } | |
6613 | { | |
185d7c3e RD |
6614 | #if PYTHON_API_VERSION >= 1009 |
6615 | char* tmpPtr; int tmpSize; | |
6616 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6617 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6618 | return NULL; | |
6619 | } | |
6620 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6621 | return NULL; | |
6622 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6623 | #else | |
8ab979d7 RD |
6624 | if (!PyString_Check(_obj2)) { |
6625 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6626 | return NULL; | |
6627 | } | |
185d7c3e RD |
6628 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6629 | #endif | |
8ab979d7 | 6630 | } |
1d99702e RD |
6631 | if (_argo3) { |
6632 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6633 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
6634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6635 | return NULL; | |
6636 | } | |
6637 | } | |
6638 | if (_obj4) | |
6639 | { | |
185d7c3e RD |
6640 | #if PYTHON_API_VERSION >= 1009 |
6641 | char* tmpPtr; int tmpSize; | |
6642 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
6643 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6644 | return NULL; | |
6645 | } | |
6646 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
6647 | return NULL; | |
6648 | _arg4 = new wxString(tmpPtr, tmpSize); | |
6649 | #else | |
8ab979d7 RD |
6650 | if (!PyString_Check(_obj4)) { |
6651 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6652 | return NULL; | |
6653 | } | |
185d7c3e RD |
6654 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
6655 | #endif | |
8ab979d7 | 6656 | } |
cf694132 RD |
6657 | { |
6658 | wxPy_BEGIN_ALLOW_THREADS; | |
6659 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
6660 | ||
6661 | wxPy_END_ALLOW_THREADS; | |
6662 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6663 | _resultobj = Py_None; |
6664 | { | |
6665 | if (_obj2) | |
6666 | delete _arg2; | |
6667 | } | |
6668 | { | |
6669 | if (_obj4) | |
6670 | delete _arg4; | |
6671 | } | |
6672 | return _resultobj; | |
6673 | } | |
6674 | ||
af309447 | 6675 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 6676 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
6677 | PyObject * _resultobj; |
6678 | wxMenu * _arg0; | |
6679 | wxMenuItem * _arg1; | |
1d99702e RD |
6680 | PyObject * _argo0 = 0; |
6681 | PyObject * _argo1 = 0; | |
efc5f224 | 6682 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
6683 | |
6684 | self = self; | |
efc5f224 | 6685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 6686 | return NULL; |
1d99702e RD |
6687 | if (_argo0) { |
6688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
6690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
6691 | return NULL; | |
6692 | } | |
6693 | } | |
1d99702e RD |
6694 | if (_argo1) { |
6695 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6696 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
6697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
6698 | return NULL; | |
6699 | } | |
6700 | } | |
cf694132 RD |
6701 | { |
6702 | wxPy_BEGIN_ALLOW_THREADS; | |
6703 | wxMenu_AppendItem(_arg0,_arg1); | |
6704 | ||
6705 | wxPy_END_ALLOW_THREADS; | |
6706 | } Py_INCREF(Py_None); | |
af309447 RD |
6707 | _resultobj = Py_None; |
6708 | return _resultobj; | |
6709 | } | |
6710 | ||
8ab979d7 | 6711 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 6712 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6713 | PyObject * _resultobj; |
6714 | wxMenu * _arg0; | |
1d99702e | 6715 | PyObject * _argo0 = 0; |
efc5f224 | 6716 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6717 | |
6718 | self = self; | |
efc5f224 | 6719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 6720 | return NULL; |
1d99702e RD |
6721 | if (_argo0) { |
6722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
6725 | return NULL; | |
6726 | } | |
6727 | } | |
cf694132 RD |
6728 | { |
6729 | wxPy_BEGIN_ALLOW_THREADS; | |
6730 | wxMenu_AppendSeparator(_arg0); | |
6731 | ||
6732 | wxPy_END_ALLOW_THREADS; | |
6733 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6734 | _resultobj = Py_None; |
6735 | return _resultobj; | |
6736 | } | |
6737 | ||
6738 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 6739 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6740 | PyObject * _resultobj; |
6741 | wxMenu * _arg0; | |
1d99702e | 6742 | PyObject * _argo0 = 0; |
efc5f224 | 6743 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6744 | |
6745 | self = self; | |
efc5f224 | 6746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 6747 | return NULL; |
1d99702e RD |
6748 | if (_argo0) { |
6749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
6752 | return NULL; | |
6753 | } | |
6754 | } | |
cf694132 RD |
6755 | { |
6756 | wxPy_BEGIN_ALLOW_THREADS; | |
6757 | wxMenu_Break(_arg0); | |
6758 | ||
6759 | wxPy_END_ALLOW_THREADS; | |
6760 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6761 | _resultobj = Py_None; |
6762 | return _resultobj; | |
6763 | } | |
6764 | ||
6765 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 6766 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6767 | PyObject * _resultobj; |
6768 | wxMenu * _arg0; | |
6769 | int _arg1; | |
6770 | bool _arg2; | |
1d99702e | 6771 | PyObject * _argo0 = 0; |
8ab979d7 | 6772 | int tempbool2; |
efc5f224 | 6773 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
6774 | |
6775 | self = self; | |
efc5f224 | 6776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 6777 | return NULL; |
1d99702e RD |
6778 | if (_argo0) { |
6779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
6782 | return NULL; | |
6783 | } | |
6784 | } | |
6785 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6786 | { |
6787 | wxPy_BEGIN_ALLOW_THREADS; | |
6788 | wxMenu_Check(_arg0,_arg1,_arg2); | |
6789 | ||
6790 | wxPy_END_ALLOW_THREADS; | |
6791 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6792 | _resultobj = Py_None; |
6793 | return _resultobj; | |
6794 | } | |
6795 | ||
b1462dfa RD |
6796 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
6797 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6798 | PyObject * _resultobj; | |
6799 | bool _result; | |
6800 | wxMenu * _arg0; | |
6801 | int _arg1; | |
6802 | PyObject * _argo0 = 0; | |
6803 | char *_kwnames[] = { "self","id", NULL }; | |
6804 | ||
6805 | self = self; | |
6806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
6807 | return NULL; | |
6808 | if (_argo0) { | |
6809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
6812 | return NULL; | |
6813 | } | |
6814 | } | |
6815 | { | |
6816 | wxPy_BEGIN_ALLOW_THREADS; | |
6817 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
6818 | ||
6819 | wxPy_END_ALLOW_THREADS; | |
6820 | } _resultobj = Py_BuildValue("i",_result); | |
6821 | return _resultobj; | |
6822 | } | |
6823 | ||
8ab979d7 | 6824 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 6825 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6826 | PyObject * _resultobj; |
6827 | wxMenu * _arg0; | |
6828 | int _arg1; | |
6829 | bool _arg2; | |
1d99702e | 6830 | PyObject * _argo0 = 0; |
8ab979d7 | 6831 | int tempbool2; |
efc5f224 | 6832 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
6833 | |
6834 | self = self; | |
efc5f224 | 6835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 6836 | return NULL; |
1d99702e RD |
6837 | if (_argo0) { |
6838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
6841 | return NULL; | |
6842 | } | |
6843 | } | |
6844 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6845 | { |
6846 | wxPy_BEGIN_ALLOW_THREADS; | |
6847 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
6848 | ||
6849 | wxPy_END_ALLOW_THREADS; | |
6850 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6851 | _resultobj = Py_None; |
6852 | return _resultobj; | |
6853 | } | |
6854 | ||
b1462dfa RD |
6855 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
6856 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6857 | PyObject * _resultobj; | |
6858 | bool _result; | |
6859 | wxMenu * _arg0; | |
6860 | int _arg1; | |
6861 | PyObject * _argo0 = 0; | |
6862 | char *_kwnames[] = { "self","id", NULL }; | |
6863 | ||
6864 | self = self; | |
6865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
6866 | return NULL; | |
6867 | if (_argo0) { | |
6868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
6871 | return NULL; | |
6872 | } | |
6873 | } | |
6874 | { | |
6875 | wxPy_BEGIN_ALLOW_THREADS; | |
6876 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
6877 | ||
6878 | wxPy_END_ALLOW_THREADS; | |
6879 | } _resultobj = Py_BuildValue("i",_result); | |
6880 | return _resultobj; | |
6881 | } | |
6882 | ||
8ab979d7 | 6883 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 6884 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6885 | PyObject * _resultobj; |
6886 | int _result; | |
6887 | wxMenu * _arg0; | |
6888 | wxString * _arg1; | |
1d99702e | 6889 | PyObject * _argo0 = 0; |
8ab979d7 | 6890 | PyObject * _obj1 = 0; |
efc5f224 | 6891 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
6892 | |
6893 | self = self; | |
efc5f224 | 6894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6895 | return NULL; |
1d99702e RD |
6896 | if (_argo0) { |
6897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
6900 | return NULL; | |
6901 | } | |
6902 | } | |
6903 | { | |
185d7c3e RD |
6904 | #if PYTHON_API_VERSION >= 1009 |
6905 | char* tmpPtr; int tmpSize; | |
6906 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6907 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6908 | return NULL; | |
6909 | } | |
6910 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6911 | return NULL; | |
6912 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6913 | #else | |
8ab979d7 RD |
6914 | if (!PyString_Check(_obj1)) { |
6915 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6916 | return NULL; | |
6917 | } | |
185d7c3e RD |
6918 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6919 | #endif | |
8ab979d7 | 6920 | } |
cf694132 RD |
6921 | { |
6922 | wxPy_BEGIN_ALLOW_THREADS; | |
6923 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
6924 | ||
6925 | wxPy_END_ALLOW_THREADS; | |
6926 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6927 | { |
6928 | if (_obj1) | |
6929 | delete _arg1; | |
6930 | } | |
6931 | return _resultobj; | |
6932 | } | |
6933 | ||
b1462dfa RD |
6934 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
6935 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6936 | PyObject * _resultobj; | |
6937 | wxMenuItem * _result; | |
6938 | wxMenu * _arg0; | |
6939 | int _arg1; | |
6940 | PyObject * _argo0 = 0; | |
6941 | char *_kwnames[] = { "self","id", NULL }; | |
6942 | char _ptemp[128]; | |
6943 | ||
6944 | self = self; | |
6945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
6946 | return NULL; | |
6947 | if (_argo0) { | |
6948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
6951 | return NULL; | |
6952 | } | |
6953 | } | |
6954 | { | |
6955 | wxPy_BEGIN_ALLOW_THREADS; | |
6956 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
6957 | ||
6958 | wxPy_END_ALLOW_THREADS; | |
6959 | } if (_result) { | |
6960 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
6961 | _resultobj = Py_BuildValue("s",_ptemp); | |
6962 | } else { | |
6963 | Py_INCREF(Py_None); | |
6964 | _resultobj = Py_None; | |
6965 | } | |
6966 | return _resultobj; | |
6967 | } | |
6968 | ||
8ab979d7 | 6969 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 6970 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6971 | PyObject * _resultobj; |
6972 | wxString * _result; | |
6973 | wxMenu * _arg0; | |
1d99702e | 6974 | PyObject * _argo0 = 0; |
efc5f224 | 6975 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6976 | |
6977 | self = self; | |
efc5f224 | 6978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 6979 | return NULL; |
1d99702e RD |
6980 | if (_argo0) { |
6981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
6984 | return NULL; | |
6985 | } | |
6986 | } | |
8ab979d7 | 6987 | { |
cf694132 RD |
6988 | wxPy_BEGIN_ALLOW_THREADS; |
6989 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
6990 | ||
6991 | wxPy_END_ALLOW_THREADS; | |
6992 | }{ | |
eec92d76 | 6993 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
6994 | } |
6995 | { | |
6996 | delete _result; | |
6997 | } | |
6998 | return _resultobj; | |
6999 | } | |
7000 | ||
7001 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7002 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7003 | PyObject * _resultobj; |
7004 | wxMenu * _arg0; | |
7005 | wxString * _arg1; | |
1d99702e | 7006 | PyObject * _argo0 = 0; |
8ab979d7 | 7007 | PyObject * _obj1 = 0; |
efc5f224 | 7008 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7009 | |
7010 | self = self; | |
efc5f224 | 7011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7012 | return NULL; |
1d99702e RD |
7013 | if (_argo0) { |
7014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7017 | return NULL; | |
7018 | } | |
7019 | } | |
7020 | { | |
185d7c3e RD |
7021 | #if PYTHON_API_VERSION >= 1009 |
7022 | char* tmpPtr; int tmpSize; | |
7023 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7024 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7025 | return NULL; | |
7026 | } | |
7027 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7028 | return NULL; | |
7029 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7030 | #else | |
8ab979d7 RD |
7031 | if (!PyString_Check(_obj1)) { |
7032 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7033 | return NULL; | |
7034 | } | |
185d7c3e RD |
7035 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7036 | #endif | |
8ab979d7 | 7037 | } |
cf694132 RD |
7038 | { |
7039 | wxPy_BEGIN_ALLOW_THREADS; | |
7040 | wxMenu_SetTitle(_arg0,*_arg1); | |
7041 | ||
7042 | wxPy_END_ALLOW_THREADS; | |
7043 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7044 | _resultobj = Py_None; |
7045 | { | |
7046 | if (_obj1) | |
7047 | delete _arg1; | |
7048 | } | |
7049 | return _resultobj; | |
7050 | } | |
7051 | ||
b1462dfa RD |
7052 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7053 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7054 | PyObject * _resultobj; |
b1462dfa | 7055 | wxString * _result; |
8ab979d7 RD |
7056 | wxMenu * _arg0; |
7057 | int _arg1; | |
1d99702e | 7058 | PyObject * _argo0 = 0; |
efc5f224 | 7059 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7060 | |
7061 | self = self; | |
b1462dfa | 7062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7063 | return NULL; |
1d99702e RD |
7064 | if (_argo0) { |
7065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7068 | return NULL; |
7069 | } | |
7070 | } | |
cf694132 RD |
7071 | { |
7072 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7073 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 RD |
7074 | |
7075 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7076 | }{ |
eec92d76 | 7077 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7078 | } |
7079 | { | |
7080 | delete _result; | |
7081 | } | |
8ab979d7 RD |
7082 | return _resultobj; |
7083 | } | |
7084 | ||
b1462dfa RD |
7085 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7086 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7087 | PyObject * _resultobj; |
8ab979d7 RD |
7088 | wxMenu * _arg0; |
7089 | int _arg1; | |
b1462dfa | 7090 | wxString * _arg2; |
1d99702e | 7091 | PyObject * _argo0 = 0; |
b1462dfa RD |
7092 | PyObject * _obj2 = 0; |
7093 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7094 | |
7095 | self = self; | |
b1462dfa | 7096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7097 | return NULL; |
1d99702e RD |
7098 | if (_argo0) { |
7099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7102 | return NULL; |
7103 | } | |
7104 | } | |
b1462dfa | 7105 | { |
185d7c3e RD |
7106 | #if PYTHON_API_VERSION >= 1009 |
7107 | char* tmpPtr; int tmpSize; | |
7108 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7109 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7110 | return NULL; | |
7111 | } | |
7112 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7113 | return NULL; | |
7114 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7115 | #else | |
b1462dfa RD |
7116 | if (!PyString_Check(_obj2)) { |
7117 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7118 | return NULL; | |
7119 | } | |
185d7c3e RD |
7120 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7121 | #endif | |
b1462dfa | 7122 | } |
8ab979d7 | 7123 | { |
cf694132 | 7124 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7125 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
7126 | |
7127 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7128 | } Py_INCREF(Py_None); |
7129 | _resultobj = Py_None; | |
8ab979d7 | 7130 | { |
b1462dfa RD |
7131 | if (_obj2) |
7132 | delete _arg2; | |
8ab979d7 RD |
7133 | } |
7134 | return _resultobj; | |
7135 | } | |
7136 | ||
b1462dfa RD |
7137 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7138 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7139 | PyObject * _resultobj; |
7140 | wxString * _result; | |
7141 | wxMenu * _arg0; | |
7142 | int _arg1; | |
1d99702e | 7143 | PyObject * _argo0 = 0; |
efc5f224 | 7144 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7145 | |
7146 | self = self; | |
b1462dfa | 7147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7148 | return NULL; |
1d99702e RD |
7149 | if (_argo0) { |
7150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7153 | return NULL; |
7154 | } | |
7155 | } | |
8ab979d7 | 7156 | { |
cf694132 | 7157 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7158 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
7159 | |
7160 | wxPy_END_ALLOW_THREADS; | |
7161 | }{ | |
eec92d76 | 7162 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7163 | } |
7164 | { | |
7165 | delete _result; | |
7166 | } | |
7167 | return _resultobj; | |
7168 | } | |
7169 | ||
7170 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7171 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7172 | PyObject * _resultobj; |
7173 | wxMenu * _arg0; | |
7174 | int _arg1; | |
7175 | wxString * _arg2; | |
1d99702e | 7176 | PyObject * _argo0 = 0; |
8ab979d7 | 7177 | PyObject * _obj2 = 0; |
efc5f224 | 7178 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7179 | |
7180 | self = self; | |
efc5f224 | 7181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7182 | return NULL; |
1d99702e RD |
7183 | if (_argo0) { |
7184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7187 | return NULL; | |
7188 | } | |
7189 | } | |
7190 | { | |
185d7c3e RD |
7191 | #if PYTHON_API_VERSION >= 1009 |
7192 | char* tmpPtr; int tmpSize; | |
7193 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7194 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7195 | return NULL; | |
7196 | } | |
7197 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7198 | return NULL; | |
7199 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7200 | #else | |
8ab979d7 RD |
7201 | if (!PyString_Check(_obj2)) { |
7202 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7203 | return NULL; | |
7204 | } | |
185d7c3e RD |
7205 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7206 | #endif | |
8ab979d7 | 7207 | } |
cf694132 RD |
7208 | { |
7209 | wxPy_BEGIN_ALLOW_THREADS; | |
7210 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
7211 | ||
7212 | wxPy_END_ALLOW_THREADS; | |
7213 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7214 | _resultobj = Py_None; |
7215 | { | |
7216 | if (_obj2) | |
7217 | delete _arg2; | |
7218 | } | |
7219 | return _resultobj; | |
7220 | } | |
7221 | ||
b1462dfa RD |
7222 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7223 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7224 | PyObject * _resultobj; |
8ab979d7 | 7225 | wxMenu * _arg0; |
b1462dfa | 7226 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7227 | PyObject * _argo0 = 0; |
b1462dfa RD |
7228 | PyObject * _argo1 = 0; |
7229 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7230 | |
7231 | self = self; | |
b1462dfa | 7232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7233 | return NULL; |
1d99702e RD |
7234 | if (_argo0) { |
7235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
7237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7238 | return NULL; | |
7239 | } | |
7240 | } | |
7241 | if (_argo1) { | |
7242 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7243 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7245 | return NULL; |
7246 | } | |
7247 | } | |
cf694132 RD |
7248 | { |
7249 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7250 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 RD |
7251 | |
7252 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7253 | } Py_INCREF(Py_None); |
7254 | _resultobj = Py_None; | |
8ab979d7 RD |
7255 | return _resultobj; |
7256 | } | |
7257 | ||
b1462dfa RD |
7258 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7259 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7260 | PyObject * _resultobj; |
7261 | bool _result; | |
7262 | wxMenu * _arg0; | |
7263 | int _arg1; | |
1d99702e | 7264 | PyObject * _argo0 = 0; |
efc5f224 | 7265 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7266 | |
7267 | self = self; | |
b1462dfa | 7268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7269 | return NULL; |
1d99702e RD |
7270 | if (_argo0) { |
7271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
7274 | return NULL; |
7275 | } | |
7276 | } | |
cf694132 RD |
7277 | { |
7278 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7279 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 RD |
7280 | |
7281 | wxPy_END_ALLOW_THREADS; | |
7282 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7283 | return _resultobj; |
7284 | } | |
7285 | ||
b1462dfa RD |
7286 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7287 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7288 | PyObject * _resultobj; |
b1462dfa | 7289 | bool _result; |
8ab979d7 | 7290 | wxMenu * _arg0; |
b1462dfa | 7291 | wxMenuItem * _arg1; |
1d99702e | 7292 | PyObject * _argo0 = 0; |
b1462dfa RD |
7293 | PyObject * _argo1 = 0; |
7294 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7295 | |
7296 | self = self; | |
b1462dfa | 7297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7298 | return NULL; |
1d99702e RD |
7299 | if (_argo0) { |
7300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7303 | return NULL; |
7304 | } | |
7305 | } | |
b1462dfa RD |
7306 | if (_argo1) { |
7307 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7308 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7310 | return NULL; |
b1462dfa | 7311 | } |
8ab979d7 | 7312 | } |
cf694132 RD |
7313 | { |
7314 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7315 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 RD |
7316 | |
7317 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7318 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7319 | return _resultobj; |
7320 | } | |
7321 | ||
b1462dfa RD |
7322 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7323 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7324 | PyObject * _resultobj; |
b1462dfa | 7325 | bool _result; |
8bf5d46e | 7326 | wxMenu * _arg0; |
b1462dfa RD |
7327 | size_t _arg1; |
7328 | wxMenuItem * _arg2; | |
1d99702e | 7329 | PyObject * _argo0 = 0; |
b1462dfa RD |
7330 | PyObject * _argo2 = 0; |
7331 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7332 | |
7333 | self = self; | |
b1462dfa | 7334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7335 | return NULL; |
1d99702e RD |
7336 | if (_argo0) { |
7337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7340 | return NULL; |
7341 | } | |
7342 | } | |
b1462dfa RD |
7343 | if (_argo2) { |
7344 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7345 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7347 | return NULL; |
7348 | } | |
7349 | } | |
cf694132 RD |
7350 | { |
7351 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7352 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 RD |
7353 | |
7354 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7355 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7356 | return _resultobj; |
7357 | } | |
7358 | ||
b1462dfa RD |
7359 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7360 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7361 | PyObject * _resultobj; |
b1462dfa | 7362 | wxMenuItem * _result; |
efc5f224 | 7363 | wxMenu * _arg0; |
b1462dfa | 7364 | int _arg1; |
efc5f224 | 7365 | PyObject * _argo0 = 0; |
b1462dfa RD |
7366 | char *_kwnames[] = { "self","id", NULL }; |
7367 | char _ptemp[128]; | |
efc5f224 RD |
7368 | |
7369 | self = self; | |
b1462dfa | 7370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7371 | return NULL; |
7372 | if (_argo0) { | |
7373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7376 | return NULL; |
7377 | } | |
7378 | } | |
7379 | { | |
7380 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7381 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 RD |
7382 | |
7383 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7384 | } if (_result) { |
7385 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7386 | _resultobj = Py_BuildValue("s",_ptemp); | |
7387 | } else { | |
7388 | Py_INCREF(Py_None); | |
7389 | _resultobj = Py_None; | |
7390 | } | |
efc5f224 RD |
7391 | return _resultobj; |
7392 | } | |
7393 | ||
b1462dfa RD |
7394 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7395 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7396 | PyObject * _resultobj; |
b1462dfa RD |
7397 | wxMenuItem * _result; |
7398 | wxMenu * _arg0; | |
7399 | wxMenuItem * _arg1; | |
7400 | PyObject * _argo0 = 0; | |
7401 | PyObject * _argo1 = 0; | |
7402 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7403 | char _ptemp[128]; |
7404 | ||
7405 | self = self; | |
b1462dfa RD |
7406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7407 | return NULL; | |
7408 | if (_argo0) { | |
7409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7412 | return NULL; | |
7413 | } | |
7414 | } | |
7415 | if (_argo1) { | |
7416 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7417 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7419 | return NULL; |
b1462dfa RD |
7420 | } |
7421 | } | |
cf694132 RD |
7422 | { |
7423 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7424 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 RD |
7425 | |
7426 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 7427 | } if (_result) { |
b1462dfa | 7428 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); |
1d99702e RD |
7429 | _resultobj = Py_BuildValue("s",_ptemp); |
7430 | } else { | |
7431 | Py_INCREF(Py_None); | |
7432 | _resultobj = Py_None; | |
7433 | } | |
8ab979d7 RD |
7434 | return _resultobj; |
7435 | } | |
7436 | ||
eb715945 | 7437 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7438 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7439 | PyObject * _resultobj; |
b1462dfa | 7440 | wxMenu * _arg0; |
1d99702e | 7441 | PyObject * _argo0 = 0; |
b1462dfa | 7442 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7443 | |
7444 | self = self; | |
b1462dfa | 7445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7446 | return NULL; |
1d99702e RD |
7447 | if (_argo0) { |
7448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7451 | return NULL; |
7452 | } | |
7453 | } | |
cf694132 RD |
7454 | { |
7455 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7456 | wxMenu_Destroy(_arg0); |
cf694132 RD |
7457 | |
7458 | wxPy_END_ALLOW_THREADS; | |
7459 | } Py_INCREF(Py_None); | |
8ab979d7 | 7460 | _resultobj = Py_None; |
8ab979d7 RD |
7461 | return _resultobj; |
7462 | } | |
7463 | ||
b1462dfa RD |
7464 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7465 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7466 | PyObject * _resultobj; |
b1462dfa RD |
7467 | bool _result; |
7468 | wxMenu * _arg0; | |
8ab979d7 | 7469 | int _arg1; |
1d99702e | 7470 | PyObject * _argo0 = 0; |
b1462dfa | 7471 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7472 | |
7473 | self = self; | |
b1462dfa | 7474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7475 | return NULL; |
1d99702e RD |
7476 | if (_argo0) { |
7477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
7480 | return NULL; |
7481 | } | |
7482 | } | |
cf694132 RD |
7483 | { |
7484 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7485 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 RD |
7486 | |
7487 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7488 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7489 | return _resultobj; |
7490 | } | |
7491 | ||
b1462dfa RD |
7492 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7493 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7494 | PyObject * _resultobj; |
b1462dfa RD |
7495 | bool _result; |
7496 | wxMenu * _arg0; | |
7497 | wxMenuItem * _arg1; | |
1d99702e | 7498 | PyObject * _argo0 = 0; |
b1462dfa RD |
7499 | PyObject * _argo1 = 0; |
7500 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7501 | |
7502 | self = self; | |
b1462dfa | 7503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7504 | return NULL; |
1d99702e RD |
7505 | if (_argo0) { |
7506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7509 | return NULL; | |
7510 | } | |
7511 | } | |
7512 | if (_argo1) { | |
7513 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7514 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7516 | return NULL; |
7517 | } | |
7518 | } | |
cf694132 RD |
7519 | { |
7520 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7521 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 RD |
7522 | |
7523 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7524 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7525 | return _resultobj; |
7526 | } | |
7527 | ||
b1462dfa RD |
7528 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
7529 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7530 | PyObject * _resultobj; |
b1462dfa RD |
7531 | size_t _result; |
7532 | wxMenu * _arg0; | |
1d99702e | 7533 | PyObject * _argo0 = 0; |
b1462dfa | 7534 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7535 | |
7536 | self = self; | |
b1462dfa | 7537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 7538 | return NULL; |
1d99702e RD |
7539 | if (_argo0) { |
7540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
7543 | return NULL; |
7544 | } | |
7545 | } | |
cf694132 RD |
7546 | { |
7547 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7548 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 RD |
7549 | |
7550 | wxPy_END_ALLOW_THREADS; | |
2abc0a0f | 7551 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7552 | return _resultobj; |
7553 | } | |
7554 | ||
b1462dfa RD |
7555 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
7556 | wxMenuItemList& list = self->GetMenuItems(); | |
7557 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
7558 | } | |
7559 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7560 | PyObject * _resultobj; |
b1462dfa RD |
7561 | PyObject * _result; |
7562 | wxMenu * _arg0; | |
1d99702e | 7563 | PyObject * _argo0 = 0; |
b1462dfa | 7564 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7565 | |
7566 | self = self; | |
b1462dfa | 7567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 7568 | return NULL; |
1d99702e RD |
7569 | if (_argo0) { |
7570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
7573 | return NULL; |
7574 | } | |
7575 | } | |
cf694132 RD |
7576 | { |
7577 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7578 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 RD |
7579 | |
7580 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7581 | }{ |
7582 | _resultobj = _result; | |
7583 | } | |
8ab979d7 RD |
7584 | return _resultobj; |
7585 | } | |
7586 | ||
b1462dfa RD |
7587 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
7588 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7589 | PyObject * _resultobj; |
b1462dfa RD |
7590 | wxMenu * _arg0; |
7591 | wxEvtHandler * _arg1; | |
1d99702e | 7592 | PyObject * _argo0 = 0; |
b1462dfa RD |
7593 | PyObject * _argo1 = 0; |
7594 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
7595 | |
7596 | self = self; | |
b1462dfa | 7597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7598 | return NULL; |
1d99702e RD |
7599 | if (_argo0) { |
7600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7603 | return NULL; |
7604 | } | |
7605 | } | |
b1462dfa RD |
7606 | if (_argo1) { |
7607 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7608 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 7610 | return NULL; |
b1462dfa | 7611 | } |
8ab979d7 | 7612 | } |
cf694132 RD |
7613 | { |
7614 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7615 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 RD |
7616 | |
7617 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7618 | } Py_INCREF(Py_None); |
7619 | _resultobj = Py_None; | |
8ab979d7 RD |
7620 | return _resultobj; |
7621 | } | |
7622 | ||
b1462dfa RD |
7623 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
7624 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7625 | PyObject * _resultobj; |
b1462dfa RD |
7626 | wxEvtHandler * _result; |
7627 | wxMenu * _arg0; | |
1d99702e | 7628 | PyObject * _argo0 = 0; |
b1462dfa | 7629 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7630 | char _ptemp[128]; |
7631 | ||
7632 | self = self; | |
b1462dfa | 7633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 7634 | return NULL; |
1d99702e RD |
7635 | if (_argo0) { |
7636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7639 | return NULL; |
7640 | } | |
7641 | } | |
cf694132 RD |
7642 | { |
7643 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7644 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 RD |
7645 | |
7646 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 7647 | } if (_result) { |
b1462dfa | 7648 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); |
1d99702e RD |
7649 | _resultobj = Py_BuildValue("s",_ptemp); |
7650 | } else { | |
7651 | Py_INCREF(Py_None); | |
7652 | _resultobj = Py_None; | |
7653 | } | |
8ab979d7 RD |
7654 | return _resultobj; |
7655 | } | |
7656 | ||
b1462dfa RD |
7657 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
7658 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 7659 | PyObject * _resultobj; |
b1462dfa RD |
7660 | wxMenu * _arg0; |
7661 | wxWindow * _arg1; | |
2f90df85 | 7662 | PyObject * _argo0 = 0; |
b1462dfa RD |
7663 | PyObject * _argo1 = 0; |
7664 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
7665 | |
7666 | self = self; | |
b1462dfa | 7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
7668 | return NULL; |
7669 | if (_argo0) { | |
7670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
7673 | return NULL; |
7674 | } | |
7675 | } | |
b1462dfa RD |
7676 | if (_argo1) { |
7677 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7678 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 7680 | return NULL; |
b1462dfa | 7681 | } |
2f90df85 | 7682 | } |
2f90df85 RD |
7683 | { |
7684 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7685 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 RD |
7686 | |
7687 | wxPy_END_ALLOW_THREADS; | |
7688 | } Py_INCREF(Py_None); | |
7689 | _resultobj = Py_None; | |
2f90df85 RD |
7690 | return _resultobj; |
7691 | } | |
7692 | ||
b1462dfa RD |
7693 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
7694 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7695 | PyObject * _resultobj; |
b1462dfa RD |
7696 | wxWindow * _result; |
7697 | wxMenu * _arg0; | |
1d99702e | 7698 | PyObject * _argo0 = 0; |
b1462dfa RD |
7699 | char *_kwnames[] = { "self", NULL }; |
7700 | char _ptemp[128]; | |
8ab979d7 RD |
7701 | |
7702 | self = self; | |
b1462dfa | 7703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 7704 | return NULL; |
1d99702e RD |
7705 | if (_argo0) { |
7706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
7709 | return NULL; |
7710 | } | |
7711 | } | |
cf694132 RD |
7712 | { |
7713 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7714 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 RD |
7715 | |
7716 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7717 | } if (_result) { |
7718 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
7719 | _resultobj = Py_BuildValue("s",_ptemp); | |
7720 | } else { | |
7721 | Py_INCREF(Py_None); | |
7722 | _resultobj = Py_None; | |
7723 | } | |
8ab979d7 RD |
7724 | return _resultobj; |
7725 | } | |
7726 | ||
b1462dfa RD |
7727 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
7728 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7729 | PyObject * _resultobj; |
b1462dfa RD |
7730 | long _result; |
7731 | wxMenu * _arg0; | |
1d99702e | 7732 | PyObject * _argo0 = 0; |
b1462dfa | 7733 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7734 | |
7735 | self = self; | |
b1462dfa | 7736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 7737 | return NULL; |
1d99702e RD |
7738 | if (_argo0) { |
7739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
7742 | return NULL; |
7743 | } | |
7744 | } | |
8ab979d7 | 7745 | { |
cf694132 | 7746 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7747 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 RD |
7748 | |
7749 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7750 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7751 | return _resultobj; |
7752 | } | |
7753 | ||
b1462dfa RD |
7754 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
7755 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7756 | PyObject * _resultobj; |
b1462dfa RD |
7757 | bool _result; |
7758 | wxMenu * _arg0; | |
1d99702e | 7759 | PyObject * _argo0 = 0; |
b1462dfa | 7760 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7761 | |
7762 | self = self; | |
b1462dfa | 7763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 7764 | return NULL; |
1d99702e RD |
7765 | if (_argo0) { |
7766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
7769 | return NULL; |
7770 | } | |
7771 | } | |
8ab979d7 | 7772 | { |
cf694132 | 7773 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7774 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 RD |
7775 | |
7776 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7777 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7778 | return _resultobj; |
7779 | } | |
7780 | ||
b1462dfa RD |
7781 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
7782 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7783 | PyObject * _resultobj; |
b1462dfa RD |
7784 | wxMenu * _arg0; |
7785 | wxMenu * _arg1; | |
1d99702e | 7786 | PyObject * _argo0 = 0; |
b1462dfa RD |
7787 | PyObject * _argo1 = 0; |
7788 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
7789 | |
7790 | self = self; | |
b1462dfa | 7791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7792 | return NULL; |
1d99702e RD |
7793 | if (_argo0) { |
7794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
7797 | return NULL; |
7798 | } | |
7799 | } | |
b1462dfa RD |
7800 | if (_argo1) { |
7801 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7802 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
7803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 7804 | return NULL; |
b1462dfa | 7805 | } |
8ab979d7 | 7806 | } |
cf694132 RD |
7807 | { |
7808 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7809 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 RD |
7810 | |
7811 | wxPy_END_ALLOW_THREADS; | |
7812 | } Py_INCREF(Py_None); | |
8ab979d7 | 7813 | _resultobj = Py_None; |
8ab979d7 RD |
7814 | return _resultobj; |
7815 | } | |
7816 | ||
b1462dfa RD |
7817 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
7818 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7819 | PyObject * _resultobj; |
b1462dfa RD |
7820 | wxMenu * _result; |
7821 | wxMenu * _arg0; | |
1d99702e | 7822 | PyObject * _argo0 = 0; |
b1462dfa RD |
7823 | char *_kwnames[] = { "self", NULL }; |
7824 | char _ptemp[128]; | |
8ab979d7 RD |
7825 | |
7826 | self = self; | |
b1462dfa | 7827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 7828 | return NULL; |
1d99702e RD |
7829 | if (_argo0) { |
7830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
7833 | return NULL; |
7834 | } | |
7835 | } | |
8ab979d7 | 7836 | { |
cf694132 | 7837 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7838 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 RD |
7839 | |
7840 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7841 | } if (_result) { |
7842 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7843 | _resultobj = Py_BuildValue("s",_ptemp); | |
7844 | } else { | |
7845 | Py_INCREF(Py_None); | |
7846 | _resultobj = Py_None; | |
7847 | } | |
7848 | return _resultobj; | |
8ab979d7 | 7849 | } |
b1462dfa RD |
7850 | |
7851 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
7852 | wxMenuBar *src; | |
7853 | wxWindow *dest; | |
7854 | src = (wxMenuBar *) ptr; | |
7855 | dest = (wxWindow *) src; | |
7856 | return (void *) dest; | |
7857 | } | |
7858 | ||
7859 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
7860 | wxMenuBar *src; | |
7861 | wxEvtHandler *dest; | |
7862 | src = (wxMenuBar *) ptr; | |
7863 | dest = (wxEvtHandler *) src; | |
7864 | return (void *) dest; | |
8ab979d7 | 7865 | } |
b1462dfa | 7866 | |
c368d904 | 7867 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
7868 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
7869 | PyObject * _resultobj; | |
7870 | wxMenuBar * _result; | |
c368d904 RD |
7871 | long _arg0 = (long ) 0; |
7872 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
7873 | char _ptemp[128]; |
7874 | ||
7875 | self = self; | |
c368d904 | 7876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
7877 | return NULL; |
7878 | { | |
7879 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 7880 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa RD |
7881 | |
7882 | wxPy_END_ALLOW_THREADS; | |
7883 | } if (_result) { | |
7884 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
7885 | _resultobj = Py_BuildValue("s",_ptemp); | |
7886 | } else { | |
7887 | Py_INCREF(Py_None); | |
7888 | _resultobj = Py_None; | |
7889 | } | |
8ab979d7 RD |
7890 | return _resultobj; |
7891 | } | |
7892 | ||
b1462dfa RD |
7893 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
7894 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7895 | PyObject * _resultobj; |
b1462dfa | 7896 | bool _result; |
8ab979d7 | 7897 | wxMenuBar * _arg0; |
b1462dfa | 7898 | wxMenu * _arg1; |
8ab979d7 | 7899 | wxString * _arg2; |
1d99702e | 7900 | PyObject * _argo0 = 0; |
b1462dfa | 7901 | PyObject * _argo1 = 0; |
8ab979d7 | 7902 | PyObject * _obj2 = 0; |
b1462dfa | 7903 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
7904 | |
7905 | self = self; | |
b1462dfa | 7906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7907 | return NULL; |
1d99702e RD |
7908 | if (_argo0) { |
7909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
7911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
7912 | return NULL; | |
7913 | } | |
7914 | } | |
7915 | if (_argo1) { | |
7916 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7917 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
7918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
7919 | return NULL; |
7920 | } | |
7921 | } | |
7922 | { | |
185d7c3e RD |
7923 | #if PYTHON_API_VERSION >= 1009 |
7924 | char* tmpPtr; int tmpSize; | |
7925 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7926 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7927 | return NULL; | |
7928 | } | |
7929 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7930 | return NULL; | |
7931 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7932 | #else | |
8ab979d7 RD |
7933 | if (!PyString_Check(_obj2)) { |
7934 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7935 | return NULL; | |
7936 | } | |
185d7c3e RD |
7937 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7938 | #endif | |
8ab979d7 | 7939 | } |
cf694132 RD |
7940 | { |
7941 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7942 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 RD |
7943 | |
7944 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7945 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7946 | { |
7947 | if (_obj2) | |
7948 | delete _arg2; | |
7949 | } | |
7950 | return _resultobj; | |
7951 | } | |
7952 | ||
b1462dfa RD |
7953 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
7954 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7955 | PyObject * _resultobj; |
b1462dfa | 7956 | bool _result; |
8ab979d7 | 7957 | wxMenuBar * _arg0; |
b1462dfa RD |
7958 | size_t _arg1; |
7959 | wxMenu * _arg2; | |
7960 | wxString * _arg3; | |
1d99702e | 7961 | PyObject * _argo0 = 0; |
b1462dfa RD |
7962 | PyObject * _argo2 = 0; |
7963 | PyObject * _obj3 = 0; | |
7964 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
7965 | |
7966 | self = self; | |
b1462dfa | 7967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 7968 | return NULL; |
1d99702e RD |
7969 | if (_argo0) { |
7970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
7972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
7973 | return NULL; | |
7974 | } | |
7975 | } | |
7976 | if (_argo2) { | |
7977 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7978 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
7979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
7980 | return NULL; |
7981 | } | |
7982 | } | |
b1462dfa | 7983 | { |
185d7c3e RD |
7984 | #if PYTHON_API_VERSION >= 1009 |
7985 | char* tmpPtr; int tmpSize; | |
7986 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7987 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7988 | return NULL; | |
7989 | } | |
7990 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7991 | return NULL; | |
7992 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7993 | #else | |
b1462dfa RD |
7994 | if (!PyString_Check(_obj3)) { |
7995 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7996 | return NULL; | |
7997 | } | |
185d7c3e RD |
7998 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
7999 | #endif | |
b1462dfa | 8000 | } |
cf694132 RD |
8001 | { |
8002 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8003 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
8004 | |
8005 | wxPy_END_ALLOW_THREADS; | |
8006 | } _resultobj = Py_BuildValue("i",_result); | |
b1462dfa RD |
8007 | { |
8008 | if (_obj3) | |
8009 | delete _arg3; | |
8010 | } | |
8ab979d7 RD |
8011 | return _resultobj; |
8012 | } | |
8013 | ||
b1462dfa RD |
8014 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8015 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8016 | PyObject * _resultobj; |
b1462dfa | 8017 | size_t _result; |
8ab979d7 | 8018 | wxMenuBar * _arg0; |
1d99702e | 8019 | PyObject * _argo0 = 0; |
b1462dfa | 8020 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8021 | |
8022 | self = self; | |
b1462dfa | 8023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8024 | return NULL; |
1d99702e RD |
8025 | if (_argo0) { |
8026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8029 | return NULL; |
8030 | } | |
8031 | } | |
cf694132 RD |
8032 | { |
8033 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8034 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 RD |
8035 | |
8036 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8037 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8038 | return _resultobj; |
8039 | } | |
8040 | ||
b1462dfa RD |
8041 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8042 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8043 | PyObject * _resultobj; |
b1462dfa | 8044 | wxMenu * _result; |
06c0fba4 | 8045 | wxMenuBar * _arg0; |
b1462dfa | 8046 | size_t _arg1; |
06c0fba4 | 8047 | PyObject * _argo0 = 0; |
b1462dfa RD |
8048 | char *_kwnames[] = { "self","pos", NULL }; |
8049 | char _ptemp[128]; | |
06c0fba4 RD |
8050 | |
8051 | self = self; | |
b1462dfa | 8052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8053 | return NULL; |
8054 | if (_argo0) { | |
8055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8058 | return NULL; |
8059 | } | |
8060 | } | |
8061 | { | |
8062 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8063 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 RD |
8064 | |
8065 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8066 | } if (_result) { |
8067 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8068 | _resultobj = Py_BuildValue("s",_ptemp); | |
8069 | } else { | |
8070 | Py_INCREF(Py_None); | |
8071 | _resultobj = Py_None; | |
8072 | } | |
06c0fba4 RD |
8073 | return _resultobj; |
8074 | } | |
8075 | ||
2abc0a0f RD |
8076 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8077 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8078 | PyObject * _resultobj; | |
8079 | wxMenu * _result; | |
8080 | wxMenuBar * _arg0; | |
8081 | size_t _arg1; | |
8082 | wxMenu * _arg2; | |
8083 | wxString * _arg3; | |
8084 | PyObject * _argo0 = 0; | |
8085 | PyObject * _argo2 = 0; | |
8086 | PyObject * _obj3 = 0; | |
8087 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8088 | char _ptemp[128]; | |
8089 | ||
8090 | self = self; | |
8091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8092 | return NULL; | |
8093 | if (_argo0) { | |
8094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8097 | return NULL; | |
8098 | } | |
8099 | } | |
8100 | if (_argo2) { | |
8101 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8102 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8104 | return NULL; | |
8105 | } | |
8106 | } | |
8107 | { | |
185d7c3e RD |
8108 | #if PYTHON_API_VERSION >= 1009 |
8109 | char* tmpPtr; int tmpSize; | |
8110 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8111 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8112 | return NULL; | |
8113 | } | |
8114 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8115 | return NULL; | |
8116 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8117 | #else | |
2abc0a0f RD |
8118 | if (!PyString_Check(_obj3)) { |
8119 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8120 | return NULL; | |
8121 | } | |
185d7c3e RD |
8122 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8123 | #endif | |
2abc0a0f RD |
8124 | } |
8125 | { | |
8126 | wxPy_BEGIN_ALLOW_THREADS; | |
8127 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
8128 | ||
8129 | wxPy_END_ALLOW_THREADS; | |
8130 | } if (_result) { | |
8131 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8132 | _resultobj = Py_BuildValue("s",_ptemp); | |
8133 | } else { | |
8134 | Py_INCREF(Py_None); | |
8135 | _resultobj = Py_None; | |
8136 | } | |
8137 | { | |
8138 | if (_obj3) | |
8139 | delete _arg3; | |
8140 | } | |
8141 | return _resultobj; | |
8142 | } | |
8143 | ||
8144 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8145 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8146 | PyObject * _resultobj; | |
8147 | wxMenu * _result; | |
8148 | wxMenuBar * _arg0; | |
8149 | size_t _arg1; | |
8150 | PyObject * _argo0 = 0; | |
8151 | char *_kwnames[] = { "self","pos", NULL }; | |
8152 | char _ptemp[128]; | |
8153 | ||
8154 | self = self; | |
8155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8156 | return NULL; | |
8157 | if (_argo0) { | |
8158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8161 | return NULL; | |
8162 | } | |
8163 | } | |
8164 | { | |
8165 | wxPy_BEGIN_ALLOW_THREADS; | |
8166 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
8167 | ||
8168 | wxPy_END_ALLOW_THREADS; | |
8169 | } if (_result) { | |
8170 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8171 | _resultobj = Py_BuildValue("s",_ptemp); | |
8172 | } else { | |
8173 | Py_INCREF(Py_None); | |
8174 | _resultobj = Py_None; | |
8175 | } | |
8176 | return _resultobj; | |
8177 | } | |
8178 | ||
b1462dfa RD |
8179 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8180 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8181 | PyObject * _resultobj; |
b1462dfa RD |
8182 | wxMenuBar * _arg0; |
8183 | size_t _arg1; | |
8184 | bool _arg2; | |
8185 | PyObject * _argo0 = 0; | |
8186 | int tempbool2; | |
8187 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8188 | ||
8189 | self = self; | |
8190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8191 | return NULL; | |
8192 | if (_argo0) { | |
8193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8196 | return NULL; | |
8197 | } | |
8198 | } | |
8199 | _arg2 = (bool ) tempbool2; | |
8200 | { | |
8201 | wxPy_BEGIN_ALLOW_THREADS; | |
8202 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
8203 | ||
8204 | wxPy_END_ALLOW_THREADS; | |
8205 | } Py_INCREF(Py_None); | |
8206 | _resultobj = Py_None; | |
8207 | return _resultobj; | |
8208 | } | |
8209 | ||
8210 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8211 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8212 | PyObject * _resultobj; | |
8213 | wxMenuBar * _arg0; | |
8214 | size_t _arg1; | |
8215 | wxString * _arg2; | |
1d99702e | 8216 | PyObject * _argo0 = 0; |
cf694132 | 8217 | PyObject * _obj2 = 0; |
b1462dfa | 8218 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8219 | |
8220 | self = self; | |
b1462dfa | 8221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8222 | return NULL; |
1d99702e RD |
8223 | if (_argo0) { |
8224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8227 | return NULL; |
8228 | } | |
8229 | } | |
cf694132 | 8230 | { |
185d7c3e RD |
8231 | #if PYTHON_API_VERSION >= 1009 |
8232 | char* tmpPtr; int tmpSize; | |
8233 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8234 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8235 | return NULL; | |
8236 | } | |
8237 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8238 | return NULL; | |
8239 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8240 | #else | |
cf694132 RD |
8241 | if (!PyString_Check(_obj2)) { |
8242 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8243 | return NULL; | |
8244 | } | |
185d7c3e RD |
8245 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8246 | #endif | |
cf694132 | 8247 | } |
cf694132 | 8248 | { |
b1462dfa RD |
8249 | wxPy_BEGIN_ALLOW_THREADS; |
8250 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
8251 | ||
8252 | wxPy_END_ALLOW_THREADS; | |
8253 | } Py_INCREF(Py_None); | |
8254 | _resultobj = Py_None; | |
8255 | { | |
8256 | if (_obj2) | |
8257 | delete _arg2; | |
8258 | } | |
8259 | return _resultobj; | |
8260 | } | |
8261 | ||
8262 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8263 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8264 | PyObject * _resultobj; | |
8265 | wxString * _result; | |
8266 | wxMenuBar * _arg0; | |
8267 | size_t _arg1; | |
8268 | PyObject * _argo0 = 0; | |
8269 | char *_kwnames[] = { "self","pos", NULL }; | |
8270 | ||
8271 | self = self; | |
8272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8273 | return NULL; | |
8274 | if (_argo0) { | |
8275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8278 | return NULL; | |
8279 | } | |
8280 | } | |
8281 | { | |
8282 | wxPy_BEGIN_ALLOW_THREADS; | |
8283 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
8284 | ||
8285 | wxPy_END_ALLOW_THREADS; | |
8286 | }{ | |
eec92d76 | 8287 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8288 | } |
8289 | { | |
8290 | delete _result; | |
8291 | } | |
8292 | return _resultobj; | |
8293 | } | |
8294 | ||
8295 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
8296 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8297 | PyObject * _resultobj; | |
8298 | int _result; | |
8299 | wxMenuBar * _arg0; | |
8300 | wxString * _arg1; | |
8301 | wxString * _arg2; | |
8302 | PyObject * _argo0 = 0; | |
8303 | PyObject * _obj1 = 0; | |
8304 | PyObject * _obj2 = 0; | |
8305 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8306 | ||
8307 | self = self; | |
8308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8309 | return NULL; | |
8310 | if (_argo0) { | |
8311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8314 | return NULL; | |
8315 | } | |
8316 | } | |
8317 | { | |
185d7c3e RD |
8318 | #if PYTHON_API_VERSION >= 1009 |
8319 | char* tmpPtr; int tmpSize; | |
8320 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8321 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8322 | return NULL; | |
8323 | } | |
8324 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8325 | return NULL; | |
8326 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8327 | #else | |
b1462dfa | 8328 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
8329 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
8330 | return NULL; | |
8331 | } | |
185d7c3e RD |
8332 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8333 | #endif | |
cf694132 | 8334 | } |
b1462dfa | 8335 | { |
185d7c3e RD |
8336 | #if PYTHON_API_VERSION >= 1009 |
8337 | char* tmpPtr; int tmpSize; | |
8338 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8339 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8340 | return NULL; | |
8341 | } | |
8342 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8343 | return NULL; | |
8344 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8345 | #else | |
b1462dfa RD |
8346 | if (!PyString_Check(_obj2)) { |
8347 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8348 | return NULL; | |
8349 | } | |
185d7c3e RD |
8350 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8351 | #endif | |
b1462dfa RD |
8352 | } |
8353 | { | |
8354 | wxPy_BEGIN_ALLOW_THREADS; | |
8355 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
8356 | ||
8357 | wxPy_END_ALLOW_THREADS; | |
8358 | } _resultobj = Py_BuildValue("i",_result); | |
8359 | { | |
8360 | if (_obj1) | |
8361 | delete _arg1; | |
8362 | } | |
8363 | { | |
8364 | if (_obj2) | |
8365 | delete _arg2; | |
8366 | } | |
8367 | return _resultobj; | |
8368 | } | |
8369 | ||
8370 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8371 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8372 | PyObject * _resultobj; | |
8373 | wxMenuItem * _result; | |
8374 | wxMenuBar * _arg0; | |
8375 | int _arg1; | |
8376 | PyObject * _argo0 = 0; | |
8377 | char *_kwnames[] = { "self","id", NULL }; | |
8378 | char _ptemp[128]; | |
8379 | ||
8380 | self = self; | |
8381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8382 | return NULL; | |
8383 | if (_argo0) { | |
8384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8387 | return NULL; |
8388 | } | |
8389 | } | |
8390 | { | |
8391 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8392 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 RD |
8393 | |
8394 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
8395 | } if (_result) { |
8396 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
8397 | _resultobj = Py_BuildValue("s",_ptemp); | |
8398 | } else { | |
8399 | Py_INCREF(Py_None); | |
8400 | _resultobj = Py_None; | |
8401 | } | |
b1462dfa | 8402 | return _resultobj; |
cf694132 | 8403 | } |
b1462dfa RD |
8404 | |
8405 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8406 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8407 | PyObject * _resultobj; | |
8408 | wxMenuBar * _arg0; | |
8409 | int _arg1; | |
8410 | bool _arg2; | |
8411 | PyObject * _argo0 = 0; | |
8412 | int tempbool2; | |
8413 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8414 | ||
8415 | self = self; | |
8416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8417 | return NULL; | |
8418 | if (_argo0) { | |
8419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8422 | return NULL; | |
8423 | } | |
8424 | } | |
8425 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8426 | { |
b1462dfa RD |
8427 | wxPy_BEGIN_ALLOW_THREADS; |
8428 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8429 | ||
8430 | wxPy_END_ALLOW_THREADS; | |
8431 | } Py_INCREF(Py_None); | |
8432 | _resultobj = Py_None; | |
8433 | return _resultobj; | |
cf694132 | 8434 | } |
b1462dfa RD |
8435 | |
8436 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8437 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8438 | PyObject * _resultobj; | |
8439 | wxMenuBar * _arg0; | |
8440 | int _arg1; | |
8441 | bool _arg2; | |
8442 | PyObject * _argo0 = 0; | |
8443 | int tempbool2; | |
8444 | char *_kwnames[] = { "self","id","check", NULL }; | |
8445 | ||
8446 | self = self; | |
8447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8448 | return NULL; | |
8449 | if (_argo0) { | |
8450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8453 | return NULL; | |
8454 | } | |
8455 | } | |
8456 | _arg2 = (bool ) tempbool2; | |
8457 | { | |
8458 | wxPy_BEGIN_ALLOW_THREADS; | |
8459 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8460 | ||
8461 | wxPy_END_ALLOW_THREADS; | |
8462 | } Py_INCREF(Py_None); | |
8463 | _resultobj = Py_None; | |
cf694132 RD |
8464 | return _resultobj; |
8465 | } | |
8466 | ||
b1462dfa RD |
8467 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8468 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8469 | PyObject * _resultobj; |
8470 | bool _result; | |
b1462dfa RD |
8471 | wxMenuBar * _arg0; |
8472 | int _arg1; | |
1d99702e | 8473 | PyObject * _argo0 = 0; |
b1462dfa | 8474 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8475 | |
8476 | self = self; | |
b1462dfa | 8477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8478 | return NULL; |
1d99702e RD |
8479 | if (_argo0) { |
8480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8483 | return NULL; |
8484 | } | |
8485 | } | |
cf694132 RD |
8486 | { |
8487 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8488 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 RD |
8489 | |
8490 | wxPy_END_ALLOW_THREADS; | |
8491 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
8492 | return _resultobj; |
8493 | } | |
8494 | ||
b1462dfa RD |
8495 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8496 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8497 | PyObject * _resultobj; |
8498 | bool _result; | |
b1462dfa RD |
8499 | wxMenuBar * _arg0; |
8500 | int _arg1; | |
1d99702e | 8501 | PyObject * _argo0 = 0; |
b1462dfa | 8502 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8503 | |
8504 | self = self; | |
b1462dfa | 8505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8506 | return NULL; |
1d99702e RD |
8507 | if (_argo0) { |
8508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8511 | return NULL; |
8512 | } | |
8513 | } | |
cf694132 RD |
8514 | { |
8515 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8516 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 RD |
8517 | |
8518 | wxPy_END_ALLOW_THREADS; | |
8519 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
8520 | return _resultobj; |
8521 | } | |
8522 | ||
b1462dfa RD |
8523 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8524 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8525 | PyObject * _resultobj; |
b1462dfa RD |
8526 | wxMenuBar * _arg0; |
8527 | int _arg1; | |
8528 | wxString * _arg2; | |
1d99702e | 8529 | PyObject * _argo0 = 0; |
b1462dfa RD |
8530 | PyObject * _obj2 = 0; |
8531 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8532 | |
8533 | self = self; | |
b1462dfa | 8534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8535 | return NULL; |
1d99702e RD |
8536 | if (_argo0) { |
8537 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8538 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8540 | return NULL; |
8541 | } | |
8542 | } | |
b1462dfa | 8543 | { |
185d7c3e RD |
8544 | #if PYTHON_API_VERSION >= 1009 |
8545 | char* tmpPtr; int tmpSize; | |
8546 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8547 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8548 | return NULL; | |
8549 | } | |
8550 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8551 | return NULL; | |
8552 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8553 | #else | |
b1462dfa RD |
8554 | if (!PyString_Check(_obj2)) { |
8555 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8556 | return NULL; | |
8557 | } | |
185d7c3e RD |
8558 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8559 | #endif | |
b1462dfa | 8560 | } |
cf694132 RD |
8561 | { |
8562 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8563 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
8564 | |
8565 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8566 | } Py_INCREF(Py_None); |
8567 | _resultobj = Py_None; | |
8568 | { | |
8569 | if (_obj2) | |
8570 | delete _arg2; | |
8571 | } | |
8ab979d7 RD |
8572 | return _resultobj; |
8573 | } | |
8574 | ||
b1462dfa RD |
8575 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8576 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8577 | PyObject * _resultobj; |
b1462dfa RD |
8578 | wxString * _result; |
8579 | wxMenuBar * _arg0; | |
8580 | int _arg1; | |
1d99702e | 8581 | PyObject * _argo0 = 0; |
b1462dfa | 8582 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8583 | |
8584 | self = self; | |
b1462dfa | 8585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8586 | return NULL; |
1d99702e RD |
8587 | if (_argo0) { |
8588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
8591 | return NULL; | |
8592 | } | |
8593 | } | |
8594 | { | |
8595 | wxPy_BEGIN_ALLOW_THREADS; | |
8596 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
8597 | ||
8598 | wxPy_END_ALLOW_THREADS; | |
8599 | }{ | |
eec92d76 | 8600 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8601 | } |
8602 | { | |
8603 | delete _result; | |
8604 | } | |
8605 | return _resultobj; | |
8606 | } | |
8607 | ||
8608 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
8609 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8610 | PyObject * _resultobj; | |
8611 | wxMenuBar * _arg0; | |
8612 | int _arg1; | |
8613 | wxString * _arg2; | |
8614 | PyObject * _argo0 = 0; | |
8615 | PyObject * _obj2 = 0; | |
8616 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
8617 | ||
8618 | self = self; | |
8619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8620 | return NULL; | |
8621 | if (_argo0) { | |
8622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
8625 | return NULL; | |
8626 | } | |
8627 | } | |
8628 | { | |
185d7c3e RD |
8629 | #if PYTHON_API_VERSION >= 1009 |
8630 | char* tmpPtr; int tmpSize; | |
8631 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8632 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8633 | return NULL; | |
8634 | } | |
8635 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8636 | return NULL; | |
8637 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8638 | #else | |
b1462dfa RD |
8639 | if (!PyString_Check(_obj2)) { |
8640 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8641 | return NULL; | |
8642 | } | |
185d7c3e RD |
8643 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8644 | #endif | |
b1462dfa RD |
8645 | } |
8646 | { | |
8647 | wxPy_BEGIN_ALLOW_THREADS; | |
8648 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
8649 | ||
8650 | wxPy_END_ALLOW_THREADS; | |
8651 | } Py_INCREF(Py_None); | |
8652 | _resultobj = Py_None; | |
8653 | { | |
8654 | if (_obj2) | |
8655 | delete _arg2; | |
8656 | } | |
8657 | return _resultobj; | |
8658 | } | |
8659 | ||
8660 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
8661 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8662 | PyObject * _resultobj; | |
8663 | wxString * _result; | |
8664 | wxMenuBar * _arg0; | |
8665 | int _arg1; | |
8666 | PyObject * _argo0 = 0; | |
8667 | char *_kwnames[] = { "self","id", NULL }; | |
8668 | ||
8669 | self = self; | |
8670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
8671 | return NULL; | |
8672 | if (_argo0) { | |
8673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8676 | return NULL; |
8677 | } | |
8678 | } | |
cf694132 RD |
8679 | { |
8680 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8681 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
8682 | |
8683 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8684 | }{ |
eec92d76 | 8685 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8686 | } |
8687 | { | |
8688 | delete _result; | |
8689 | } | |
8ab979d7 RD |
8690 | return _resultobj; |
8691 | } | |
8692 | ||
b1462dfa RD |
8693 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8694 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8695 | PyObject * _resultobj; |
b1462dfa RD |
8696 | wxMenuItem * _result; |
8697 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 8698 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
8699 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
8700 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
8701 | bool _arg4 = (bool ) FALSE; | |
8702 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 8703 | PyObject * _argo0 = 0; |
b1462dfa RD |
8704 | PyObject * _obj2 = 0; |
8705 | PyObject * _obj3 = 0; | |
8706 | int tempbool4 = (int) FALSE; | |
8707 | PyObject * _argo5 = 0; | |
8708 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
8709 | char _ptemp[128]; | |
8ab979d7 RD |
8710 | |
8711 | self = self; | |
b1462dfa | 8712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 8713 | return NULL; |
1d99702e RD |
8714 | if (_argo0) { |
8715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
8718 | return NULL; | |
8719 | } | |
8720 | } | |
8721 | if (_obj2) | |
8722 | { | |
185d7c3e RD |
8723 | #if PYTHON_API_VERSION >= 1009 |
8724 | char* tmpPtr; int tmpSize; | |
8725 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8726 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8727 | return NULL; | |
8728 | } | |
8729 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8730 | return NULL; | |
8731 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8732 | #else | |
b1462dfa RD |
8733 | if (!PyString_Check(_obj2)) { |
8734 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8735 | return NULL; | |
8736 | } | |
185d7c3e RD |
8737 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8738 | #endif | |
b1462dfa RD |
8739 | } |
8740 | if (_obj3) | |
8741 | { | |
185d7c3e RD |
8742 | #if PYTHON_API_VERSION >= 1009 |
8743 | char* tmpPtr; int tmpSize; | |
8744 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8745 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8746 | return NULL; | |
8747 | } | |
8748 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8749 | return NULL; | |
8750 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8751 | #else | |
b1462dfa RD |
8752 | if (!PyString_Check(_obj3)) { |
8753 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8754 | return NULL; | |
8755 | } | |
185d7c3e RD |
8756 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8757 | #endif | |
b1462dfa RD |
8758 | } |
8759 | _arg4 = (bool ) tempbool4; | |
8760 | if (_argo5) { | |
8761 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8762 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
8763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
8764 | return NULL; |
8765 | } | |
8766 | } | |
cf694132 RD |
8767 | { |
8768 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8769 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 RD |
8770 | |
8771 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8772 | } if (_result) { |
8773 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
8774 | _resultobj = Py_BuildValue("s",_ptemp); | |
8775 | } else { | |
8776 | Py_INCREF(Py_None); | |
8777 | _resultobj = Py_None; | |
8778 | } | |
8779 | { | |
8780 | if (_obj2) | |
8781 | delete _arg2; | |
8782 | } | |
8783 | { | |
8784 | if (_obj3) | |
8785 | delete _arg3; | |
8786 | } | |
8ab979d7 RD |
8787 | return _resultobj; |
8788 | } | |
8789 | ||
b1462dfa RD |
8790 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
8791 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8792 | PyObject * _resultobj; |
b1462dfa | 8793 | wxMenu * _result; |
8ab979d7 | 8794 | wxMenuItem * _arg0; |
1d99702e | 8795 | PyObject * _argo0 = 0; |
efc5f224 | 8796 | char *_kwnames[] = { "self", NULL }; |
b1462dfa | 8797 | char _ptemp[128]; |
8ab979d7 RD |
8798 | |
8799 | self = self; | |
b1462dfa | 8800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 8801 | return NULL; |
1d99702e RD |
8802 | if (_argo0) { |
8803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8806 | return NULL; |
8807 | } | |
8808 | } | |
cf694132 RD |
8809 | { |
8810 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8811 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 RD |
8812 | |
8813 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8814 | } if (_result) { |
8815 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8816 | _resultobj = Py_BuildValue("s",_ptemp); | |
8817 | } else { | |
8818 | Py_INCREF(Py_None); | |
8819 | _resultobj = Py_None; | |
8820 | } | |
8ab979d7 RD |
8821 | return _resultobj; |
8822 | } | |
8823 | ||
2abc0a0f RD |
8824 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
8825 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8826 | PyObject * _resultobj; |
8827 | wxMenuItem * _arg0; | |
2abc0a0f | 8828 | int _arg1; |
1d99702e | 8829 | PyObject * _argo0 = 0; |
2abc0a0f | 8830 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8831 | |
8832 | self = self; | |
2abc0a0f | 8833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8834 | return NULL; |
1d99702e RD |
8835 | if (_argo0) { |
8836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 8838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8839 | return NULL; |
8840 | } | |
8841 | } | |
cf694132 RD |
8842 | { |
8843 | wxPy_BEGIN_ALLOW_THREADS; | |
2abc0a0f | 8844 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 RD |
8845 | |
8846 | wxPy_END_ALLOW_THREADS; | |
8847 | } Py_INCREF(Py_None); | |
8ab979d7 | 8848 | _resultobj = Py_None; |
8ab979d7 RD |
8849 | return _resultobj; |
8850 | } | |
8851 | ||
b1462dfa RD |
8852 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
8853 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8854 | PyObject * _resultobj; |
b1462dfa | 8855 | int _result; |
8ab979d7 | 8856 | wxMenuItem * _arg0; |
1d99702e | 8857 | PyObject * _argo0 = 0; |
efc5f224 | 8858 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8859 | |
8860 | self = self; | |
b1462dfa | 8861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 8862 | return NULL; |
1d99702e RD |
8863 | if (_argo0) { |
8864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8867 | return NULL; |
8868 | } | |
8869 | } | |
8ab979d7 | 8870 | { |
cf694132 | 8871 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8872 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 RD |
8873 | |
8874 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8875 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8876 | return _resultobj; |
8877 | } | |
8878 | ||
b1462dfa RD |
8879 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
8880 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8881 | PyObject * _resultobj; |
b1462dfa | 8882 | bool _result; |
8ab979d7 | 8883 | wxMenuItem * _arg0; |
1d99702e | 8884 | PyObject * _argo0 = 0; |
efc5f224 | 8885 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8886 | |
8887 | self = self; | |
b1462dfa | 8888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 8889 | return NULL; |
1d99702e RD |
8890 | if (_argo0) { |
8891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8894 | return NULL; |
8895 | } | |
8896 | } | |
8ab979d7 | 8897 | { |
cf694132 | 8898 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8899 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 RD |
8900 | |
8901 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8902 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8903 | return _resultobj; |
8904 | } | |
8905 | ||
b1462dfa RD |
8906 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
8907 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8908 | PyObject * _resultobj; |
8909 | wxMenuItem * _arg0; | |
8910 | wxString * _arg1; | |
1d99702e | 8911 | PyObject * _argo0 = 0; |
8ab979d7 | 8912 | PyObject * _obj1 = 0; |
b1462dfa | 8913 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
8914 | |
8915 | self = self; | |
b1462dfa | 8916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8917 | return NULL; |
1d99702e RD |
8918 | if (_argo0) { |
8919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8922 | return NULL; |
8923 | } | |
8924 | } | |
8925 | { | |
185d7c3e RD |
8926 | #if PYTHON_API_VERSION >= 1009 |
8927 | char* tmpPtr; int tmpSize; | |
8928 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8929 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8930 | return NULL; | |
8931 | } | |
8932 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8933 | return NULL; | |
8934 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8935 | #else | |
8ab979d7 RD |
8936 | if (!PyString_Check(_obj1)) { |
8937 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8938 | return NULL; | |
8939 | } | |
185d7c3e RD |
8940 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8941 | #endif | |
8ab979d7 | 8942 | } |
cf694132 RD |
8943 | { |
8944 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8945 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 RD |
8946 | |
8947 | wxPy_END_ALLOW_THREADS; | |
8948 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
8949 | _resultobj = Py_None; |
8950 | { | |
8951 | if (_obj1) | |
8952 | delete _arg1; | |
8953 | } | |
8954 | return _resultobj; | |
8955 | } | |
8956 | ||
b1462dfa RD |
8957 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
8958 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8959 | PyObject * _resultobj; |
b1462dfa | 8960 | wxString * _result; |
8ab979d7 | 8961 | wxMenuItem * _arg0; |
1d99702e | 8962 | PyObject * _argo0 = 0; |
b1462dfa | 8963 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8964 | |
8965 | self = self; | |
b1462dfa | 8966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 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_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8972 | return NULL; |
8973 | } | |
8974 | } | |
cf694132 RD |
8975 | { |
8976 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8977 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 RD |
8978 | |
8979 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8980 | }{ |
eec92d76 | 8981 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 8982 | } |
cf694132 | 8983 | { |
b1462dfa RD |
8984 | delete _result; |
8985 | } | |
cf694132 RD |
8986 | return _resultobj; |
8987 | } | |
8988 | ||
b1462dfa RD |
8989 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
8990 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8991 | PyObject * _resultobj; |
b1462dfa | 8992 | wxString * _result; |
cf694132 | 8993 | wxMenuItem * _arg0; |
1d99702e | 8994 | PyObject * _argo0 = 0; |
efc5f224 | 8995 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
8996 | |
8997 | self = self; | |
b1462dfa | 8998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 8999 | return NULL; |
1d99702e RD |
9000 | if (_argo0) { |
9001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9004 | return NULL; |
9005 | } | |
9006 | } | |
9007 | { | |
9008 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9009 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
9010 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9011 | |
9012 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9013 | }{ |
eec92d76 | 9014 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 9015 | } |
cf694132 RD |
9016 | return _resultobj; |
9017 | } | |
9018 | ||
b1462dfa RD |
9019 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9020 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9021 | PyObject * _resultobj; |
cf694132 | 9022 | wxMenuItem * _arg0; |
b1462dfa | 9023 | bool _arg1; |
1d99702e | 9024 | PyObject * _argo0 = 0; |
b1462dfa RD |
9025 | int tempbool1; |
9026 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9027 | |
9028 | self = self; | |
b1462dfa | 9029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9030 | return NULL; |
1d99702e RD |
9031 | if (_argo0) { |
9032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9035 | return NULL; |
9036 | } | |
9037 | } | |
b1462dfa | 9038 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9039 | { |
9040 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9041 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 RD |
9042 | |
9043 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9044 | } Py_INCREF(Py_None); |
9045 | _resultobj = Py_None; | |
cf694132 RD |
9046 | return _resultobj; |
9047 | } | |
9048 | ||
b1462dfa RD |
9049 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9050 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9051 | PyObject * _resultobj; |
b1462dfa | 9052 | bool _result; |
cf694132 | 9053 | wxMenuItem * _arg0; |
1d99702e | 9054 | PyObject * _argo0 = 0; |
efc5f224 | 9055 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9056 | |
9057 | self = self; | |
b1462dfa | 9058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9059 | return NULL; |
1d99702e RD |
9060 | if (_argo0) { |
9061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9064 | return NULL; |
9065 | } | |
9066 | } | |
9067 | { | |
9068 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9069 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 RD |
9070 | |
9071 | wxPy_END_ALLOW_THREADS; | |
9072 | } _resultobj = Py_BuildValue("i",_result); | |
9073 | return _resultobj; | |
9074 | } | |
9075 | ||
b1462dfa RD |
9076 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9077 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9078 | PyObject * _resultobj; |
b1462dfa | 9079 | bool _result; |
cf694132 | 9080 | wxMenuItem * _arg0; |
1d99702e | 9081 | PyObject * _argo0 = 0; |
efc5f224 | 9082 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9083 | |
9084 | self = self; | |
b1462dfa | 9085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9086 | return NULL; |
1d99702e RD |
9087 | if (_argo0) { |
9088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9091 | return NULL; |
9092 | } | |
9093 | } | |
9094 | { | |
9095 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9096 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 RD |
9097 | |
9098 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9099 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9100 | return _resultobj; |
9101 | } | |
9102 | ||
b1462dfa RD |
9103 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9104 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9105 | PyObject * _resultobj; |
9106 | wxMenuItem * _arg0; | |
b1462dfa | 9107 | wxMenu * _arg1; |
1d99702e RD |
9108 | PyObject * _argo0 = 0; |
9109 | PyObject * _argo1 = 0; | |
b1462dfa | 9110 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9111 | |
9112 | self = self; | |
b1462dfa | 9113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9114 | return NULL; |
1d99702e RD |
9115 | if (_argo0) { |
9116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9119 | return NULL; |
9120 | } | |
9121 | } | |
1d99702e RD |
9122 | if (_argo1) { |
9123 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9124 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9126 | return NULL; |
9127 | } | |
9128 | } | |
9129 | { | |
9130 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9131 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 RD |
9132 | |
9133 | wxPy_END_ALLOW_THREADS; | |
9134 | } Py_INCREF(Py_None); | |
9135 | _resultobj = Py_None; | |
9136 | return _resultobj; | |
9137 | } | |
9138 | ||
b1462dfa RD |
9139 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9140 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9141 | PyObject * _resultobj; |
b1462dfa | 9142 | wxMenu * _result; |
cf694132 | 9143 | wxMenuItem * _arg0; |
1d99702e | 9144 | PyObject * _argo0 = 0; |
b1462dfa RD |
9145 | char *_kwnames[] = { "self", NULL }; |
9146 | char _ptemp[128]; | |
cf694132 RD |
9147 | |
9148 | self = self; | |
b1462dfa | 9149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 9150 | return NULL; |
1d99702e RD |
9151 | if (_argo0) { |
9152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9155 | return NULL; |
9156 | } | |
9157 | } | |
b1462dfa RD |
9158 | { |
9159 | wxPy_BEGIN_ALLOW_THREADS; | |
9160 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
9161 | ||
9162 | wxPy_END_ALLOW_THREADS; | |
9163 | } if (_result) { | |
9164 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
9165 | _resultobj = Py_BuildValue("s",_ptemp); | |
9166 | } else { | |
9167 | Py_INCREF(Py_None); | |
9168 | _resultobj = Py_None; | |
cf694132 | 9169 | } |
b1462dfa RD |
9170 | return _resultobj; |
9171 | } | |
9172 | ||
9173 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9174 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9175 | PyObject * _resultobj; | |
9176 | wxMenuItem * _arg0; | |
9177 | bool _arg1 = (bool ) TRUE; | |
9178 | PyObject * _argo0 = 0; | |
9179 | int tempbool1 = (int) TRUE; | |
9180 | char *_kwnames[] = { "self","enable", NULL }; | |
9181 | ||
9182 | self = self; | |
9183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9184 | return NULL; | |
9185 | if (_argo0) { | |
9186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
9189 | return NULL; |
9190 | } | |
9191 | } | |
b1462dfa | 9192 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9193 | { |
9194 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9195 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 RD |
9196 | |
9197 | wxPy_END_ALLOW_THREADS; | |
9198 | } Py_INCREF(Py_None); | |
9199 | _resultobj = Py_None; | |
9200 | return _resultobj; | |
9201 | } | |
9202 | ||
b1462dfa RD |
9203 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9204 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9205 | PyObject * _resultobj; |
b1462dfa | 9206 | bool _result; |
cf694132 | 9207 | wxMenuItem * _arg0; |
1d99702e | 9208 | PyObject * _argo0 = 0; |
b1462dfa | 9209 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9210 | |
9211 | self = self; | |
b1462dfa | 9212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9213 | return NULL; |
1d99702e RD |
9214 | if (_argo0) { |
9215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
9218 | return NULL; |
9219 | } | |
9220 | } | |
9221 | { | |
9222 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9223 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 RD |
9224 | |
9225 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9226 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9227 | return _resultobj; |
9228 | } | |
9229 | ||
b1462dfa RD |
9230 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
9231 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9232 | PyObject * _resultobj; |
9233 | wxMenuItem * _arg0; | |
b1462dfa | 9234 | bool _arg1 = (bool ) TRUE; |
1d99702e | 9235 | PyObject * _argo0 = 0; |
b1462dfa RD |
9236 | int tempbool1 = (int) TRUE; |
9237 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
9238 | |
9239 | self = self; | |
b1462dfa | 9240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9241 | return NULL; |
1d99702e RD |
9242 | if (_argo0) { |
9243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
9246 | return NULL; |
9247 | } | |
9248 | } | |
b1462dfa | 9249 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9250 | { |
9251 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9252 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 RD |
9253 | |
9254 | wxPy_END_ALLOW_THREADS; | |
9255 | } Py_INCREF(Py_None); | |
9256 | _resultobj = Py_None; | |
9257 | return _resultobj; | |
9258 | } | |
9259 | ||
b1462dfa RD |
9260 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
9261 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9262 | PyObject * _resultobj; |
b1462dfa | 9263 | bool _result; |
2abc0a0f | 9264 | wxMenuItem * _arg0; |
2abc0a0f | 9265 | PyObject * _argo0 = 0; |
b1462dfa | 9266 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
9267 | |
9268 | self = self; | |
b1462dfa | 9269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
9270 | return NULL; |
9271 | if (_argo0) { | |
9272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9275 | return NULL; |
9276 | } | |
9277 | } | |
2abc0a0f RD |
9278 | { |
9279 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9280 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f RD |
9281 | |
9282 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9283 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
9284 | return _resultobj; |
9285 | } | |
9286 | ||
b1462dfa RD |
9287 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
9288 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9289 | PyObject * _resultobj; |
2abc0a0f RD |
9290 | wxMenuItem * _arg0; |
9291 | PyObject * _argo0 = 0; | |
9292 | char *_kwnames[] = { "self", NULL }; | |
9293 | ||
9294 | self = self; | |
b1462dfa | 9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
9296 | return NULL; |
9297 | if (_argo0) { | |
9298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9301 | return NULL; |
9302 | } | |
9303 | } | |
9304 | { | |
9305 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9306 | wxMenuItem_Toggle(_arg0); |
2abc0a0f RD |
9307 | |
9308 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9309 | } Py_INCREF(Py_None); |
9310 | _resultobj = Py_None; | |
2abc0a0f RD |
9311 | return _resultobj; |
9312 | } | |
9313 | ||
b1462dfa RD |
9314 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
9315 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9316 | PyObject * _resultobj; |
9317 | wxMenuItem * _arg0; | |
b1462dfa | 9318 | wxString * _arg1; |
1d99702e | 9319 | PyObject * _argo0 = 0; |
b1462dfa RD |
9320 | PyObject * _obj1 = 0; |
9321 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
9322 | |
9323 | self = self; | |
b1462dfa | 9324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 9325 | return NULL; |
1d99702e RD |
9326 | if (_argo0) { |
9327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
9330 | return NULL; |
9331 | } | |
9332 | } | |
b1462dfa | 9333 | { |
185d7c3e RD |
9334 | #if PYTHON_API_VERSION >= 1009 |
9335 | char* tmpPtr; int tmpSize; | |
9336 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9337 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
9338 | return NULL; | |
9339 | } | |
9340 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9341 | return NULL; | |
9342 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9343 | #else | |
b1462dfa RD |
9344 | if (!PyString_Check(_obj1)) { |
9345 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 9346 | return NULL; |
cf694132 | 9347 | } |
185d7c3e RD |
9348 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9349 | #endif | |
b1462dfa | 9350 | } |
cf694132 RD |
9351 | { |
9352 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9353 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 RD |
9354 | |
9355 | wxPy_END_ALLOW_THREADS; | |
9356 | } Py_INCREF(Py_None); | |
8ab979d7 | 9357 | _resultobj = Py_None; |
b1462dfa RD |
9358 | { |
9359 | if (_obj1) | |
9360 | delete _arg1; | |
9361 | } | |
8ab979d7 RD |
9362 | return _resultobj; |
9363 | } | |
9364 | ||
b1462dfa RD |
9365 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
9366 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 9367 | PyObject * _resultobj; |
b1462dfa | 9368 | wxString * _result; |
be4d9c1f | 9369 | wxMenuItem * _arg0; |
1d99702e | 9370 | PyObject * _argo0 = 0; |
efc5f224 | 9371 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
9372 | |
9373 | self = self; | |
b1462dfa | 9374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 9375 | return NULL; |
1d99702e RD |
9376 | if (_argo0) { |
9377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
9380 | return NULL; |
9381 | } | |
9382 | } | |
cf694132 RD |
9383 | { |
9384 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9385 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
9386 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9387 | |
9388 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9389 | }{ |
eec92d76 | 9390 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 9391 | } |
be4d9c1f RD |
9392 | return _resultobj; |
9393 | } | |
9394 | ||
b1462dfa RD |
9395 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
9396 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9397 | PyObject * _resultobj; |
b1462dfa | 9398 | wxAcceleratorEntry * _result; |
2abc0a0f | 9399 | wxMenuItem * _arg0; |
2abc0a0f | 9400 | PyObject * _argo0 = 0; |
b1462dfa RD |
9401 | char *_kwnames[] = { "self", NULL }; |
9402 | char _ptemp[128]; | |
2abc0a0f RD |
9403 | |
9404 | self = self; | |
b1462dfa | 9405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
9406 | return NULL; |
9407 | if (_argo0) { | |
9408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9411 | return NULL; |
9412 | } | |
9413 | } | |
2abc0a0f RD |
9414 | { |
9415 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9416 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f RD |
9417 | |
9418 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9419 | } if (_result) { |
9420 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9421 | _resultobj = Py_BuildValue("s",_ptemp); | |
9422 | } else { | |
9423 | Py_INCREF(Py_None); | |
9424 | _resultobj = Py_None; | |
9425 | } | |
2abc0a0f RD |
9426 | return _resultobj; |
9427 | } | |
9428 | ||
b1462dfa RD |
9429 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9430 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9431 | PyObject * _resultobj; |
9432 | wxMenuItem * _arg0; | |
b1462dfa | 9433 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9434 | PyObject * _argo0 = 0; |
9435 | PyObject * _argo1 = 0; | |
b1462dfa | 9436 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9437 | |
9438 | self = self; | |
b1462dfa | 9439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9440 | return NULL; |
9441 | if (_argo0) { | |
9442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9445 | return NULL; |
9446 | } | |
9447 | } | |
9448 | if (_argo1) { | |
9449 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9450 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
9451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
9452 | return NULL; |
9453 | } | |
9454 | } | |
9455 | { | |
9456 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9457 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f RD |
9458 | |
9459 | wxPy_END_ALLOW_THREADS; | |
9460 | } Py_INCREF(Py_None); | |
9461 | _resultobj = Py_None; | |
9462 | return _resultobj; | |
9463 | } | |
9464 | ||
1b62f00d RD |
9465 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9466 | PyObject * _resultobj; | |
9467 | wxString * _result; | |
9468 | wxString * _arg0; | |
9469 | PyObject * _obj0 = 0; | |
9470 | char *_kwnames[] = { "text", NULL }; | |
9471 | ||
9472 | self = self; | |
9473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
9474 | return NULL; | |
9475 | { | |
9476 | #if PYTHON_API_VERSION >= 1009 | |
9477 | char* tmpPtr; int tmpSize; | |
9478 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
9479 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
9480 | return NULL; | |
9481 | } | |
9482 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9483 | return NULL; | |
9484 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9485 | #else | |
9486 | if (!PyString_Check(_obj0)) { | |
9487 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9488 | return NULL; | |
9489 | } | |
9490 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9491 | #endif | |
9492 | } | |
9493 | { | |
9494 | wxPy_BEGIN_ALLOW_THREADS; | |
9495 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); | |
9496 | ||
9497 | wxPy_END_ALLOW_THREADS; | |
9498 | }{ | |
9499 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9500 | } | |
9501 | { | |
9502 | if (_obj0) | |
9503 | delete _arg0; | |
9504 | } | |
9505 | { | |
9506 | delete _result; | |
9507 | } | |
9508 | return _resultobj; | |
9509 | } | |
9510 | ||
8ab979d7 | 9511 | static PyMethodDef windowscMethods[] = { |
1b62f00d | 9512 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9513 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
9514 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
9515 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9516 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9517 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
9518 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9519 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9520 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9521 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9522 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9523 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 9524 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9525 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9526 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
9527 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9528 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9529 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9530 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9531 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
9532 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9533 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9534 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9535 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9536 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
9537 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 9538 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
9539 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
9540 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9541 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9542 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
9543 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
9544 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
9545 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9546 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9547 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
9548 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9549 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
9550 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
9551 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
9552 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9553 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
9554 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
9555 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
9556 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
9557 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
9558 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
9559 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9560 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9561 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9562 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9563 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
9564 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9565 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
9566 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9567 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9568 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
9569 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9570 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
9571 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
9572 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9573 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9574 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9575 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9576 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
9577 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9578 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
9579 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 9580 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9581 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9582 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9583 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9584 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9585 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
9586 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
9587 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
9588 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
9589 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
9590 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
9591 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
9592 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
9593 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9594 | { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS }, |
4c9993c3 | 9595 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 9596 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 9597 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9598 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
9599 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
9600 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
9601 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
9602 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 9603 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9604 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 9605 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9606 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
9607 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
9608 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
9609 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
9610 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
9611 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
9612 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9613 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
9614 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
9615 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
9616 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
9617 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9618 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
9619 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
9620 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
9621 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
9622 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
9623 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
9624 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
9625 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
9626 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 9627 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9628 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
9629 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
9630 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
9631 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9632 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 9633 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9634 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
9635 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
9636 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
9637 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
9638 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
9639 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9640 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9641 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9642 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9643 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
9644 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
9645 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
9646 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
9647 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
9648 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 9649 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9650 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
9651 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
9652 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
9653 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
dbbb98cd | 9654 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9655 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
9656 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
9657 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
9658 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
9659 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
9660 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
9661 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9662 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9663 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 9664 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9665 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 9666 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9667 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
9668 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 9669 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9670 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
9671 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
9672 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
9673 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
9674 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
9675 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 9676 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9677 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
9678 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
9679 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
9680 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
9681 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
9682 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
9683 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9684 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
9685 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
9686 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
9687 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
9688 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
9689 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
9690 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
9691 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
9692 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
9693 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
9694 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
9695 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9696 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
9697 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
9698 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9699 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
9700 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9701 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
9702 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
9703 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9704 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
9705 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
9706 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
9707 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
9708 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
9709 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
9710 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
9711 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
9712 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
9713 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
9714 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
9715 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
9716 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9717 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9718 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 9719 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9720 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
9721 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9722 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 9723 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9724 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
9725 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
9726 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
9727 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
9728 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 9729 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9730 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
9731 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
9732 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
9733 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
9734 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
9735 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
9736 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
9737 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9738 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
9739 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
9740 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
3ca6a5f0 BP |
9741 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
9742 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9743 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
9744 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
9745 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
9746 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
9747 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
9748 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
9749 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, |
9750 | { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9751 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, | |
9752 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9753 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9754 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
9755 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 9756 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9757 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
9758 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
9759 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
9760 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
9761 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
9762 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9763 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9764 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9765 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 9766 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
a1df7a95 RD |
9767 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
9768 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
9769 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9770 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
9771 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
9772 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
9773 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
9774 | { NULL, NULL } |
9775 | }; | |
1d99702e RD |
9776 | #ifdef __cplusplus |
9777 | } | |
9778 | #endif | |
9779 | /* | |
9780 | * This table is used by the pointer type-checker | |
9781 | */ | |
9782 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
9783 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
9784 | { "_signed_long","_long",0}, | |
65dd82cb | 9785 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
b1462dfa RD |
9786 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, |
9787 | { "_wxPrintQuality","_wxCoord",0}, | |
1d99702e RD |
9788 | { "_wxPrintQuality","_int",0}, |
9789 | { "_wxPrintQuality","_signed_int",0}, | |
9790 | { "_wxPrintQuality","_unsigned_int",0}, | |
9791 | { "_wxPrintQuality","_wxWindowID",0}, | |
9792 | { "_wxPrintQuality","_uint",0}, | |
9793 | { "_wxPrintQuality","_EBool",0}, | |
9794 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 9795 | { "_wxPrintQuality","_time_t",0}, |
b1462dfa | 9796 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
1d99702e | 9797 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 9798 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e RD |
9799 | { "_class_wxMenuBar","_wxMenuBar",0}, |
9800 | { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9801 | { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9802 | { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9803 | { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9804 | { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9805 | { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9806 | { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9807 | { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9808 | { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9809 | { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9810 | { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
9811 | { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
9812 | { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
9813 | { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
9814 | { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
9815 | { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e RD |
9816 | { "_class_wxEvtHandler","_wxEvtHandler",0}, |
9817 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
9818 | { "_wxCursor","_class_wxCursor",0}, | |
9819 | { "_wxMask","_class_wxMask",0}, | |
9820 | { "_wxPen","_class_wxPen",0}, | |
9821 | { "_byte","_unsigned_char",0}, | |
b1462dfa | 9822 | { "_wxDataObject","_class_wxDataObject",0}, |
65dd82cb RD |
9823 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
9824 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
9825 | { "_long","_unsigned_long",0}, |
9826 | { "_long","_signed_long",0}, | |
9827 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa | 9828 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
1d99702e | 9829 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, |
b1462dfa | 9830 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e | 9831 | { "_wxDC","_class_wxDC",0}, |
b1462dfa RD |
9832 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
9833 | { "_size_t","_wxCoord",0}, | |
1d99702e | 9834 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 9835 | { "_size_t","_time_t",0}, |
1d99702e RD |
9836 | { "_size_t","_unsigned_int",0}, |
9837 | { "_size_t","_int",0}, | |
9838 | { "_size_t","_wxWindowID",0}, | |
9839 | { "_size_t","_uint",0}, | |
9840 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
1d99702e RD |
9841 | { "_class_wxMenuItem","_wxMenuItem",0}, |
9842 | { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9843 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9844 | { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
9845 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
9846 | { "_wxPanel","_class_wxPanel",0}, | |
9847 | { "_class_wxMask","_wxMask",0}, | |
b1462dfa | 9848 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
1d99702e RD |
9849 | { "_wxColour","_class_wxColour",0}, |
9850 | { "_class_wxDialog","_wxDialog",0}, | |
b1462dfa RD |
9851 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
9852 | { "_class_wxDataObject","_wxDataObject",0}, | |
1d99702e | 9853 | { "_wxBrush","_class_wxBrush",0}, |
b1462dfa RD |
9854 | { "_wxDataFormat","_class_wxDataFormat",0}, |
9855 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
9856 | { "_uint","_wxCoord",0}, | |
1d99702e | 9857 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 9858 | { "_uint","_time_t",0}, |
1d99702e RD |
9859 | { "_uint","_size_t",0}, |
9860 | { "_uint","_unsigned_int",0}, | |
9861 | { "_uint","_int",0}, | |
9862 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 9863 | { "_wxChar","_char",0}, |
2f90df85 | 9864 | { "_wxPyValidator","_class_wxPyValidator",0}, |
1d99702e RD |
9865 | { "_wxRect","_class_wxRect",0}, |
9866 | { "_wxPoint","_class_wxPoint",0}, | |
f6bcfd97 | 9867 | { "_char","_wxChar",0}, |
1d99702e | 9868 | { "_wxBitmap","_class_wxBitmap",0}, |
1d99702e RD |
9869 | { "_wxWindowDC","_class_wxWindowDC",0}, |
9870 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
2f90df85 RD |
9871 | { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
9872 | { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
9873 | { "_class_wxValidator","_wxValidator",0}, | |
b1462dfa RD |
9874 | { "_wxDropTarget","_class_wxDropTarget",0}, |
9875 | { "_EBool","_wxCoord",0}, | |
1d99702e RD |
9876 | { "_EBool","_wxPrintQuality",0}, |
9877 | { "_EBool","_signed_int",0}, | |
9878 | { "_EBool","_int",0}, | |
9879 | { "_EBool","_wxWindowID",0}, | |
9880 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa | 9881 | { "_class_wxDataFormat","_wxDataFormat",0}, |
1d99702e | 9882 | { "_wxFont","_class_wxFont",0}, |
b1462dfa | 9883 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
1d99702e RD |
9884 | { "_unsigned_long","_long",0}, |
9885 | { "_class_wxRect","_wxRect",0}, | |
9886 | { "_class_wxDC","_wxDC",0}, | |
1d99702e RD |
9887 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, |
9888 | { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9889 | { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9890 | { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
9891 | { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
9892 | { "_class_wxPanel","_wxPanel",0}, | |
b1462dfa | 9893 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
9894 | { "_signed_int","_wxPrintQuality",0}, |
9895 | { "_signed_int","_EBool",0}, | |
9896 | { "_signed_int","_wxWindowID",0}, | |
9897 | { "_signed_int","_int",0}, | |
9898 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
9899 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
b1462dfa | 9900 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e RD |
9901 | { "_wxMenu","_class_wxMenu",0}, |
9902 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
9903 | { "_WXTYPE","_short",0}, | |
9904 | { "_WXTYPE","_signed_short",0}, | |
9905 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 9906 | { "_class_wxDropTarget","_wxDropTarget",0}, |
1d99702e RD |
9907 | { "_class_wxBrush","_wxBrush",0}, |
9908 | { "_unsigned_short","_WXTYPE",0}, | |
9909 | { "_unsigned_short","_short",0}, | |
b1462dfa RD |
9910 | { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, |
9911 | { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
9912 | { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
9913 | { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
9914 | { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
9915 | { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
9916 | { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
9917 | { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
9918 | { "_class_wxWindow","_wxWindow",0}, | |
9919 | { "_class_wxFont","_wxFont",0}, | |
b1462dfa | 9920 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 9921 | { "_class_wxPyValidator","_wxPyValidator",0}, |
2abc0a0f | 9922 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
65dd82cb | 9923 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, |
1d99702e RD |
9924 | { "_wxClientDC","_class_wxClientDC",0}, |
9925 | { "_class_wxPoint","_wxPoint",0}, | |
9926 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
9927 | { "_signed_short","_WXTYPE",0}, | |
9928 | { "_signed_short","_short",0}, | |
9929 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
65dd82cb | 9930 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
9931 | { "_wxPaintDC","_class_wxPaintDC",0}, |
9932 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
9933 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
9934 | { "_class_wxCursor","_wxCursor",0}, | |
b1462dfa | 9935 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
1d99702e RD |
9936 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
9937 | { "_unsigned_char","_byte",0}, | |
9938 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
9939 | { "_class_wxMenu","_wxMenu",0}, | |
b1462dfa | 9940 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 9941 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 9942 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
9943 | { "_unsigned_int","_size_t",0}, |
9944 | { "_unsigned_int","_uint",0}, | |
9945 | { "_unsigned_int","_wxWindowID",0}, | |
9946 | { "_unsigned_int","_int",0}, | |
9947 | { "_wxIcon","_class_wxIcon",0}, | |
9948 | { "_wxDialog","_class_wxDialog",0}, | |
9949 | { "_class_wxPen","_wxPen",0}, | |
9950 | { "_short","_WXTYPE",0}, | |
9951 | { "_short","_unsigned_short",0}, | |
9952 | { "_short","_signed_short",0}, | |
65dd82cb RD |
9953 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
9954 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
1d99702e | 9955 | { "_class_wxImageList","_wxImageList",0}, |
b1462dfa | 9956 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 9957 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 9958 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
9959 | { "_wxWindowID","_size_t",0}, |
9960 | { "_wxWindowID","_EBool",0}, | |
9961 | { "_wxWindowID","_uint",0}, | |
9962 | { "_wxWindowID","_int",0}, | |
9963 | { "_wxWindowID","_signed_int",0}, | |
9964 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 9965 | { "_int","_wxCoord",0}, |
1d99702e | 9966 | { "_int","_wxPrintQuality",0}, |
c368d904 | 9967 | { "_int","_time_t",0}, |
1d99702e RD |
9968 | { "_int","_size_t",0}, |
9969 | { "_int","_EBool",0}, | |
9970 | { "_int","_uint",0}, | |
9971 | { "_int","_wxWindowID",0}, | |
9972 | { "_int","_unsigned_int",0}, | |
9973 | { "_int","_signed_int",0}, | |
c368d904 RD |
9974 | { "_time_t","_wxCoord",0}, |
9975 | { "_time_t","_wxPrintQuality",0}, | |
9976 | { "_time_t","_unsigned_int",0}, | |
9977 | { "_time_t","_int",0}, | |
9978 | { "_time_t","_wxWindowID",0}, | |
9979 | { "_time_t","_uint",0}, | |
9980 | { "_time_t","_size_t",0}, | |
1d99702e RD |
9981 | { "_wxSize","_class_wxSize",0}, |
9982 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
65dd82cb | 9983 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
1d99702e | 9984 | { "_class_wxPaintDC","_wxPaintDC",0}, |
b1462dfa | 9985 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, |
2f90df85 RD |
9986 | { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
9987 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
9988 | { "_wxValidator","_class_wxValidator",0}, | |
1d99702e RD |
9989 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
9990 | { "_class_wxIcon","_wxIcon",0}, | |
9991 | { "_class_wxColour","_wxColour",0}, | |
9992 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
9993 | { "_wxPalette","_class_wxPalette",0}, | |
b1462dfa RD |
9994 | { "_wxCoord","_int",0}, |
9995 | { "_wxCoord","_signed_int",0}, | |
9996 | { "_wxCoord","_unsigned_int",0}, | |
9997 | { "_wxCoord","_wxWindowID",0}, | |
9998 | { "_wxCoord","_uint",0}, | |
9999 | { "_wxCoord","_EBool",0}, | |
10000 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10001 | { "_wxCoord","_time_t",0}, |
b1462dfa RD |
10002 | { "_wxCoord","_wxPrintQuality",0}, |
10003 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, | |
1d99702e | 10004 | { "_wxRegion","_class_wxRegion",0}, |
b1462dfa | 10005 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
2abc0a0f | 10006 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
1d99702e | 10007 | { "_class_wxClientDC","_wxClientDC",0}, |
b1462dfa | 10008 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
1d99702e RD |
10009 | { "_class_wxSize","_wxSize",0}, |
10010 | { "_class_wxBitmap","_wxBitmap",0}, | |
10011 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 10012 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e RD |
10013 | { "_wxMenuBar","_class_wxMenuBar",0}, |
10014 | { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10015 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10016 | { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10017 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10018 | { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10019 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10020 | { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10021 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10022 | { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10023 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10024 | { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
10025 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
10026 | { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
10027 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
10028 | { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
10029 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e RD |
10030 | { "_wxEvtHandler","_class_wxEvtHandler",0}, |
10031 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
1d99702e RD |
10032 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, |
10033 | { "_class_wxPalette","_wxPalette",0}, | |
b1462dfa RD |
10034 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
10035 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, | |
10036 | { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
10037 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
10038 | { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
10039 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
10040 | { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
10041 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
10042 | { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
10043 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
10044 | { "_wxWindow","_class_wxWindow",0}, | |
10045 | {0,0,0}}; | |
10046 | ||
8ab979d7 RD |
10047 | static PyObject *SWIG_globals; |
10048 | #ifdef __cplusplus | |
10049 | extern "C" | |
10050 | #endif | |
1d99702e | 10051 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
10052 | PyObject *m, *d; |
10053 | SWIG_globals = SWIG_newvarlink(); | |
10054 | m = Py_InitModule("windowsc", windowscMethods); | |
10055 | d = PyModule_GetDict(m); | |
1d99702e RD |
10056 | { |
10057 | int i; | |
10058 | for (i = 0; _swig_mapping[i].n1; i++) | |
10059 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10060 | } | |
8ab979d7 | 10061 | } |