]>
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; | |
f3d9dc1d | 63 | if (!target) { |
8ab979d7 | 64 | target = o; |
f3d9dc1d | 65 | } else if (target == Py_None) { |
8ab979d7 RD |
66 | Py_DECREF(Py_None); |
67 | target = o; | |
f3d9dc1d | 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 | ||
f3d9dc1d | 85 | if (!target) { |
8ab979d7 | 86 | target = o; |
f3d9dc1d | 87 | } else if (target == Py_None) { |
8ab979d7 RD |
88 | Py_DECREF(Py_None); |
89 | target = o; | |
f3d9dc1d | 90 | } else { |
8ab979d7 RD |
91 | if (!PyTuple_Check(target)) { |
92 | o2 = target; | |
93 | target = PyTuple_New(1); | |
94 | PyTuple_SetItem(target, 0, o2); | |
95 | } | |
f3d9dc1d RD |
96 | o3 = PyTuple_New(1); |
97 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
98 | |
99 | o2 = target; | |
f3d9dc1d RD |
100 | target = PySequence_Concat(o2, o3); |
101 | Py_DECREF(o2); | |
8ab979d7 RD |
102 | Py_DECREF(o3); |
103 | } | |
104 | return target; | |
105 | } | |
106 | ||
794c5cb1 RD |
107 | #if PYTHON_API_VERSION >= 1009 |
108 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
109 | #else | |
110 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
111 | #endif | |
2f90df85 | 112 | |
e508a2b6 RD |
113 | static wxString wxPyEmptyStr(""); |
114 | ||
2f90df85 RD |
115 | bool wxValidator_IsSilent() { |
116 | return wxValidator::IsSilent(); | |
117 | } | |
8ab979d7 | 118 | |
2f90df85 RD |
119 | void wxValidator_SetBellOnError(int doIt = TRUE) { |
120 | wxValidator::SetBellOnError(doIt); | |
121 | } | |
8ab979d7 | 122 | |
2f90df85 RD |
123 | class wxPyValidator : public wxValidator { |
124 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
125 | public: | |
126 | wxPyValidator() { | |
127 | } | |
128 | // wxPyValidator(const wxPyValidator& other); | |
129 | ||
130 | ~wxPyValidator() { | |
131 | } | |
132 | ||
133 | wxObject* wxPyValidator::Clone() const { | |
694759cf RD |
134 | wxPyValidator* ptr = NULL; |
135 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 136 | |
694759cf RD |
137 | bool doSave = wxPyRestoreThread(); |
138 | if (self->m_myInst.findCallback("Clone")) { | |
139 | PyObject* ro; | |
140 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
141 | if (ro) { |
142 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
143 | Py_DECREF(ro); | |
144 | } | |
694759cf RD |
145 | } |
146 | // This is very dangerous!!! But is the only way I could find | |
147 | // to squash a memory leak. Currently it is okay, but if the | |
148 | // validator architecture in wxWindows ever changes, problems | |
149 | // could arise. | |
150 | delete self; | |
2f90df85 | 151 | |
694759cf RD |
152 | wxPySaveThread(doSave); |
153 | return ptr; | |
154 | } | |
2f90df85 RD |
155 | |
156 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); | |
157 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
158 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
159 | ||
160 | PYPRIVATE; | |
161 | // PyObject* m_data; | |
162 | }; | |
163 | ||
164 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
165 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
166 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
167 | ||
168 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 169 | |
8ab979d7 RD |
170 | |
171 | wxWindow* wxWindow_FindFocus() { | |
172 | return wxWindow::FindFocus(); | |
173 | } | |
2f90df85 RD |
174 | |
175 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
176 | wxWindow* win = new wxWindow; | |
177 | win->SetHWND(hWnd); | |
178 | win->SubclassWin(hWnd); | |
179 | return win; | |
180 | } | |
a1df7a95 RD |
181 | |
182 | int wxWindow_NewControlId() { | |
183 | return wxWindow::NewControlId(); | |
184 | } | |
185 | int wxWindow_NextControlId(int id) { | |
186 | return wxWindow::NextControlId(id); | |
187 | } | |
188 | int wxWindow_PrevControlId(int id) { | |
189 | return wxWindow::PrevControlId(id); | |
190 | } | |
2f90df85 RD |
191 | #ifdef __cplusplus |
192 | extern "C" { | |
193 | #endif | |
194 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
195 | PyObject * _resultobj; | |
196 | bool _result; | |
197 | char *_kwnames[] = { NULL }; | |
198 | ||
199 | self = self; | |
200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
201 | return NULL; | |
202 | { | |
203 | wxPy_BEGIN_ALLOW_THREADS; | |
204 | _result = (bool )wxValidator_IsSilent(); | |
205 | ||
206 | wxPy_END_ALLOW_THREADS; | |
207 | } _resultobj = Py_BuildValue("i",_result); | |
208 | return _resultobj; | |
209 | } | |
210 | ||
211 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
212 | PyObject * _resultobj; | |
213 | int _arg0 = (int ) TRUE; | |
214 | char *_kwnames[] = { "doIt", NULL }; | |
215 | ||
216 | self = self; | |
217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
218 | return NULL; | |
219 | { | |
220 | wxPy_BEGIN_ALLOW_THREADS; | |
221 | wxValidator_SetBellOnError(_arg0); | |
222 | ||
223 | wxPy_END_ALLOW_THREADS; | |
224 | } Py_INCREF(Py_None); | |
225 | _resultobj = Py_None; | |
226 | return _resultobj; | |
227 | } | |
228 | ||
229 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
230 | PyObject * _resultobj; | |
231 | wxWindow * _result; | |
232 | char *_kwnames[] = { NULL }; | |
233 | char _ptemp[128]; | |
234 | ||
235 | self = self; | |
236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
237 | return NULL; | |
238 | { | |
239 | wxPy_BEGIN_ALLOW_THREADS; | |
240 | _result = (wxWindow *)wxWindow_FindFocus(); | |
241 | ||
242 | wxPy_END_ALLOW_THREADS; | |
243 | } if (_result) { | |
244 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
245 | _resultobj = Py_BuildValue("s",_ptemp); | |
246 | } else { | |
247 | Py_INCREF(Py_None); | |
248 | _resultobj = Py_None; | |
249 | } | |
250 | return _resultobj; | |
251 | } | |
252 | ||
253 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
254 | PyObject * _resultobj; | |
255 | wxWindow * _result; | |
256 | unsigned long _arg0; | |
257 | char *_kwnames[] = { "hWnd", NULL }; | |
258 | char _ptemp[128]; | |
259 | ||
260 | self = self; | |
261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
262 | return NULL; | |
263 | { | |
264 | wxPy_BEGIN_ALLOW_THREADS; | |
265 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); | |
266 | ||
267 | wxPy_END_ALLOW_THREADS; | |
268 | } if (_result) { | |
269 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
270 | _resultobj = Py_BuildValue("s",_ptemp); | |
271 | } else { | |
272 | Py_INCREF(Py_None); | |
273 | _resultobj = Py_None; | |
274 | } | |
275 | return _resultobj; | |
276 | } | |
277 | ||
a1df7a95 RD |
278 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { |
279 | PyObject * _resultobj; | |
280 | int _result; | |
281 | char *_kwnames[] = { NULL }; | |
282 | ||
283 | self = self; | |
284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
285 | return NULL; | |
286 | { | |
287 | wxPy_BEGIN_ALLOW_THREADS; | |
288 | _result = (int )wxWindow_NewControlId(); | |
289 | ||
290 | wxPy_END_ALLOW_THREADS; | |
291 | } _resultobj = Py_BuildValue("i",_result); | |
292 | return _resultobj; | |
293 | } | |
294 | ||
295 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
296 | PyObject * _resultobj; | |
297 | int _result; | |
298 | int _arg0; | |
299 | char *_kwnames[] = { "id", NULL }; | |
300 | ||
301 | self = self; | |
302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
303 | return NULL; | |
304 | { | |
305 | wxPy_BEGIN_ALLOW_THREADS; | |
306 | _result = (int )wxWindow_NextControlId(_arg0); | |
307 | ||
308 | wxPy_END_ALLOW_THREADS; | |
309 | } _resultobj = Py_BuildValue("i",_result); | |
310 | return _resultobj; | |
311 | } | |
312 | ||
313 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
314 | PyObject * _resultobj; | |
315 | int _result; | |
316 | int _arg0; | |
317 | char *_kwnames[] = { "id", NULL }; | |
318 | ||
319 | self = self; | |
320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
321 | return NULL; | |
322 | { | |
323 | wxPy_BEGIN_ALLOW_THREADS; | |
324 | _result = (int )wxWindow_PrevControlId(_arg0); | |
325 | ||
326 | wxPy_END_ALLOW_THREADS; | |
327 | } _resultobj = Py_BuildValue("i",_result); | |
328 | return _resultobj; | |
329 | } | |
330 | ||
c368d904 RD |
331 | #define new_wxEvtHandler() (new wxEvtHandler()) |
332 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
333 | PyObject * _resultobj; | |
334 | wxEvtHandler * _result; | |
335 | char *_kwnames[] = { NULL }; | |
336 | char _ptemp[128]; | |
337 | ||
338 | self = self; | |
339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
340 | return NULL; | |
341 | { | |
342 | wxPy_BEGIN_ALLOW_THREADS; | |
343 | _result = (wxEvtHandler *)new_wxEvtHandler(); | |
344 | ||
345 | wxPy_END_ALLOW_THREADS; | |
346 | } if (_result) { | |
347 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
348 | _resultobj = Py_BuildValue("s",_ptemp); | |
349 | } else { | |
350 | Py_INCREF(Py_None); | |
351 | _resultobj = Py_None; | |
352 | } | |
353 | return _resultobj; | |
354 | } | |
355 | ||
2f90df85 RD |
356 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
357 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
358 | PyObject * _resultobj; | |
359 | bool _result; | |
360 | wxEvtHandler * _arg0; | |
361 | wxEvent * _arg1; | |
362 | PyObject * _argo0 = 0; | |
363 | PyObject * _argo1 = 0; | |
364 | char *_kwnames[] = { "self","event", NULL }; | |
365 | ||
366 | self = self; | |
367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
368 | return NULL; | |
369 | if (_argo0) { | |
370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
373 | return NULL; | |
374 | } | |
375 | } | |
376 | if (_argo1) { | |
377 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
378 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
380 | return NULL; | |
381 | } | |
382 | } | |
383 | { | |
384 | wxPy_BEGIN_ALLOW_THREADS; | |
385 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
386 | ||
387 | wxPy_END_ALLOW_THREADS; | |
388 | } _resultobj = Py_BuildValue("i",_result); | |
389 | return _resultobj; | |
390 | } | |
391 | ||
f6bcfd97 BP |
392 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
393 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
394 | PyObject * _resultobj; | |
395 | wxEvtHandler * _arg0; | |
396 | wxEvent * _arg1; | |
397 | PyObject * _argo0 = 0; | |
398 | PyObject * _argo1 = 0; | |
399 | char *_kwnames[] = { "self","event", NULL }; | |
400 | ||
401 | self = self; | |
402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
403 | return NULL; | |
404 | if (_argo0) { | |
405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
408 | return NULL; | |
409 | } | |
410 | } | |
411 | if (_argo1) { | |
412 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
413 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
415 | return NULL; | |
416 | } | |
417 | } | |
418 | { | |
419 | wxPy_BEGIN_ALLOW_THREADS; | |
420 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); | |
421 | ||
422 | wxPy_END_ALLOW_THREADS; | |
423 | } Py_INCREF(Py_None); | |
424 | _resultobj = Py_None; | |
425 | return _resultobj; | |
426 | } | |
427 | ||
2f90df85 RD |
428 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
429 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
430 | PyObject * _resultobj; | |
431 | bool _result; | |
432 | wxEvtHandler * _arg0; | |
433 | PyObject * _argo0 = 0; | |
434 | char *_kwnames[] = { "self", NULL }; | |
435 | ||
436 | self = self; | |
437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
438 | return NULL; | |
439 | if (_argo0) { | |
440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
443 | return NULL; | |
444 | } | |
445 | } | |
446 | { | |
447 | wxPy_BEGIN_ALLOW_THREADS; | |
448 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
449 | ||
450 | wxPy_END_ALLOW_THREADS; | |
451 | } _resultobj = Py_BuildValue("i",_result); | |
452 | return _resultobj; | |
453 | } | |
454 | ||
455 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
456 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
457 | PyObject * _resultobj; | |
458 | wxEvtHandler * _arg0; | |
459 | bool _arg1; | |
460 | PyObject * _argo0 = 0; | |
461 | int tempbool1; | |
462 | char *_kwnames[] = { "self","enabled", NULL }; | |
463 | ||
464 | self = self; | |
465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
466 | return NULL; | |
467 | if (_argo0) { | |
468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
471 | return NULL; | |
472 | } | |
473 | } | |
474 | _arg1 = (bool ) tempbool1; | |
475 | { | |
476 | wxPy_BEGIN_ALLOW_THREADS; | |
477 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
478 | ||
479 | wxPy_END_ALLOW_THREADS; | |
480 | } Py_INCREF(Py_None); | |
481 | _resultobj = Py_None; | |
482 | return _resultobj; | |
483 | } | |
484 | ||
485 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
486 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
487 | PyObject * _resultobj; | |
488 | wxEvtHandler * _result; | |
489 | wxEvtHandler * _arg0; | |
490 | PyObject * _argo0 = 0; | |
491 | char *_kwnames[] = { "self", NULL }; | |
492 | char _ptemp[128]; | |
493 | ||
494 | self = self; | |
495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
496 | return NULL; | |
497 | if (_argo0) { | |
498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
501 | return NULL; | |
502 | } | |
503 | } | |
504 | { | |
505 | wxPy_BEGIN_ALLOW_THREADS; | |
506 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
507 | ||
508 | wxPy_END_ALLOW_THREADS; | |
509 | } if (_result) { | |
510 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
511 | _resultobj = Py_BuildValue("s",_ptemp); | |
512 | } else { | |
513 | Py_INCREF(Py_None); | |
514 | _resultobj = Py_None; | |
515 | } | |
516 | return _resultobj; | |
517 | } | |
518 | ||
519 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
520 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
521 | PyObject * _resultobj; | |
522 | wxEvtHandler * _result; | |
523 | wxEvtHandler * _arg0; | |
524 | PyObject * _argo0 = 0; | |
525 | char *_kwnames[] = { "self", NULL }; | |
526 | char _ptemp[128]; | |
527 | ||
528 | self = self; | |
529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
530 | return NULL; | |
531 | if (_argo0) { | |
532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
535 | return NULL; | |
536 | } | |
537 | } | |
538 | { | |
539 | wxPy_BEGIN_ALLOW_THREADS; | |
540 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
541 | ||
542 | wxPy_END_ALLOW_THREADS; | |
543 | } if (_result) { | |
544 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
545 | _resultobj = Py_BuildValue("s",_ptemp); | |
546 | } else { | |
547 | Py_INCREF(Py_None); | |
548 | _resultobj = Py_None; | |
549 | } | |
550 | return _resultobj; | |
551 | } | |
552 | ||
553 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
554 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
555 | PyObject * _resultobj; | |
556 | wxEvtHandler * _arg0; | |
557 | wxEvtHandler * _arg1; | |
558 | PyObject * _argo0 = 0; | |
559 | PyObject * _argo1 = 0; | |
560 | char *_kwnames[] = { "self","handler", NULL }; | |
561 | ||
562 | self = self; | |
563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
564 | return NULL; | |
565 | if (_argo0) { | |
566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
569 | return NULL; | |
570 | } | |
571 | } | |
572 | if (_argo1) { | |
573 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
574 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
576 | return NULL; | |
577 | } | |
578 | } | |
579 | { | |
580 | wxPy_BEGIN_ALLOW_THREADS; | |
581 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
582 | ||
583 | wxPy_END_ALLOW_THREADS; | |
584 | } Py_INCREF(Py_None); | |
585 | _resultobj = Py_None; | |
586 | return _resultobj; | |
587 | } | |
588 | ||
589 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
590 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
591 | PyObject * _resultobj; | |
592 | wxEvtHandler * _arg0; | |
593 | wxEvtHandler * _arg1; | |
594 | PyObject * _argo0 = 0; | |
595 | PyObject * _argo1 = 0; | |
596 | char *_kwnames[] = { "self","handler", NULL }; | |
597 | ||
598 | self = self; | |
599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
600 | return NULL; | |
601 | if (_argo0) { | |
602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
605 | return NULL; | |
606 | } | |
607 | } | |
608 | if (_argo1) { | |
609 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
610 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
612 | return NULL; | |
613 | } | |
614 | } | |
615 | { | |
616 | wxPy_BEGIN_ALLOW_THREADS; | |
617 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
618 | ||
619 | wxPy_END_ALLOW_THREADS; | |
620 | } Py_INCREF(Py_None); | |
621 | _resultobj = Py_None; | |
622 | return _resultobj; | |
623 | } | |
624 | ||
625 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
626 | if (PyCallable_Check(func)) { | |
627 | self->Connect(id, lastId, eventType, | |
628 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
629 | new wxPyCallback(func)); | |
630 | } | |
631 | } | |
632 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
633 | PyObject * _resultobj; | |
634 | wxEvtHandler * _arg0; | |
635 | int _arg1; | |
636 | int _arg2; | |
637 | int _arg3; | |
638 | PyObject * _arg4; | |
639 | PyObject * _argo0 = 0; | |
640 | PyObject * _obj4 = 0; | |
641 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
642 | ||
643 | self = self; | |
644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
645 | return NULL; | |
646 | if (_argo0) { | |
647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
650 | return NULL; | |
651 | } | |
652 | } | |
653 | { | |
654 | _arg4 = _obj4; | |
655 | } | |
656 | { | |
657 | wxPy_BEGIN_ALLOW_THREADS; | |
658 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
659 | ||
660 | wxPy_END_ALLOW_THREADS; | |
661 | } Py_INCREF(Py_None); | |
662 | _resultobj = Py_None; | |
663 | return _resultobj; | |
664 | } | |
665 | ||
6999b0d8 RD |
666 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
667 | return self->Disconnect(id, lastId, eventType, | |
668 | (wxObjectEventFunction) | |
669 | &wxPyCallback::EventThunker); | |
670 | } | |
671 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
672 | PyObject * _resultobj; | |
673 | bool _result; | |
674 | wxEvtHandler * _arg0; | |
675 | int _arg1; | |
676 | int _arg2 = (int ) -1; | |
677 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
678 | PyObject * _argo0 = 0; | |
679 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
680 | ||
681 | self = self; | |
682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
683 | return NULL; | |
684 | if (_argo0) { | |
685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
688 | return NULL; | |
689 | } | |
690 | } | |
691 | { | |
692 | wxPy_BEGIN_ALLOW_THREADS; | |
693 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
694 | ||
695 | wxPy_END_ALLOW_THREADS; | |
696 | } _resultobj = Py_BuildValue("i",_result); | |
697 | return _resultobj; | |
698 | } | |
699 | ||
926bb76c RD |
700 | static const char * wxEvtHandler_GetClassName(wxEvtHandler *self) { |
701 | return self->GetClassInfo()->GetClassName(); | |
702 | } | |
703 | static PyObject *_wrap_wxEvtHandler_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
704 | PyObject * _resultobj; | |
705 | char * _result; | |
706 | wxEvtHandler * _arg0; | |
707 | PyObject * _argo0 = 0; | |
708 | char *_kwnames[] = { "self", NULL }; | |
709 | ||
710 | self = self; | |
711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetClassName",_kwnames,&_argo0)) | |
712 | return NULL; | |
713 | if (_argo0) { | |
714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetClassName. Expected _wxEvtHandler_p."); | |
717 | return NULL; | |
718 | } | |
719 | } | |
720 | { | |
721 | wxPy_BEGIN_ALLOW_THREADS; | |
722 | _result = (char *)wxEvtHandler_GetClassName(_arg0); | |
723 | ||
724 | wxPy_END_ALLOW_THREADS; | |
725 | } _resultobj = Py_BuildValue("s", _result); | |
726 | return _resultobj; | |
727 | } | |
728 | ||
2f90df85 RD |
729 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
730 | wxValidator *src; | |
731 | wxEvtHandler *dest; | |
732 | src = (wxValidator *) ptr; | |
733 | dest = (wxEvtHandler *) src; | |
734 | return (void *) dest; | |
735 | } | |
736 | ||
737 | #define new_wxValidator() (new wxValidator()) | |
738 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
739 | PyObject * _resultobj; | |
740 | wxValidator * _result; | |
741 | char *_kwnames[] = { NULL }; | |
742 | char _ptemp[128]; | |
743 | ||
744 | self = self; | |
745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
746 | return NULL; | |
747 | { | |
748 | wxPy_BEGIN_ALLOW_THREADS; | |
749 | _result = (wxValidator *)new_wxValidator(); | |
750 | ||
751 | wxPy_END_ALLOW_THREADS; | |
752 | } if (_result) { | |
753 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
754 | _resultobj = Py_BuildValue("s",_ptemp); | |
755 | } else { | |
756 | Py_INCREF(Py_None); | |
757 | _resultobj = Py_None; | |
758 | } | |
759 | return _resultobj; | |
af309447 | 760 | } |
2f90df85 RD |
761 | |
762 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
763 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 764 | PyObject * _resultobj; |
2f90df85 RD |
765 | wxValidator * _result; |
766 | wxValidator * _arg0; | |
767 | PyObject * _argo0 = 0; | |
768 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
769 | char _ptemp[128]; |
770 | ||
771 | self = self; | |
2f90df85 RD |
772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
773 | return NULL; | |
774 | if (_argo0) { | |
775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 778 | return NULL; |
2f90df85 RD |
779 | } |
780 | } | |
cf694132 RD |
781 | { |
782 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 783 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 RD |
784 | |
785 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 786 | } if (_result) { |
2f90df85 | 787 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); |
1d99702e RD |
788 | _resultobj = Py_BuildValue("s",_ptemp); |
789 | } else { | |
790 | Py_INCREF(Py_None); | |
791 | _resultobj = Py_None; | |
792 | } | |
8ab979d7 RD |
793 | return _resultobj; |
794 | } | |
795 | ||
2f90df85 RD |
796 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
797 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
798 | PyObject * _resultobj; |
799 | wxWindow * _result; | |
2f90df85 RD |
800 | wxValidator * _arg0; |
801 | PyObject * _argo0 = 0; | |
802 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
803 | char _ptemp[128]; |
804 | ||
805 | self = self; | |
2f90df85 RD |
806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
807 | return NULL; | |
808 | if (_argo0) { | |
809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 812 | return NULL; |
2f90df85 RD |
813 | } |
814 | } | |
cf694132 RD |
815 | { |
816 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 817 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 RD |
818 | |
819 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
820 | } if (_result) { |
821 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
822 | _resultobj = Py_BuildValue("s",_ptemp); | |
823 | } else { | |
824 | Py_INCREF(Py_None); | |
825 | _resultobj = Py_None; | |
826 | } | |
af309447 RD |
827 | return _resultobj; |
828 | } | |
829 | ||
2f90df85 RD |
830 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
831 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 832 | PyObject * _resultobj; |
2f90df85 RD |
833 | wxValidator * _arg0; |
834 | wxWindow * _arg1; | |
1d99702e RD |
835 | PyObject * _argo0 = 0; |
836 | PyObject * _argo1 = 0; | |
2f90df85 | 837 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
838 | |
839 | self = self; | |
2f90df85 | 840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 841 | return NULL; |
1d99702e RD |
842 | if (_argo0) { |
843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
846 | return NULL; |
847 | } | |
848 | } | |
1d99702e RD |
849 | if (_argo1) { |
850 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
851 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
853 | return NULL; |
854 | } | |
855 | } | |
856 | { | |
857 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 858 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 RD |
859 | |
860 | wxPy_END_ALLOW_THREADS; | |
2f90df85 RD |
861 | } Py_INCREF(Py_None); |
862 | _resultobj = Py_None; | |
cf694132 RD |
863 | return _resultobj; |
864 | } | |
865 | ||
2f90df85 RD |
866 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
867 | wxPyValidator *src; | |
868 | wxValidator *dest; | |
869 | src = (wxPyValidator *) ptr; | |
870 | dest = (wxValidator *) src; | |
871 | return (void *) dest; | |
872 | } | |
873 | ||
874 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
875 | wxPyValidator *src; | |
876 | wxEvtHandler *dest; | |
877 | src = (wxPyValidator *) ptr; | |
878 | dest = (wxEvtHandler *) src; | |
879 | return (void *) dest; | |
880 | } | |
881 | ||
882 | #define new_wxPyValidator() (new wxPyValidator()) | |
883 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
884 | PyObject * _resultobj; | |
885 | wxPyValidator * _result; | |
886 | char *_kwnames[] = { NULL }; | |
887 | char _ptemp[128]; | |
888 | ||
889 | self = self; | |
890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
891 | return NULL; | |
892 | { | |
893 | wxPy_BEGIN_ALLOW_THREADS; | |
894 | _result = (wxPyValidator *)new_wxPyValidator(); | |
895 | ||
896 | wxPy_END_ALLOW_THREADS; | |
897 | } if (_result) { | |
898 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
899 | _resultobj = Py_BuildValue("s",_ptemp); | |
900 | } else { | |
901 | Py_INCREF(Py_None); | |
902 | _resultobj = Py_None; | |
903 | } | |
904 | return _resultobj; | |
905 | } | |
906 | ||
907 | static void wxPyValidator_Destroy(wxPyValidator *self) { delete self; } | |
908 | static PyObject *_wrap_wxPyValidator_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
909 | PyObject * _resultobj; | |
910 | wxPyValidator * _arg0; | |
911 | PyObject * _argo0 = 0; | |
912 | char *_kwnames[] = { "self", NULL }; | |
913 | ||
914 | self = self; | |
915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyValidator_Destroy",_kwnames,&_argo0)) | |
916 | return NULL; | |
917 | if (_argo0) { | |
918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator_Destroy. Expected _wxPyValidator_p."); | |
921 | return NULL; | |
8ab979d7 | 922 | } |
2f90df85 RD |
923 | } |
924 | { | |
925 | wxPy_BEGIN_ALLOW_THREADS; | |
926 | wxPyValidator_Destroy(_arg0); | |
927 | ||
928 | wxPy_END_ALLOW_THREADS; | |
929 | } Py_INCREF(Py_None); | |
930 | _resultobj = Py_None; | |
931 | return _resultobj; | |
932 | } | |
933 | ||
f6bcfd97 | 934 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2)) |
2f90df85 | 935 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 936 | PyObject * _resultobj; |
2f90df85 RD |
937 | wxPyValidator * _arg0; |
938 | PyObject * _arg1; | |
f6bcfd97 BP |
939 | PyObject * _arg2; |
940 | int _arg3 = (int ) TRUE; | |
1d99702e | 941 | PyObject * _argo0 = 0; |
2f90df85 | 942 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
943 | PyObject * _obj2 = 0; |
944 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
945 | |
946 | self = self; | |
f6bcfd97 | 947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 948 | return NULL; |
1d99702e RD |
949 | if (_argo0) { |
950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
8ab979d7 RD |
953 | return NULL; |
954 | } | |
955 | } | |
956 | { | |
2f90df85 | 957 | _arg1 = _obj1; |
8ab979d7 | 958 | } |
f6bcfd97 BP |
959 | { |
960 | _arg2 = _obj2; | |
961 | } | |
cf694132 RD |
962 | { |
963 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 964 | wxPyValidator__setSelf(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
965 | |
966 | wxPy_END_ALLOW_THREADS; | |
967 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
968 | _resultobj = Py_None; |
969 | return _resultobj; | |
970 | } | |
971 | ||
972 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
973 | wxWindow *src; | |
974 | wxEvtHandler *dest; | |
975 | src = (wxWindow *) ptr; | |
976 | dest = (wxEvtHandler *) src; | |
977 | return (void *) dest; | |
978 | } | |
979 | ||
980 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 981 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
982 | PyObject * _resultobj; |
983 | wxWindow * _result; | |
984 | wxWindow * _arg0; | |
985 | wxWindowID _arg1; | |
e508a2b6 RD |
986 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
987 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
988 | long _arg4 = (long ) 0; |
989 | char * _arg5 = (char *) "panel"; | |
990 | PyObject * _argo0 = 0; | |
2f90df85 RD |
991 | wxPoint temp; |
992 | PyObject * _obj2 = 0; | |
993 | wxSize temp0; | |
994 | PyObject * _obj3 = 0; | |
efc5f224 | 995 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
996 | char _ptemp[128]; |
997 | ||
998 | self = self; | |
2f90df85 | 999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 1000 | return NULL; |
1d99702e RD |
1001 | if (_argo0) { |
1002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
1005 | return NULL; | |
1006 | } | |
1007 | } | |
2f90df85 RD |
1008 | if (_obj2) |
1009 | { | |
1010 | _arg2 = &temp; | |
1011 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 1012 | return NULL; |
2f90df85 RD |
1013 | } |
1014 | if (_obj3) | |
1015 | { | |
1016 | _arg3 = &temp0; | |
1017 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 1018 | return NULL; |
2f90df85 | 1019 | } |
cf694132 RD |
1020 | { |
1021 | wxPy_BEGIN_ALLOW_THREADS; | |
1022 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
1023 | ||
1024 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1025 | } if (_result) { |
1026 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1027 | _resultobj = Py_BuildValue("s",_ptemp); | |
1028 | } else { | |
1029 | Py_INCREF(Py_None); | |
1030 | _resultobj = Py_None; | |
1031 | } | |
8ab979d7 RD |
1032 | return _resultobj; |
1033 | } | |
1034 | ||
1035 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
efc5f224 | 1036 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1037 | PyObject * _resultobj; |
1038 | wxWindow * _arg0; | |
1d99702e | 1039 | PyObject * _argo0 = 0; |
efc5f224 | 1040 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1041 | |
1042 | self = self; | |
efc5f224 | 1043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
8ab979d7 | 1044 | return NULL; |
1d99702e RD |
1045 | if (_argo0) { |
1046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
1049 | return NULL; | |
1050 | } | |
1051 | } | |
cf694132 RD |
1052 | { |
1053 | wxPy_BEGIN_ALLOW_THREADS; | |
1054 | wxWindow_CaptureMouse(_arg0); | |
1055 | ||
1056 | wxPy_END_ALLOW_THREADS; | |
1057 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1058 | _resultobj = Py_None; |
1059 | return _resultobj; | |
1060 | } | |
1061 | ||
1062 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 1063 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1064 | PyObject * _resultobj; |
1065 | wxWindow * _arg0; | |
1d99702e RD |
1066 | int _arg1 = (int ) wxBOTH; |
1067 | PyObject * _argo0 = 0; | |
efc5f224 | 1068 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1069 | |
1070 | self = self; | |
efc5f224 | 1071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1072 | return NULL; |
1d99702e RD |
1073 | if (_argo0) { |
1074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1077 | return NULL; | |
1078 | } | |
1079 | } | |
cf694132 RD |
1080 | { |
1081 | wxPy_BEGIN_ALLOW_THREADS; | |
1082 | wxWindow_Center(_arg0,_arg1); | |
1083 | ||
1084 | wxPy_END_ALLOW_THREADS; | |
1085 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1086 | _resultobj = Py_None; |
1087 | return _resultobj; | |
1088 | } | |
1089 | ||
1090 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1091 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1092 | PyObject * _resultobj; |
1093 | wxWindow * _arg0; | |
1d99702e RD |
1094 | int _arg1 = (int ) wxBOTH; |
1095 | PyObject * _argo0 = 0; | |
efc5f224 | 1096 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1097 | |
1098 | self = self; | |
efc5f224 | 1099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1100 | return NULL; |
1d99702e RD |
1101 | if (_argo0) { |
1102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1105 | return NULL; | |
1106 | } | |
1107 | } | |
cf694132 RD |
1108 | { |
1109 | wxPy_BEGIN_ALLOW_THREADS; | |
1110 | wxWindow_Centre(_arg0,_arg1); | |
1111 | ||
1112 | wxPy_END_ALLOW_THREADS; | |
1113 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1114 | _resultobj = Py_None; |
1115 | return _resultobj; | |
1116 | } | |
1117 | ||
bb0054cd | 1118 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1119 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1120 | PyObject * _resultobj; |
1121 | wxWindow * _arg0; | |
1d99702e RD |
1122 | int _arg1 = (int ) wxBOTH; |
1123 | PyObject * _argo0 = 0; | |
efc5f224 | 1124 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1125 | |
1126 | self = self; | |
efc5f224 | 1127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1128 | return NULL; |
1d99702e RD |
1129 | if (_argo0) { |
1130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1133 | return NULL; | |
1134 | } | |
1135 | } | |
1136 | { | |
1137 | wxPy_BEGIN_ALLOW_THREADS; | |
1138 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1139 | ||
1140 | wxPy_END_ALLOW_THREADS; | |
1141 | } Py_INCREF(Py_None); | |
1142 | _resultobj = Py_None; | |
1143 | return _resultobj; | |
1144 | } | |
1145 | ||
1146 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1147 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1148 | PyObject * _resultobj; |
1149 | wxWindow * _arg0; | |
1d99702e RD |
1150 | int _arg1 = (int ) wxBOTH; |
1151 | PyObject * _argo0 = 0; | |
efc5f224 | 1152 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1153 | |
1154 | self = self; | |
efc5f224 | 1155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1156 | return NULL; |
1d99702e RD |
1157 | if (_argo0) { |
1158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1161 | return NULL; | |
1162 | } | |
1163 | } | |
1164 | { | |
1165 | wxPy_BEGIN_ALLOW_THREADS; | |
1166 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1167 | ||
1168 | wxPy_END_ALLOW_THREADS; | |
1169 | } Py_INCREF(Py_None); | |
1170 | _resultobj = Py_None; | |
1171 | return _resultobj; | |
1172 | } | |
1173 | ||
3ca6a5f0 BP |
1174 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1175 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1176 | PyObject * _resultobj; | |
1177 | wxWindow * _arg0; | |
1178 | int _arg1 = (int ) wxBOTH; | |
1179 | PyObject * _argo0 = 0; | |
1180 | char *_kwnames[] = { "self","direction", NULL }; | |
1181 | ||
1182 | self = self; | |
1183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1184 | return NULL; | |
1185 | if (_argo0) { | |
1186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1189 | return NULL; | |
1190 | } | |
1191 | } | |
1192 | { | |
1193 | wxPy_BEGIN_ALLOW_THREADS; | |
1194 | wxWindow_CentreOnScreen(_arg0,_arg1); | |
1195 | ||
1196 | wxPy_END_ALLOW_THREADS; | |
1197 | } Py_INCREF(Py_None); | |
1198 | _resultobj = Py_None; | |
1199 | return _resultobj; | |
1200 | } | |
1201 | ||
1202 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1203 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1204 | PyObject * _resultobj; | |
1205 | wxWindow * _arg0; | |
1206 | int _arg1 = (int ) wxBOTH; | |
1207 | PyObject * _argo0 = 0; | |
1208 | char *_kwnames[] = { "self","direction", NULL }; | |
1209 | ||
1210 | self = self; | |
1211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1212 | return NULL; | |
1213 | if (_argo0) { | |
1214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1217 | return NULL; | |
1218 | } | |
1219 | } | |
1220 | { | |
1221 | wxPy_BEGIN_ALLOW_THREADS; | |
1222 | wxWindow_CenterOnScreen(_arg0,_arg1); | |
1223 | ||
1224 | wxPy_END_ALLOW_THREADS; | |
1225 | } Py_INCREF(Py_None); | |
1226 | _resultobj = Py_None; | |
1227 | return _resultobj; | |
1228 | } | |
1229 | ||
af309447 | 1230 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1231 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1232 | PyObject * _resultobj; |
1233 | wxWindow * _arg0; | |
1234 | int * _arg1; | |
1235 | int * _arg2; | |
1d99702e | 1236 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1237 | int temp; |
1238 | PyObject * _obj1 = 0; | |
1239 | int temp0; | |
1240 | PyObject * _obj2 = 0; | |
efc5f224 | 1241 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1242 | |
1243 | self = self; | |
efc5f224 | 1244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1245 | return NULL; |
1d99702e RD |
1246 | if (_argo0) { |
1247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1250 | return NULL; |
1251 | } | |
1252 | } | |
1253 | { | |
1254 | temp = (int) PyInt_AsLong(_obj1); | |
1255 | _arg1 = &temp; | |
1256 | } | |
1257 | { | |
1258 | temp0 = (int) PyInt_AsLong(_obj2); | |
1259 | _arg2 = &temp0; | |
1260 | } | |
cf694132 RD |
1261 | { |
1262 | wxPy_BEGIN_ALLOW_THREADS; | |
1263 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1264 | ||
1265 | wxPy_END_ALLOW_THREADS; | |
1266 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1267 | _resultobj = Py_None; |
1268 | { | |
1269 | PyObject *o; | |
1270 | o = PyInt_FromLong((long) (*_arg1)); | |
1271 | _resultobj = t_output_helper(_resultobj, o); | |
1272 | } | |
1273 | { | |
1274 | PyObject *o; | |
1275 | o = PyInt_FromLong((long) (*_arg2)); | |
1276 | _resultobj = t_output_helper(_resultobj, o); | |
1277 | } | |
1278 | return _resultobj; | |
1279 | } | |
1280 | ||
af309447 | 1281 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1282 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1283 | PyObject * _resultobj; |
1284 | wxPoint * _result; | |
1285 | wxWindow * _arg0; | |
1286 | wxPoint * _arg1; | |
1d99702e | 1287 | PyObject * _argo0 = 0; |
2f90df85 RD |
1288 | wxPoint temp; |
1289 | PyObject * _obj1 = 0; | |
efc5f224 | 1290 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1291 | char _ptemp[128]; |
1292 | ||
1293 | self = self; | |
2f90df85 | 1294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1295 | return NULL; |
1d99702e RD |
1296 | if (_argo0) { |
1297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1300 | return NULL; | |
1301 | } | |
1302 | } | |
2f90df85 RD |
1303 | { |
1304 | _arg1 = &temp; | |
1305 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1306 | return NULL; |
2f90df85 | 1307 | } |
cf694132 RD |
1308 | { |
1309 | wxPy_BEGIN_ALLOW_THREADS; | |
1310 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1311 | ||
1312 | wxPy_END_ALLOW_THREADS; | |
1313 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
af309447 RD |
1314 | _resultobj = Py_BuildValue("s",_ptemp); |
1315 | return _resultobj; | |
1316 | } | |
1317 | ||
8ab979d7 | 1318 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1319 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1320 | PyObject * _resultobj; |
1321 | bool _result; | |
1322 | wxWindow * _arg0; | |
1d99702e RD |
1323 | int _arg1 = (int ) FALSE; |
1324 | PyObject * _argo0 = 0; | |
efc5f224 | 1325 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1326 | |
1327 | self = self; | |
efc5f224 | 1328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1329 | return NULL; |
1d99702e RD |
1330 | if (_argo0) { |
1331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1334 | return NULL; | |
1335 | } | |
1336 | } | |
cf694132 RD |
1337 | { |
1338 | wxPy_BEGIN_ALLOW_THREADS; | |
1339 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1340 | ||
1341 | wxPy_END_ALLOW_THREADS; | |
1342 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1343 | return _resultobj; |
1344 | } | |
1345 | ||
1346 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1347 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1348 | PyObject * _resultobj; |
1349 | bool _result; | |
1350 | wxWindow * _arg0; | |
1d99702e | 1351 | PyObject * _argo0 = 0; |
efc5f224 | 1352 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1353 | |
1354 | self = self; | |
efc5f224 | 1355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1356 | return NULL; |
1d99702e RD |
1357 | if (_argo0) { |
1358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1361 | return NULL; | |
1362 | } | |
1363 | } | |
cf694132 RD |
1364 | { |
1365 | wxPy_BEGIN_ALLOW_THREADS; | |
1366 | _result = (bool )wxWindow_Destroy(_arg0); | |
1367 | ||
1368 | wxPy_END_ALLOW_THREADS; | |
1369 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1370 | return _resultobj; |
1371 | } | |
1372 | ||
1373 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1374 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1375 | PyObject * _resultobj; |
1376 | wxWindow * _arg0; | |
1d99702e | 1377 | PyObject * _argo0 = 0; |
efc5f224 | 1378 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1379 | |
1380 | self = self; | |
efc5f224 | 1381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1382 | return NULL; |
1d99702e RD |
1383 | if (_argo0) { |
1384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1387 | return NULL; | |
1388 | } | |
1389 | } | |
cf694132 RD |
1390 | { |
1391 | wxPy_BEGIN_ALLOW_THREADS; | |
1392 | wxWindow_DestroyChildren(_arg0); | |
1393 | ||
1394 | wxPy_END_ALLOW_THREADS; | |
1395 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1396 | _resultobj = Py_None; |
1397 | return _resultobj; | |
1398 | } | |
1399 | ||
1400 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) | |
efc5f224 | 1401 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1402 | PyObject * _resultobj; |
1403 | wxWindow * _arg0; | |
1404 | bool _arg1; | |
1d99702e | 1405 | PyObject * _argo0 = 0; |
8ab979d7 | 1406 | int tempbool1; |
efc5f224 | 1407 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1408 | |
1409 | self = self; | |
efc5f224 | 1410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1411 | return NULL; |
1d99702e RD |
1412 | if (_argo0) { |
1413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1416 | return NULL; | |
1417 | } | |
1418 | } | |
1419 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1420 | { |
1421 | wxPy_BEGIN_ALLOW_THREADS; | |
1422 | wxWindow_DragAcceptFiles(_arg0,_arg1); | |
1423 | ||
1424 | wxPy_END_ALLOW_THREADS; | |
1425 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1426 | _resultobj = Py_None; |
1427 | return _resultobj; | |
1428 | } | |
1429 | ||
1430 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1431 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1432 | PyObject * _resultobj; |
1433 | wxWindow * _arg0; | |
1434 | bool _arg1; | |
1d99702e | 1435 | PyObject * _argo0 = 0; |
8ab979d7 | 1436 | int tempbool1; |
efc5f224 | 1437 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1438 | |
1439 | self = self; | |
efc5f224 | 1440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1441 | return NULL; |
1d99702e RD |
1442 | if (_argo0) { |
1443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1446 | return NULL; | |
1447 | } | |
1448 | } | |
1449 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1450 | { |
1451 | wxPy_BEGIN_ALLOW_THREADS; | |
1452 | wxWindow_Enable(_arg0,_arg1); | |
1453 | ||
1454 | wxPy_END_ALLOW_THREADS; | |
1455 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1456 | _resultobj = Py_None; |
1457 | return _resultobj; | |
1458 | } | |
1459 | ||
af309447 | 1460 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1461 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1462 | PyObject * _resultobj; |
1463 | wxWindow * _result; | |
1464 | wxWindow * _arg0; | |
1465 | long _arg1; | |
1d99702e | 1466 | PyObject * _argo0 = 0; |
efc5f224 | 1467 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1468 | char _ptemp[128]; |
1469 | ||
1470 | self = self; | |
efc5f224 | 1471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1472 | return NULL; |
1d99702e RD |
1473 | if (_argo0) { |
1474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1477 | return NULL; |
1478 | } | |
1479 | } | |
cf694132 RD |
1480 | { |
1481 | wxPy_BEGIN_ALLOW_THREADS; | |
1482 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1483 | ||
1484 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1485 | } if (_result) { |
1486 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1487 | _resultobj = Py_BuildValue("s",_ptemp); | |
1488 | } else { | |
1489 | Py_INCREF(Py_None); | |
1490 | _resultobj = Py_None; | |
1491 | } | |
8ab979d7 RD |
1492 | return _resultobj; |
1493 | } | |
1494 | ||
1495 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1496 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1497 | PyObject * _resultobj; |
1498 | wxWindow * _result; | |
1499 | wxWindow * _arg0; | |
1500 | wxString * _arg1; | |
1d99702e | 1501 | PyObject * _argo0 = 0; |
8ab979d7 | 1502 | PyObject * _obj1 = 0; |
efc5f224 | 1503 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1504 | char _ptemp[128]; |
1505 | ||
1506 | self = self; | |
efc5f224 | 1507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1508 | return NULL; |
1d99702e RD |
1509 | if (_argo0) { |
1510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1513 | return NULL; | |
1514 | } | |
1515 | } | |
1516 | { | |
185d7c3e RD |
1517 | #if PYTHON_API_VERSION >= 1009 |
1518 | char* tmpPtr; int tmpSize; | |
1519 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1520 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1521 | return NULL; |
1522 | } | |
1523 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1524 | return NULL; | |
1525 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1526 | #else | |
8ab979d7 RD |
1527 | if (!PyString_Check(_obj1)) { |
1528 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1529 | return NULL; | |
1530 | } | |
185d7c3e RD |
1531 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1532 | #endif | |
8ab979d7 | 1533 | } |
cf694132 RD |
1534 | { |
1535 | wxPy_BEGIN_ALLOW_THREADS; | |
1536 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1537 | ||
1538 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1539 | } if (_result) { |
1540 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1541 | _resultobj = Py_BuildValue("s",_ptemp); | |
1542 | } else { | |
1543 | Py_INCREF(Py_None); | |
1544 | _resultobj = Py_None; | |
1545 | } | |
8ab979d7 RD |
1546 | { |
1547 | if (_obj1) | |
1548 | delete _arg1; | |
1549 | } | |
1550 | return _resultobj; | |
1551 | } | |
1552 | ||
1553 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1554 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1555 | PyObject * _resultobj; |
1556 | wxWindow * _arg0; | |
1d99702e | 1557 | PyObject * _argo0 = 0; |
efc5f224 | 1558 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1559 | |
1560 | self = self; | |
efc5f224 | 1561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1562 | return NULL; |
1d99702e RD |
1563 | if (_argo0) { |
1564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1567 | return NULL; | |
1568 | } | |
1569 | } | |
cf694132 RD |
1570 | { |
1571 | wxPy_BEGIN_ALLOW_THREADS; | |
1572 | wxWindow_Fit(_arg0); | |
1573 | ||
1574 | wxPy_END_ALLOW_THREADS; | |
1575 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1576 | _resultobj = Py_None; |
1577 | return _resultobj; | |
1578 | } | |
1579 | ||
1580 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1581 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1582 | PyObject * _resultobj; |
1583 | wxColour * _result; | |
1584 | wxWindow * _arg0; | |
1d99702e | 1585 | PyObject * _argo0 = 0; |
efc5f224 | 1586 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1587 | char _ptemp[128]; |
1588 | ||
1589 | self = self; | |
efc5f224 | 1590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1591 | return NULL; |
1d99702e RD |
1592 | if (_argo0) { |
1593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1596 | return NULL; | |
1597 | } | |
1598 | } | |
cf694132 RD |
1599 | { |
1600 | wxPy_BEGIN_ALLOW_THREADS; | |
1601 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1602 | ||
1603 | wxPy_END_ALLOW_THREADS; | |
1604 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
1605 | _resultobj = Py_BuildValue("s",_ptemp); |
1606 | return _resultobj; | |
1607 | } | |
1608 | ||
d426c97e RD |
1609 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1610 | wxWindowList& list = self->GetChildren(); | |
1611 | return wxPy_ConvertList(&list, "wxWindow"); | |
1612 | } | |
1613 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1614 | PyObject * _resultobj; | |
1615 | PyObject * _result; | |
1616 | wxWindow * _arg0; | |
1617 | PyObject * _argo0 = 0; | |
1618 | char *_kwnames[] = { "self", NULL }; | |
1619 | ||
1620 | self = self; | |
1621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1622 | return NULL; | |
1623 | if (_argo0) { | |
1624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1627 | return NULL; | |
1628 | } | |
1629 | } | |
1630 | { | |
1631 | wxPy_BEGIN_ALLOW_THREADS; | |
1632 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1633 | ||
1634 | wxPy_END_ALLOW_THREADS; | |
1635 | }{ | |
1636 | _resultobj = _result; | |
1637 | } | |
1638 | return _resultobj; | |
1639 | } | |
1640 | ||
8ab979d7 | 1641 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1642 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1643 | PyObject * _resultobj; |
1644 | int _result; | |
1645 | wxWindow * _arg0; | |
1d99702e | 1646 | PyObject * _argo0 = 0; |
efc5f224 | 1647 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1648 | |
1649 | self = self; | |
efc5f224 | 1650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1651 | return NULL; |
1d99702e RD |
1652 | if (_argo0) { |
1653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1656 | return NULL; | |
1657 | } | |
1658 | } | |
cf694132 RD |
1659 | { |
1660 | wxPy_BEGIN_ALLOW_THREADS; | |
1661 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1662 | ||
1663 | wxPy_END_ALLOW_THREADS; | |
1664 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1665 | return _resultobj; |
1666 | } | |
1667 | ||
1668 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1669 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1670 | PyObject * _resultobj; |
1671 | int _result; | |
1672 | wxWindow * _arg0; | |
1d99702e | 1673 | PyObject * _argo0 = 0; |
efc5f224 | 1674 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1675 | |
1676 | self = self; | |
efc5f224 | 1677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1678 | return NULL; |
1d99702e RD |
1679 | if (_argo0) { |
1680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1683 | return NULL; | |
1684 | } | |
1685 | } | |
cf694132 RD |
1686 | { |
1687 | wxPy_BEGIN_ALLOW_THREADS; | |
1688 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1689 | ||
1690 | wxPy_END_ALLOW_THREADS; | |
1691 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1692 | return _resultobj; |
1693 | } | |
1694 | ||
b8b8dda7 | 1695 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1696 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1697 | PyObject * _resultobj; |
1698 | wxWindow * _arg0; | |
1699 | int * _arg1; | |
1700 | int temp; | |
1701 | int * _arg2; | |
1702 | int temp0; | |
1d99702e | 1703 | PyObject * _argo0 = 0; |
efc5f224 | 1704 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1705 | |
1706 | self = self; | |
1707 | { | |
1708 | _arg1 = &temp; | |
1709 | } | |
1710 | { | |
1711 | _arg2 = &temp0; | |
1712 | } | |
efc5f224 | 1713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1714 | return NULL; |
1d99702e RD |
1715 | if (_argo0) { |
1716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1719 | return NULL; |
1720 | } | |
1721 | } | |
cf694132 RD |
1722 | { |
1723 | wxPy_BEGIN_ALLOW_THREADS; | |
1724 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1725 | ||
1726 | wxPy_END_ALLOW_THREADS; | |
1727 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1728 | _resultobj = Py_None; |
1729 | { | |
1730 | PyObject *o; | |
1731 | o = PyInt_FromLong((long) (*_arg1)); | |
1732 | _resultobj = t_output_helper(_resultobj, o); | |
1733 | } | |
1734 | { | |
1735 | PyObject *o; | |
1736 | o = PyInt_FromLong((long) (*_arg2)); | |
1737 | _resultobj = t_output_helper(_resultobj, o); | |
1738 | } | |
1739 | return _resultobj; | |
1740 | } | |
1741 | ||
b8b8dda7 | 1742 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1743 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1744 | PyObject * _resultobj; |
1745 | wxSize * _result; | |
1746 | wxWindow * _arg0; | |
1d99702e | 1747 | PyObject * _argo0 = 0; |
efc5f224 | 1748 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1749 | char _ptemp[128]; |
1750 | ||
1751 | self = self; | |
efc5f224 | 1752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1753 | return NULL; |
1d99702e RD |
1754 | if (_argo0) { |
1755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1758 | return NULL; | |
1759 | } | |
1760 | } | |
cf694132 RD |
1761 | { |
1762 | wxPy_BEGIN_ALLOW_THREADS; | |
1763 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1764 | ||
1765 | wxPy_END_ALLOW_THREADS; | |
1766 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
1767 | _resultobj = Py_BuildValue("s",_ptemp); |
1768 | return _resultobj; | |
1769 | } | |
1770 | ||
8ab979d7 | 1771 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1772 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1773 | PyObject * _resultobj; |
1774 | wxLayoutConstraints * _result; | |
1775 | wxWindow * _arg0; | |
1d99702e | 1776 | PyObject * _argo0 = 0; |
efc5f224 | 1777 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1778 | char _ptemp[128]; |
1779 | ||
1780 | self = self; | |
efc5f224 | 1781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1782 | return NULL; |
1d99702e RD |
1783 | if (_argo0) { |
1784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1787 | return NULL; | |
1788 | } | |
1789 | } | |
cf694132 RD |
1790 | { |
1791 | wxPy_BEGIN_ALLOW_THREADS; | |
1792 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1793 | ||
1794 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1795 | } if (_result) { |
1796 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1797 | _resultobj = Py_BuildValue("s",_ptemp); | |
1798 | } else { | |
1799 | Py_INCREF(Py_None); | |
1800 | _resultobj = Py_None; | |
1801 | } | |
8ab979d7 RD |
1802 | return _resultobj; |
1803 | } | |
1804 | ||
1afc06c2 RD |
1805 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1806 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1807 | PyObject * _resultobj; | |
1808 | wxEvtHandler * _result; | |
1809 | wxWindow * _arg0; | |
1810 | PyObject * _argo0 = 0; | |
1811 | char *_kwnames[] = { "self", NULL }; | |
1812 | char _ptemp[128]; | |
1813 | ||
1814 | self = self; | |
1815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1816 | return NULL; | |
1817 | if (_argo0) { | |
1818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1821 | return NULL; | |
1822 | } | |
1823 | } | |
1824 | { | |
1825 | wxPy_BEGIN_ALLOW_THREADS; | |
1826 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1827 | ||
1828 | wxPy_END_ALLOW_THREADS; | |
1829 | } if (_result) { | |
1830 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
1831 | _resultobj = Py_BuildValue("s",_ptemp); | |
1832 | } else { | |
1833 | Py_INCREF(Py_None); | |
1834 | _resultobj = Py_None; | |
1835 | } | |
1836 | return _resultobj; | |
1837 | } | |
1838 | ||
8ab979d7 | 1839 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1840 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1841 | PyObject * _resultobj; |
1842 | wxFont * _result; | |
1843 | wxWindow * _arg0; | |
1d99702e | 1844 | PyObject * _argo0 = 0; |
efc5f224 | 1845 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1846 | char _ptemp[128]; |
1847 | ||
1848 | self = self; | |
efc5f224 | 1849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1850 | return NULL; |
1d99702e RD |
1851 | if (_argo0) { |
1852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1855 | return NULL; | |
1856 | } | |
1857 | } | |
cf694132 RD |
1858 | { |
1859 | wxPy_BEGIN_ALLOW_THREADS; | |
1860 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
b8b8dda7 | 1861 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
1862 | |
1863 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1864 | } if (_result) { |
1865 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1866 | _resultobj = Py_BuildValue("s",_ptemp); | |
1867 | } else { | |
1868 | Py_INCREF(Py_None); | |
1869 | _resultobj = Py_None; | |
1870 | } | |
8ab979d7 RD |
1871 | return _resultobj; |
1872 | } | |
1873 | ||
1874 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1875 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1876 | PyObject * _resultobj; |
1877 | wxColour * _result; | |
1878 | wxWindow * _arg0; | |
1d99702e | 1879 | PyObject * _argo0 = 0; |
efc5f224 | 1880 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1881 | char _ptemp[128]; |
1882 | ||
1883 | self = self; | |
efc5f224 | 1884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1885 | return NULL; |
1d99702e RD |
1886 | if (_argo0) { |
1887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1890 | return NULL; | |
1891 | } | |
1892 | } | |
cf694132 RD |
1893 | { |
1894 | wxPy_BEGIN_ALLOW_THREADS; | |
1895 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1896 | ||
1897 | wxPy_END_ALLOW_THREADS; | |
1898 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
1899 | _resultobj = Py_BuildValue("s",_ptemp); |
1900 | return _resultobj; | |
1901 | } | |
1902 | ||
1903 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1904 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1905 | PyObject * _resultobj; |
1906 | wxWindow * _result; | |
1907 | wxWindow * _arg0; | |
1d99702e | 1908 | PyObject * _argo0 = 0; |
efc5f224 | 1909 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1910 | char _ptemp[128]; |
1911 | ||
1912 | self = self; | |
efc5f224 | 1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1914 | return NULL; |
1d99702e RD |
1915 | if (_argo0) { |
1916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1919 | return NULL; | |
1920 | } | |
1921 | } | |
cf694132 RD |
1922 | { |
1923 | wxPy_BEGIN_ALLOW_THREADS; | |
1924 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1925 | ||
1926 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1927 | } if (_result) { |
1928 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1929 | _resultobj = Py_BuildValue("s",_ptemp); | |
1930 | } else { | |
1931 | Py_INCREF(Py_None); | |
1932 | _resultobj = Py_None; | |
1933 | } | |
8ab979d7 RD |
1934 | return _resultobj; |
1935 | } | |
1936 | ||
2abc0a0f | 1937 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1938 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1939 | } |
1940 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1941 | PyObject * _resultobj; | |
1942 | long _result; | |
1943 | wxWindow * _arg0; | |
1944 | PyObject * _argo0 = 0; | |
1945 | char *_kwnames[] = { "self", NULL }; | |
1946 | ||
1947 | self = self; | |
1948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1949 | return NULL; | |
1950 | if (_argo0) { | |
1951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1954 | return NULL; | |
1955 | } | |
1956 | } | |
1957 | { | |
1958 | wxPy_BEGIN_ALLOW_THREADS; | |
1959 | _result = (long )wxWindow_GetHandle(_arg0); | |
1960 | ||
1961 | wxPy_END_ALLOW_THREADS; | |
1962 | } _resultobj = Py_BuildValue("l",_result); | |
1963 | return _resultobj; | |
1964 | } | |
1965 | ||
8ab979d7 | 1966 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 1967 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1968 | PyObject * _resultobj; |
1969 | int _result; | |
1970 | wxWindow * _arg0; | |
1d99702e | 1971 | PyObject * _argo0 = 0; |
efc5f224 | 1972 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1973 | |
1974 | self = self; | |
efc5f224 | 1975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 1976 | return NULL; |
1d99702e RD |
1977 | if (_argo0) { |
1978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
1981 | return NULL; | |
1982 | } | |
1983 | } | |
cf694132 RD |
1984 | { |
1985 | wxPy_BEGIN_ALLOW_THREADS; | |
1986 | _result = (int )wxWindow_GetId(_arg0); | |
1987 | ||
1988 | wxPy_END_ALLOW_THREADS; | |
1989 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1990 | return _resultobj; |
1991 | } | |
1992 | ||
8ab979d7 | 1993 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 1994 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1995 | PyObject * _resultobj; |
1996 | wxString * _result; | |
1997 | wxWindow * _arg0; | |
1d99702e | 1998 | PyObject * _argo0 = 0; |
efc5f224 | 1999 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2000 | |
2001 | self = self; | |
efc5f224 | 2002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 2003 | return NULL; |
1d99702e RD |
2004 | if (_argo0) { |
2005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
2008 | return NULL; | |
2009 | } | |
2010 | } | |
8ab979d7 | 2011 | { |
cf694132 RD |
2012 | wxPy_BEGIN_ALLOW_THREADS; |
2013 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
2014 | ||
2015 | wxPy_END_ALLOW_THREADS; | |
2016 | }{ | |
eec92d76 | 2017 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2018 | } |
2019 | { | |
2020 | delete _result; | |
2021 | } | |
2022 | return _resultobj; | |
2023 | } | |
2024 | ||
bb0054cd | 2025 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 2026 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2027 | PyObject * _resultobj; |
2028 | wxWindow * _arg0; | |
2029 | wxString * _arg1; | |
1d99702e | 2030 | PyObject * _argo0 = 0; |
bb0054cd | 2031 | PyObject * _obj1 = 0; |
efc5f224 | 2032 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2033 | |
2034 | self = self; | |
efc5f224 | 2035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2036 | return NULL; |
1d99702e RD |
2037 | if (_argo0) { |
2038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2041 | return NULL; | |
2042 | } | |
2043 | } | |
2044 | { | |
185d7c3e RD |
2045 | #if PYTHON_API_VERSION >= 1009 |
2046 | char* tmpPtr; int tmpSize; | |
2047 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2048 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2049 | return NULL; |
2050 | } | |
2051 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2052 | return NULL; | |
2053 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2054 | #else | |
bb0054cd RD |
2055 | if (!PyString_Check(_obj1)) { |
2056 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2057 | return NULL; | |
2058 | } | |
185d7c3e RD |
2059 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2060 | #endif | |
bb0054cd RD |
2061 | } |
2062 | { | |
2063 | wxPy_BEGIN_ALLOW_THREADS; | |
2064 | wxWindow_SetLabel(_arg0,*_arg1); | |
2065 | ||
2066 | wxPy_END_ALLOW_THREADS; | |
2067 | } Py_INCREF(Py_None); | |
2068 | _resultobj = Py_None; | |
2069 | { | |
2070 | if (_obj1) | |
2071 | delete _arg1; | |
2072 | } | |
2073 | return _resultobj; | |
2074 | } | |
2075 | ||
8ab979d7 | 2076 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2077 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2078 | PyObject * _resultobj; |
2079 | wxString * _result; | |
2080 | wxWindow * _arg0; | |
1d99702e | 2081 | PyObject * _argo0 = 0; |
efc5f224 | 2082 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2083 | |
2084 | self = self; | |
efc5f224 | 2085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_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_GetName. Expected _wxWindow_p."); |
2091 | return NULL; | |
2092 | } | |
2093 | } | |
8ab979d7 | 2094 | { |
cf694132 RD |
2095 | wxPy_BEGIN_ALLOW_THREADS; |
2096 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2097 | ||
2098 | wxPy_END_ALLOW_THREADS; | |
2099 | }{ | |
eec92d76 | 2100 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2101 | } |
2102 | { | |
2103 | delete _result; | |
2104 | } | |
2105 | return _resultobj; | |
2106 | } | |
2107 | ||
2108 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2109 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2110 | PyObject * _resultobj; |
2111 | wxWindow * _result; | |
2112 | wxWindow * _arg0; | |
1d99702e | 2113 | PyObject * _argo0 = 0; |
efc5f224 | 2114 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2115 | char _ptemp[128]; |
2116 | ||
2117 | self = self; | |
efc5f224 | 2118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2119 | return NULL; |
1d99702e RD |
2120 | if (_argo0) { |
2121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2124 | return NULL; | |
2125 | } | |
2126 | } | |
cf694132 RD |
2127 | { |
2128 | wxPy_BEGIN_ALLOW_THREADS; | |
2129 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2130 | ||
2131 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2132 | } if (_result) { |
2133 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
2134 | _resultobj = Py_BuildValue("s",_ptemp); | |
2135 | } else { | |
2136 | Py_INCREF(Py_None); | |
2137 | _resultobj = Py_None; | |
2138 | } | |
8ab979d7 RD |
2139 | return _resultobj; |
2140 | } | |
2141 | ||
b8b8dda7 | 2142 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2143 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2144 | PyObject * _resultobj; |
2145 | wxWindow * _arg0; | |
2146 | int * _arg1; | |
2147 | int temp; | |
2148 | int * _arg2; | |
2149 | int temp0; | |
1d99702e | 2150 | PyObject * _argo0 = 0; |
efc5f224 | 2151 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2152 | |
2153 | self = self; | |
2154 | { | |
2155 | _arg1 = &temp; | |
2156 | } | |
2157 | { | |
2158 | _arg2 = &temp0; | |
2159 | } | |
efc5f224 | 2160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2161 | return NULL; |
1d99702e RD |
2162 | if (_argo0) { |
2163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2166 | return NULL; | |
2167 | } | |
2168 | } | |
cf694132 RD |
2169 | { |
2170 | wxPy_BEGIN_ALLOW_THREADS; | |
2171 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2172 | ||
2173 | wxPy_END_ALLOW_THREADS; | |
2174 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
2175 | _resultobj = Py_None; |
2176 | { | |
2177 | PyObject *o; | |
2178 | o = PyInt_FromLong((long) (*_arg1)); | |
2179 | _resultobj = t_output_helper(_resultobj, o); | |
2180 | } | |
2181 | { | |
2182 | PyObject *o; | |
2183 | o = PyInt_FromLong((long) (*_arg2)); | |
2184 | _resultobj = t_output_helper(_resultobj, o); | |
2185 | } | |
2186 | return _resultobj; | |
2187 | } | |
2188 | ||
2189 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2190 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2191 | PyObject * _resultobj; |
2192 | wxPoint * _result; | |
2193 | wxWindow * _arg0; | |
1d99702e | 2194 | PyObject * _argo0 = 0; |
efc5f224 | 2195 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2196 | char _ptemp[128]; |
2197 | ||
2198 | self = self; | |
efc5f224 | 2199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2200 | return NULL; |
1d99702e RD |
2201 | if (_argo0) { |
2202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2205 | return NULL; | |
2206 | } | |
2207 | } | |
cf694132 RD |
2208 | { |
2209 | wxPy_BEGIN_ALLOW_THREADS; | |
2210 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2211 | ||
2212 | wxPy_END_ALLOW_THREADS; | |
2213 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
2214 | _resultobj = Py_BuildValue("s",_ptemp); |
2215 | return _resultobj; | |
2216 | } | |
2217 | ||
2218 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2219 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2220 | PyObject * _resultobj; |
2221 | wxRect * _result; | |
2222 | wxWindow * _arg0; | |
1d99702e | 2223 | PyObject * _argo0 = 0; |
efc5f224 | 2224 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2225 | char _ptemp[128]; |
2226 | ||
2227 | self = self; | |
efc5f224 | 2228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2229 | return NULL; |
1d99702e RD |
2230 | if (_argo0) { |
2231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2234 | return NULL; | |
2235 | } | |
2236 | } | |
cf694132 RD |
2237 | { |
2238 | wxPy_BEGIN_ALLOW_THREADS; | |
2239 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2240 | ||
2241 | wxPy_END_ALLOW_THREADS; | |
2242 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
b8b8dda7 RD |
2243 | _resultobj = Py_BuildValue("s",_ptemp); |
2244 | return _resultobj; | |
2245 | } | |
2246 | ||
8ab979d7 | 2247 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2248 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2249 | PyObject * _resultobj; |
2250 | int _result; | |
2251 | wxWindow * _arg0; | |
2252 | int _arg1; | |
1d99702e | 2253 | PyObject * _argo0 = 0; |
efc5f224 | 2254 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2255 | |
2256 | self = self; | |
efc5f224 | 2257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2258 | return NULL; |
1d99702e RD |
2259 | if (_argo0) { |
2260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2263 | return NULL; | |
2264 | } | |
2265 | } | |
cf694132 RD |
2266 | { |
2267 | wxPy_BEGIN_ALLOW_THREADS; | |
2268 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2269 | ||
2270 | wxPy_END_ALLOW_THREADS; | |
2271 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2272 | return _resultobj; |
2273 | } | |
2274 | ||
2275 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2276 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2277 | PyObject * _resultobj; |
2278 | int _result; | |
2279 | wxWindow * _arg0; | |
2280 | int _arg1; | |
1d99702e | 2281 | PyObject * _argo0 = 0; |
efc5f224 | 2282 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2283 | |
2284 | self = self; | |
efc5f224 | 2285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2286 | return NULL; |
1d99702e RD |
2287 | if (_argo0) { |
2288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2291 | return NULL; | |
2292 | } | |
2293 | } | |
cf694132 RD |
2294 | { |
2295 | wxPy_BEGIN_ALLOW_THREADS; | |
2296 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2297 | ||
2298 | wxPy_END_ALLOW_THREADS; | |
2299 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2300 | return _resultobj; |
2301 | } | |
2302 | ||
2303 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2304 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2305 | PyObject * _resultobj; |
2306 | int _result; | |
2307 | wxWindow * _arg0; | |
2308 | int _arg1; | |
1d99702e | 2309 | PyObject * _argo0 = 0; |
efc5f224 | 2310 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2311 | |
2312 | self = self; | |
efc5f224 | 2313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2314 | return NULL; |
1d99702e RD |
2315 | if (_argo0) { |
2316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2319 | return NULL; | |
2320 | } | |
2321 | } | |
cf694132 RD |
2322 | { |
2323 | wxPy_BEGIN_ALLOW_THREADS; | |
2324 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2325 | ||
2326 | wxPy_END_ALLOW_THREADS; | |
2327 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2328 | return _resultobj; |
2329 | } | |
2330 | ||
b8b8dda7 | 2331 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2332 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2333 | PyObject * _resultobj; |
2334 | wxWindow * _arg0; | |
2335 | int * _arg1; | |
2336 | int temp; | |
2337 | int * _arg2; | |
2338 | int temp0; | |
1d99702e | 2339 | PyObject * _argo0 = 0; |
efc5f224 | 2340 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2341 | |
2342 | self = self; | |
2343 | { | |
2344 | _arg1 = &temp; | |
2345 | } | |
2346 | { | |
2347 | _arg2 = &temp0; | |
2348 | } | |
efc5f224 | 2349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2350 | return NULL; |
1d99702e RD |
2351 | if (_argo0) { |
2352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2355 | return NULL; |
2356 | } | |
2357 | } | |
cf694132 RD |
2358 | { |
2359 | wxPy_BEGIN_ALLOW_THREADS; | |
2360 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2361 | ||
2362 | wxPy_END_ALLOW_THREADS; | |
2363 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2364 | _resultobj = Py_None; |
2365 | { | |
2366 | PyObject *o; | |
2367 | o = PyInt_FromLong((long) (*_arg1)); | |
2368 | _resultobj = t_output_helper(_resultobj, o); | |
2369 | } | |
2370 | { | |
2371 | PyObject *o; | |
2372 | o = PyInt_FromLong((long) (*_arg2)); | |
2373 | _resultobj = t_output_helper(_resultobj, o); | |
2374 | } | |
2375 | return _resultobj; | |
2376 | } | |
2377 | ||
b8b8dda7 | 2378 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2379 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2380 | PyObject * _resultobj; |
2381 | wxSize * _result; | |
2382 | wxWindow * _arg0; | |
1d99702e | 2383 | PyObject * _argo0 = 0; |
efc5f224 | 2384 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2385 | char _ptemp[128]; |
2386 | ||
2387 | self = self; | |
efc5f224 | 2388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2389 | return NULL; |
1d99702e RD |
2390 | if (_argo0) { |
2391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2394 | return NULL; | |
2395 | } | |
2396 | } | |
cf694132 RD |
2397 | { |
2398 | wxPy_BEGIN_ALLOW_THREADS; | |
2399 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2400 | ||
2401 | wxPy_END_ALLOW_THREADS; | |
2402 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
2403 | _resultobj = Py_BuildValue("s",_ptemp); |
2404 | return _resultobj; | |
2405 | } | |
2406 | ||
8ab979d7 | 2407 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2408 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2409 | PyObject * _resultobj; |
2410 | wxWindow * _arg0; | |
2411 | wxString * _arg1; | |
2412 | int * _arg2; | |
2413 | int temp; | |
2414 | int * _arg3; | |
2415 | int temp0; | |
1d99702e | 2416 | PyObject * _argo0 = 0; |
8ab979d7 | 2417 | PyObject * _obj1 = 0; |
efc5f224 | 2418 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2419 | |
2420 | self = self; | |
2421 | { | |
2422 | _arg2 = &temp; | |
2423 | } | |
2424 | { | |
2425 | _arg3 = &temp0; | |
2426 | } | |
efc5f224 | 2427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2428 | return NULL; |
1d99702e RD |
2429 | if (_argo0) { |
2430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2433 | return NULL; | |
2434 | } | |
2435 | } | |
2436 | { | |
185d7c3e RD |
2437 | #if PYTHON_API_VERSION >= 1009 |
2438 | char* tmpPtr; int tmpSize; | |
2439 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2440 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2441 | return NULL; |
2442 | } | |
2443 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2444 | return NULL; | |
2445 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2446 | #else | |
8ab979d7 RD |
2447 | if (!PyString_Check(_obj1)) { |
2448 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2449 | return NULL; | |
2450 | } | |
185d7c3e RD |
2451 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2452 | #endif | |
8ab979d7 | 2453 | } |
cf694132 RD |
2454 | { |
2455 | wxPy_BEGIN_ALLOW_THREADS; | |
2456 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2457 | ||
2458 | wxPy_END_ALLOW_THREADS; | |
2459 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2460 | _resultobj = Py_None; |
2461 | { | |
2462 | PyObject *o; | |
2463 | o = PyInt_FromLong((long) (*_arg2)); | |
2464 | _resultobj = t_output_helper(_resultobj, o); | |
2465 | } | |
2466 | { | |
2467 | PyObject *o; | |
2468 | o = PyInt_FromLong((long) (*_arg3)); | |
2469 | _resultobj = t_output_helper(_resultobj, o); | |
2470 | } | |
2471 | { | |
2472 | if (_obj1) | |
2473 | delete _arg1; | |
2474 | } | |
2475 | return _resultobj; | |
2476 | } | |
2477 | ||
af309447 | 2478 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2479 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2480 | PyObject * _resultobj; |
2481 | wxWindow * _arg0; | |
2482 | wxString * _arg1; | |
2483 | int * _arg2; | |
2484 | int temp; | |
2485 | int * _arg3; | |
2486 | int temp0; | |
2487 | int * _arg4; | |
2488 | int temp1; | |
2489 | int * _arg5; | |
2490 | int temp2; | |
1d99702e RD |
2491 | wxFont * _arg6 = (wxFont *) NULL; |
2492 | PyObject * _argo0 = 0; | |
af309447 | 2493 | PyObject * _obj1 = 0; |
1d99702e | 2494 | PyObject * _argo6 = 0; |
efc5f224 | 2495 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2496 | |
2497 | self = self; | |
2498 | { | |
2499 | _arg2 = &temp; | |
2500 | } | |
2501 | { | |
2502 | _arg3 = &temp0; | |
2503 | } | |
2504 | { | |
2505 | _arg4 = &temp1; | |
2506 | } | |
2507 | { | |
2508 | _arg5 = &temp2; | |
2509 | } | |
efc5f224 | 2510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2511 | return NULL; |
1d99702e RD |
2512 | if (_argo0) { |
2513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2516 | return NULL; | |
2517 | } | |
2518 | } | |
2519 | { | |
185d7c3e RD |
2520 | #if PYTHON_API_VERSION >= 1009 |
2521 | char* tmpPtr; int tmpSize; | |
2522 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2523 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2524 | return NULL; |
2525 | } | |
2526 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2527 | return NULL; | |
2528 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2529 | #else | |
af309447 RD |
2530 | if (!PyString_Check(_obj1)) { |
2531 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2532 | return NULL; | |
2533 | } | |
185d7c3e RD |
2534 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2535 | #endif | |
af309447 | 2536 | } |
1d99702e RD |
2537 | if (_argo6) { |
2538 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2539 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2541 | return NULL; | |
2542 | } | |
2543 | } | |
cf694132 RD |
2544 | { |
2545 | wxPy_BEGIN_ALLOW_THREADS; | |
2546 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2547 | ||
2548 | wxPy_END_ALLOW_THREADS; | |
2549 | } Py_INCREF(Py_None); | |
af309447 RD |
2550 | _resultobj = Py_None; |
2551 | { | |
2552 | PyObject *o; | |
2553 | o = PyInt_FromLong((long) (*_arg2)); | |
2554 | _resultobj = t_output_helper(_resultobj, o); | |
2555 | } | |
2556 | { | |
2557 | PyObject *o; | |
2558 | o = PyInt_FromLong((long) (*_arg3)); | |
2559 | _resultobj = t_output_helper(_resultobj, o); | |
2560 | } | |
2561 | { | |
2562 | PyObject *o; | |
2563 | o = PyInt_FromLong((long) (*_arg4)); | |
2564 | _resultobj = t_output_helper(_resultobj, o); | |
2565 | } | |
2566 | { | |
2567 | PyObject *o; | |
2568 | o = PyInt_FromLong((long) (*_arg5)); | |
2569 | _resultobj = t_output_helper(_resultobj, o); | |
2570 | } | |
2571 | { | |
2572 | if (_obj1) | |
2573 | delete _arg1; | |
2574 | } | |
2575 | return _resultobj; | |
2576 | } | |
2577 | ||
8ab979d7 | 2578 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2579 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2580 | PyObject * _resultobj; |
2581 | wxString * _result; | |
2582 | wxWindow * _arg0; | |
1d99702e | 2583 | PyObject * _argo0 = 0; |
efc5f224 | 2584 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2585 | |
2586 | self = self; | |
efc5f224 | 2587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 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")) { | |
8ab979d7 RD |
2592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2593 | return NULL; | |
2594 | } | |
2595 | } | |
8ab979d7 | 2596 | { |
cf694132 RD |
2597 | wxPy_BEGIN_ALLOW_THREADS; |
2598 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2599 | ||
2600 | wxPy_END_ALLOW_THREADS; | |
2601 | }{ | |
eec92d76 | 2602 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2603 | } |
2604 | { | |
2605 | delete _result; | |
2606 | } | |
2607 | return _resultobj; | |
2608 | } | |
2609 | ||
8bf5d46e | 2610 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2611 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2612 | PyObject * _resultobj; |
2613 | wxRegion * _result; | |
2614 | wxWindow * _arg0; | |
1d99702e | 2615 | PyObject * _argo0 = 0; |
efc5f224 | 2616 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2617 | char _ptemp[128]; |
2618 | ||
2619 | self = self; | |
efc5f224 | 2620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2621 | return NULL; |
1d99702e RD |
2622 | if (_argo0) { |
2623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2626 | return NULL; | |
2627 | } | |
2628 | } | |
2629 | { | |
2630 | wxPy_BEGIN_ALLOW_THREADS; | |
2631 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2632 | ||
2633 | wxPy_END_ALLOW_THREADS; | |
2634 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); | |
2635 | _resultobj = Py_BuildValue("s",_ptemp); | |
2636 | return _resultobj; | |
2637 | } | |
2638 | ||
8ab979d7 | 2639 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2640 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2641 | PyObject * _resultobj; |
2642 | long _result; | |
2643 | wxWindow * _arg0; | |
1d99702e | 2644 | PyObject * _argo0 = 0; |
efc5f224 | 2645 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2646 | |
2647 | self = self; | |
efc5f224 | 2648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2649 | return NULL; |
1d99702e RD |
2650 | if (_argo0) { |
2651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2654 | return NULL; | |
2655 | } | |
2656 | } | |
cf694132 RD |
2657 | { |
2658 | wxPy_BEGIN_ALLOW_THREADS; | |
2659 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2660 | ||
2661 | wxPy_END_ALLOW_THREADS; | |
2662 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2663 | return _resultobj; |
2664 | } | |
2665 | ||
f6bcfd97 BP |
2666 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2667 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2668 | PyObject * _resultobj; | |
2669 | wxWindow * _arg0; | |
2670 | long _arg1; | |
2671 | PyObject * _argo0 = 0; | |
2672 | char *_kwnames[] = { "self","style", NULL }; | |
2673 | ||
2674 | self = self; | |
2675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2676 | return NULL; | |
2677 | if (_argo0) { | |
2678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2681 | return NULL; | |
2682 | } | |
2683 | } | |
2684 | { | |
2685 | wxPy_BEGIN_ALLOW_THREADS; | |
2686 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2687 | ||
2688 | wxPy_END_ALLOW_THREADS; | |
2689 | } Py_INCREF(Py_None); | |
2690 | _resultobj = Py_None; | |
2691 | return _resultobj; | |
2692 | } | |
2693 | ||
2694 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2695 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2696 | PyObject * _resultobj; | |
2697 | wxWindow * _arg0; | |
2698 | long _arg1; | |
2699 | PyObject * _argo0 = 0; | |
2700 | char *_kwnames[] = { "self","style", NULL }; | |
2701 | ||
2702 | self = self; | |
2703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2704 | return NULL; | |
2705 | if (_argo0) { | |
2706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2709 | return NULL; | |
2710 | } | |
2711 | } | |
2712 | { | |
2713 | wxPy_BEGIN_ALLOW_THREADS; | |
2714 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2715 | ||
2716 | wxPy_END_ALLOW_THREADS; | |
2717 | } Py_INCREF(Py_None); | |
2718 | _resultobj = Py_None; | |
2719 | return _resultobj; | |
2720 | } | |
2721 | ||
bb0054cd | 2722 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2723 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2724 | PyObject * _resultobj; |
2725 | bool _result; | |
2726 | wxWindow * _arg0; | |
1d99702e | 2727 | PyObject * _argo0 = 0; |
efc5f224 | 2728 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2729 | |
2730 | self = self; | |
efc5f224 | 2731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2732 | return NULL; |
1d99702e RD |
2733 | if (_argo0) { |
2734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2737 | return NULL; | |
2738 | } | |
2739 | } | |
2740 | { | |
2741 | wxPy_BEGIN_ALLOW_THREADS; | |
2742 | _result = (bool )wxWindow_Hide(_arg0); | |
2743 | ||
2744 | wxPy_END_ALLOW_THREADS; | |
2745 | } _resultobj = Py_BuildValue("i",_result); | |
2746 | return _resultobj; | |
2747 | } | |
2748 | ||
8ab979d7 | 2749 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2750 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2751 | PyObject * _resultobj; |
2752 | wxWindow * _arg0; | |
1d99702e | 2753 | PyObject * _argo0 = 0; |
efc5f224 | 2754 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2755 | |
2756 | self = self; | |
efc5f224 | 2757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2758 | return NULL; |
1d99702e RD |
2759 | if (_argo0) { |
2760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2763 | return NULL; | |
2764 | } | |
2765 | } | |
cf694132 RD |
2766 | { |
2767 | wxPy_BEGIN_ALLOW_THREADS; | |
2768 | wxWindow_InitDialog(_arg0); | |
2769 | ||
2770 | wxPy_END_ALLOW_THREADS; | |
2771 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2772 | _resultobj = Py_None; |
2773 | return _resultobj; | |
2774 | } | |
2775 | ||
2776 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2777 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2778 | PyObject * _resultobj; |
2779 | bool _result; | |
2780 | wxWindow * _arg0; | |
1d99702e | 2781 | PyObject * _argo0 = 0; |
efc5f224 | 2782 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2783 | |
2784 | self = self; | |
efc5f224 | 2785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2786 | return NULL; |
1d99702e RD |
2787 | if (_argo0) { |
2788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2791 | return NULL; | |
2792 | } | |
2793 | } | |
cf694132 RD |
2794 | { |
2795 | wxPy_BEGIN_ALLOW_THREADS; | |
2796 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2797 | ||
2798 | wxPy_END_ALLOW_THREADS; | |
2799 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2800 | return _resultobj; |
2801 | } | |
2802 | ||
1b55cabf RD |
2803 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2804 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2805 | PyObject * _resultobj; | |
2806 | bool _result; | |
2807 | wxWindow * _arg0; | |
2808 | int _arg1; | |
2809 | int _arg2; | |
2810 | int _arg3 = (int ) 0; | |
2811 | int _arg4 = (int ) 0; | |
2812 | PyObject * _argo0 = 0; | |
2813 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2814 | ||
2815 | self = self; | |
2816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2817 | return NULL; | |
2818 | if (_argo0) { | |
2819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2822 | return NULL; | |
2823 | } | |
2824 | } | |
2825 | { | |
2826 | wxPy_BEGIN_ALLOW_THREADS; | |
2827 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2828 | ||
2829 | wxPy_END_ALLOW_THREADS; | |
2830 | } _resultobj = Py_BuildValue("i",_result); | |
2831 | return _resultobj; | |
2832 | } | |
2833 | ||
2834 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2835 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2836 | PyObject * _resultobj; | |
2837 | bool _result; | |
2838 | wxWindow * _arg0; | |
2839 | wxPoint * _arg1; | |
2840 | PyObject * _argo0 = 0; | |
2841 | wxPoint temp; | |
2842 | PyObject * _obj1 = 0; | |
2843 | char *_kwnames[] = { "self","pt", NULL }; | |
2844 | ||
2845 | self = self; | |
2846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2847 | return NULL; | |
2848 | if (_argo0) { | |
2849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2852 | return NULL; | |
2853 | } | |
2854 | } | |
2855 | { | |
2856 | _arg1 = &temp; | |
2857 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2858 | return NULL; | |
2859 | } | |
2860 | { | |
2861 | wxPy_BEGIN_ALLOW_THREADS; | |
2862 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2863 | ||
2864 | wxPy_END_ALLOW_THREADS; | |
2865 | } _resultobj = Py_BuildValue("i",_result); | |
2866 | return _resultobj; | |
2867 | } | |
2868 | ||
2869 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2870 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2871 | PyObject * _resultobj; | |
2872 | bool _result; | |
2873 | wxWindow * _arg0; | |
2874 | wxRect * _arg1; | |
2875 | PyObject * _argo0 = 0; | |
2876 | wxRect temp; | |
2877 | PyObject * _obj1 = 0; | |
2878 | char *_kwnames[] = { "self","rect", NULL }; | |
2879 | ||
2880 | self = self; | |
2881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2882 | return NULL; | |
2883 | if (_argo0) { | |
2884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2887 | return NULL; | |
2888 | } | |
2889 | } | |
2890 | { | |
2891 | _arg1 = &temp; | |
2892 | if (! wxRect_helper(_obj1, &_arg1)) | |
2893 | return NULL; | |
2894 | } | |
2895 | { | |
2896 | wxPy_BEGIN_ALLOW_THREADS; | |
2897 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2898 | ||
2899 | wxPy_END_ALLOW_THREADS; | |
2900 | } _resultobj = Py_BuildValue("i",_result); | |
2901 | return _resultobj; | |
2902 | } | |
2903 | ||
8ab979d7 | 2904 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 2905 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2906 | PyObject * _resultobj; |
2907 | bool _result; | |
2908 | wxWindow * _arg0; | |
1d99702e | 2909 | PyObject * _argo0 = 0; |
efc5f224 | 2910 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2911 | |
2912 | self = self; | |
efc5f224 | 2913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 2914 | return NULL; |
1d99702e RD |
2915 | if (_argo0) { |
2916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
2919 | return NULL; | |
2920 | } | |
2921 | } | |
cf694132 RD |
2922 | { |
2923 | wxPy_BEGIN_ALLOW_THREADS; | |
2924 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2925 | ||
2926 | wxPy_END_ALLOW_THREADS; | |
2927 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2928 | return _resultobj; |
2929 | } | |
2930 | ||
2931 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 2932 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2933 | PyObject * _resultobj; |
2934 | bool _result; | |
2935 | wxWindow * _arg0; | |
1d99702e | 2936 | PyObject * _argo0 = 0; |
efc5f224 | 2937 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2938 | |
2939 | self = self; | |
efc5f224 | 2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 2941 | return NULL; |
1d99702e RD |
2942 | if (_argo0) { |
2943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
2946 | return NULL; | |
2947 | } | |
2948 | } | |
cf694132 RD |
2949 | { |
2950 | wxPy_BEGIN_ALLOW_THREADS; | |
2951 | _result = (bool )wxWindow_IsShown(_arg0); | |
2952 | ||
2953 | wxPy_END_ALLOW_THREADS; | |
2954 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2955 | return _resultobj; |
2956 | } | |
2957 | ||
bb0054cd | 2958 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 2959 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2960 | PyObject * _resultobj; |
2961 | bool _result; | |
2962 | wxWindow * _arg0; | |
1d99702e | 2963 | PyObject * _argo0 = 0; |
efc5f224 | 2964 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2965 | |
2966 | self = self; | |
efc5f224 | 2967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 2968 | return NULL; |
1d99702e RD |
2969 | if (_argo0) { |
2970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
2973 | return NULL; | |
2974 | } | |
2975 | } | |
2976 | { | |
2977 | wxPy_BEGIN_ALLOW_THREADS; | |
2978 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2979 | ||
2980 | wxPy_END_ALLOW_THREADS; | |
2981 | } _resultobj = Py_BuildValue("i",_result); | |
2982 | return _resultobj; | |
2983 | } | |
2984 | ||
8ab979d7 | 2985 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 2986 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2987 | PyObject * _resultobj; |
2988 | wxWindow * _arg0; | |
1d99702e | 2989 | PyObject * _argo0 = 0; |
efc5f224 | 2990 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2991 | |
2992 | self = self; | |
efc5f224 | 2993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 2994 | return NULL; |
1d99702e RD |
2995 | if (_argo0) { |
2996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
2999 | return NULL; | |
3000 | } | |
3001 | } | |
cf694132 RD |
3002 | { |
3003 | wxPy_BEGIN_ALLOW_THREADS; | |
3004 | wxWindow_Layout(_arg0); | |
3005 | ||
3006 | wxPy_END_ALLOW_THREADS; | |
3007 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3008 | _resultobj = Py_None; |
3009 | return _resultobj; | |
3010 | } | |
3011 | ||
3012 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3013 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3014 | PyObject * _resultobj; |
3015 | bool _result; | |
3016 | wxWindow * _arg0; | |
3017 | wxWindow * _arg1; | |
3018 | wxString * _arg2; | |
1d99702e RD |
3019 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
3020 | PyObject * _argo0 = 0; | |
3021 | PyObject * _argo1 = 0; | |
8ab979d7 | 3022 | PyObject * _obj2 = 0; |
1d99702e | 3023 | PyObject * _argo3 = 0; |
efc5f224 | 3024 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
3025 | |
3026 | self = self; | |
efc5f224 | 3027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 3028 | return NULL; |
1d99702e RD |
3029 | if (_argo0) { |
3030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3033 | return NULL; | |
3034 | } | |
3035 | } | |
1d99702e RD |
3036 | if (_argo1) { |
3037 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3038 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3040 | return NULL; | |
3041 | } | |
3042 | } | |
3043 | { | |
185d7c3e RD |
3044 | #if PYTHON_API_VERSION >= 1009 |
3045 | char* tmpPtr; int tmpSize; | |
3046 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 3047 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3048 | return NULL; |
3049 | } | |
3050 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3051 | return NULL; | |
3052 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3053 | #else | |
8ab979d7 RD |
3054 | if (!PyString_Check(_obj2)) { |
3055 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3056 | return NULL; | |
3057 | } | |
185d7c3e RD |
3058 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3059 | #endif | |
8ab979d7 | 3060 | } |
1d99702e RD |
3061 | if (_argo3) { |
3062 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3063 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3065 | return NULL; | |
3066 | } | |
3067 | } | |
cf694132 RD |
3068 | { |
3069 | wxPy_BEGIN_ALLOW_THREADS; | |
3070 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
3071 | ||
3072 | wxPy_END_ALLOW_THREADS; | |
3073 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3074 | { |
3075 | if (_obj2) | |
3076 | delete _arg2; | |
3077 | } | |
3078 | return _resultobj; | |
3079 | } | |
3080 | ||
3081 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3082 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3083 | PyObject * _resultobj; |
3084 | wxWindow * _arg0; | |
1d99702e | 3085 | PyObject * _argo0 = 0; |
efc5f224 | 3086 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3087 | |
3088 | self = self; | |
efc5f224 | 3089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3090 | return NULL; |
1d99702e RD |
3091 | if (_argo0) { |
3092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3095 | return NULL; | |
3096 | } | |
3097 | } | |
cf694132 RD |
3098 | { |
3099 | wxPy_BEGIN_ALLOW_THREADS; | |
3100 | wxWindow_Lower(_arg0); | |
3101 | ||
3102 | wxPy_END_ALLOW_THREADS; | |
3103 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3104 | _resultobj = Py_None; |
3105 | return _resultobj; | |
3106 | } | |
3107 | ||
3108 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3109 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3110 | PyObject * _resultobj; |
3111 | wxWindow * _arg0; | |
3112 | bool _arg1; | |
1d99702e | 3113 | PyObject * _argo0 = 0; |
8ab979d7 | 3114 | int tempbool1; |
efc5f224 | 3115 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3116 | |
3117 | self = self; | |
efc5f224 | 3118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3119 | return NULL; |
1d99702e RD |
3120 | if (_argo0) { |
3121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3124 | return NULL; | |
3125 | } | |
3126 | } | |
3127 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3128 | { |
3129 | wxPy_BEGIN_ALLOW_THREADS; | |
3130 | wxWindow_MakeModal(_arg0,_arg1); | |
3131 | ||
3132 | wxPy_END_ALLOW_THREADS; | |
3133 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3134 | _resultobj = Py_None; |
3135 | return _resultobj; | |
3136 | } | |
3137 | ||
af309447 | 3138 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3139 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3140 | PyObject * _resultobj; |
3141 | wxWindow * _arg0; | |
3142 | int _arg1; | |
3143 | int _arg2; | |
1d99702e | 3144 | PyObject * _argo0 = 0; |
efc5f224 | 3145 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3146 | |
3147 | self = self; | |
efc5f224 | 3148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 3149 | return NULL; |
1d99702e RD |
3150 | if (_argo0) { |
3151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3154 | return NULL; | |
3155 | } | |
3156 | } | |
cf694132 RD |
3157 | { |
3158 | wxPy_BEGIN_ALLOW_THREADS; | |
3159 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
3160 | ||
3161 | wxPy_END_ALLOW_THREADS; | |
3162 | } Py_INCREF(Py_None); | |
af309447 RD |
3163 | _resultobj = Py_None; |
3164 | return _resultobj; | |
3165 | } | |
3166 | ||
3167 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
efc5f224 | 3168 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3169 | PyObject * _resultobj; |
3170 | wxWindow * _arg0; | |
3171 | wxPoint * _arg1; | |
1d99702e | 3172 | PyObject * _argo0 = 0; |
2f90df85 RD |
3173 | wxPoint temp; |
3174 | PyObject * _obj1 = 0; | |
efc5f224 | 3175 | char *_kwnames[] = { "self","point", NULL }; |
af309447 RD |
3176 | |
3177 | self = self; | |
2f90df85 | 3178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3179 | return NULL; |
1d99702e RD |
3180 | if (_argo0) { |
3181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3184 | return NULL; | |
3185 | } | |
3186 | } | |
2f90df85 RD |
3187 | { |
3188 | _arg1 = &temp; | |
3189 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3190 | return NULL; |
2f90df85 | 3191 | } |
cf694132 RD |
3192 | { |
3193 | wxPy_BEGIN_ALLOW_THREADS; | |
3194 | wxWindow_Move(_arg0,*_arg1); | |
3195 | ||
3196 | wxPy_END_ALLOW_THREADS; | |
3197 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3198 | _resultobj = Py_None; |
3199 | return _resultobj; | |
3200 | } | |
3201 | ||
1afc06c2 RD |
3202 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3203 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3204 | PyObject * _resultobj; | |
3205 | wxEvtHandler * _result; | |
3206 | wxWindow * _arg0; | |
3207 | bool _arg1 = (bool ) FALSE; | |
3208 | PyObject * _argo0 = 0; | |
3209 | int tempbool1 = (int) FALSE; | |
3210 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
3211 | char _ptemp[128]; | |
3212 | ||
3213 | self = self; | |
3214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3215 | return NULL; | |
3216 | if (_argo0) { | |
3217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3220 | return NULL; | |
3221 | } | |
3222 | } | |
3223 | _arg1 = (bool ) tempbool1; | |
3224 | { | |
3225 | wxPy_BEGIN_ALLOW_THREADS; | |
3226 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3227 | ||
3228 | wxPy_END_ALLOW_THREADS; | |
3229 | } if (_result) { | |
3230 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
3231 | _resultobj = Py_BuildValue("s",_ptemp); | |
3232 | } else { | |
3233 | Py_INCREF(Py_None); | |
3234 | _resultobj = Py_None; | |
3235 | } | |
3236 | return _resultobj; | |
3237 | } | |
3238 | ||
3239 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3240 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3241 | PyObject * _resultobj; | |
3242 | wxWindow * _arg0; | |
3243 | wxEvtHandler * _arg1; | |
3244 | PyObject * _argo0 = 0; | |
3245 | PyObject * _argo1 = 0; | |
3246 | char *_kwnames[] = { "self","handler", NULL }; | |
3247 | ||
3248 | self = self; | |
3249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3250 | return NULL; | |
3251 | if (_argo0) { | |
3252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3255 | return NULL; | |
3256 | } | |
3257 | } | |
3258 | if (_argo1) { | |
3259 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3260 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3262 | return NULL; | |
3263 | } | |
3264 | } | |
3265 | { | |
3266 | wxPy_BEGIN_ALLOW_THREADS; | |
3267 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3268 | ||
3269 | wxPy_END_ALLOW_THREADS; | |
3270 | } Py_INCREF(Py_None); | |
3271 | _resultobj = Py_None; | |
3272 | return _resultobj; | |
3273 | } | |
3274 | ||
8bf5d46e | 3275 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3276 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3277 | PyObject * _resultobj; |
3278 | bool _result; | |
3279 | wxWindow * _arg0; | |
3280 | wxMenu * _arg1; | |
3281 | int _arg2; | |
3282 | int _arg3; | |
1d99702e RD |
3283 | PyObject * _argo0 = 0; |
3284 | PyObject * _argo1 = 0; | |
efc5f224 | 3285 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3286 | |
3287 | self = self; | |
efc5f224 | 3288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3289 | return NULL; |
1d99702e RD |
3290 | if (_argo0) { |
3291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3294 | return NULL; | |
3295 | } | |
3296 | } | |
1d99702e RD |
3297 | if (_argo1) { |
3298 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3299 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3301 | return NULL; | |
3302 | } | |
3303 | } | |
3304 | { | |
3305 | wxPy_BEGIN_ALLOW_THREADS; | |
3306 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3307 | ||
3308 | wxPy_END_ALLOW_THREADS; | |
3309 | } _resultobj = Py_BuildValue("i",_result); | |
3310 | return _resultobj; | |
3311 | } | |
3312 | ||
3313 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3314 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3315 | PyObject * _resultobj; |
3316 | bool _result; | |
3317 | wxWindow * _arg0; | |
3318 | wxMenu * _arg1; | |
3319 | wxPoint * _arg2; | |
1d99702e RD |
3320 | PyObject * _argo0 = 0; |
3321 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3322 | wxPoint temp; |
3323 | PyObject * _obj2 = 0; | |
efc5f224 | 3324 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3325 | |
3326 | self = self; | |
2f90df85 | 3327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3328 | return NULL; |
1d99702e RD |
3329 | if (_argo0) { |
3330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3333 | return NULL; | |
3334 | } | |
3335 | } | |
1d99702e RD |
3336 | if (_argo1) { |
3337 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3338 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3340 | return NULL; | |
3341 | } | |
3342 | } | |
2f90df85 RD |
3343 | { |
3344 | _arg2 = &temp; | |
3345 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3346 | return NULL; |
2f90df85 | 3347 | } |
cf694132 RD |
3348 | { |
3349 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 3350 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 RD |
3351 | |
3352 | wxPy_END_ALLOW_THREADS; | |
3353 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3354 | return _resultobj; |
3355 | } | |
3356 | ||
3357 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3358 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3359 | PyObject * _resultobj; |
3360 | wxWindow * _arg0; | |
1d99702e | 3361 | PyObject * _argo0 = 0; |
efc5f224 | 3362 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3363 | |
3364 | self = self; | |
efc5f224 | 3365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3366 | return NULL; |
1d99702e RD |
3367 | if (_argo0) { |
3368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3371 | return NULL; | |
3372 | } | |
3373 | } | |
cf694132 RD |
3374 | { |
3375 | wxPy_BEGIN_ALLOW_THREADS; | |
3376 | wxWindow_Raise(_arg0); | |
3377 | ||
3378 | wxPy_END_ALLOW_THREADS; | |
3379 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3380 | _resultobj = Py_None; |
3381 | return _resultobj; | |
3382 | } | |
3383 | ||
3384 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3385 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3386 | PyObject * _resultobj; |
3387 | wxWindow * _arg0; | |
1d99702e RD |
3388 | bool _arg1 = (bool ) TRUE; |
3389 | wxRect * _arg2 = (wxRect *) NULL; | |
3390 | PyObject * _argo0 = 0; | |
3391 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3392 | wxRect temp; |
3393 | PyObject * _obj2 = 0; | |
efc5f224 | 3394 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3395 | |
3396 | self = self; | |
2f90df85 | 3397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3398 | return NULL; |
1d99702e RD |
3399 | if (_argo0) { |
3400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3403 | return NULL; | |
3404 | } | |
3405 | } | |
3406 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3407 | if (_obj2) |
3408 | { | |
3409 | _arg2 = &temp; | |
3410 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3411 | return NULL; |
2f90df85 | 3412 | } |
cf694132 RD |
3413 | { |
3414 | wxPy_BEGIN_ALLOW_THREADS; | |
3415 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3416 | ||
3417 | wxPy_END_ALLOW_THREADS; | |
3418 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3419 | _resultobj = Py_None; |
3420 | return _resultobj; | |
3421 | } | |
3422 | ||
3423 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
efc5f224 | 3424 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3425 | PyObject * _resultobj; |
3426 | wxWindow * _arg0; | |
1d99702e | 3427 | PyObject * _argo0 = 0; |
efc5f224 | 3428 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3429 | |
3430 | self = self; | |
efc5f224 | 3431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3432 | return NULL; |
1d99702e RD |
3433 | if (_argo0) { |
3434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3437 | return NULL; | |
3438 | } | |
3439 | } | |
cf694132 RD |
3440 | { |
3441 | wxPy_BEGIN_ALLOW_THREADS; | |
3442 | wxWindow_ReleaseMouse(_arg0); | |
3443 | ||
3444 | wxPy_END_ALLOW_THREADS; | |
3445 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3446 | _resultobj = Py_None; |
3447 | return _resultobj; | |
3448 | } | |
3449 | ||
b7e72427 RD |
3450 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3451 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3452 | PyObject * _resultobj; | |
3453 | wxWindow * _arg0; | |
3454 | wxWindow * _arg1; | |
3455 | PyObject * _argo0 = 0; | |
3456 | PyObject * _argo1 = 0; | |
3457 | char *_kwnames[] = { "self","child", NULL }; | |
3458 | ||
3459 | self = self; | |
3460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3461 | return NULL; | |
3462 | if (_argo0) { | |
3463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3466 | return NULL; | |
3467 | } | |
3468 | } | |
3469 | if (_argo1) { | |
3470 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3471 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3473 | return NULL; | |
3474 | } | |
3475 | } | |
3476 | { | |
3477 | wxPy_BEGIN_ALLOW_THREADS; | |
3478 | wxWindow_RemoveChild(_arg0,_arg1); | |
3479 | ||
3480 | wxPy_END_ALLOW_THREADS; | |
3481 | } Py_INCREF(Py_None); | |
3482 | _resultobj = Py_None; | |
3483 | return _resultobj; | |
3484 | } | |
3485 | ||
bb0054cd | 3486 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3487 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3488 | PyObject * _resultobj; |
3489 | bool _result; | |
3490 | wxWindow * _arg0; | |
3491 | wxWindow * _arg1; | |
1d99702e RD |
3492 | PyObject * _argo0 = 0; |
3493 | PyObject * _argo1 = 0; | |
efc5f224 | 3494 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3495 | |
3496 | self = self; | |
efc5f224 | 3497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3498 | return NULL; |
1d99702e RD |
3499 | if (_argo0) { |
3500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3503 | return NULL; | |
3504 | } | |
3505 | } | |
1d99702e RD |
3506 | if (_argo1) { |
3507 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3508 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3510 | return NULL; | |
3511 | } | |
3512 | } | |
3513 | { | |
3514 | wxPy_BEGIN_ALLOW_THREADS; | |
3515 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3516 | ||
3517 | wxPy_END_ALLOW_THREADS; | |
3518 | } _resultobj = Py_BuildValue("i",_result); | |
3519 | return _resultobj; | |
3520 | } | |
3521 | ||
af309447 | 3522 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3523 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3524 | PyObject * _resultobj; |
3525 | wxWindow * _arg0; | |
3526 | int * _arg1; | |
3527 | int * _arg2; | |
1d99702e | 3528 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3529 | int temp; |
3530 | PyObject * _obj1 = 0; | |
3531 | int temp0; | |
3532 | PyObject * _obj2 = 0; | |
efc5f224 | 3533 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3534 | |
3535 | self = self; | |
efc5f224 | 3536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3537 | return NULL; |
1d99702e RD |
3538 | if (_argo0) { |
3539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3542 | return NULL; |
3543 | } | |
3544 | } | |
3545 | { | |
3546 | temp = (int) PyInt_AsLong(_obj1); | |
3547 | _arg1 = &temp; | |
3548 | } | |
3549 | { | |
3550 | temp0 = (int) PyInt_AsLong(_obj2); | |
3551 | _arg2 = &temp0; | |
3552 | } | |
cf694132 RD |
3553 | { |
3554 | wxPy_BEGIN_ALLOW_THREADS; | |
3555 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3556 | ||
3557 | wxPy_END_ALLOW_THREADS; | |
3558 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3559 | _resultobj = Py_None; |
3560 | { | |
3561 | PyObject *o; | |
3562 | o = PyInt_FromLong((long) (*_arg1)); | |
3563 | _resultobj = t_output_helper(_resultobj, o); | |
3564 | } | |
3565 | { | |
3566 | PyObject *o; | |
3567 | o = PyInt_FromLong((long) (*_arg2)); | |
3568 | _resultobj = t_output_helper(_resultobj, o); | |
3569 | } | |
3570 | return _resultobj; | |
3571 | } | |
3572 | ||
af309447 | 3573 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3574 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3575 | PyObject * _resultobj; |
3576 | wxPoint * _result; | |
3577 | wxWindow * _arg0; | |
3578 | wxPoint * _arg1; | |
1d99702e | 3579 | PyObject * _argo0 = 0; |
2f90df85 RD |
3580 | wxPoint temp; |
3581 | PyObject * _obj1 = 0; | |
efc5f224 | 3582 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3583 | char _ptemp[128]; |
3584 | ||
3585 | self = self; | |
2f90df85 | 3586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3587 | return NULL; |
1d99702e RD |
3588 | if (_argo0) { |
3589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3592 | return NULL; | |
3593 | } | |
3594 | } | |
2f90df85 RD |
3595 | { |
3596 | _arg1 = &temp; | |
3597 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3598 | return NULL; |
2f90df85 | 3599 | } |
cf694132 RD |
3600 | { |
3601 | wxPy_BEGIN_ALLOW_THREADS; | |
3602 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3603 | ||
3604 | wxPy_END_ALLOW_THREADS; | |
3605 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
af309447 RD |
3606 | _resultobj = Py_BuildValue("s",_ptemp); |
3607 | return _resultobj; | |
3608 | } | |
3609 | ||
8ab979d7 | 3610 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3611 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3612 | PyObject * _resultobj; |
3613 | wxWindow * _arg0; | |
3614 | int _arg1; | |
3615 | int _arg2; | |
1d99702e RD |
3616 | wxRect * _arg3 = (wxRect *) NULL; |
3617 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3618 | wxRect temp; |
3619 | PyObject * _obj3 = 0; | |
efc5f224 | 3620 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3621 | |
3622 | self = self; | |
2f90df85 | 3623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3624 | return NULL; |
1d99702e RD |
3625 | if (_argo0) { |
3626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3629 | return NULL; | |
3630 | } | |
3631 | } | |
2f90df85 RD |
3632 | if (_obj3) |
3633 | { | |
3634 | _arg3 = &temp; | |
3635 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3636 | return NULL; |
2f90df85 | 3637 | } |
cf694132 RD |
3638 | { |
3639 | wxPy_BEGIN_ALLOW_THREADS; | |
3640 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3641 | ||
3642 | wxPy_END_ALLOW_THREADS; | |
3643 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3644 | _resultobj = Py_None; |
3645 | return _resultobj; | |
3646 | } | |
3647 | ||
b8b8dda7 | 3648 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
efc5f224 | 3649 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
3650 | PyObject * _resultobj; |
3651 | wxWindow * _arg0; | |
3652 | wxAcceleratorTable * _arg1; | |
1d99702e RD |
3653 | PyObject * _argo0 = 0; |
3654 | PyObject * _argo1 = 0; | |
efc5f224 | 3655 | char *_kwnames[] = { "self","accel", NULL }; |
b8b8dda7 RD |
3656 | |
3657 | self = self; | |
efc5f224 | 3658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 3659 | return NULL; |
1d99702e RD |
3660 | if (_argo0) { |
3661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
3663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); |
3664 | return NULL; | |
3665 | } | |
3666 | } | |
1d99702e RD |
3667 | if (_argo1) { |
3668 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3669 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
b8b8dda7 RD |
3670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
3671 | return NULL; | |
3672 | } | |
3673 | } | |
cf694132 RD |
3674 | { |
3675 | wxPy_BEGIN_ALLOW_THREADS; | |
3676 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
3677 | ||
3678 | wxPy_END_ALLOW_THREADS; | |
3679 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
3680 | _resultobj = Py_None; |
3681 | return _resultobj; | |
3682 | } | |
3683 | ||
8ab979d7 | 3684 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) |
efc5f224 | 3685 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3686 | PyObject * _resultobj; |
3687 | wxWindow * _arg0; | |
3688 | bool _arg1; | |
1d99702e | 3689 | PyObject * _argo0 = 0; |
8ab979d7 | 3690 | int tempbool1; |
efc5f224 | 3691 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3692 | |
3693 | self = self; | |
efc5f224 | 3694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3695 | return NULL; |
1d99702e RD |
3696 | if (_argo0) { |
3697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3700 | return NULL; | |
3701 | } | |
3702 | } | |
3703 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3704 | { |
3705 | wxPy_BEGIN_ALLOW_THREADS; | |
3706 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3707 | ||
3708 | wxPy_END_ALLOW_THREADS; | |
3709 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3710 | _resultobj = Py_None; |
3711 | return _resultobj; | |
3712 | } | |
3713 | ||
9d8bd15f RD |
3714 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3715 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3716 | PyObject * _resultobj; | |
3717 | bool _result; | |
3718 | wxWindow * _arg0; | |
3719 | PyObject * _argo0 = 0; | |
3720 | char *_kwnames[] = { "self", NULL }; | |
3721 | ||
3722 | self = self; | |
3723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3724 | return NULL; | |
3725 | if (_argo0) { | |
3726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3729 | return NULL; | |
3730 | } | |
3731 | } | |
3732 | { | |
3733 | wxPy_BEGIN_ALLOW_THREADS; | |
3734 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3735 | ||
3736 | wxPy_END_ALLOW_THREADS; | |
3737 | } _resultobj = Py_BuildValue("i",_result); | |
3738 | return _resultobj; | |
3739 | } | |
3740 | ||
8ab979d7 | 3741 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3742 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3743 | PyObject * _resultobj; |
3744 | wxWindow * _arg0; | |
3745 | wxColour * _arg1; | |
1d99702e | 3746 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3747 | wxColour temp; |
3748 | PyObject * _obj1 = 0; | |
efc5f224 | 3749 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3750 | |
3751 | self = self; | |
f6bcfd97 | 3752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3753 | return NULL; |
1d99702e RD |
3754 | if (_argo0) { |
3755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3758 | return NULL; | |
3759 | } | |
3760 | } | |
f6bcfd97 BP |
3761 | { |
3762 | _arg1 = &temp; | |
3763 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3764 | return NULL; |
f6bcfd97 | 3765 | } |
cf694132 RD |
3766 | { |
3767 | wxPy_BEGIN_ALLOW_THREADS; | |
3768 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3769 | ||
3770 | wxPy_END_ALLOW_THREADS; | |
3771 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3772 | _resultobj = Py_None; |
3773 | return _resultobj; | |
3774 | } | |
3775 | ||
3776 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3777 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3778 | PyObject * _resultobj; |
3779 | wxWindow * _arg0; | |
3780 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3781 | PyObject * _argo0 = 0; |
3782 | PyObject * _argo1 = 0; | |
efc5f224 | 3783 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3784 | |
3785 | self = self; | |
efc5f224 | 3786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3787 | return NULL; |
1d99702e RD |
3788 | if (_argo0) { |
3789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3792 | return NULL; | |
3793 | } | |
3794 | } | |
1d99702e RD |
3795 | if (_argo1) { |
3796 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3797 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3799 | return NULL; | |
3800 | } | |
3801 | } | |
cf694132 RD |
3802 | { |
3803 | wxPy_BEGIN_ALLOW_THREADS; | |
3804 | wxWindow_SetConstraints(_arg0,_arg1); | |
3805 | ||
3806 | wxPy_END_ALLOW_THREADS; | |
3807 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3808 | _resultobj = Py_None; |
3809 | return _resultobj; | |
3810 | } | |
3811 | ||
2f90df85 RD |
3812 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3813 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3814 | PyObject * _resultobj; | |
3815 | wxWindow * _arg0; | |
3816 | wxLayoutConstraints * _arg1; | |
3817 | PyObject * _argo0 = 0; | |
3818 | PyObject * _argo1 = 0; | |
3819 | char *_kwnames[] = { "self","constraints", NULL }; | |
3820 | ||
3821 | self = self; | |
3822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3823 | return NULL; | |
3824 | if (_argo0) { | |
3825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3828 | return NULL; | |
3829 | } | |
3830 | } | |
3831 | if (_argo1) { | |
3832 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3833 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3835 | return NULL; | |
3836 | } | |
3837 | } | |
3838 | { | |
3839 | wxPy_BEGIN_ALLOW_THREADS; | |
3840 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3841 | ||
3842 | wxPy_END_ALLOW_THREADS; | |
3843 | } Py_INCREF(Py_None); | |
3844 | _resultobj = Py_None; | |
3845 | return _resultobj; | |
3846 | } | |
3847 | ||
8ab979d7 | 3848 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3849 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3850 | PyObject * _resultobj; |
3851 | wxWindow * _arg0; | |
1d99702e | 3852 | PyObject * _argo0 = 0; |
efc5f224 | 3853 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3854 | |
3855 | self = self; | |
efc5f224 | 3856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3857 | return NULL; |
1d99702e RD |
3858 | if (_argo0) { |
3859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3862 | return NULL; | |
3863 | } | |
3864 | } | |
cf694132 RD |
3865 | { |
3866 | wxPy_BEGIN_ALLOW_THREADS; | |
3867 | wxWindow_SetFocus(_arg0); | |
3868 | ||
3869 | wxPy_END_ALLOW_THREADS; | |
3870 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3871 | _resultobj = Py_None; |
3872 | return _resultobj; | |
3873 | } | |
3874 | ||
2f90df85 RD |
3875 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3876 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3877 | PyObject * _resultobj; | |
3878 | bool _result; | |
3879 | wxWindow * _arg0; | |
3880 | PyObject * _argo0 = 0; | |
3881 | char *_kwnames[] = { "self", NULL }; | |
3882 | ||
3883 | self = self; | |
3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3885 | return NULL; | |
3886 | if (_argo0) { | |
3887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3890 | return NULL; | |
3891 | } | |
3892 | } | |
3893 | { | |
3894 | wxPy_BEGIN_ALLOW_THREADS; | |
3895 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3896 | ||
3897 | wxPy_END_ALLOW_THREADS; | |
3898 | } _resultobj = Py_BuildValue("i",_result); | |
3899 | return _resultobj; | |
3900 | } | |
3901 | ||
8ab979d7 | 3902 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 3903 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3904 | PyObject * _resultobj; |
3905 | wxWindow * _arg0; | |
3906 | wxFont * _arg1; | |
1d99702e RD |
3907 | PyObject * _argo0 = 0; |
3908 | PyObject * _argo1 = 0; | |
efc5f224 | 3909 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
3910 | |
3911 | self = self; | |
efc5f224 | 3912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3913 | return NULL; |
1d99702e RD |
3914 | if (_argo0) { |
3915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3918 | return NULL; | |
3919 | } | |
3920 | } | |
1d99702e RD |
3921 | if (_argo1) { |
3922 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3923 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
3924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3925 | return NULL; | |
3926 | } | |
3927 | } | |
cf694132 RD |
3928 | { |
3929 | wxPy_BEGIN_ALLOW_THREADS; | |
3930 | wxWindow_SetFont(_arg0,*_arg1); | |
3931 | ||
3932 | wxPy_END_ALLOW_THREADS; | |
3933 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3934 | _resultobj = Py_None; |
3935 | return _resultobj; | |
3936 | } | |
3937 | ||
3938 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 3939 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3940 | PyObject * _resultobj; |
3941 | wxWindow * _arg0; | |
3942 | wxColour * _arg1; | |
1d99702e | 3943 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3944 | wxColour temp; |
3945 | PyObject * _obj1 = 0; | |
efc5f224 | 3946 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3947 | |
3948 | self = self; | |
f6bcfd97 | 3949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
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_SetForegroundColour. Expected _wxWindow_p."); |
3955 | return NULL; | |
3956 | } | |
3957 | } | |
f6bcfd97 BP |
3958 | { |
3959 | _arg1 = &temp; | |
3960 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3961 | return NULL; |
f6bcfd97 | 3962 | } |
cf694132 RD |
3963 | { |
3964 | wxPy_BEGIN_ALLOW_THREADS; | |
3965 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3966 | ||
3967 | wxPy_END_ALLOW_THREADS; | |
3968 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3969 | _resultobj = Py_None; |
3970 | return _resultobj; | |
3971 | } | |
3972 | ||
3973 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 3974 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3975 | PyObject * _resultobj; |
3976 | wxWindow * _arg0; | |
3977 | int _arg1; | |
1d99702e | 3978 | PyObject * _argo0 = 0; |
efc5f224 | 3979 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
3980 | |
3981 | self = self; | |
efc5f224 | 3982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3983 | return NULL; |
1d99702e RD |
3984 | if (_argo0) { |
3985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
3988 | return NULL; | |
3989 | } | |
3990 | } | |
cf694132 RD |
3991 | { |
3992 | wxPy_BEGIN_ALLOW_THREADS; | |
3993 | wxWindow_SetId(_arg0,_arg1); | |
3994 | ||
3995 | wxPy_END_ALLOW_THREADS; | |
3996 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3997 | _resultobj = Py_None; |
3998 | return _resultobj; | |
3999 | } | |
4000 | ||
4001 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4002 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4003 | PyObject * _resultobj; |
4004 | wxWindow * _arg0; | |
4005 | wxString * _arg1; | |
1d99702e | 4006 | PyObject * _argo0 = 0; |
8ab979d7 | 4007 | PyObject * _obj1 = 0; |
efc5f224 | 4008 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4009 | |
4010 | self = self; | |
efc5f224 | 4011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4012 | return NULL; |
1d99702e RD |
4013 | if (_argo0) { |
4014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4017 | return NULL; | |
4018 | } | |
4019 | } | |
4020 | { | |
185d7c3e RD |
4021 | #if PYTHON_API_VERSION >= 1009 |
4022 | char* tmpPtr; int tmpSize; | |
4023 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4024 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4025 | return NULL; |
4026 | } | |
4027 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4028 | return NULL; | |
4029 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4030 | #else | |
8ab979d7 RD |
4031 | if (!PyString_Check(_obj1)) { |
4032 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4033 | return NULL; | |
4034 | } | |
185d7c3e RD |
4035 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4036 | #endif | |
8ab979d7 | 4037 | } |
cf694132 RD |
4038 | { |
4039 | wxPy_BEGIN_ALLOW_THREADS; | |
4040 | wxWindow_SetName(_arg0,*_arg1); | |
4041 | ||
4042 | wxPy_END_ALLOW_THREADS; | |
4043 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4044 | _resultobj = Py_None; |
4045 | { | |
4046 | if (_obj1) | |
4047 | delete _arg1; | |
4048 | } | |
4049 | return _resultobj; | |
4050 | } | |
4051 | ||
8ab979d7 | 4052 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4053 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4054 | PyObject * _resultobj; |
4055 | wxWindow * _arg0; | |
4056 | int _arg1; | |
4057 | int _arg2; | |
4058 | int _arg3; | |
4059 | int _arg4; | |
eb715945 | 4060 | int _arg5 = (int ) TRUE; |
1d99702e | 4061 | PyObject * _argo0 = 0; |
efc5f224 | 4062 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4063 | |
4064 | self = self; | |
eb715945 | 4065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4066 | return NULL; |
1d99702e RD |
4067 | if (_argo0) { |
4068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4071 | return NULL; | |
4072 | } | |
4073 | } | |
cf694132 RD |
4074 | { |
4075 | wxPy_BEGIN_ALLOW_THREADS; | |
4076 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4077 | ||
4078 | wxPy_END_ALLOW_THREADS; | |
4079 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4080 | _resultobj = Py_None; |
4081 | return _resultobj; | |
4082 | } | |
4083 | ||
4084 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4085 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4086 | PyObject * _resultobj; |
4087 | wxWindow * _arg0; | |
4088 | int _arg1; | |
4089 | int _arg2; | |
1d99702e RD |
4090 | bool _arg3 = (bool ) TRUE; |
4091 | PyObject * _argo0 = 0; | |
4092 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4093 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4094 | |
4095 | self = self; | |
efc5f224 | 4096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
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_SetScrollPos. Expected _wxWindow_p."); |
4102 | return NULL; | |
4103 | } | |
4104 | } | |
4105 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
4106 | { |
4107 | wxPy_BEGIN_ALLOW_THREADS; | |
4108 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4109 | ||
4110 | wxPy_END_ALLOW_THREADS; | |
4111 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4112 | _resultobj = Py_None; |
4113 | return _resultobj; | |
4114 | } | |
4115 | ||
4116 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4117 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4118 | PyObject * _resultobj; |
4119 | wxWindow * _arg0; | |
4120 | int _arg1; | |
4121 | int _arg2; | |
4122 | int _arg3; | |
4123 | int _arg4; | |
1d99702e RD |
4124 | int _arg5 = (int ) wxSIZE_AUTO; |
4125 | PyObject * _argo0 = 0; | |
efc5f224 | 4126 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4127 | |
4128 | self = self; | |
efc5f224 | 4129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4130 | return NULL; |
1d99702e RD |
4131 | if (_argo0) { |
4132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4135 | return NULL; | |
4136 | } | |
4137 | } | |
cf694132 RD |
4138 | { |
4139 | wxPy_BEGIN_ALLOW_THREADS; | |
4140 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4141 | ||
4142 | wxPy_END_ALLOW_THREADS; | |
4143 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4144 | _resultobj = Py_None; |
4145 | return _resultobj; | |
4146 | } | |
4147 | ||
4148 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4149 | self->SetSize(size); |
8ab979d7 | 4150 | } |
efc5f224 | 4151 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4152 | PyObject * _resultobj; |
4153 | wxWindow * _arg0; | |
4154 | wxSize * _arg1; | |
1d99702e | 4155 | PyObject * _argo0 = 0; |
2f90df85 RD |
4156 | wxSize temp; |
4157 | PyObject * _obj1 = 0; | |
efc5f224 | 4158 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4159 | |
4160 | self = self; | |
2f90df85 | 4161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4162 | return NULL; |
1d99702e RD |
4163 | if (_argo0) { |
4164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4167 | return NULL; | |
4168 | } | |
4169 | } | |
2f90df85 RD |
4170 | { |
4171 | _arg1 = &temp; | |
4172 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4173 | return NULL; |
2f90df85 | 4174 | } |
cf694132 RD |
4175 | { |
4176 | wxPy_BEGIN_ALLOW_THREADS; | |
4177 | wxWindow_SetSize(_arg0,*_arg1); | |
4178 | ||
4179 | wxPy_END_ALLOW_THREADS; | |
4180 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4181 | _resultobj = Py_None; |
4182 | return _resultobj; | |
4183 | } | |
4184 | ||
4185 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
b7e72427 | 4186 | self->Move(pos); |
8ab979d7 | 4187 | } |
efc5f224 | 4188 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4189 | PyObject * _resultobj; |
4190 | wxWindow * _arg0; | |
4191 | wxPoint * _arg1; | |
1d99702e | 4192 | PyObject * _argo0 = 0; |
2f90df85 RD |
4193 | wxPoint temp; |
4194 | PyObject * _obj1 = 0; | |
efc5f224 | 4195 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4196 | |
4197 | self = self; | |
2f90df85 | 4198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4199 | return NULL; |
1d99702e RD |
4200 | if (_argo0) { |
4201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4204 | return NULL; | |
4205 | } | |
4206 | } | |
2f90df85 RD |
4207 | { |
4208 | _arg1 = &temp; | |
4209 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4210 | return NULL; |
2f90df85 | 4211 | } |
cf694132 RD |
4212 | { |
4213 | wxPy_BEGIN_ALLOW_THREADS; | |
4214 | wxWindow_SetPosition(_arg0,*_arg1); | |
4215 | ||
4216 | wxPy_END_ALLOW_THREADS; | |
4217 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4218 | _resultobj = Py_None; |
4219 | return _resultobj; | |
4220 | } | |
4221 | ||
dbbb98cd RD |
4222 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4223 | self->SetSize(rect, sizeFlags); | |
4224 | } | |
4225 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4226 | PyObject * _resultobj; | |
4227 | wxWindow * _arg0; | |
4228 | wxRect * _arg1; | |
4229 | int _arg2 = (int ) wxSIZE_AUTO; | |
4230 | PyObject * _argo0 = 0; | |
4231 | wxRect temp; | |
4232 | PyObject * _obj1 = 0; | |
4233 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4234 | ||
4235 | self = self; | |
4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4237 | return NULL; | |
4238 | if (_argo0) { | |
4239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4242 | return NULL; | |
4243 | } | |
4244 | } | |
4245 | { | |
4246 | _arg1 = &temp; | |
4247 | if (! wxRect_helper(_obj1, &_arg1)) | |
4248 | return NULL; | |
4249 | } | |
4250 | { | |
4251 | wxPy_BEGIN_ALLOW_THREADS; | |
4252 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4253 | ||
4254 | wxPy_END_ALLOW_THREADS; | |
4255 | } Py_INCREF(Py_None); | |
4256 | _resultobj = Py_None; | |
4257 | return _resultobj; | |
4258 | } | |
4259 | ||
8ab979d7 | 4260 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4261 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4262 | PyObject * _resultobj; |
4263 | wxWindow * _arg0; | |
1d99702e RD |
4264 | int _arg1 = (int ) -1; |
4265 | int _arg2 = (int ) -1; | |
4266 | int _arg3 = (int ) -1; | |
4267 | int _arg4 = (int ) -1; | |
4268 | int _arg5 = (int ) -1; | |
4269 | int _arg6 = (int ) -1; | |
4270 | PyObject * _argo0 = 0; | |
efc5f224 | 4271 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4272 | |
4273 | self = self; | |
efc5f224 | 4274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4275 | return NULL; |
1d99702e RD |
4276 | if (_argo0) { |
4277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4280 | return NULL; | |
4281 | } | |
4282 | } | |
cf694132 RD |
4283 | { |
4284 | wxPy_BEGIN_ALLOW_THREADS; | |
4285 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4286 | ||
4287 | wxPy_END_ALLOW_THREADS; | |
4288 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4289 | _resultobj = Py_None; |
4290 | return _resultobj; | |
4291 | } | |
4292 | ||
af309447 | 4293 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4294 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4295 | PyObject * _resultobj; |
4296 | wxWindow * _arg0; | |
4297 | int _arg1; | |
4298 | int _arg2; | |
1d99702e | 4299 | PyObject * _argo0 = 0; |
efc5f224 | 4300 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4301 | |
4302 | self = self; | |
efc5f224 | 4303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4304 | return NULL; |
1d99702e RD |
4305 | if (_argo0) { |
4306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4309 | return NULL; | |
4310 | } | |
4311 | } | |
cf694132 RD |
4312 | { |
4313 | wxPy_BEGIN_ALLOW_THREADS; | |
4314 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4315 | ||
4316 | wxPy_END_ALLOW_THREADS; | |
4317 | } Py_INCREF(Py_None); | |
af309447 RD |
4318 | _resultobj = Py_None; |
4319 | return _resultobj; | |
4320 | } | |
4321 | ||
4322 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4323 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4324 | PyObject * _resultobj; |
4325 | wxWindow * _arg0; | |
4326 | wxSize * _arg1; | |
1d99702e | 4327 | PyObject * _argo0 = 0; |
2f90df85 RD |
4328 | wxSize temp; |
4329 | PyObject * _obj1 = 0; | |
efc5f224 | 4330 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4331 | |
4332 | self = self; | |
2f90df85 | 4333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4334 | return NULL; |
1d99702e RD |
4335 | if (_argo0) { |
4336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4339 | return NULL; | |
4340 | } | |
4341 | } | |
2f90df85 RD |
4342 | { |
4343 | _arg1 = &temp; | |
4344 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4345 | return NULL; |
2f90df85 | 4346 | } |
cf694132 RD |
4347 | { |
4348 | wxPy_BEGIN_ALLOW_THREADS; | |
4349 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4350 | ||
4351 | wxPy_END_ALLOW_THREADS; | |
4352 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4353 | _resultobj = Py_None; |
4354 | return _resultobj; | |
4355 | } | |
4356 | ||
4357 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4358 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4359 | PyObject * _resultobj; |
4360 | wxWindow * _arg0; | |
4361 | wxCursor * _arg1; | |
1d99702e RD |
4362 | PyObject * _argo0 = 0; |
4363 | PyObject * _argo1 = 0; | |
efc5f224 | 4364 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4365 | |
4366 | self = self; | |
efc5f224 | 4367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4368 | return NULL; |
1d99702e RD |
4369 | if (_argo0) { |
4370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4373 | return NULL; | |
4374 | } | |
4375 | } | |
1d99702e RD |
4376 | if (_argo1) { |
4377 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4378 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4380 | return NULL; | |
4381 | } | |
4382 | } | |
cf694132 RD |
4383 | { |
4384 | wxPy_BEGIN_ALLOW_THREADS; | |
4385 | wxWindow_SetCursor(_arg0,*_arg1); | |
4386 | ||
4387 | wxPy_END_ALLOW_THREADS; | |
4388 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4389 | _resultobj = Py_None; |
4390 | return _resultobj; | |
4391 | } | |
4392 | ||
1afc06c2 RD |
4393 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4394 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4395 | PyObject * _resultobj; | |
4396 | wxWindow * _arg0; | |
4397 | wxEvtHandler * _arg1; | |
4398 | PyObject * _argo0 = 0; | |
4399 | PyObject * _argo1 = 0; | |
4400 | char *_kwnames[] = { "self","handler", NULL }; | |
4401 | ||
4402 | self = self; | |
4403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4404 | return NULL; | |
4405 | if (_argo0) { | |
4406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4409 | return NULL; | |
4410 | } | |
4411 | } | |
4412 | if (_argo1) { | |
4413 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4414 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4416 | return NULL; | |
4417 | } | |
4418 | } | |
4419 | { | |
4420 | wxPy_BEGIN_ALLOW_THREADS; | |
4421 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4422 | ||
4423 | wxPy_END_ALLOW_THREADS; | |
4424 | } Py_INCREF(Py_None); | |
4425 | _resultobj = Py_None; | |
4426 | return _resultobj; | |
4427 | } | |
4428 | ||
83b18bab RD |
4429 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4430 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4431 | PyObject * _resultobj; | |
4432 | wxWindow * _arg0; | |
4433 | long _arg1; | |
4434 | PyObject * _argo0 = 0; | |
4435 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4436 | ||
4437 | self = self; | |
4438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4439 | return NULL; | |
4440 | if (_argo0) { | |
4441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4444 | return NULL; | |
4445 | } | |
4446 | } | |
4447 | { | |
4448 | wxPy_BEGIN_ALLOW_THREADS; | |
4449 | wxWindow_SetExtraStyle(_arg0,_arg1); | |
4450 | ||
4451 | wxPy_END_ALLOW_THREADS; | |
4452 | } Py_INCREF(Py_None); | |
4453 | _resultobj = Py_None; | |
4454 | return _resultobj; | |
4455 | } | |
4456 | ||
8ab979d7 | 4457 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4458 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4459 | PyObject * _resultobj; |
4460 | wxWindow * _arg0; | |
4461 | wxString * _arg1; | |
1d99702e | 4462 | PyObject * _argo0 = 0; |
8ab979d7 | 4463 | PyObject * _obj1 = 0; |
efc5f224 | 4464 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4465 | |
4466 | self = self; | |
efc5f224 | 4467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4468 | return NULL; |
1d99702e RD |
4469 | if (_argo0) { |
4470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4473 | return NULL; | |
4474 | } | |
4475 | } | |
4476 | { | |
185d7c3e RD |
4477 | #if PYTHON_API_VERSION >= 1009 |
4478 | char* tmpPtr; int tmpSize; | |
4479 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4480 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4481 | return NULL; |
4482 | } | |
4483 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4484 | return NULL; | |
4485 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4486 | #else | |
8ab979d7 RD |
4487 | if (!PyString_Check(_obj1)) { |
4488 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4489 | return NULL; | |
4490 | } | |
185d7c3e RD |
4491 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4492 | #endif | |
8ab979d7 | 4493 | } |
cf694132 RD |
4494 | { |
4495 | wxPy_BEGIN_ALLOW_THREADS; | |
4496 | wxWindow_SetTitle(_arg0,*_arg1); | |
4497 | ||
4498 | wxPy_END_ALLOW_THREADS; | |
4499 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4500 | _resultobj = Py_None; |
4501 | { | |
4502 | if (_obj1) | |
4503 | delete _arg1; | |
4504 | } | |
4505 | return _resultobj; | |
4506 | } | |
4507 | ||
4508 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4509 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4510 | PyObject * _resultobj; |
4511 | bool _result; | |
4512 | wxWindow * _arg0; | |
4513 | bool _arg1; | |
1d99702e | 4514 | PyObject * _argo0 = 0; |
8ab979d7 | 4515 | int tempbool1; |
efc5f224 | 4516 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4517 | |
4518 | self = self; | |
efc5f224 | 4519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4520 | return NULL; |
1d99702e RD |
4521 | if (_argo0) { |
4522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4525 | return NULL; | |
4526 | } | |
4527 | } | |
4528 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4529 | { |
4530 | wxPy_BEGIN_ALLOW_THREADS; | |
4531 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4532 | ||
4533 | wxPy_END_ALLOW_THREADS; | |
4534 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4535 | return _resultobj; |
4536 | } | |
4537 | ||
4538 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4539 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4540 | PyObject * _resultobj; |
4541 | bool _result; | |
4542 | wxWindow * _arg0; | |
1d99702e | 4543 | PyObject * _argo0 = 0; |
efc5f224 | 4544 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4545 | |
4546 | self = self; | |
efc5f224 | 4547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4548 | return NULL; |
1d99702e RD |
4549 | if (_argo0) { |
4550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4553 | return NULL; | |
4554 | } | |
4555 | } | |
cf694132 RD |
4556 | { |
4557 | wxPy_BEGIN_ALLOW_THREADS; | |
4558 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4559 | ||
4560 | wxPy_END_ALLOW_THREADS; | |
4561 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4562 | return _resultobj; |
4563 | } | |
4564 | ||
4565 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4566 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4567 | PyObject * _resultobj; |
4568 | bool _result; | |
4569 | wxWindow * _arg0; | |
1d99702e | 4570 | PyObject * _argo0 = 0; |
efc5f224 | 4571 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4572 | |
4573 | self = self; | |
efc5f224 | 4574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4575 | return NULL; |
1d99702e RD |
4576 | if (_argo0) { |
4577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4580 | return NULL; | |
4581 | } | |
4582 | } | |
cf694132 RD |
4583 | { |
4584 | wxPy_BEGIN_ALLOW_THREADS; | |
4585 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4586 | ||
4587 | wxPy_END_ALLOW_THREADS; | |
4588 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4589 | return _resultobj; |
4590 | } | |
4591 | ||
4592 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4593 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4594 | PyObject * _resultobj; |
4595 | bool _result; | |
4596 | wxWindow * _arg0; | |
1d99702e | 4597 | PyObject * _argo0 = 0; |
efc5f224 | 4598 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4599 | |
4600 | self = self; | |
efc5f224 | 4601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4602 | return NULL; |
1d99702e RD |
4603 | if (_argo0) { |
4604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4607 | return NULL; | |
4608 | } | |
4609 | } | |
cf694132 RD |
4610 | { |
4611 | wxPy_BEGIN_ALLOW_THREADS; | |
4612 | _result = (bool )wxWindow_Validate(_arg0); | |
4613 | ||
4614 | wxPy_END_ALLOW_THREADS; | |
4615 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4616 | return _resultobj; |
4617 | } | |
4618 | ||
4619 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4620 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4621 | PyObject * _resultobj; |
4622 | wxWindow * _arg0; | |
4623 | int _arg1; | |
4624 | int _arg2; | |
1d99702e | 4625 | PyObject * _argo0 = 0; |
efc5f224 | 4626 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4627 | |
4628 | self = self; | |
efc5f224 | 4629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4630 | return NULL; |
1d99702e RD |
4631 | if (_argo0) { |
4632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4635 | return NULL; | |
4636 | } | |
4637 | } | |
cf694132 RD |
4638 | { |
4639 | wxPy_BEGIN_ALLOW_THREADS; | |
4640 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4641 | ||
4642 | wxPy_END_ALLOW_THREADS; | |
4643 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4644 | _resultobj = Py_None; |
4645 | return _resultobj; | |
4646 | } | |
4647 | ||
b8b8dda7 | 4648 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4649 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4650 | PyObject * _resultobj; |
4651 | wxPoint * _result; | |
4652 | wxWindow * _arg0; | |
4653 | wxPoint * _arg1; | |
1d99702e | 4654 | PyObject * _argo0 = 0; |
2f90df85 RD |
4655 | wxPoint temp; |
4656 | PyObject * _obj1 = 0; | |
efc5f224 | 4657 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4658 | char _ptemp[128]; |
4659 | ||
4660 | self = self; | |
2f90df85 | 4661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4662 | return NULL; |
1d99702e RD |
4663 | if (_argo0) { |
4664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4667 | return NULL; | |
4668 | } | |
4669 | } | |
2f90df85 RD |
4670 | { |
4671 | _arg1 = &temp; | |
4672 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4673 | return NULL; |
2f90df85 | 4674 | } |
cf694132 RD |
4675 | { |
4676 | wxPy_BEGIN_ALLOW_THREADS; | |
4677 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4678 | ||
4679 | wxPy_END_ALLOW_THREADS; | |
4680 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
4681 | _resultobj = Py_BuildValue("s",_ptemp); |
4682 | return _resultobj; | |
4683 | } | |
4684 | ||
4685 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4686 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4687 | PyObject * _resultobj; |
4688 | wxSize * _result; | |
4689 | wxWindow * _arg0; | |
4690 | wxSize * _arg1; | |
1d99702e | 4691 | PyObject * _argo0 = 0; |
2f90df85 RD |
4692 | wxSize temp; |
4693 | PyObject * _obj1 = 0; | |
efc5f224 | 4694 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4695 | char _ptemp[128]; |
4696 | ||
4697 | self = self; | |
2f90df85 | 4698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4699 | return NULL; |
1d99702e RD |
4700 | if (_argo0) { |
4701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4704 | return NULL; | |
4705 | } | |
4706 | } | |
2f90df85 RD |
4707 | { |
4708 | _arg1 = &temp; | |
4709 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4710 | return NULL; |
2f90df85 | 4711 | } |
cf694132 RD |
4712 | { |
4713 | wxPy_BEGIN_ALLOW_THREADS; | |
4714 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4715 | ||
4716 | wxPy_END_ALLOW_THREADS; | |
4717 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
4718 | _resultobj = Py_BuildValue("s",_ptemp); |
4719 | return _resultobj; | |
4720 | } | |
4721 | ||
4722 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4723 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4724 | PyObject * _resultobj; |
4725 | wxPoint * _result; | |
4726 | wxWindow * _arg0; | |
4727 | wxPoint * _arg1; | |
1d99702e | 4728 | PyObject * _argo0 = 0; |
2f90df85 RD |
4729 | wxPoint temp; |
4730 | PyObject * _obj1 = 0; | |
efc5f224 | 4731 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4732 | char _ptemp[128]; |
4733 | ||
4734 | self = self; | |
2f90df85 | 4735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4736 | return NULL; |
1d99702e RD |
4737 | if (_argo0) { |
4738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4741 | return NULL; | |
4742 | } | |
4743 | } | |
2f90df85 RD |
4744 | { |
4745 | _arg1 = &temp; | |
4746 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4747 | return NULL; |
2f90df85 | 4748 | } |
cf694132 RD |
4749 | { |
4750 | wxPy_BEGIN_ALLOW_THREADS; | |
4751 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4752 | ||
4753 | wxPy_END_ALLOW_THREADS; | |
4754 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
4755 | _resultobj = Py_BuildValue("s",_ptemp); |
4756 | return _resultobj; | |
4757 | } | |
4758 | ||
4759 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4760 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4761 | PyObject * _resultobj; |
4762 | wxSize * _result; | |
4763 | wxWindow * _arg0; | |
4764 | wxSize * _arg1; | |
1d99702e | 4765 | PyObject * _argo0 = 0; |
2f90df85 RD |
4766 | wxSize temp; |
4767 | PyObject * _obj1 = 0; | |
efc5f224 | 4768 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4769 | char _ptemp[128]; |
4770 | ||
4771 | self = self; | |
2f90df85 | 4772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4773 | return NULL; |
1d99702e RD |
4774 | if (_argo0) { |
4775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4778 | return NULL; | |
4779 | } | |
4780 | } | |
2f90df85 RD |
4781 | { |
4782 | _arg1 = &temp; | |
4783 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4784 | return NULL; |
2f90df85 | 4785 | } |
cf694132 RD |
4786 | { |
4787 | wxPy_BEGIN_ALLOW_THREADS; | |
4788 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4789 | ||
4790 | wxPy_END_ALLOW_THREADS; | |
4791 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
4792 | _resultobj = Py_BuildValue("s",_ptemp); |
4793 | return _resultobj; | |
4794 | } | |
4795 | ||
af309447 | 4796 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4797 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4798 | PyObject * _resultobj; |
4799 | wxWindow * _arg0; | |
4800 | wxString * _arg1; | |
1d99702e | 4801 | PyObject * _argo0 = 0; |
af309447 | 4802 | PyObject * _obj1 = 0; |
efc5f224 | 4803 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4804 | |
4805 | self = self; | |
efc5f224 | 4806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4807 | return NULL; |
1d99702e RD |
4808 | if (_argo0) { |
4809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4812 | return NULL; | |
4813 | } | |
4814 | } | |
4815 | { | |
185d7c3e RD |
4816 | #if PYTHON_API_VERSION >= 1009 |
4817 | char* tmpPtr; int tmpSize; | |
4818 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4819 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4820 | return NULL; |
4821 | } | |
4822 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4823 | return NULL; | |
4824 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4825 | #else | |
af309447 RD |
4826 | if (!PyString_Check(_obj1)) { |
4827 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4828 | return NULL; | |
4829 | } | |
185d7c3e RD |
4830 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4831 | #endif | |
af309447 | 4832 | } |
cf694132 RD |
4833 | { |
4834 | wxPy_BEGIN_ALLOW_THREADS; | |
4835 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4836 | ||
4837 | wxPy_END_ALLOW_THREADS; | |
4838 | } Py_INCREF(Py_None); | |
af309447 RD |
4839 | _resultobj = Py_None; |
4840 | { | |
4841 | if (_obj1) | |
4842 | delete _arg1; | |
4843 | } | |
4844 | return _resultobj; | |
4845 | } | |
4846 | ||
4847 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4848 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4849 | PyObject * _resultobj; |
4850 | wxWindow * _arg0; | |
4851 | wxToolTip * _arg1; | |
1d99702e RD |
4852 | PyObject * _argo0 = 0; |
4853 | PyObject * _argo1 = 0; | |
efc5f224 | 4854 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4855 | |
4856 | self = self; | |
efc5f224 | 4857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4858 | return NULL; |
1d99702e RD |
4859 | if (_argo0) { |
4860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4863 | return NULL; | |
4864 | } | |
4865 | } | |
1d99702e RD |
4866 | if (_argo1) { |
4867 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4868 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4870 | return NULL; | |
4871 | } | |
4872 | } | |
cf694132 RD |
4873 | { |
4874 | wxPy_BEGIN_ALLOW_THREADS; | |
4875 | wxWindow_SetToolTip(_arg0,_arg1); | |
4876 | ||
4877 | wxPy_END_ALLOW_THREADS; | |
4878 | } Py_INCREF(Py_None); | |
af309447 RD |
4879 | _resultobj = Py_None; |
4880 | return _resultobj; | |
4881 | } | |
4882 | ||
4883 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 4884 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4885 | PyObject * _resultobj; |
4886 | wxToolTip * _result; | |
4887 | wxWindow * _arg0; | |
1d99702e | 4888 | PyObject * _argo0 = 0; |
efc5f224 | 4889 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
4890 | char _ptemp[128]; |
4891 | ||
4892 | self = self; | |
efc5f224 | 4893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 4894 | return NULL; |
1d99702e RD |
4895 | if (_argo0) { |
4896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4899 | return NULL; | |
4900 | } | |
4901 | } | |
cf694132 RD |
4902 | { |
4903 | wxPy_BEGIN_ALLOW_THREADS; | |
4904 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4905 | ||
4906 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4907 | } if (_result) { |
4908 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
4909 | _resultobj = Py_BuildValue("s",_ptemp); | |
4910 | } else { | |
4911 | Py_INCREF(Py_None); | |
4912 | _resultobj = Py_None; | |
4913 | } | |
af309447 RD |
4914 | return _resultobj; |
4915 | } | |
4916 | ||
2f90df85 RD |
4917 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
4918 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4919 | PyObject * _resultobj; | |
4920 | wxWindow * _arg0; | |
4921 | wxSizer * _arg1; | |
4922 | PyObject * _argo0 = 0; | |
4923 | PyObject * _argo1 = 0; | |
4924 | char *_kwnames[] = { "self","sizer", NULL }; | |
4925 | ||
4926 | self = self; | |
4927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4928 | return NULL; | |
4929 | if (_argo0) { | |
4930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4933 | return NULL; | |
4934 | } | |
4935 | } | |
4936 | if (_argo1) { | |
4937 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4938 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4940 | return NULL; | |
4941 | } | |
4942 | } | |
4943 | { | |
4944 | wxPy_BEGIN_ALLOW_THREADS; | |
4945 | wxWindow_SetSizer(_arg0,_arg1); | |
4946 | ||
4947 | wxPy_END_ALLOW_THREADS; | |
4948 | } Py_INCREF(Py_None); | |
4949 | _resultobj = Py_None; | |
4950 | return _resultobj; | |
4951 | } | |
4952 | ||
f6bcfd97 BP |
4953 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
4954 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4955 | PyObject * _resultobj; | |
4956 | wxSizer * _result; | |
4957 | wxWindow * _arg0; | |
4958 | PyObject * _argo0 = 0; | |
4959 | char *_kwnames[] = { "self", NULL }; | |
4960 | char _ptemp[128]; | |
4961 | ||
4962 | self = self; | |
4963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
4964 | return NULL; | |
4965 | if (_argo0) { | |
4966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
4969 | return NULL; | |
4970 | } | |
4971 | } | |
4972 | { | |
4973 | wxPy_BEGIN_ALLOW_THREADS; | |
4974 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
4975 | ||
4976 | wxPy_END_ALLOW_THREADS; | |
4977 | } if (_result) { | |
4978 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p"); | |
4979 | _resultobj = Py_BuildValue("s",_ptemp); | |
4980 | } else { | |
4981 | Py_INCREF(Py_None); | |
4982 | _resultobj = Py_None; | |
4983 | } | |
4984 | return _resultobj; | |
4985 | } | |
4986 | ||
2f90df85 RD |
4987 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
4988 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4989 | PyObject * _resultobj; | |
4990 | wxValidator * _result; | |
4991 | wxWindow * _arg0; | |
4992 | PyObject * _argo0 = 0; | |
4993 | char *_kwnames[] = { "self", NULL }; | |
4994 | char _ptemp[128]; | |
4995 | ||
4996 | self = self; | |
4997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
4998 | return NULL; | |
4999 | if (_argo0) { | |
5000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5003 | return NULL; | |
5004 | } | |
5005 | } | |
5006 | { | |
5007 | wxPy_BEGIN_ALLOW_THREADS; | |
5008 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
5009 | ||
5010 | wxPy_END_ALLOW_THREADS; | |
5011 | } if (_result) { | |
5012 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
5013 | _resultobj = Py_BuildValue("s",_ptemp); | |
5014 | } else { | |
5015 | Py_INCREF(Py_None); | |
5016 | _resultobj = Py_None; | |
5017 | } | |
5018 | return _resultobj; | |
5019 | } | |
5020 | ||
5021 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5022 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5023 | PyObject * _resultobj; | |
5024 | wxWindow * _arg0; | |
5025 | wxValidator * _arg1; | |
5026 | PyObject * _argo0 = 0; | |
5027 | PyObject * _argo1 = 0; | |
5028 | char *_kwnames[] = { "self","validator", NULL }; | |
5029 | ||
5030 | self = self; | |
5031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5032 | return NULL; | |
5033 | if (_argo0) { | |
5034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5037 | return NULL; | |
5038 | } | |
5039 | } | |
5040 | if (_argo1) { | |
5041 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5042 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5044 | return NULL; | |
5045 | } | |
5046 | } | |
5047 | { | |
5048 | wxPy_BEGIN_ALLOW_THREADS; | |
5049 | wxWindow_SetValidator(_arg0,*_arg1); | |
5050 | ||
5051 | wxPy_END_ALLOW_THREADS; | |
5052 | } Py_INCREF(Py_None); | |
5053 | _resultobj = Py_None; | |
5054 | return _resultobj; | |
5055 | } | |
5056 | ||
b1462dfa RD |
5057 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5058 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5059 | PyObject * _resultobj; | |
5060 | wxWindow * _arg0; | |
5061 | wxDropTarget * _arg1; | |
5062 | PyObject * _argo0 = 0; | |
5063 | PyObject * _argo1 = 0; | |
5064 | char *_kwnames[] = { "self","target", NULL }; | |
5065 | ||
5066 | self = self; | |
5067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5068 | return NULL; | |
5069 | if (_argo0) { | |
5070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5073 | return NULL; | |
5074 | } | |
5075 | } | |
5076 | if (_argo1) { | |
5077 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5078 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5080 | return NULL; | |
5081 | } | |
5082 | } | |
5083 | { | |
5084 | wxPy_BEGIN_ALLOW_THREADS; | |
5085 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5086 | ||
5087 | wxPy_END_ALLOW_THREADS; | |
5088 | } Py_INCREF(Py_None); | |
5089 | _resultobj = Py_None; | |
5090 | return _resultobj; | |
5091 | } | |
5092 | ||
5093 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5094 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5095 | PyObject * _resultobj; | |
5096 | wxDropTarget * _result; | |
5097 | wxWindow * _arg0; | |
5098 | PyObject * _argo0 = 0; | |
5099 | char *_kwnames[] = { "self", NULL }; | |
5100 | char _ptemp[128]; | |
5101 | ||
5102 | self = self; | |
5103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5104 | return NULL; | |
5105 | if (_argo0) { | |
5106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5109 | return NULL; | |
5110 | } | |
5111 | } | |
5112 | { | |
5113 | wxPy_BEGIN_ALLOW_THREADS; | |
5114 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5115 | ||
5116 | wxPy_END_ALLOW_THREADS; | |
5117 | } if (_result) { | |
5118 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5119 | _resultobj = Py_BuildValue("s",_ptemp); | |
5120 | } else { | |
5121 | Py_INCREF(Py_None); | |
5122 | _resultobj = Py_None; | |
5123 | } | |
5124 | return _resultobj; | |
5125 | } | |
5126 | ||
694759cf RD |
5127 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5128 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5129 | PyObject * _resultobj; | |
5130 | wxSize * _result; | |
5131 | wxWindow * _arg0; | |
5132 | PyObject * _argo0 = 0; | |
5133 | char *_kwnames[] = { "self", NULL }; | |
5134 | char _ptemp[128]; | |
5135 | ||
5136 | self = self; | |
5137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5138 | return NULL; | |
5139 | if (_argo0) { | |
5140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5143 | return NULL; | |
5144 | } | |
5145 | } | |
5146 | { | |
5147 | wxPy_BEGIN_ALLOW_THREADS; | |
5148 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5149 | ||
5150 | wxPy_END_ALLOW_THREADS; | |
5151 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5152 | _resultobj = Py_BuildValue("s",_ptemp); | |
5153 | return _resultobj; | |
5154 | } | |
5155 | ||
a1df7a95 RD |
5156 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5157 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5158 | PyObject * _resultobj; | |
5159 | wxWindow * _arg0; | |
5160 | wxCaret * _arg1; | |
5161 | PyObject * _argo0 = 0; | |
5162 | PyObject * _argo1 = 0; | |
5163 | char *_kwnames[] = { "self","caret", NULL }; | |
5164 | ||
5165 | self = self; | |
5166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5167 | return NULL; | |
5168 | if (_argo0) { | |
5169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5172 | return NULL; | |
5173 | } | |
5174 | } | |
5175 | if (_argo1) { | |
5176 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5177 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5179 | return NULL; | |
5180 | } | |
5181 | } | |
5182 | { | |
5183 | wxPy_BEGIN_ALLOW_THREADS; | |
5184 | wxWindow_SetCaret(_arg0,_arg1); | |
5185 | ||
5186 | wxPy_END_ALLOW_THREADS; | |
5187 | } Py_INCREF(Py_None); | |
5188 | _resultobj = Py_None; | |
5189 | return _resultobj; | |
5190 | } | |
5191 | ||
5192 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5193 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5194 | PyObject * _resultobj; | |
5195 | wxCaret * _result; | |
5196 | wxWindow * _arg0; | |
5197 | PyObject * _argo0 = 0; | |
5198 | char *_kwnames[] = { "self", NULL }; | |
5199 | char _ptemp[128]; | |
5200 | ||
5201 | self = self; | |
5202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5203 | return NULL; | |
5204 | if (_argo0) { | |
5205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5208 | return NULL; | |
5209 | } | |
5210 | } | |
5211 | { | |
5212 | wxPy_BEGIN_ALLOW_THREADS; | |
5213 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5214 | ||
5215 | wxPy_END_ALLOW_THREADS; | |
5216 | } if (_result) { | |
5217 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5218 | _resultobj = Py_BuildValue("s",_ptemp); | |
5219 | } else { | |
5220 | Py_INCREF(Py_None); | |
5221 | _resultobj = Py_None; | |
5222 | } | |
5223 | return _resultobj; | |
5224 | } | |
5225 | ||
8ab979d7 RD |
5226 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5227 | wxPanel *src; | |
5228 | wxWindow *dest; | |
5229 | src = (wxPanel *) ptr; | |
5230 | dest = (wxWindow *) src; | |
5231 | return (void *) dest; | |
5232 | } | |
5233 | ||
5234 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5235 | wxPanel *src; | |
5236 | wxEvtHandler *dest; | |
5237 | src = (wxPanel *) ptr; | |
5238 | dest = (wxEvtHandler *) src; | |
5239 | return (void *) dest; | |
5240 | } | |
5241 | ||
5242 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 5243 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5244 | PyObject * _resultobj; |
5245 | wxPanel * _result; | |
5246 | wxWindow * _arg0; | |
5247 | wxWindowID _arg1; | |
e508a2b6 RD |
5248 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5249 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5250 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
5251 | char * _arg5 = (char *) "panel"; | |
5252 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5253 | wxPoint temp; |
5254 | PyObject * _obj2 = 0; | |
5255 | wxSize temp0; | |
5256 | PyObject * _obj3 = 0; | |
efc5f224 | 5257 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5258 | char _ptemp[128]; |
5259 | ||
5260 | self = self; | |
2f90df85 | 5261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5262 | return NULL; |
1d99702e RD |
5263 | if (_argo0) { |
5264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5267 | return NULL; | |
5268 | } | |
5269 | } | |
2f90df85 RD |
5270 | if (_obj2) |
5271 | { | |
5272 | _arg2 = &temp; | |
5273 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5274 | return NULL; |
2f90df85 RD |
5275 | } |
5276 | if (_obj3) | |
5277 | { | |
5278 | _arg3 = &temp0; | |
5279 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5280 | return NULL; |
2f90df85 | 5281 | } |
cf694132 RD |
5282 | { |
5283 | wxPy_BEGIN_ALLOW_THREADS; | |
5284 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5285 | ||
5286 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5287 | } if (_result) { |
5288 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5289 | _resultobj = Py_BuildValue("s",_ptemp); | |
5290 | } else { | |
5291 | Py_INCREF(Py_None); | |
5292 | _resultobj = Py_None; | |
5293 | } | |
8ab979d7 RD |
5294 | return _resultobj; |
5295 | } | |
5296 | ||
5297 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
efc5f224 | 5298 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5299 | PyObject * _resultobj; |
5300 | wxPanel * _arg0; | |
1d99702e | 5301 | PyObject * _argo0 = 0; |
efc5f224 | 5302 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5303 | |
5304 | self = self; | |
efc5f224 | 5305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 5306 | return NULL; |
1d99702e RD |
5307 | if (_argo0) { |
5308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
5310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
5311 | return NULL; | |
5312 | } | |
5313 | } | |
cf694132 RD |
5314 | { |
5315 | wxPy_BEGIN_ALLOW_THREADS; | |
5316 | wxPanel_InitDialog(_arg0); | |
5317 | ||
5318 | wxPy_END_ALLOW_THREADS; | |
5319 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5320 | _resultobj = Py_None; |
5321 | return _resultobj; | |
5322 | } | |
5323 | ||
bb0054cd | 5324 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
efc5f224 | 5325 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5326 | PyObject * _resultobj; |
5327 | wxButton * _result; | |
5328 | wxPanel * _arg0; | |
1d99702e | 5329 | PyObject * _argo0 = 0; |
efc5f224 | 5330 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5331 | char _ptemp[128]; |
5332 | ||
5333 | self = self; | |
efc5f224 | 5334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
bb0054cd | 5335 | return NULL; |
1d99702e RD |
5336 | if (_argo0) { |
5337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
5340 | return NULL; | |
5341 | } | |
5342 | } | |
5343 | { | |
5344 | wxPy_BEGIN_ALLOW_THREADS; | |
5345 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
5346 | ||
5347 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5348 | } if (_result) { |
5349 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
5350 | _resultobj = Py_BuildValue("s",_ptemp); | |
5351 | } else { | |
5352 | Py_INCREF(Py_None); | |
5353 | _resultobj = Py_None; | |
5354 | } | |
bb0054cd RD |
5355 | return _resultobj; |
5356 | } | |
5357 | ||
5358 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
efc5f224 | 5359 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5360 | PyObject * _resultobj; |
5361 | wxPanel * _arg0; | |
5362 | wxButton * _arg1; | |
1d99702e RD |
5363 | PyObject * _argo0 = 0; |
5364 | PyObject * _argo1 = 0; | |
efc5f224 | 5365 | char *_kwnames[] = { "self","btn", NULL }; |
bb0054cd RD |
5366 | |
5367 | self = self; | |
efc5f224 | 5368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 5369 | return NULL; |
1d99702e RD |
5370 | if (_argo0) { |
5371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
5374 | return NULL; | |
5375 | } | |
5376 | } | |
1d99702e RD |
5377 | if (_argo1) { |
5378 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5379 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
bb0054cd RD |
5380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
5381 | return NULL; | |
5382 | } | |
5383 | } | |
5384 | { | |
5385 | wxPy_BEGIN_ALLOW_THREADS; | |
5386 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
5387 | ||
5388 | wxPy_END_ALLOW_THREADS; | |
5389 | } Py_INCREF(Py_None); | |
5390 | _resultobj = Py_None; | |
5391 | return _resultobj; | |
5392 | } | |
5393 | ||
8ab979d7 RD |
5394 | static void *SwigwxDialogTowxPanel(void *ptr) { |
5395 | wxDialog *src; | |
5396 | wxPanel *dest; | |
5397 | src = (wxDialog *) ptr; | |
5398 | dest = (wxPanel *) src; | |
5399 | return (void *) dest; | |
5400 | } | |
5401 | ||
5402 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
5403 | wxDialog *src; | |
5404 | wxWindow *dest; | |
5405 | src = (wxDialog *) ptr; | |
5406 | dest = (wxWindow *) src; | |
5407 | return (void *) dest; | |
5408 | } | |
5409 | ||
5410 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
5411 | wxDialog *src; | |
5412 | wxEvtHandler *dest; | |
5413 | src = (wxDialog *) ptr; | |
5414 | dest = (wxEvtHandler *) src; | |
5415 | return (void *) dest; | |
5416 | } | |
5417 | ||
5418 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 5419 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5420 | PyObject * _resultobj; |
5421 | wxDialog * _result; | |
5422 | wxWindow * _arg0; | |
5423 | wxWindowID _arg1; | |
5424 | wxString * _arg2; | |
e508a2b6 RD |
5425 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
5426 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5427 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; |
5428 | char * _arg6 = (char *) "dialogBox"; | |
5429 | PyObject * _argo0 = 0; | |
8ab979d7 | 5430 | PyObject * _obj2 = 0; |
2f90df85 RD |
5431 | wxPoint temp; |
5432 | PyObject * _obj3 = 0; | |
5433 | wxSize temp0; | |
5434 | PyObject * _obj4 = 0; | |
efc5f224 | 5435 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
8ab979d7 RD |
5436 | char _ptemp[128]; |
5437 | ||
5438 | self = self; | |
2f90df85 | 5439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 5440 | return NULL; |
1d99702e RD |
5441 | if (_argo0) { |
5442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); |
5445 | return NULL; | |
5446 | } | |
5447 | } | |
5448 | { | |
185d7c3e RD |
5449 | #if PYTHON_API_VERSION >= 1009 |
5450 | char* tmpPtr; int tmpSize; | |
5451 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 5452 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5453 | return NULL; |
5454 | } | |
5455 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5456 | return NULL; | |
5457 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5458 | #else | |
8ab979d7 RD |
5459 | if (!PyString_Check(_obj2)) { |
5460 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5461 | return NULL; | |
5462 | } | |
185d7c3e RD |
5463 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5464 | #endif | |
8ab979d7 | 5465 | } |
2f90df85 RD |
5466 | if (_obj3) |
5467 | { | |
5468 | _arg3 = &temp; | |
5469 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 5470 | return NULL; |
2f90df85 RD |
5471 | } |
5472 | if (_obj4) | |
5473 | { | |
5474 | _arg4 = &temp0; | |
5475 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 5476 | return NULL; |
2f90df85 | 5477 | } |
cf694132 RD |
5478 | { |
5479 | wxPy_BEGIN_ALLOW_THREADS; | |
5480 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5481 | ||
5482 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5483 | } if (_result) { |
5484 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
5485 | _resultobj = Py_BuildValue("s",_ptemp); | |
5486 | } else { | |
5487 | Py_INCREF(Py_None); | |
5488 | _resultobj = Py_None; | |
5489 | } | |
8ab979d7 RD |
5490 | { |
5491 | if (_obj2) | |
5492 | delete _arg2; | |
5493 | } | |
5494 | return _resultobj; | |
5495 | } | |
5496 | ||
5497 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 5498 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5499 | PyObject * _resultobj; |
5500 | wxDialog * _arg0; | |
1d99702e RD |
5501 | int _arg1 = (int ) wxBOTH; |
5502 | PyObject * _argo0 = 0; | |
efc5f224 | 5503 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
5504 | |
5505 | self = self; | |
efc5f224 | 5506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5507 | return NULL; |
1d99702e RD |
5508 | if (_argo0) { |
5509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); |
5512 | return NULL; | |
5513 | } | |
5514 | } | |
cf694132 RD |
5515 | { |
5516 | wxPy_BEGIN_ALLOW_THREADS; | |
5517 | wxDialog_Centre(_arg0,_arg1); | |
5518 | ||
5519 | wxPy_END_ALLOW_THREADS; | |
5520 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5521 | _resultobj = Py_None; |
5522 | return _resultobj; | |
5523 | } | |
5524 | ||
5525 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
efc5f224 | 5526 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5527 | PyObject * _resultobj; |
5528 | wxDialog * _arg0; | |
5529 | int _arg1; | |
1d99702e | 5530 | PyObject * _argo0 = 0; |
efc5f224 | 5531 | char *_kwnames[] = { "self","retCode", NULL }; |
8ab979d7 RD |
5532 | |
5533 | self = self; | |
efc5f224 | 5534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) |
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_EndModal. Expected _wxDialog_p."); |
5540 | return NULL; | |
5541 | } | |
5542 | } | |
cf694132 RD |
5543 | { |
5544 | wxPy_BEGIN_ALLOW_THREADS; | |
5545 | wxDialog_EndModal(_arg0,_arg1); | |
5546 | ||
5547 | wxPy_END_ALLOW_THREADS; | |
5548 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5549 | _resultobj = Py_None; |
5550 | return _resultobj; | |
5551 | } | |
5552 | ||
5553 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
efc5f224 | 5554 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5555 | PyObject * _resultobj; |
5556 | wxString * _result; | |
5557 | wxDialog * _arg0; | |
1d99702e | 5558 | PyObject * _argo0 = 0; |
efc5f224 | 5559 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5560 | |
5561 | self = self; | |
efc5f224 | 5562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 5563 | return NULL; |
1d99702e RD |
5564 | if (_argo0) { |
5565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); |
5568 | return NULL; | |
5569 | } | |
5570 | } | |
8ab979d7 | 5571 | { |
cf694132 RD |
5572 | wxPy_BEGIN_ALLOW_THREADS; |
5573 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
5574 | ||
5575 | wxPy_END_ALLOW_THREADS; | |
5576 | }{ | |
eec92d76 | 5577 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
5578 | } |
5579 | { | |
5580 | delete _result; | |
5581 | } | |
5582 | return _resultobj; | |
5583 | } | |
5584 | ||
5585 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
efc5f224 | 5586 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5587 | PyObject * _resultobj; |
5588 | wxDialog * _arg0; | |
5589 | bool _arg1; | |
1d99702e | 5590 | PyObject * _argo0 = 0; |
8ab979d7 | 5591 | int tempbool1; |
efc5f224 | 5592 | char *_kwnames[] = { "self","iconize", NULL }; |
8ab979d7 RD |
5593 | |
5594 | self = self; | |
efc5f224 | 5595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5596 | return NULL; |
1d99702e RD |
5597 | if (_argo0) { |
5598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p."); |
5601 | return NULL; | |
5602 | } | |
5603 | } | |
5604 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5605 | { |
5606 | wxPy_BEGIN_ALLOW_THREADS; | |
5607 | wxDialog_Iconize(_arg0,_arg1); | |
5608 | ||
5609 | wxPy_END_ALLOW_THREADS; | |
5610 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5611 | _resultobj = Py_None; |
5612 | return _resultobj; | |
5613 | } | |
5614 | ||
5615 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
efc5f224 | 5616 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5617 | PyObject * _resultobj; |
5618 | bool _result; | |
5619 | wxDialog * _arg0; | |
1d99702e | 5620 | PyObject * _argo0 = 0; |
efc5f224 | 5621 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5622 | |
5623 | self = self; | |
efc5f224 | 5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) |
8ab979d7 | 5625 | return NULL; |
1d99702e RD |
5626 | if (_argo0) { |
5627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); |
5630 | return NULL; | |
5631 | } | |
5632 | } | |
cf694132 RD |
5633 | { |
5634 | wxPy_BEGIN_ALLOW_THREADS; | |
5635 | _result = (bool )wxDialog_IsIconized(_arg0); | |
5636 | ||
5637 | wxPy_END_ALLOW_THREADS; | |
5638 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5639 | return _resultobj; |
5640 | } | |
5641 | ||
5642 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
efc5f224 | 5643 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5644 | PyObject * _resultobj; |
5645 | wxDialog * _arg0; | |
5646 | bool _arg1; | |
1d99702e | 5647 | PyObject * _argo0 = 0; |
8ab979d7 | 5648 | int tempbool1; |
efc5f224 | 5649 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
5650 | |
5651 | self = self; | |
efc5f224 | 5652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5653 | return NULL; |
1d99702e RD |
5654 | if (_argo0) { |
5655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); |
5658 | return NULL; | |
5659 | } | |
5660 | } | |
5661 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5662 | { |
5663 | wxPy_BEGIN_ALLOW_THREADS; | |
5664 | wxDialog_SetModal(_arg0,_arg1); | |
5665 | ||
5666 | wxPy_END_ALLOW_THREADS; | |
5667 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5668 | _resultobj = Py_None; |
5669 | return _resultobj; | |
5670 | } | |
5671 | ||
5672 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
efc5f224 | 5673 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5674 | PyObject * _resultobj; |
5675 | bool _result; | |
5676 | wxDialog * _arg0; | |
1d99702e | 5677 | PyObject * _argo0 = 0; |
efc5f224 | 5678 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5679 | |
5680 | self = self; | |
efc5f224 | 5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) |
8ab979d7 | 5682 | return NULL; |
1d99702e RD |
5683 | if (_argo0) { |
5684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); |
5687 | return NULL; | |
5688 | } | |
5689 | } | |
cf694132 RD |
5690 | { |
5691 | wxPy_BEGIN_ALLOW_THREADS; | |
5692 | _result = (bool )wxDialog_IsModal(_arg0); | |
5693 | ||
5694 | wxPy_END_ALLOW_THREADS; | |
5695 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5696 | return _resultobj; |
5697 | } | |
5698 | ||
5699 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 5700 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5701 | PyObject * _resultobj; |
5702 | wxDialog * _arg0; | |
5703 | wxString * _arg1; | |
1d99702e | 5704 | PyObject * _argo0 = 0; |
8ab979d7 | 5705 | PyObject * _obj1 = 0; |
efc5f224 | 5706 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
5707 | |
5708 | self = self; | |
efc5f224 | 5709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5710 | return NULL; |
1d99702e RD |
5711 | if (_argo0) { |
5712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); |
5715 | return NULL; | |
5716 | } | |
5717 | } | |
5718 | { | |
185d7c3e RD |
5719 | #if PYTHON_API_VERSION >= 1009 |
5720 | char* tmpPtr; int tmpSize; | |
5721 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5722 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5723 | return NULL; |
5724 | } | |
5725 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5726 | return NULL; | |
5727 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5728 | #else | |
8ab979d7 RD |
5729 | if (!PyString_Check(_obj1)) { |
5730 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5731 | return NULL; | |
5732 | } | |
185d7c3e RD |
5733 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5734 | #endif | |
8ab979d7 | 5735 | } |
cf694132 RD |
5736 | { |
5737 | wxPy_BEGIN_ALLOW_THREADS; | |
5738 | wxDialog_SetTitle(_arg0,*_arg1); | |
5739 | ||
5740 | wxPy_END_ALLOW_THREADS; | |
5741 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5742 | _resultobj = Py_None; |
5743 | { | |
5744 | if (_obj1) | |
5745 | delete _arg1; | |
5746 | } | |
5747 | return _resultobj; | |
5748 | } | |
5749 | ||
5750 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 5751 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5752 | PyObject * _resultobj; |
5753 | bool _result; | |
5754 | wxDialog * _arg0; | |
5755 | bool _arg1; | |
1d99702e | 5756 | PyObject * _argo0 = 0; |
8ab979d7 | 5757 | int tempbool1; |
efc5f224 | 5758 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
5759 | |
5760 | self = self; | |
efc5f224 | 5761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5762 | return NULL; |
1d99702e RD |
5763 | if (_argo0) { |
5764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); |
5767 | return NULL; | |
5768 | } | |
5769 | } | |
5770 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5771 | { |
5772 | wxPy_BEGIN_ALLOW_THREADS; | |
5773 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
5774 | ||
5775 | wxPy_END_ALLOW_THREADS; | |
5776 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5777 | return _resultobj; |
5778 | } | |
5779 | ||
5780 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 5781 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5782 | PyObject * _resultobj; |
5783 | int _result; | |
5784 | wxDialog * _arg0; | |
1d99702e | 5785 | PyObject * _argo0 = 0; |
efc5f224 | 5786 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5787 | |
5788 | self = self; | |
efc5f224 | 5789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 5790 | return NULL; |
1d99702e RD |
5791 | if (_argo0) { |
5792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); |
5795 | return NULL; | |
5796 | } | |
5797 | } | |
cf694132 RD |
5798 | { |
5799 | wxPy_BEGIN_ALLOW_THREADS; | |
5800 | _result = (int )wxDialog_ShowModal(_arg0); | |
5801 | ||
5802 | wxPy_END_ALLOW_THREADS; | |
5803 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5804 | return _resultobj; |
5805 | } | |
5806 | ||
bb0054cd | 5807 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) |
efc5f224 | 5808 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5809 | PyObject * _resultobj; |
5810 | int _result; | |
5811 | wxDialog * _arg0; | |
1d99702e | 5812 | PyObject * _argo0 = 0; |
efc5f224 | 5813 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5814 | |
5815 | self = self; | |
efc5f224 | 5816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) |
bb0054cd | 5817 | return NULL; |
1d99702e RD |
5818 | if (_argo0) { |
5819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); |
5822 | return NULL; | |
5823 | } | |
5824 | } | |
5825 | { | |
5826 | wxPy_BEGIN_ALLOW_THREADS; | |
5827 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
5828 | ||
5829 | wxPy_END_ALLOW_THREADS; | |
5830 | } _resultobj = Py_BuildValue("i",_result); | |
5831 | return _resultobj; | |
5832 | } | |
5833 | ||
5834 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
efc5f224 | 5835 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5836 | PyObject * _resultobj; |
5837 | wxDialog * _arg0; | |
5838 | int _arg1; | |
1d99702e | 5839 | PyObject * _argo0 = 0; |
efc5f224 | 5840 | char *_kwnames[] = { "self","retCode", NULL }; |
bb0054cd RD |
5841 | |
5842 | self = self; | |
efc5f224 | 5843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 5844 | return NULL; |
1d99702e RD |
5845 | if (_argo0) { |
5846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); |
5849 | return NULL; | |
5850 | } | |
5851 | } | |
5852 | { | |
5853 | wxPy_BEGIN_ALLOW_THREADS; | |
5854 | wxDialog_SetReturnCode(_arg0,_arg1); | |
5855 | ||
5856 | wxPy_END_ALLOW_THREADS; | |
5857 | } Py_INCREF(Py_None); | |
5858 | _resultobj = Py_None; | |
5859 | return _resultobj; | |
5860 | } | |
5861 | ||
f3d9dc1d RD |
5862 | #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0)) |
5863 | static PyObject *_wrap_wxDialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5864 | PyObject * _resultobj; | |
5865 | wxSizer * _result; | |
5866 | wxDialog * _arg0; | |
5867 | wxString * _arg1; | |
5868 | PyObject * _argo0 = 0; | |
5869 | PyObject * _obj1 = 0; | |
5870 | char *_kwnames[] = { "self","message", NULL }; | |
5871 | char _ptemp[128]; | |
5872 | ||
5873 | self = self; | |
5874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_CreateTextSizer",_kwnames,&_argo0,&_obj1)) | |
5875 | return NULL; | |
5876 | if (_argo0) { | |
5877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p."); | |
5880 | return NULL; | |
5881 | } | |
5882 | } | |
5883 | { | |
5884 | #if PYTHON_API_VERSION >= 1009 | |
5885 | char* tmpPtr; int tmpSize; | |
5886 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5887 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
f3d9dc1d RD |
5888 | return NULL; |
5889 | } | |
5890 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5891 | return NULL; | |
5892 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5893 | #else | |
5894 | if (!PyString_Check(_obj1)) { | |
5895 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5896 | return NULL; | |
5897 | } | |
5898 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5899 | #endif | |
5900 | } | |
5901 | { | |
5902 | wxPy_BEGIN_ALLOW_THREADS; | |
5903 | _result = (wxSizer *)wxDialog_CreateTextSizer(_arg0,*_arg1); | |
5904 | ||
5905 | wxPy_END_ALLOW_THREADS; | |
5906 | } if (_result) { | |
5907 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p"); | |
5908 | _resultobj = Py_BuildValue("s",_ptemp); | |
5909 | } else { | |
5910 | Py_INCREF(Py_None); | |
5911 | _resultobj = Py_None; | |
5912 | } | |
5913 | { | |
5914 | if (_obj1) | |
5915 | delete _arg1; | |
5916 | } | |
5917 | return _resultobj; | |
5918 | } | |
5919 | ||
5920 | #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0)) | |
5921 | static PyObject *_wrap_wxDialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5922 | PyObject * _resultobj; | |
5923 | wxSizer * _result; | |
5924 | wxDialog * _arg0; | |
5925 | long _arg1; | |
5926 | PyObject * _argo0 = 0; | |
5927 | char *_kwnames[] = { "self","flags", NULL }; | |
5928 | char _ptemp[128]; | |
5929 | ||
5930 | self = self; | |
5931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDialog_CreateButtonSizer",_kwnames,&_argo0,&_arg1)) | |
5932 | return NULL; | |
5933 | if (_argo0) { | |
5934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p."); | |
5937 | return NULL; | |
5938 | } | |
5939 | } | |
5940 | { | |
5941 | wxPy_BEGIN_ALLOW_THREADS; | |
5942 | _result = (wxSizer *)wxDialog_CreateButtonSizer(_arg0,_arg1); | |
5943 | ||
5944 | wxPy_END_ALLOW_THREADS; | |
5945 | } if (_result) { | |
5946 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p"); | |
5947 | _resultobj = Py_BuildValue("s",_ptemp); | |
5948 | } else { | |
5949 | Py_INCREF(Py_None); | |
5950 | _resultobj = Py_None; | |
5951 | } | |
5952 | return _resultobj; | |
5953 | } | |
5954 | ||
bb0054cd RD |
5955 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
5956 | wxScrolledWindow *src; | |
5957 | wxPanel *dest; | |
5958 | src = (wxScrolledWindow *) ptr; | |
5959 | dest = (wxPanel *) src; | |
5960 | return (void *) dest; | |
5961 | } | |
5962 | ||
8ab979d7 RD |
5963 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
5964 | wxScrolledWindow *src; | |
5965 | wxWindow *dest; | |
5966 | src = (wxScrolledWindow *) ptr; | |
5967 | dest = (wxWindow *) src; | |
5968 | return (void *) dest; | |
5969 | } | |
5970 | ||
5971 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
5972 | wxScrolledWindow *src; | |
5973 | wxEvtHandler *dest; | |
5974 | src = (wxScrolledWindow *) ptr; | |
5975 | dest = (wxEvtHandler *) src; | |
5976 | return (void *) dest; | |
5977 | } | |
5978 | ||
5979 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 5980 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5981 | PyObject * _resultobj; |
5982 | wxScrolledWindow * _result; | |
5983 | wxWindow * _arg0; | |
1d99702e | 5984 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
5985 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5986 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5987 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
5988 | char * _arg5 = (char *) "scrolledWindow"; | |
5989 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5990 | wxPoint temp; |
5991 | PyObject * _obj2 = 0; | |
5992 | wxSize temp0; | |
5993 | PyObject * _obj3 = 0; | |
efc5f224 | 5994 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5995 | char _ptemp[128]; |
5996 | ||
5997 | self = self; | |
2f90df85 | 5998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5999 | return NULL; |
1d99702e RD |
6000 | if (_argo0) { |
6001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6004 | return NULL; | |
6005 | } | |
6006 | } | |
2f90df85 RD |
6007 | if (_obj2) |
6008 | { | |
6009 | _arg2 = &temp; | |
6010 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6011 | return NULL; |
2f90df85 RD |
6012 | } |
6013 | if (_obj3) | |
6014 | { | |
6015 | _arg3 = &temp0; | |
6016 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6017 | return NULL; |
2f90df85 | 6018 | } |
cf694132 RD |
6019 | { |
6020 | wxPy_BEGIN_ALLOW_THREADS; | |
6021 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
6022 | ||
6023 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6024 | } if (_result) { |
6025 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6026 | _resultobj = Py_BuildValue("s",_ptemp); | |
6027 | } else { | |
6028 | Py_INCREF(Py_None); | |
6029 | _resultobj = Py_None; | |
6030 | } | |
8ab979d7 RD |
6031 | return _resultobj; |
6032 | } | |
6033 | ||
6034 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
efc5f224 | 6035 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6036 | PyObject * _resultobj; |
6037 | wxScrolledWindow * _arg0; | |
6038 | bool _arg1; | |
6039 | bool _arg2; | |
1d99702e | 6040 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6041 | int tempbool1; |
6042 | int tempbool2; | |
efc5f224 | 6043 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6044 | |
6045 | self = self; | |
efc5f224 | 6046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6047 | return NULL; |
1d99702e RD |
6048 | if (_argo0) { |
6049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6052 | return NULL; | |
6053 | } | |
6054 | } | |
6055 | _arg1 = (bool ) tempbool1; | |
6056 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6057 | { |
6058 | wxPy_BEGIN_ALLOW_THREADS; | |
6059 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
6060 | ||
6061 | wxPy_END_ALLOW_THREADS; | |
6062 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6063 | _resultobj = Py_None; |
6064 | return _resultobj; | |
6065 | } | |
6066 | ||
b7e72427 RD |
6067 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6068 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6069 | PyObject * _resultobj; | |
6070 | int _result; | |
6071 | wxScrolledWindow * _arg0; | |
6072 | int _arg1; | |
6073 | PyObject * _argo0 = 0; | |
6074 | char *_kwnames[] = { "self","orient", NULL }; | |
6075 | ||
6076 | self = self; | |
6077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6078 | return NULL; | |
6079 | if (_argo0) { | |
6080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6083 | return NULL; | |
6084 | } | |
6085 | } | |
6086 | { | |
6087 | wxPy_BEGIN_ALLOW_THREADS; | |
6088 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
6089 | ||
6090 | wxPy_END_ALLOW_THREADS; | |
6091 | } _resultobj = Py_BuildValue("i",_result); | |
6092 | return _resultobj; | |
6093 | } | |
6094 | ||
8ab979d7 | 6095 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6096 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6097 | PyObject * _resultobj; |
6098 | wxScrolledWindow * _arg0; | |
6099 | int * _arg1; | |
6100 | int temp; | |
6101 | int * _arg2; | |
6102 | int temp0; | |
1d99702e | 6103 | PyObject * _argo0 = 0; |
efc5f224 | 6104 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6105 | |
6106 | self = self; | |
6107 | { | |
6108 | _arg1 = &temp; | |
6109 | } | |
6110 | { | |
6111 | _arg2 = &temp0; | |
6112 | } | |
efc5f224 | 6113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6114 | return NULL; |
1d99702e RD |
6115 | if (_argo0) { |
6116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6119 | return NULL; | |
6120 | } | |
6121 | } | |
cf694132 RD |
6122 | { |
6123 | wxPy_BEGIN_ALLOW_THREADS; | |
6124 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
6125 | ||
6126 | wxPy_END_ALLOW_THREADS; | |
6127 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6128 | _resultobj = Py_None; |
6129 | { | |
6130 | PyObject *o; | |
6131 | o = PyInt_FromLong((long) (*_arg1)); | |
6132 | _resultobj = t_output_helper(_resultobj, o); | |
6133 | } | |
6134 | { | |
6135 | PyObject *o; | |
6136 | o = PyInt_FromLong((long) (*_arg2)); | |
6137 | _resultobj = t_output_helper(_resultobj, o); | |
6138 | } | |
6139 | return _resultobj; | |
6140 | } | |
6141 | ||
b7e72427 RD |
6142 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6143 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6144 | PyObject * _resultobj; | |
6145 | wxWindow * _result; | |
6146 | wxScrolledWindow * _arg0; | |
6147 | PyObject * _argo0 = 0; | |
6148 | char *_kwnames[] = { "self", NULL }; | |
6149 | char _ptemp[128]; | |
6150 | ||
6151 | self = self; | |
6152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6153 | return NULL; | |
6154 | if (_argo0) { | |
6155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6158 | return NULL; | |
6159 | } | |
6160 | } | |
6161 | { | |
6162 | wxPy_BEGIN_ALLOW_THREADS; | |
6163 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6164 | ||
6165 | wxPy_END_ALLOW_THREADS; | |
6166 | } if (_result) { | |
6167 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
6168 | _resultobj = Py_BuildValue("s",_ptemp); | |
6169 | } else { | |
6170 | Py_INCREF(Py_None); | |
6171 | _resultobj = Py_None; | |
6172 | } | |
6173 | return _resultobj; | |
6174 | } | |
6175 | ||
8ab979d7 | 6176 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6177 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6178 | PyObject * _resultobj; |
6179 | wxScrolledWindow * _arg0; | |
6180 | int * _arg1; | |
6181 | int temp; | |
6182 | int * _arg2; | |
6183 | int temp0; | |
1d99702e | 6184 | PyObject * _argo0 = 0; |
efc5f224 | 6185 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6186 | |
6187 | self = self; | |
6188 | { | |
6189 | _arg1 = &temp; | |
6190 | } | |
6191 | { | |
6192 | _arg2 = &temp0; | |
6193 | } | |
efc5f224 | 6194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6195 | return NULL; |
1d99702e RD |
6196 | if (_argo0) { |
6197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6200 | return NULL; | |
6201 | } | |
6202 | } | |
cf694132 RD |
6203 | { |
6204 | wxPy_BEGIN_ALLOW_THREADS; | |
6205 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6206 | ||
6207 | wxPy_END_ALLOW_THREADS; | |
6208 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6209 | _resultobj = Py_None; |
6210 | { | |
6211 | PyObject *o; | |
6212 | o = PyInt_FromLong((long) (*_arg1)); | |
6213 | _resultobj = t_output_helper(_resultobj, o); | |
6214 | } | |
6215 | { | |
6216 | PyObject *o; | |
6217 | o = PyInt_FromLong((long) (*_arg2)); | |
6218 | _resultobj = t_output_helper(_resultobj, o); | |
6219 | } | |
6220 | return _resultobj; | |
6221 | } | |
6222 | ||
6223 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6224 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6225 | PyObject * _resultobj; |
6226 | bool _result; | |
6227 | wxScrolledWindow * _arg0; | |
1d99702e | 6228 | PyObject * _argo0 = 0; |
efc5f224 | 6229 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6230 | |
6231 | self = self; | |
efc5f224 | 6232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6233 | return NULL; |
1d99702e RD |
6234 | if (_argo0) { |
6235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6238 | return NULL; | |
6239 | } | |
6240 | } | |
cf694132 RD |
6241 | { |
6242 | wxPy_BEGIN_ALLOW_THREADS; | |
6243 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6244 | ||
6245 | wxPy_END_ALLOW_THREADS; | |
6246 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6247 | return _resultobj; |
6248 | } | |
6249 | ||
6250 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6251 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6252 | PyObject * _resultobj; |
6253 | wxScrolledWindow * _arg0; | |
6254 | wxDC * _arg1; | |
1d99702e RD |
6255 | PyObject * _argo0 = 0; |
6256 | PyObject * _argo1 = 0; | |
efc5f224 | 6257 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6258 | |
6259 | self = self; | |
efc5f224 | 6260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6261 | return NULL; |
1d99702e RD |
6262 | if (_argo0) { |
6263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6266 | return NULL; | |
6267 | } | |
6268 | } | |
1d99702e RD |
6269 | if (_argo1) { |
6270 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6271 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6273 | return NULL; | |
6274 | } | |
6275 | } | |
cf694132 RD |
6276 | { |
6277 | wxPy_BEGIN_ALLOW_THREADS; | |
6278 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
6279 | ||
6280 | wxPy_END_ALLOW_THREADS; | |
6281 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6282 | _resultobj = Py_None; |
6283 | return _resultobj; | |
6284 | } | |
6285 | ||
6286 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6287 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6288 | PyObject * _resultobj; |
6289 | wxScrolledWindow * _arg0; | |
6290 | int _arg1; | |
6291 | int _arg2; | |
1d99702e | 6292 | PyObject * _argo0 = 0; |
efc5f224 | 6293 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6294 | |
6295 | self = self; | |
efc5f224 | 6296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6297 | return NULL; |
1d99702e RD |
6298 | if (_argo0) { |
6299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6302 | return NULL; | |
6303 | } | |
6304 | } | |
cf694132 RD |
6305 | { |
6306 | wxPy_BEGIN_ALLOW_THREADS; | |
6307 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
6308 | ||
6309 | wxPy_END_ALLOW_THREADS; | |
6310 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6311 | _resultobj = Py_None; |
6312 | return _resultobj; | |
6313 | } | |
6314 | ||
f6bcfd97 | 6315 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6316 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6317 | PyObject * _resultobj; |
6318 | wxScrolledWindow * _arg0; | |
6319 | int _arg1; | |
6320 | int _arg2; | |
6321 | int _arg3; | |
6322 | int _arg4; | |
1d99702e RD |
6323 | int _arg5 = (int ) 0; |
6324 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6325 | int _arg7 = (int ) FALSE; |
1d99702e | 6326 | PyObject * _argo0 = 0; |
f6bcfd97 | 6327 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6328 | |
6329 | self = self; | |
f6bcfd97 | 6330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6331 | return NULL; |
1d99702e RD |
6332 | if (_argo0) { |
6333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6336 | return NULL; | |
6337 | } | |
6338 | } | |
cf694132 RD |
6339 | { |
6340 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6341 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 RD |
6342 | |
6343 | wxPy_END_ALLOW_THREADS; | |
6344 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6345 | _resultobj = Py_None; |
6346 | return _resultobj; | |
6347 | } | |
6348 | ||
b7e72427 RD |
6349 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6350 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6351 | PyObject * _resultobj; | |
6352 | wxScrolledWindow * _arg0; | |
6353 | int _arg1; | |
6354 | int _arg2; | |
6355 | PyObject * _argo0 = 0; | |
6356 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6357 | ||
6358 | self = self; | |
6359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6360 | return NULL; | |
6361 | if (_argo0) { | |
6362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6365 | return NULL; | |
6366 | } | |
6367 | } | |
6368 | { | |
6369 | wxPy_BEGIN_ALLOW_THREADS; | |
6370 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6371 | ||
6372 | wxPy_END_ALLOW_THREADS; | |
6373 | } Py_INCREF(Py_None); | |
6374 | _resultobj = Py_None; | |
6375 | return _resultobj; | |
6376 | } | |
6377 | ||
eb715945 RD |
6378 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6379 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6380 | PyObject * _resultobj; | |
6381 | wxScrolledWindow * _arg0; | |
6382 | wxWindow * _arg1; | |
6383 | PyObject * _argo0 = 0; | |
6384 | PyObject * _argo1 = 0; | |
6385 | char *_kwnames[] = { "self","window", NULL }; | |
6386 | ||
6387 | self = self; | |
6388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6389 | return NULL; | |
6390 | if (_argo0) { | |
6391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6394 | return NULL; | |
6395 | } | |
6396 | } | |
6397 | if (_argo1) { | |
6398 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6399 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6401 | return NULL; | |
6402 | } | |
6403 | } | |
6404 | { | |
6405 | wxPy_BEGIN_ALLOW_THREADS; | |
6406 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6407 | ||
6408 | wxPy_END_ALLOW_THREADS; | |
6409 | } Py_INCREF(Py_None); | |
6410 | _resultobj = Py_None; | |
6411 | return _resultobj; | |
6412 | } | |
6413 | ||
4c9993c3 RD |
6414 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6415 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6416 | PyObject * _resultobj; | |
6417 | wxScrolledWindow * _arg0; | |
6418 | int * _arg1; | |
6419 | int temp; | |
6420 | int * _arg2; | |
6421 | int temp0; | |
6422 | PyObject * _argo0 = 0; | |
6423 | char *_kwnames[] = { "self", NULL }; | |
6424 | ||
6425 | self = self; | |
6426 | { | |
6427 | _arg1 = &temp; | |
6428 | } | |
6429 | { | |
6430 | _arg2 = &temp0; | |
6431 | } | |
6432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6433 | return NULL; | |
6434 | if (_argo0) { | |
6435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6438 | return NULL; | |
6439 | } | |
6440 | } | |
6441 | { | |
6442 | wxPy_BEGIN_ALLOW_THREADS; | |
6443 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6444 | ||
6445 | wxPy_END_ALLOW_THREADS; | |
6446 | } Py_INCREF(Py_None); | |
6447 | _resultobj = Py_None; | |
6448 | { | |
6449 | PyObject *o; | |
6450 | o = PyInt_FromLong((long) (*_arg1)); | |
6451 | _resultobj = t_output_helper(_resultobj, o); | |
6452 | } | |
6453 | { | |
6454 | PyObject *o; | |
6455 | o = PyInt_FromLong((long) (*_arg2)); | |
6456 | _resultobj = t_output_helper(_resultobj, o); | |
6457 | } | |
6458 | return _resultobj; | |
6459 | } | |
6460 | ||
8ab979d7 | 6461 | #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1)) |
efc5f224 | 6462 | static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6463 | PyObject * _resultobj; |
6464 | wxScrolledWindow * _arg0; | |
6465 | int * _arg1; | |
6466 | int temp; | |
6467 | int * _arg2; | |
6468 | int temp0; | |
1d99702e | 6469 | PyObject * _argo0 = 0; |
efc5f224 | 6470 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6471 | |
6472 | self = self; | |
6473 | { | |
6474 | _arg1 = &temp; | |
6475 | } | |
6476 | { | |
6477 | _arg2 = &temp0; | |
6478 | } | |
efc5f224 | 6479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0)) |
8ab979d7 | 6480 | return NULL; |
1d99702e RD |
6481 | if (_argo0) { |
6482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p."); |
6485 | return NULL; | |
6486 | } | |
6487 | } | |
cf694132 RD |
6488 | { |
6489 | wxPy_BEGIN_ALLOW_THREADS; | |
6490 | wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2); | |
6491 | ||
6492 | wxPy_END_ALLOW_THREADS; | |
6493 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6494 | _resultobj = Py_None; |
6495 | { | |
6496 | PyObject *o; | |
6497 | o = PyInt_FromLong((long) (*_arg1)); | |
6498 | _resultobj = t_output_helper(_resultobj, o); | |
6499 | } | |
6500 | { | |
6501 | PyObject *o; | |
6502 | o = PyInt_FromLong((long) (*_arg2)); | |
6503 | _resultobj = t_output_helper(_resultobj, o); | |
6504 | } | |
6505 | return _resultobj; | |
6506 | } | |
6507 | ||
9d8bd15f RD |
6508 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6509 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6510 | PyObject * _resultobj; | |
6511 | wxScrolledWindow * _arg0; | |
6512 | int _arg1; | |
6513 | int _arg2; | |
6514 | int * _arg3; | |
6515 | int temp; | |
6516 | int * _arg4; | |
6517 | int temp0; | |
6518 | PyObject * _argo0 = 0; | |
6519 | char *_kwnames[] = { "self","x","y", NULL }; | |
6520 | ||
6521 | self = self; | |
6522 | { | |
6523 | _arg3 = &temp; | |
6524 | } | |
6525 | { | |
6526 | _arg4 = &temp0; | |
6527 | } | |
6528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6529 | return NULL; | |
6530 | if (_argo0) { | |
6531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6534 | return NULL; | |
6535 | } | |
6536 | } | |
6537 | { | |
6538 | wxPy_BEGIN_ALLOW_THREADS; | |
6539 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6540 | ||
6541 | wxPy_END_ALLOW_THREADS; | |
6542 | } Py_INCREF(Py_None); | |
6543 | _resultobj = Py_None; | |
6544 | { | |
6545 | PyObject *o; | |
6546 | o = PyInt_FromLong((long) (*_arg3)); | |
6547 | _resultobj = t_output_helper(_resultobj, o); | |
6548 | } | |
6549 | { | |
6550 | PyObject *o; | |
6551 | o = PyInt_FromLong((long) (*_arg4)); | |
6552 | _resultobj = t_output_helper(_resultobj, o); | |
6553 | } | |
6554 | return _resultobj; | |
6555 | } | |
6556 | ||
6557 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6558 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6559 | PyObject * _resultobj; | |
6560 | wxScrolledWindow * _arg0; | |
6561 | int _arg1; | |
6562 | int _arg2; | |
6563 | int * _arg3; | |
6564 | int temp; | |
6565 | int * _arg4; | |
6566 | int temp0; | |
6567 | PyObject * _argo0 = 0; | |
6568 | char *_kwnames[] = { "self","x","y", NULL }; | |
6569 | ||
6570 | self = self; | |
6571 | { | |
6572 | _arg3 = &temp; | |
6573 | } | |
6574 | { | |
6575 | _arg4 = &temp0; | |
6576 | } | |
6577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6578 | return NULL; | |
6579 | if (_argo0) { | |
6580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6583 | return NULL; | |
6584 | } | |
6585 | } | |
6586 | { | |
6587 | wxPy_BEGIN_ALLOW_THREADS; | |
6588 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6589 | ||
6590 | wxPy_END_ALLOW_THREADS; | |
6591 | } Py_INCREF(Py_None); | |
6592 | _resultobj = Py_None; | |
6593 | { | |
6594 | PyObject *o; | |
6595 | o = PyInt_FromLong((long) (*_arg3)); | |
6596 | _resultobj = t_output_helper(_resultobj, o); | |
6597 | } | |
6598 | { | |
6599 | PyObject *o; | |
6600 | o = PyInt_FromLong((long) (*_arg4)); | |
6601 | _resultobj = t_output_helper(_resultobj, o); | |
6602 | } | |
6603 | return _resultobj; | |
6604 | } | |
6605 | ||
d1679124 RD |
6606 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
6607 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6608 | PyObject * _resultobj; | |
6609 | wxScrolledWindow * _arg0; | |
6610 | double _arg1; | |
6611 | double _arg2; | |
6612 | PyObject * _argo0 = 0; | |
6613 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
6614 | ||
6615 | self = self; | |
6616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6617 | return NULL; | |
6618 | if (_argo0) { | |
6619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
6622 | return NULL; | |
6623 | } | |
6624 | } | |
6625 | { | |
6626 | wxPy_BEGIN_ALLOW_THREADS; | |
6627 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); | |
6628 | ||
6629 | wxPy_END_ALLOW_THREADS; | |
6630 | } Py_INCREF(Py_None); | |
6631 | _resultobj = Py_None; | |
6632 | return _resultobj; | |
6633 | } | |
6634 | ||
6635 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
6636 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6637 | PyObject * _resultobj; | |
6638 | double _result; | |
6639 | wxScrolledWindow * _arg0; | |
6640 | PyObject * _argo0 = 0; | |
6641 | char *_kwnames[] = { "self", NULL }; | |
6642 | ||
6643 | self = self; | |
6644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
6645 | return NULL; | |
6646 | if (_argo0) { | |
6647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
6650 | return NULL; | |
6651 | } | |
6652 | } | |
6653 | { | |
6654 | wxPy_BEGIN_ALLOW_THREADS; | |
6655 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); | |
6656 | ||
6657 | wxPy_END_ALLOW_THREADS; | |
6658 | } _resultobj = Py_BuildValue("d",_result); | |
6659 | return _resultobj; | |
6660 | } | |
6661 | ||
6662 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
6663 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6664 | PyObject * _resultobj; | |
6665 | double _result; | |
6666 | wxScrolledWindow * _arg0; | |
6667 | PyObject * _argo0 = 0; | |
6668 | char *_kwnames[] = { "self", NULL }; | |
6669 | ||
6670 | self = self; | |
6671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
6672 | return NULL; | |
6673 | if (_argo0) { | |
6674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
6677 | return NULL; | |
6678 | } | |
6679 | } | |
6680 | { | |
6681 | wxPy_BEGIN_ALLOW_THREADS; | |
6682 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
6683 | ||
6684 | wxPy_END_ALLOW_THREADS; | |
6685 | } _resultobj = Py_BuildValue("d",_result); | |
6686 | return _resultobj; | |
6687 | } | |
6688 | ||
6689 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
6690 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6691 | PyObject * _resultobj; | |
6692 | wxScrolledWindow * _arg0; | |
6693 | PyObject * _argo0 = 0; | |
6694 | char *_kwnames[] = { "self", NULL }; | |
6695 | ||
6696 | self = self; | |
6697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
6698 | return NULL; | |
6699 | if (_argo0) { | |
6700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
6703 | return NULL; | |
6704 | } | |
6705 | } | |
6706 | { | |
6707 | wxPy_BEGIN_ALLOW_THREADS; | |
6708 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
6709 | ||
6710 | wxPy_END_ALLOW_THREADS; | |
6711 | } Py_INCREF(Py_None); | |
6712 | _resultobj = Py_None; | |
6713 | return _resultobj; | |
6714 | } | |
6715 | ||
8ab979d7 RD |
6716 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
6717 | wxMenu *src; | |
6718 | wxEvtHandler *dest; | |
6719 | src = (wxMenu *) ptr; | |
6720 | dest = (wxEvtHandler *) src; | |
6721 | return (void *) dest; | |
6722 | } | |
6723 | ||
8bf5d46e | 6724 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 6725 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6726 | PyObject * _resultobj; |
6727 | wxMenu * _result; | |
1d99702e RD |
6728 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
6729 | long _arg1 = (long ) 0; | |
8ab979d7 | 6730 | PyObject * _obj0 = 0; |
efc5f224 | 6731 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
6732 | char _ptemp[128]; |
6733 | ||
6734 | self = self; | |
efc5f224 | 6735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
6736 | return NULL; |
6737 | if (_obj0) | |
6738 | { | |
185d7c3e RD |
6739 | #if PYTHON_API_VERSION >= 1009 |
6740 | char* tmpPtr; int tmpSize; | |
6741 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 6742 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6743 | return NULL; |
6744 | } | |
6745 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6746 | return NULL; | |
6747 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6748 | #else | |
8ab979d7 RD |
6749 | if (!PyString_Check(_obj0)) { |
6750 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6751 | return NULL; | |
6752 | } | |
185d7c3e RD |
6753 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
6754 | #endif | |
8ab979d7 | 6755 | } |
cf694132 RD |
6756 | { |
6757 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 6758 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 RD |
6759 | |
6760 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6761 | } if (_result) { |
6762 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6763 | _resultobj = Py_BuildValue("s",_ptemp); | |
6764 | } else { | |
6765 | Py_INCREF(Py_None); | |
6766 | _resultobj = Py_None; | |
6767 | } | |
8ab979d7 RD |
6768 | { |
6769 | if (_obj0) | |
6770 | delete _arg0; | |
6771 | } | |
6772 | return _resultobj; | |
6773 | } | |
6774 | ||
6775 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6776 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6777 | PyObject * _resultobj; |
6778 | wxMenu * _arg0; | |
6779 | int _arg1; | |
6780 | wxString * _arg2; | |
1d99702e | 6781 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
926bb76c | 6782 | int _arg4 = (int ) FALSE; |
1d99702e | 6783 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6784 | PyObject * _obj2 = 0; |
6785 | PyObject * _obj3 = 0; | |
efc5f224 | 6786 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
6787 | |
6788 | self = self; | |
926bb76c | 6789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 6790 | return NULL; |
1d99702e RD |
6791 | if (_argo0) { |
6792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
6795 | return NULL; | |
6796 | } | |
6797 | } | |
6798 | { | |
185d7c3e RD |
6799 | #if PYTHON_API_VERSION >= 1009 |
6800 | char* tmpPtr; int tmpSize; | |
6801 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6802 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6803 | return NULL; |
6804 | } | |
6805 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6806 | return NULL; | |
6807 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6808 | #else | |
8ab979d7 RD |
6809 | if (!PyString_Check(_obj2)) { |
6810 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6811 | return NULL; | |
6812 | } | |
185d7c3e RD |
6813 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6814 | #endif | |
8ab979d7 RD |
6815 | } |
6816 | if (_obj3) | |
6817 | { | |
185d7c3e RD |
6818 | #if PYTHON_API_VERSION >= 1009 |
6819 | char* tmpPtr; int tmpSize; | |
6820 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 6821 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6822 | return NULL; |
6823 | } | |
6824 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6825 | return NULL; | |
6826 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6827 | #else | |
8ab979d7 RD |
6828 | if (!PyString_Check(_obj3)) { |
6829 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6830 | return NULL; | |
6831 | } | |
185d7c3e RD |
6832 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6833 | #endif | |
8ab979d7 | 6834 | } |
cf694132 RD |
6835 | { |
6836 | wxPy_BEGIN_ALLOW_THREADS; | |
6837 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
6838 | ||
6839 | wxPy_END_ALLOW_THREADS; | |
6840 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6841 | _resultobj = Py_None; |
6842 | { | |
6843 | if (_obj2) | |
6844 | delete _arg2; | |
6845 | } | |
6846 | { | |
6847 | if (_obj3) | |
6848 | delete _arg3; | |
6849 | } | |
6850 | return _resultobj; | |
6851 | } | |
6852 | ||
6853 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6854 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6855 | PyObject * _resultobj; |
6856 | wxMenu * _arg0; | |
6857 | int _arg1; | |
6858 | wxString * _arg2; | |
6859 | wxMenu * _arg3; | |
1d99702e RD |
6860 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
6861 | PyObject * _argo0 = 0; | |
8ab979d7 | 6862 | PyObject * _obj2 = 0; |
1d99702e | 6863 | PyObject * _argo3 = 0; |
8ab979d7 | 6864 | PyObject * _obj4 = 0; |
efc5f224 | 6865 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
6866 | |
6867 | self = self; | |
efc5f224 | 6868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 6869 | return NULL; |
1d99702e RD |
6870 | if (_argo0) { |
6871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6874 | return NULL; | |
6875 | } | |
6876 | } | |
6877 | { | |
185d7c3e RD |
6878 | #if PYTHON_API_VERSION >= 1009 |
6879 | char* tmpPtr; int tmpSize; | |
6880 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6881 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6882 | return NULL; |
6883 | } | |
6884 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6885 | return NULL; | |
6886 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6887 | #else | |
8ab979d7 RD |
6888 | if (!PyString_Check(_obj2)) { |
6889 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6890 | return NULL; | |
6891 | } | |
185d7c3e RD |
6892 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6893 | #endif | |
8ab979d7 | 6894 | } |
1d99702e RD |
6895 | if (_argo3) { |
6896 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6897 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
6898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6899 | return NULL; | |
6900 | } | |
6901 | } | |
6902 | if (_obj4) | |
6903 | { | |
185d7c3e RD |
6904 | #if PYTHON_API_VERSION >= 1009 |
6905 | char* tmpPtr; int tmpSize; | |
6906 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
794c5cb1 | 6907 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6908 | return NULL; |
6909 | } | |
6910 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
6911 | return NULL; | |
6912 | _arg4 = new wxString(tmpPtr, tmpSize); | |
6913 | #else | |
8ab979d7 RD |
6914 | if (!PyString_Check(_obj4)) { |
6915 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6916 | return NULL; | |
6917 | } | |
185d7c3e RD |
6918 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
6919 | #endif | |
8ab979d7 | 6920 | } |
cf694132 RD |
6921 | { |
6922 | wxPy_BEGIN_ALLOW_THREADS; | |
6923 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
6924 | ||
6925 | wxPy_END_ALLOW_THREADS; | |
6926 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6927 | _resultobj = Py_None; |
6928 | { | |
6929 | if (_obj2) | |
6930 | delete _arg2; | |
6931 | } | |
6932 | { | |
6933 | if (_obj4) | |
6934 | delete _arg4; | |
6935 | } | |
6936 | return _resultobj; | |
6937 | } | |
6938 | ||
af309447 | 6939 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 6940 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
6941 | PyObject * _resultobj; |
6942 | wxMenu * _arg0; | |
6943 | wxMenuItem * _arg1; | |
1d99702e RD |
6944 | PyObject * _argo0 = 0; |
6945 | PyObject * _argo1 = 0; | |
efc5f224 | 6946 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
6947 | |
6948 | self = self; | |
efc5f224 | 6949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 6950 | return NULL; |
1d99702e RD |
6951 | if (_argo0) { |
6952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
6954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
6955 | return NULL; | |
6956 | } | |
6957 | } | |
1d99702e RD |
6958 | if (_argo1) { |
6959 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6960 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
6961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
6962 | return NULL; | |
6963 | } | |
6964 | } | |
cf694132 RD |
6965 | { |
6966 | wxPy_BEGIN_ALLOW_THREADS; | |
6967 | wxMenu_AppendItem(_arg0,_arg1); | |
6968 | ||
6969 | wxPy_END_ALLOW_THREADS; | |
6970 | } Py_INCREF(Py_None); | |
af309447 RD |
6971 | _resultobj = Py_None; |
6972 | return _resultobj; | |
6973 | } | |
6974 | ||
8ab979d7 | 6975 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 6976 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6977 | PyObject * _resultobj; |
6978 | wxMenu * _arg0; | |
1d99702e | 6979 | PyObject * _argo0 = 0; |
efc5f224 | 6980 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6981 | |
6982 | self = self; | |
efc5f224 | 6983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 6984 | return NULL; |
1d99702e RD |
6985 | if (_argo0) { |
6986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
6989 | return NULL; | |
6990 | } | |
6991 | } | |
cf694132 RD |
6992 | { |
6993 | wxPy_BEGIN_ALLOW_THREADS; | |
6994 | wxMenu_AppendSeparator(_arg0); | |
6995 | ||
6996 | wxPy_END_ALLOW_THREADS; | |
6997 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6998 | _resultobj = Py_None; |
6999 | return _resultobj; | |
7000 | } | |
7001 | ||
7002 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 7003 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7004 | PyObject * _resultobj; |
7005 | wxMenu * _arg0; | |
1d99702e | 7006 | PyObject * _argo0 = 0; |
efc5f224 | 7007 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7008 | |
7009 | self = self; | |
efc5f224 | 7010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 7011 | return NULL; |
1d99702e RD |
7012 | if (_argo0) { |
7013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
7016 | return NULL; | |
7017 | } | |
7018 | } | |
cf694132 RD |
7019 | { |
7020 | wxPy_BEGIN_ALLOW_THREADS; | |
7021 | wxMenu_Break(_arg0); | |
7022 | ||
7023 | wxPy_END_ALLOW_THREADS; | |
7024 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7025 | _resultobj = Py_None; |
7026 | return _resultobj; | |
7027 | } | |
7028 | ||
7029 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 7030 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7031 | PyObject * _resultobj; |
7032 | wxMenu * _arg0; | |
7033 | int _arg1; | |
7034 | bool _arg2; | |
1d99702e | 7035 | PyObject * _argo0 = 0; |
8ab979d7 | 7036 | int tempbool2; |
efc5f224 | 7037 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
7038 | |
7039 | self = self; | |
efc5f224 | 7040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7041 | return NULL; |
1d99702e RD |
7042 | if (_argo0) { |
7043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
7046 | return NULL; | |
7047 | } | |
7048 | } | |
7049 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7050 | { |
7051 | wxPy_BEGIN_ALLOW_THREADS; | |
7052 | wxMenu_Check(_arg0,_arg1,_arg2); | |
7053 | ||
7054 | wxPy_END_ALLOW_THREADS; | |
7055 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7056 | _resultobj = Py_None; |
7057 | return _resultobj; | |
7058 | } | |
7059 | ||
b1462dfa RD |
7060 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
7061 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7062 | PyObject * _resultobj; | |
7063 | bool _result; | |
7064 | wxMenu * _arg0; | |
7065 | int _arg1; | |
7066 | PyObject * _argo0 = 0; | |
7067 | char *_kwnames[] = { "self","id", NULL }; | |
7068 | ||
7069 | self = self; | |
7070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7071 | return NULL; | |
7072 | if (_argo0) { | |
7073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7076 | return NULL; | |
7077 | } | |
7078 | } | |
7079 | { | |
7080 | wxPy_BEGIN_ALLOW_THREADS; | |
7081 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
7082 | ||
7083 | wxPy_END_ALLOW_THREADS; | |
7084 | } _resultobj = Py_BuildValue("i",_result); | |
7085 | return _resultobj; | |
7086 | } | |
7087 | ||
8ab979d7 | 7088 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 7089 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7090 | PyObject * _resultobj; |
7091 | wxMenu * _arg0; | |
7092 | int _arg1; | |
7093 | bool _arg2; | |
1d99702e | 7094 | PyObject * _argo0 = 0; |
8ab979d7 | 7095 | int tempbool2; |
efc5f224 | 7096 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
7097 | |
7098 | self = self; | |
efc5f224 | 7099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7100 | return NULL; |
1d99702e RD |
7101 | if (_argo0) { |
7102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
7105 | return NULL; | |
7106 | } | |
7107 | } | |
7108 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7109 | { |
7110 | wxPy_BEGIN_ALLOW_THREADS; | |
7111 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
7112 | ||
7113 | wxPy_END_ALLOW_THREADS; | |
7114 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7115 | _resultobj = Py_None; |
7116 | return _resultobj; | |
7117 | } | |
7118 | ||
b1462dfa RD |
7119 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
7120 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7121 | PyObject * _resultobj; | |
7122 | bool _result; | |
7123 | wxMenu * _arg0; | |
7124 | int _arg1; | |
7125 | PyObject * _argo0 = 0; | |
7126 | char *_kwnames[] = { "self","id", NULL }; | |
7127 | ||
7128 | self = self; | |
7129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7130 | return NULL; | |
7131 | if (_argo0) { | |
7132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7135 | return NULL; | |
7136 | } | |
7137 | } | |
7138 | { | |
7139 | wxPy_BEGIN_ALLOW_THREADS; | |
7140 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
7141 | ||
7142 | wxPy_END_ALLOW_THREADS; | |
7143 | } _resultobj = Py_BuildValue("i",_result); | |
7144 | return _resultobj; | |
7145 | } | |
7146 | ||
8ab979d7 | 7147 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 7148 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7149 | PyObject * _resultobj; |
7150 | int _result; | |
7151 | wxMenu * _arg0; | |
7152 | wxString * _arg1; | |
1d99702e | 7153 | PyObject * _argo0 = 0; |
8ab979d7 | 7154 | PyObject * _obj1 = 0; |
efc5f224 | 7155 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
7156 | |
7157 | self = self; | |
efc5f224 | 7158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7159 | return NULL; |
1d99702e RD |
7160 | if (_argo0) { |
7161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
7164 | return NULL; | |
7165 | } | |
7166 | } | |
7167 | { | |
185d7c3e RD |
7168 | #if PYTHON_API_VERSION >= 1009 |
7169 | char* tmpPtr; int tmpSize; | |
7170 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7171 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7172 | return NULL; |
7173 | } | |
7174 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7175 | return NULL; | |
7176 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7177 | #else | |
8ab979d7 RD |
7178 | if (!PyString_Check(_obj1)) { |
7179 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7180 | return NULL; | |
7181 | } | |
185d7c3e RD |
7182 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7183 | #endif | |
8ab979d7 | 7184 | } |
cf694132 RD |
7185 | { |
7186 | wxPy_BEGIN_ALLOW_THREADS; | |
7187 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
7188 | ||
7189 | wxPy_END_ALLOW_THREADS; | |
7190 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7191 | { |
7192 | if (_obj1) | |
7193 | delete _arg1; | |
7194 | } | |
7195 | return _resultobj; | |
7196 | } | |
7197 | ||
b1462dfa RD |
7198 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
7199 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7200 | PyObject * _resultobj; | |
7201 | wxMenuItem * _result; | |
7202 | wxMenu * _arg0; | |
7203 | int _arg1; | |
7204 | PyObject * _argo0 = 0; | |
7205 | char *_kwnames[] = { "self","id", NULL }; | |
7206 | char _ptemp[128]; | |
7207 | ||
7208 | self = self; | |
7209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7210 | return NULL; | |
7211 | if (_argo0) { | |
7212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7215 | return NULL; | |
7216 | } | |
7217 | } | |
7218 | { | |
7219 | wxPy_BEGIN_ALLOW_THREADS; | |
7220 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
7221 | ||
7222 | wxPy_END_ALLOW_THREADS; | |
7223 | } if (_result) { | |
7224 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7225 | _resultobj = Py_BuildValue("s",_ptemp); | |
7226 | } else { | |
7227 | Py_INCREF(Py_None); | |
7228 | _resultobj = Py_None; | |
7229 | } | |
7230 | return _resultobj; | |
7231 | } | |
7232 | ||
8ab979d7 | 7233 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 7234 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7235 | PyObject * _resultobj; |
7236 | wxString * _result; | |
7237 | wxMenu * _arg0; | |
1d99702e | 7238 | PyObject * _argo0 = 0; |
efc5f224 | 7239 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7240 | |
7241 | self = self; | |
efc5f224 | 7242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 7243 | return NULL; |
1d99702e RD |
7244 | if (_argo0) { |
7245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
7248 | return NULL; | |
7249 | } | |
7250 | } | |
8ab979d7 | 7251 | { |
cf694132 RD |
7252 | wxPy_BEGIN_ALLOW_THREADS; |
7253 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
7254 | ||
7255 | wxPy_END_ALLOW_THREADS; | |
7256 | }{ | |
eec92d76 | 7257 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7258 | } |
7259 | { | |
7260 | delete _result; | |
7261 | } | |
7262 | return _resultobj; | |
7263 | } | |
7264 | ||
7265 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7266 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7267 | PyObject * _resultobj; |
7268 | wxMenu * _arg0; | |
7269 | wxString * _arg1; | |
1d99702e | 7270 | PyObject * _argo0 = 0; |
8ab979d7 | 7271 | PyObject * _obj1 = 0; |
efc5f224 | 7272 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7273 | |
7274 | self = self; | |
efc5f224 | 7275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7276 | return NULL; |
1d99702e RD |
7277 | if (_argo0) { |
7278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7281 | return NULL; | |
7282 | } | |
7283 | } | |
7284 | { | |
185d7c3e RD |
7285 | #if PYTHON_API_VERSION >= 1009 |
7286 | char* tmpPtr; int tmpSize; | |
7287 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7288 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7289 | return NULL; |
7290 | } | |
7291 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7292 | return NULL; | |
7293 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7294 | #else | |
8ab979d7 RD |
7295 | if (!PyString_Check(_obj1)) { |
7296 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7297 | return NULL; | |
7298 | } | |
185d7c3e RD |
7299 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7300 | #endif | |
8ab979d7 | 7301 | } |
cf694132 RD |
7302 | { |
7303 | wxPy_BEGIN_ALLOW_THREADS; | |
7304 | wxMenu_SetTitle(_arg0,*_arg1); | |
7305 | ||
7306 | wxPy_END_ALLOW_THREADS; | |
7307 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7308 | _resultobj = Py_None; |
7309 | { | |
7310 | if (_obj1) | |
7311 | delete _arg1; | |
7312 | } | |
7313 | return _resultobj; | |
7314 | } | |
7315 | ||
b1462dfa RD |
7316 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7317 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7318 | PyObject * _resultobj; |
b1462dfa | 7319 | wxString * _result; |
8ab979d7 RD |
7320 | wxMenu * _arg0; |
7321 | int _arg1; | |
1d99702e | 7322 | PyObject * _argo0 = 0; |
efc5f224 | 7323 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7324 | |
7325 | self = self; | |
b1462dfa | 7326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7327 | return NULL; |
1d99702e RD |
7328 | if (_argo0) { |
7329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7332 | return NULL; |
7333 | } | |
7334 | } | |
cf694132 RD |
7335 | { |
7336 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7337 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 RD |
7338 | |
7339 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7340 | }{ |
eec92d76 | 7341 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7342 | } |
7343 | { | |
7344 | delete _result; | |
7345 | } | |
8ab979d7 RD |
7346 | return _resultobj; |
7347 | } | |
7348 | ||
b1462dfa RD |
7349 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7350 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7351 | PyObject * _resultobj; |
8ab979d7 RD |
7352 | wxMenu * _arg0; |
7353 | int _arg1; | |
b1462dfa | 7354 | wxString * _arg2; |
1d99702e | 7355 | PyObject * _argo0 = 0; |
b1462dfa RD |
7356 | PyObject * _obj2 = 0; |
7357 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7358 | |
7359 | self = self; | |
b1462dfa | 7360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7361 | return NULL; |
1d99702e RD |
7362 | if (_argo0) { |
7363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7366 | return NULL; |
7367 | } | |
7368 | } | |
b1462dfa | 7369 | { |
185d7c3e RD |
7370 | #if PYTHON_API_VERSION >= 1009 |
7371 | char* tmpPtr; int tmpSize; | |
7372 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7373 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7374 | return NULL; |
7375 | } | |
7376 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7377 | return NULL; | |
7378 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7379 | #else | |
b1462dfa RD |
7380 | if (!PyString_Check(_obj2)) { |
7381 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7382 | return NULL; | |
7383 | } | |
185d7c3e RD |
7384 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7385 | #endif | |
b1462dfa | 7386 | } |
8ab979d7 | 7387 | { |
cf694132 | 7388 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7389 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
7390 | |
7391 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7392 | } Py_INCREF(Py_None); |
7393 | _resultobj = Py_None; | |
8ab979d7 | 7394 | { |
b1462dfa RD |
7395 | if (_obj2) |
7396 | delete _arg2; | |
8ab979d7 RD |
7397 | } |
7398 | return _resultobj; | |
7399 | } | |
7400 | ||
b1462dfa RD |
7401 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7402 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7403 | PyObject * _resultobj; |
7404 | wxString * _result; | |
7405 | wxMenu * _arg0; | |
7406 | int _arg1; | |
1d99702e | 7407 | PyObject * _argo0 = 0; |
efc5f224 | 7408 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7409 | |
7410 | self = self; | |
b1462dfa | 7411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7412 | return NULL; |
1d99702e RD |
7413 | if (_argo0) { |
7414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7417 | return NULL; |
7418 | } | |
7419 | } | |
8ab979d7 | 7420 | { |
cf694132 | 7421 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7422 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
7423 | |
7424 | wxPy_END_ALLOW_THREADS; | |
7425 | }{ | |
eec92d76 | 7426 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7427 | } |
7428 | { | |
7429 | delete _result; | |
7430 | } | |
7431 | return _resultobj; | |
7432 | } | |
7433 | ||
7434 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7435 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7436 | PyObject * _resultobj; |
7437 | wxMenu * _arg0; | |
7438 | int _arg1; | |
7439 | wxString * _arg2; | |
1d99702e | 7440 | PyObject * _argo0 = 0; |
8ab979d7 | 7441 | PyObject * _obj2 = 0; |
efc5f224 | 7442 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7443 | |
7444 | self = self; | |
efc5f224 | 7445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7446 | return NULL; |
1d99702e RD |
7447 | if (_argo0) { |
7448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7451 | return NULL; | |
7452 | } | |
7453 | } | |
7454 | { | |
185d7c3e RD |
7455 | #if PYTHON_API_VERSION >= 1009 |
7456 | char* tmpPtr; int tmpSize; | |
7457 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7458 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7459 | return NULL; |
7460 | } | |
7461 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7462 | return NULL; | |
7463 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7464 | #else | |
8ab979d7 RD |
7465 | if (!PyString_Check(_obj2)) { |
7466 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7467 | return NULL; | |
7468 | } | |
185d7c3e RD |
7469 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7470 | #endif | |
8ab979d7 | 7471 | } |
cf694132 RD |
7472 | { |
7473 | wxPy_BEGIN_ALLOW_THREADS; | |
7474 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
7475 | ||
7476 | wxPy_END_ALLOW_THREADS; | |
7477 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7478 | _resultobj = Py_None; |
7479 | { | |
7480 | if (_obj2) | |
7481 | delete _arg2; | |
7482 | } | |
7483 | return _resultobj; | |
7484 | } | |
7485 | ||
b1462dfa RD |
7486 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7487 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7488 | PyObject * _resultobj; |
8ab979d7 | 7489 | wxMenu * _arg0; |
b1462dfa | 7490 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7491 | PyObject * _argo0 = 0; |
b1462dfa RD |
7492 | PyObject * _argo1 = 0; |
7493 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7494 | |
7495 | self = self; | |
b1462dfa | 7496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7497 | return NULL; |
1d99702e RD |
7498 | if (_argo0) { |
7499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
7501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7502 | return NULL; | |
7503 | } | |
7504 | } | |
7505 | if (_argo1) { | |
7506 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7507 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7509 | return NULL; |
7510 | } | |
7511 | } | |
cf694132 RD |
7512 | { |
7513 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7514 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 RD |
7515 | |
7516 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7517 | } Py_INCREF(Py_None); |
7518 | _resultobj = Py_None; | |
8ab979d7 RD |
7519 | return _resultobj; |
7520 | } | |
7521 | ||
b1462dfa RD |
7522 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7523 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7524 | PyObject * _resultobj; |
7525 | bool _result; | |
7526 | wxMenu * _arg0; | |
7527 | int _arg1; | |
1d99702e | 7528 | PyObject * _argo0 = 0; |
efc5f224 | 7529 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7530 | |
7531 | self = self; | |
b1462dfa | 7532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7533 | return NULL; |
1d99702e RD |
7534 | if (_argo0) { |
7535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
7538 | return NULL; |
7539 | } | |
7540 | } | |
cf694132 RD |
7541 | { |
7542 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7543 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 RD |
7544 | |
7545 | wxPy_END_ALLOW_THREADS; | |
7546 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7547 | return _resultobj; |
7548 | } | |
7549 | ||
b1462dfa RD |
7550 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7551 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7552 | PyObject * _resultobj; |
b1462dfa | 7553 | bool _result; |
8ab979d7 | 7554 | wxMenu * _arg0; |
b1462dfa | 7555 | wxMenuItem * _arg1; |
1d99702e | 7556 | PyObject * _argo0 = 0; |
b1462dfa RD |
7557 | PyObject * _argo1 = 0; |
7558 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7559 | |
7560 | self = self; | |
b1462dfa | 7561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7562 | return NULL; |
1d99702e RD |
7563 | if (_argo0) { |
7564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7567 | return NULL; |
7568 | } | |
7569 | } | |
b1462dfa RD |
7570 | if (_argo1) { |
7571 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7572 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7574 | return NULL; |
b1462dfa | 7575 | } |
8ab979d7 | 7576 | } |
cf694132 RD |
7577 | { |
7578 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7579 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 RD |
7580 | |
7581 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7582 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7583 | return _resultobj; |
7584 | } | |
7585 | ||
b1462dfa RD |
7586 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7587 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7588 | PyObject * _resultobj; |
b1462dfa | 7589 | bool _result; |
8bf5d46e | 7590 | wxMenu * _arg0; |
b1462dfa RD |
7591 | size_t _arg1; |
7592 | wxMenuItem * _arg2; | |
1d99702e | 7593 | PyObject * _argo0 = 0; |
b1462dfa RD |
7594 | PyObject * _argo2 = 0; |
7595 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7596 | |
7597 | self = self; | |
b1462dfa | 7598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7599 | return NULL; |
1d99702e RD |
7600 | if (_argo0) { |
7601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7604 | return NULL; |
7605 | } | |
7606 | } | |
b1462dfa RD |
7607 | if (_argo2) { |
7608 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7609 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7611 | return NULL; |
7612 | } | |
7613 | } | |
cf694132 RD |
7614 | { |
7615 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7616 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 RD |
7617 | |
7618 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7619 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7620 | return _resultobj; |
7621 | } | |
7622 | ||
b1462dfa RD |
7623 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7624 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7625 | PyObject * _resultobj; |
b1462dfa | 7626 | wxMenuItem * _result; |
efc5f224 | 7627 | wxMenu * _arg0; |
b1462dfa | 7628 | int _arg1; |
efc5f224 | 7629 | PyObject * _argo0 = 0; |
b1462dfa RD |
7630 | char *_kwnames[] = { "self","id", NULL }; |
7631 | char _ptemp[128]; | |
efc5f224 RD |
7632 | |
7633 | self = self; | |
b1462dfa | 7634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7635 | return NULL; |
7636 | if (_argo0) { | |
7637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7640 | return NULL; |
7641 | } | |
7642 | } | |
7643 | { | |
7644 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7645 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 RD |
7646 | |
7647 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7648 | } if (_result) { |
7649 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7650 | _resultobj = Py_BuildValue("s",_ptemp); | |
7651 | } else { | |
7652 | Py_INCREF(Py_None); | |
7653 | _resultobj = Py_None; | |
7654 | } | |
efc5f224 RD |
7655 | return _resultobj; |
7656 | } | |
7657 | ||
b1462dfa RD |
7658 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7659 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7660 | PyObject * _resultobj; |
b1462dfa RD |
7661 | wxMenuItem * _result; |
7662 | wxMenu * _arg0; | |
7663 | wxMenuItem * _arg1; | |
7664 | PyObject * _argo0 = 0; | |
7665 | PyObject * _argo1 = 0; | |
7666 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7667 | char _ptemp[128]; |
7668 | ||
7669 | self = self; | |
b1462dfa RD |
7670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7671 | return NULL; | |
7672 | if (_argo0) { | |
7673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7676 | return NULL; | |
7677 | } | |
7678 | } | |
7679 | if (_argo1) { | |
7680 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7681 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7683 | return NULL; |
b1462dfa RD |
7684 | } |
7685 | } | |
cf694132 RD |
7686 | { |
7687 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7688 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 RD |
7689 | |
7690 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 7691 | } if (_result) { |
b1462dfa | 7692 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); |
1d99702e RD |
7693 | _resultobj = Py_BuildValue("s",_ptemp); |
7694 | } else { | |
7695 | Py_INCREF(Py_None); | |
7696 | _resultobj = Py_None; | |
7697 | } | |
8ab979d7 RD |
7698 | return _resultobj; |
7699 | } | |
7700 | ||
eb715945 | 7701 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7702 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7703 | PyObject * _resultobj; |
b1462dfa | 7704 | wxMenu * _arg0; |
1d99702e | 7705 | PyObject * _argo0 = 0; |
b1462dfa | 7706 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7707 | |
7708 | self = self; | |
b1462dfa | 7709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7710 | return NULL; |
1d99702e RD |
7711 | if (_argo0) { |
7712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7715 | return NULL; |
7716 | } | |
7717 | } | |
cf694132 RD |
7718 | { |
7719 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7720 | wxMenu_Destroy(_arg0); |
cf694132 RD |
7721 | |
7722 | wxPy_END_ALLOW_THREADS; | |
7723 | } Py_INCREF(Py_None); | |
8ab979d7 | 7724 | _resultobj = Py_None; |
8ab979d7 RD |
7725 | return _resultobj; |
7726 | } | |
7727 | ||
b1462dfa RD |
7728 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7729 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7730 | PyObject * _resultobj; |
b1462dfa RD |
7731 | bool _result; |
7732 | wxMenu * _arg0; | |
8ab979d7 | 7733 | int _arg1; |
1d99702e | 7734 | PyObject * _argo0 = 0; |
b1462dfa | 7735 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7736 | |
7737 | self = self; | |
b1462dfa | 7738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7739 | return NULL; |
1d99702e RD |
7740 | if (_argo0) { |
7741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
7744 | return NULL; |
7745 | } | |
7746 | } | |
cf694132 RD |
7747 | { |
7748 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7749 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 RD |
7750 | |
7751 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7752 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7753 | return _resultobj; |
7754 | } | |
7755 | ||
b1462dfa RD |
7756 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7757 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7758 | PyObject * _resultobj; |
b1462dfa RD |
7759 | bool _result; |
7760 | wxMenu * _arg0; | |
7761 | wxMenuItem * _arg1; | |
1d99702e | 7762 | PyObject * _argo0 = 0; |
b1462dfa RD |
7763 | PyObject * _argo1 = 0; |
7764 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7765 | |
7766 | self = self; | |
b1462dfa | 7767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7768 | return NULL; |
1d99702e RD |
7769 | if (_argo0) { |
7770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7773 | return NULL; | |
7774 | } | |
7775 | } | |
7776 | if (_argo1) { | |
7777 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7778 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7780 | return NULL; |
7781 | } | |
7782 | } | |
cf694132 RD |
7783 | { |
7784 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7785 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 RD |
7786 | |
7787 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7788 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7789 | return _resultobj; |
7790 | } | |
7791 | ||
b1462dfa RD |
7792 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
7793 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7794 | PyObject * _resultobj; |
b1462dfa RD |
7795 | size_t _result; |
7796 | wxMenu * _arg0; | |
1d99702e | 7797 | PyObject * _argo0 = 0; |
b1462dfa | 7798 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7799 | |
7800 | self = self; | |
b1462dfa | 7801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 7802 | return NULL; |
1d99702e RD |
7803 | if (_argo0) { |
7804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
7807 | return NULL; |
7808 | } | |
7809 | } | |
cf694132 RD |
7810 | { |
7811 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7812 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 RD |
7813 | |
7814 | wxPy_END_ALLOW_THREADS; | |
2abc0a0f | 7815 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7816 | return _resultobj; |
7817 | } | |
7818 | ||
b1462dfa RD |
7819 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
7820 | wxMenuItemList& list = self->GetMenuItems(); | |
7821 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
7822 | } | |
7823 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7824 | PyObject * _resultobj; |
b1462dfa RD |
7825 | PyObject * _result; |
7826 | wxMenu * _arg0; | |
1d99702e | 7827 | PyObject * _argo0 = 0; |
b1462dfa | 7828 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7829 | |
7830 | self = self; | |
b1462dfa | 7831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 7832 | return NULL; |
1d99702e RD |
7833 | if (_argo0) { |
7834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
7837 | return NULL; |
7838 | } | |
7839 | } | |
cf694132 RD |
7840 | { |
7841 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7842 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 RD |
7843 | |
7844 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7845 | }{ |
7846 | _resultobj = _result; | |
7847 | } | |
8ab979d7 RD |
7848 | return _resultobj; |
7849 | } | |
7850 | ||
b1462dfa RD |
7851 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
7852 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7853 | PyObject * _resultobj; |
b1462dfa RD |
7854 | wxMenu * _arg0; |
7855 | wxEvtHandler * _arg1; | |
1d99702e | 7856 | PyObject * _argo0 = 0; |
b1462dfa RD |
7857 | PyObject * _argo1 = 0; |
7858 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
7859 | |
7860 | self = self; | |
b1462dfa | 7861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7862 | return NULL; |
1d99702e RD |
7863 | if (_argo0) { |
7864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7867 | return NULL; |
7868 | } | |
7869 | } | |
b1462dfa RD |
7870 | if (_argo1) { |
7871 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7872 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 7874 | return NULL; |
b1462dfa | 7875 | } |
8ab979d7 | 7876 | } |
cf694132 RD |
7877 | { |
7878 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7879 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 RD |
7880 | |
7881 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7882 | } Py_INCREF(Py_None); |
7883 | _resultobj = Py_None; | |
8ab979d7 RD |
7884 | return _resultobj; |
7885 | } | |
7886 | ||
b1462dfa RD |
7887 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
7888 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7889 | PyObject * _resultobj; |
b1462dfa RD |
7890 | wxEvtHandler * _result; |
7891 | wxMenu * _arg0; | |
1d99702e | 7892 | PyObject * _argo0 = 0; |
b1462dfa | 7893 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7894 | char _ptemp[128]; |
7895 | ||
7896 | self = self; | |
b1462dfa | 7897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 7898 | return NULL; |
1d99702e RD |
7899 | if (_argo0) { |
7900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7903 | return NULL; |
7904 | } | |
7905 | } | |
cf694132 RD |
7906 | { |
7907 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7908 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 RD |
7909 | |
7910 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 7911 | } if (_result) { |
b1462dfa | 7912 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); |
1d99702e RD |
7913 | _resultobj = Py_BuildValue("s",_ptemp); |
7914 | } else { | |
7915 | Py_INCREF(Py_None); | |
7916 | _resultobj = Py_None; | |
7917 | } | |
8ab979d7 RD |
7918 | return _resultobj; |
7919 | } | |
7920 | ||
b1462dfa RD |
7921 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
7922 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 7923 | PyObject * _resultobj; |
b1462dfa RD |
7924 | wxMenu * _arg0; |
7925 | wxWindow * _arg1; | |
2f90df85 | 7926 | PyObject * _argo0 = 0; |
b1462dfa RD |
7927 | PyObject * _argo1 = 0; |
7928 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
7929 | |
7930 | self = self; | |
b1462dfa | 7931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
7932 | return NULL; |
7933 | if (_argo0) { | |
7934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
7937 | return NULL; |
7938 | } | |
7939 | } | |
b1462dfa RD |
7940 | if (_argo1) { |
7941 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7942 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 7944 | return NULL; |
b1462dfa | 7945 | } |
2f90df85 | 7946 | } |
2f90df85 RD |
7947 | { |
7948 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7949 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 RD |
7950 | |
7951 | wxPy_END_ALLOW_THREADS; | |
7952 | } Py_INCREF(Py_None); | |
7953 | _resultobj = Py_None; | |
2f90df85 RD |
7954 | return _resultobj; |
7955 | } | |
7956 | ||
b1462dfa RD |
7957 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
7958 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7959 | PyObject * _resultobj; |
b1462dfa RD |
7960 | wxWindow * _result; |
7961 | wxMenu * _arg0; | |
1d99702e | 7962 | PyObject * _argo0 = 0; |
b1462dfa RD |
7963 | char *_kwnames[] = { "self", NULL }; |
7964 | char _ptemp[128]; | |
8ab979d7 RD |
7965 | |
7966 | self = self; | |
b1462dfa | 7967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 7968 | return NULL; |
1d99702e RD |
7969 | if (_argo0) { |
7970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
7973 | return NULL; |
7974 | } | |
7975 | } | |
cf694132 RD |
7976 | { |
7977 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7978 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 RD |
7979 | |
7980 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7981 | } if (_result) { |
7982 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
7983 | _resultobj = Py_BuildValue("s",_ptemp); | |
7984 | } else { | |
7985 | Py_INCREF(Py_None); | |
7986 | _resultobj = Py_None; | |
7987 | } | |
8ab979d7 RD |
7988 | return _resultobj; |
7989 | } | |
7990 | ||
b1462dfa RD |
7991 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
7992 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7993 | PyObject * _resultobj; |
b1462dfa RD |
7994 | long _result; |
7995 | wxMenu * _arg0; | |
1d99702e | 7996 | PyObject * _argo0 = 0; |
b1462dfa | 7997 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7998 | |
7999 | self = self; | |
b1462dfa | 8000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 8001 | return NULL; |
1d99702e RD |
8002 | if (_argo0) { |
8003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
8006 | return NULL; |
8007 | } | |
8008 | } | |
8ab979d7 | 8009 | { |
cf694132 | 8010 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8011 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 RD |
8012 | |
8013 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8014 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8015 | return _resultobj; |
8016 | } | |
8017 | ||
b1462dfa RD |
8018 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
8019 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8020 | PyObject * _resultobj; |
b1462dfa RD |
8021 | bool _result; |
8022 | wxMenu * _arg0; | |
1d99702e | 8023 | PyObject * _argo0 = 0; |
b1462dfa | 8024 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8025 | |
8026 | self = self; | |
b1462dfa | 8027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 8028 | return NULL; |
1d99702e RD |
8029 | if (_argo0) { |
8030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
8033 | return NULL; |
8034 | } | |
8035 | } | |
8ab979d7 | 8036 | { |
cf694132 | 8037 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8038 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 RD |
8039 | |
8040 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8041 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8042 | return _resultobj; |
8043 | } | |
8044 | ||
b1462dfa RD |
8045 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
8046 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8047 | PyObject * _resultobj; |
b1462dfa RD |
8048 | wxMenu * _arg0; |
8049 | wxMenu * _arg1; | |
1d99702e | 8050 | PyObject * _argo0 = 0; |
b1462dfa RD |
8051 | PyObject * _argo1 = 0; |
8052 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
8053 | |
8054 | self = self; | |
b1462dfa | 8055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8056 | return NULL; |
1d99702e RD |
8057 | if (_argo0) { |
8058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8061 | return NULL; |
8062 | } | |
8063 | } | |
b1462dfa RD |
8064 | if (_argo1) { |
8065 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8066 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 8068 | return NULL; |
b1462dfa | 8069 | } |
8ab979d7 | 8070 | } |
cf694132 RD |
8071 | { |
8072 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8073 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 RD |
8074 | |
8075 | wxPy_END_ALLOW_THREADS; | |
8076 | } Py_INCREF(Py_None); | |
8ab979d7 | 8077 | _resultobj = Py_None; |
8ab979d7 RD |
8078 | return _resultobj; |
8079 | } | |
8080 | ||
b1462dfa RD |
8081 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
8082 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8083 | PyObject * _resultobj; |
b1462dfa RD |
8084 | wxMenu * _result; |
8085 | wxMenu * _arg0; | |
1d99702e | 8086 | PyObject * _argo0 = 0; |
b1462dfa RD |
8087 | char *_kwnames[] = { "self", NULL }; |
8088 | char _ptemp[128]; | |
8ab979d7 RD |
8089 | |
8090 | self = self; | |
b1462dfa | 8091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 8092 | return NULL; |
1d99702e RD |
8093 | if (_argo0) { |
8094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8097 | return NULL; |
8098 | } | |
8099 | } | |
8ab979d7 | 8100 | { |
cf694132 | 8101 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8102 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 RD |
8103 | |
8104 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8105 | } if (_result) { |
8106 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8107 | _resultobj = Py_BuildValue("s",_ptemp); | |
8108 | } else { | |
8109 | Py_INCREF(Py_None); | |
8110 | _resultobj = Py_None; | |
8111 | } | |
8112 | return _resultobj; | |
8ab979d7 | 8113 | } |
b1462dfa RD |
8114 | |
8115 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8116 | wxMenuBar *src; | |
8117 | wxWindow *dest; | |
8118 | src = (wxMenuBar *) ptr; | |
8119 | dest = (wxWindow *) src; | |
8120 | return (void *) dest; | |
8121 | } | |
8122 | ||
8123 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8124 | wxMenuBar *src; | |
8125 | wxEvtHandler *dest; | |
8126 | src = (wxMenuBar *) ptr; | |
8127 | dest = (wxEvtHandler *) src; | |
8128 | return (void *) dest; | |
8ab979d7 | 8129 | } |
b1462dfa | 8130 | |
c368d904 | 8131 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
8132 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8133 | PyObject * _resultobj; | |
8134 | wxMenuBar * _result; | |
c368d904 RD |
8135 | long _arg0 = (long ) 0; |
8136 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
8137 | char _ptemp[128]; |
8138 | ||
8139 | self = self; | |
c368d904 | 8140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
8141 | return NULL; |
8142 | { | |
8143 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 8144 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa RD |
8145 | |
8146 | wxPy_END_ALLOW_THREADS; | |
8147 | } if (_result) { | |
8148 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8149 | _resultobj = Py_BuildValue("s",_ptemp); | |
8150 | } else { | |
8151 | Py_INCREF(Py_None); | |
8152 | _resultobj = Py_None; | |
8153 | } | |
8ab979d7 RD |
8154 | return _resultobj; |
8155 | } | |
8156 | ||
b1462dfa RD |
8157 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
8158 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8159 | PyObject * _resultobj; |
b1462dfa | 8160 | bool _result; |
8ab979d7 | 8161 | wxMenuBar * _arg0; |
b1462dfa | 8162 | wxMenu * _arg1; |
8ab979d7 | 8163 | wxString * _arg2; |
1d99702e | 8164 | PyObject * _argo0 = 0; |
b1462dfa | 8165 | PyObject * _argo1 = 0; |
8ab979d7 | 8166 | PyObject * _obj2 = 0; |
b1462dfa | 8167 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
8168 | |
8169 | self = self; | |
b1462dfa | 8170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8171 | return NULL; |
1d99702e RD |
8172 | if (_argo0) { |
8173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
8176 | return NULL; | |
8177 | } | |
8178 | } | |
8179 | if (_argo1) { | |
8180 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8181 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
8183 | return NULL; |
8184 | } | |
8185 | } | |
8186 | { | |
185d7c3e RD |
8187 | #if PYTHON_API_VERSION >= 1009 |
8188 | char* tmpPtr; int tmpSize; | |
8189 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8190 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8191 | return NULL; |
8192 | } | |
8193 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8194 | return NULL; | |
8195 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8196 | #else | |
8ab979d7 RD |
8197 | if (!PyString_Check(_obj2)) { |
8198 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8199 | return NULL; | |
8200 | } | |
185d7c3e RD |
8201 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8202 | #endif | |
8ab979d7 | 8203 | } |
cf694132 RD |
8204 | { |
8205 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8206 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 RD |
8207 | |
8208 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8209 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8210 | { |
8211 | if (_obj2) | |
8212 | delete _arg2; | |
8213 | } | |
8214 | return _resultobj; | |
8215 | } | |
8216 | ||
b1462dfa RD |
8217 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
8218 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8219 | PyObject * _resultobj; |
b1462dfa | 8220 | bool _result; |
8ab979d7 | 8221 | wxMenuBar * _arg0; |
b1462dfa RD |
8222 | size_t _arg1; |
8223 | wxMenu * _arg2; | |
8224 | wxString * _arg3; | |
1d99702e | 8225 | PyObject * _argo0 = 0; |
b1462dfa RD |
8226 | PyObject * _argo2 = 0; |
8227 | PyObject * _obj3 = 0; | |
8228 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
8229 | |
8230 | self = self; | |
b1462dfa | 8231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 8232 | return NULL; |
1d99702e RD |
8233 | if (_argo0) { |
8234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
8237 | return NULL; | |
8238 | } | |
8239 | } | |
8240 | if (_argo2) { | |
8241 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8242 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
8244 | return NULL; |
8245 | } | |
8246 | } | |
b1462dfa | 8247 | { |
185d7c3e RD |
8248 | #if PYTHON_API_VERSION >= 1009 |
8249 | char* tmpPtr; int tmpSize; | |
8250 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8251 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8252 | return NULL; |
8253 | } | |
8254 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8255 | return NULL; | |
8256 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8257 | #else | |
b1462dfa RD |
8258 | if (!PyString_Check(_obj3)) { |
8259 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8260 | return NULL; | |
8261 | } | |
185d7c3e RD |
8262 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8263 | #endif | |
b1462dfa | 8264 | } |
cf694132 RD |
8265 | { |
8266 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8267 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
8268 | |
8269 | wxPy_END_ALLOW_THREADS; | |
8270 | } _resultobj = Py_BuildValue("i",_result); | |
b1462dfa RD |
8271 | { |
8272 | if (_obj3) | |
8273 | delete _arg3; | |
8274 | } | |
8ab979d7 RD |
8275 | return _resultobj; |
8276 | } | |
8277 | ||
b1462dfa RD |
8278 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8279 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8280 | PyObject * _resultobj; |
b1462dfa | 8281 | size_t _result; |
8ab979d7 | 8282 | wxMenuBar * _arg0; |
1d99702e | 8283 | PyObject * _argo0 = 0; |
b1462dfa | 8284 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8285 | |
8286 | self = self; | |
b1462dfa | 8287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8288 | return NULL; |
1d99702e RD |
8289 | if (_argo0) { |
8290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8293 | return NULL; |
8294 | } | |
8295 | } | |
cf694132 RD |
8296 | { |
8297 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8298 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 RD |
8299 | |
8300 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8301 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8302 | return _resultobj; |
8303 | } | |
8304 | ||
b1462dfa RD |
8305 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8306 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8307 | PyObject * _resultobj; |
b1462dfa | 8308 | wxMenu * _result; |
06c0fba4 | 8309 | wxMenuBar * _arg0; |
b1462dfa | 8310 | size_t _arg1; |
06c0fba4 | 8311 | PyObject * _argo0 = 0; |
b1462dfa RD |
8312 | char *_kwnames[] = { "self","pos", NULL }; |
8313 | char _ptemp[128]; | |
06c0fba4 RD |
8314 | |
8315 | self = self; | |
b1462dfa | 8316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8317 | return NULL; |
8318 | if (_argo0) { | |
8319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8322 | return NULL; |
8323 | } | |
8324 | } | |
8325 | { | |
8326 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8327 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 RD |
8328 | |
8329 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8330 | } if (_result) { |
8331 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8332 | _resultobj = Py_BuildValue("s",_ptemp); | |
8333 | } else { | |
8334 | Py_INCREF(Py_None); | |
8335 | _resultobj = Py_None; | |
8336 | } | |
06c0fba4 RD |
8337 | return _resultobj; |
8338 | } | |
8339 | ||
2abc0a0f RD |
8340 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8341 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8342 | PyObject * _resultobj; | |
8343 | wxMenu * _result; | |
8344 | wxMenuBar * _arg0; | |
8345 | size_t _arg1; | |
8346 | wxMenu * _arg2; | |
8347 | wxString * _arg3; | |
8348 | PyObject * _argo0 = 0; | |
8349 | PyObject * _argo2 = 0; | |
8350 | PyObject * _obj3 = 0; | |
8351 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8352 | char _ptemp[128]; | |
8353 | ||
8354 | self = self; | |
8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8356 | return NULL; | |
8357 | if (_argo0) { | |
8358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8361 | return NULL; | |
8362 | } | |
8363 | } | |
8364 | if (_argo2) { | |
8365 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8366 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8368 | return NULL; | |
8369 | } | |
8370 | } | |
8371 | { | |
185d7c3e RD |
8372 | #if PYTHON_API_VERSION >= 1009 |
8373 | char* tmpPtr; int tmpSize; | |
8374 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8375 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8376 | return NULL; |
8377 | } | |
8378 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8379 | return NULL; | |
8380 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8381 | #else | |
2abc0a0f RD |
8382 | if (!PyString_Check(_obj3)) { |
8383 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8384 | return NULL; | |
8385 | } | |
185d7c3e RD |
8386 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8387 | #endif | |
2abc0a0f RD |
8388 | } |
8389 | { | |
8390 | wxPy_BEGIN_ALLOW_THREADS; | |
8391 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
8392 | ||
8393 | wxPy_END_ALLOW_THREADS; | |
8394 | } if (_result) { | |
8395 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8396 | _resultobj = Py_BuildValue("s",_ptemp); | |
8397 | } else { | |
8398 | Py_INCREF(Py_None); | |
8399 | _resultobj = Py_None; | |
8400 | } | |
8401 | { | |
8402 | if (_obj3) | |
8403 | delete _arg3; | |
8404 | } | |
8405 | return _resultobj; | |
8406 | } | |
8407 | ||
8408 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8409 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8410 | PyObject * _resultobj; | |
8411 | wxMenu * _result; | |
8412 | wxMenuBar * _arg0; | |
8413 | size_t _arg1; | |
8414 | PyObject * _argo0 = 0; | |
8415 | char *_kwnames[] = { "self","pos", NULL }; | |
8416 | char _ptemp[128]; | |
8417 | ||
8418 | self = self; | |
8419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8420 | return NULL; | |
8421 | if (_argo0) { | |
8422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8425 | return NULL; | |
8426 | } | |
8427 | } | |
8428 | { | |
8429 | wxPy_BEGIN_ALLOW_THREADS; | |
8430 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
8431 | ||
8432 | wxPy_END_ALLOW_THREADS; | |
8433 | } if (_result) { | |
8434 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8435 | _resultobj = Py_BuildValue("s",_ptemp); | |
8436 | } else { | |
8437 | Py_INCREF(Py_None); | |
8438 | _resultobj = Py_None; | |
8439 | } | |
8440 | return _resultobj; | |
8441 | } | |
8442 | ||
b1462dfa RD |
8443 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8444 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8445 | PyObject * _resultobj; |
b1462dfa RD |
8446 | wxMenuBar * _arg0; |
8447 | size_t _arg1; | |
8448 | bool _arg2; | |
8449 | PyObject * _argo0 = 0; | |
8450 | int tempbool2; | |
8451 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8452 | ||
8453 | self = self; | |
8454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8455 | return NULL; | |
8456 | if (_argo0) { | |
8457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8460 | return NULL; | |
8461 | } | |
8462 | } | |
8463 | _arg2 = (bool ) tempbool2; | |
8464 | { | |
8465 | wxPy_BEGIN_ALLOW_THREADS; | |
8466 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
8467 | ||
8468 | wxPy_END_ALLOW_THREADS; | |
8469 | } Py_INCREF(Py_None); | |
8470 | _resultobj = Py_None; | |
8471 | return _resultobj; | |
8472 | } | |
8473 | ||
8474 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8475 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8476 | PyObject * _resultobj; | |
8477 | wxMenuBar * _arg0; | |
8478 | size_t _arg1; | |
8479 | wxString * _arg2; | |
1d99702e | 8480 | PyObject * _argo0 = 0; |
cf694132 | 8481 | PyObject * _obj2 = 0; |
b1462dfa | 8482 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8483 | |
8484 | self = self; | |
b1462dfa | 8485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8486 | return NULL; |
1d99702e RD |
8487 | if (_argo0) { |
8488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8491 | return NULL; |
8492 | } | |
8493 | } | |
cf694132 | 8494 | { |
185d7c3e RD |
8495 | #if PYTHON_API_VERSION >= 1009 |
8496 | char* tmpPtr; int tmpSize; | |
8497 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8498 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8499 | return NULL; |
8500 | } | |
8501 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8502 | return NULL; | |
8503 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8504 | #else | |
cf694132 RD |
8505 | if (!PyString_Check(_obj2)) { |
8506 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8507 | return NULL; | |
8508 | } | |
185d7c3e RD |
8509 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8510 | #endif | |
cf694132 | 8511 | } |
cf694132 | 8512 | { |
b1462dfa RD |
8513 | wxPy_BEGIN_ALLOW_THREADS; |
8514 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
8515 | ||
8516 | wxPy_END_ALLOW_THREADS; | |
8517 | } Py_INCREF(Py_None); | |
8518 | _resultobj = Py_None; | |
8519 | { | |
8520 | if (_obj2) | |
8521 | delete _arg2; | |
8522 | } | |
8523 | return _resultobj; | |
8524 | } | |
8525 | ||
8526 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8527 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8528 | PyObject * _resultobj; | |
8529 | wxString * _result; | |
8530 | wxMenuBar * _arg0; | |
8531 | size_t _arg1; | |
8532 | PyObject * _argo0 = 0; | |
8533 | char *_kwnames[] = { "self","pos", NULL }; | |
8534 | ||
8535 | self = self; | |
8536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8537 | return NULL; | |
8538 | if (_argo0) { | |
8539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8542 | return NULL; | |
8543 | } | |
8544 | } | |
8545 | { | |
8546 | wxPy_BEGIN_ALLOW_THREADS; | |
8547 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
8548 | ||
8549 | wxPy_END_ALLOW_THREADS; | |
8550 | }{ | |
eec92d76 | 8551 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8552 | } |
8553 | { | |
8554 | delete _result; | |
8555 | } | |
8556 | return _resultobj; | |
8557 | } | |
8558 | ||
8559 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
8560 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8561 | PyObject * _resultobj; | |
8562 | int _result; | |
8563 | wxMenuBar * _arg0; | |
8564 | wxString * _arg1; | |
8565 | wxString * _arg2; | |
8566 | PyObject * _argo0 = 0; | |
8567 | PyObject * _obj1 = 0; | |
8568 | PyObject * _obj2 = 0; | |
8569 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8570 | ||
8571 | self = self; | |
8572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8573 | return NULL; | |
8574 | if (_argo0) { | |
8575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8578 | return NULL; | |
8579 | } | |
8580 | } | |
8581 | { | |
185d7c3e RD |
8582 | #if PYTHON_API_VERSION >= 1009 |
8583 | char* tmpPtr; int tmpSize; | |
8584 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8585 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8586 | return NULL; |
8587 | } | |
8588 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8589 | return NULL; | |
8590 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8591 | #else | |
b1462dfa | 8592 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
8593 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
8594 | return NULL; | |
8595 | } | |
185d7c3e RD |
8596 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8597 | #endif | |
cf694132 | 8598 | } |
b1462dfa | 8599 | { |
185d7c3e RD |
8600 | #if PYTHON_API_VERSION >= 1009 |
8601 | char* tmpPtr; int tmpSize; | |
8602 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8603 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8604 | return NULL; |
8605 | } | |
8606 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8607 | return NULL; | |
8608 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8609 | #else | |
b1462dfa RD |
8610 | if (!PyString_Check(_obj2)) { |
8611 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8612 | return NULL; | |
8613 | } | |
185d7c3e RD |
8614 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8615 | #endif | |
b1462dfa RD |
8616 | } |
8617 | { | |
8618 | wxPy_BEGIN_ALLOW_THREADS; | |
8619 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
8620 | ||
8621 | wxPy_END_ALLOW_THREADS; | |
8622 | } _resultobj = Py_BuildValue("i",_result); | |
8623 | { | |
8624 | if (_obj1) | |
8625 | delete _arg1; | |
8626 | } | |
8627 | { | |
8628 | if (_obj2) | |
8629 | delete _arg2; | |
8630 | } | |
8631 | return _resultobj; | |
8632 | } | |
8633 | ||
8634 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8635 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8636 | PyObject * _resultobj; | |
8637 | wxMenuItem * _result; | |
8638 | wxMenuBar * _arg0; | |
8639 | int _arg1; | |
8640 | PyObject * _argo0 = 0; | |
8641 | char *_kwnames[] = { "self","id", NULL }; | |
8642 | char _ptemp[128]; | |
8643 | ||
8644 | self = self; | |
8645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8646 | return NULL; | |
8647 | if (_argo0) { | |
8648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8651 | return NULL; |
8652 | } | |
8653 | } | |
8654 | { | |
8655 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8656 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 RD |
8657 | |
8658 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
8659 | } if (_result) { |
8660 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
8661 | _resultobj = Py_BuildValue("s",_ptemp); | |
8662 | } else { | |
8663 | Py_INCREF(Py_None); | |
8664 | _resultobj = Py_None; | |
8665 | } | |
b1462dfa | 8666 | return _resultobj; |
cf694132 | 8667 | } |
b1462dfa RD |
8668 | |
8669 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8670 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8671 | PyObject * _resultobj; | |
8672 | wxMenuBar * _arg0; | |
8673 | int _arg1; | |
8674 | bool _arg2; | |
8675 | PyObject * _argo0 = 0; | |
8676 | int tempbool2; | |
8677 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8678 | ||
8679 | self = self; | |
8680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8681 | return NULL; | |
8682 | if (_argo0) { | |
8683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8686 | return NULL; | |
8687 | } | |
8688 | } | |
8689 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8690 | { |
b1462dfa RD |
8691 | wxPy_BEGIN_ALLOW_THREADS; |
8692 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8693 | ||
8694 | wxPy_END_ALLOW_THREADS; | |
8695 | } Py_INCREF(Py_None); | |
8696 | _resultobj = Py_None; | |
8697 | return _resultobj; | |
cf694132 | 8698 | } |
b1462dfa RD |
8699 | |
8700 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8701 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8702 | PyObject * _resultobj; | |
8703 | wxMenuBar * _arg0; | |
8704 | int _arg1; | |
8705 | bool _arg2; | |
8706 | PyObject * _argo0 = 0; | |
8707 | int tempbool2; | |
8708 | char *_kwnames[] = { "self","id","check", NULL }; | |
8709 | ||
8710 | self = self; | |
8711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8712 | return NULL; | |
8713 | if (_argo0) { | |
8714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8717 | return NULL; | |
8718 | } | |
8719 | } | |
8720 | _arg2 = (bool ) tempbool2; | |
8721 | { | |
8722 | wxPy_BEGIN_ALLOW_THREADS; | |
8723 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8724 | ||
8725 | wxPy_END_ALLOW_THREADS; | |
8726 | } Py_INCREF(Py_None); | |
8727 | _resultobj = Py_None; | |
cf694132 RD |
8728 | return _resultobj; |
8729 | } | |
8730 | ||
b1462dfa RD |
8731 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8732 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8733 | PyObject * _resultobj; |
8734 | bool _result; | |
b1462dfa RD |
8735 | wxMenuBar * _arg0; |
8736 | int _arg1; | |
1d99702e | 8737 | PyObject * _argo0 = 0; |
b1462dfa | 8738 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8739 | |
8740 | self = self; | |
b1462dfa | 8741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8742 | return NULL; |
1d99702e RD |
8743 | if (_argo0) { |
8744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8747 | return NULL; |
8748 | } | |
8749 | } | |
cf694132 RD |
8750 | { |
8751 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8752 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 RD |
8753 | |
8754 | wxPy_END_ALLOW_THREADS; | |
8755 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
8756 | return _resultobj; |
8757 | } | |
8758 | ||
b1462dfa RD |
8759 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8760 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8761 | PyObject * _resultobj; |
8762 | bool _result; | |
b1462dfa RD |
8763 | wxMenuBar * _arg0; |
8764 | int _arg1; | |
1d99702e | 8765 | PyObject * _argo0 = 0; |
b1462dfa | 8766 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8767 | |
8768 | self = self; | |
b1462dfa | 8769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8770 | return NULL; |
1d99702e RD |
8771 | if (_argo0) { |
8772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8775 | return NULL; |
8776 | } | |
8777 | } | |
cf694132 RD |
8778 | { |
8779 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8780 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 RD |
8781 | |
8782 | wxPy_END_ALLOW_THREADS; | |
8783 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
8784 | return _resultobj; |
8785 | } | |
8786 | ||
b1462dfa RD |
8787 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8788 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8789 | PyObject * _resultobj; |
b1462dfa RD |
8790 | wxMenuBar * _arg0; |
8791 | int _arg1; | |
8792 | wxString * _arg2; | |
1d99702e | 8793 | PyObject * _argo0 = 0; |
b1462dfa RD |
8794 | PyObject * _obj2 = 0; |
8795 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8796 | |
8797 | self = self; | |
b1462dfa | 8798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8799 | return NULL; |
1d99702e RD |
8800 | if (_argo0) { |
8801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8804 | return NULL; |
8805 | } | |
8806 | } | |
b1462dfa | 8807 | { |
185d7c3e RD |
8808 | #if PYTHON_API_VERSION >= 1009 |
8809 | char* tmpPtr; int tmpSize; | |
8810 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8811 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8812 | return NULL; |
8813 | } | |
8814 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8815 | return NULL; | |
8816 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8817 | #else | |
b1462dfa RD |
8818 | if (!PyString_Check(_obj2)) { |
8819 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8820 | return NULL; | |
8821 | } | |
185d7c3e RD |
8822 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8823 | #endif | |
b1462dfa | 8824 | } |
cf694132 RD |
8825 | { |
8826 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8827 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
8828 | |
8829 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8830 | } Py_INCREF(Py_None); |
8831 | _resultobj = Py_None; | |
8832 | { | |
8833 | if (_obj2) | |
8834 | delete _arg2; | |
8835 | } | |
8ab979d7 RD |
8836 | return _resultobj; |
8837 | } | |
8838 | ||
b1462dfa RD |
8839 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8840 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8841 | PyObject * _resultobj; |
b1462dfa RD |
8842 | wxString * _result; |
8843 | wxMenuBar * _arg0; | |
8844 | int _arg1; | |
1d99702e | 8845 | PyObject * _argo0 = 0; |
b1462dfa | 8846 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8847 | |
8848 | self = self; | |
b1462dfa | 8849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8850 | return NULL; |
1d99702e RD |
8851 | if (_argo0) { |
8852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
8855 | return NULL; | |
8856 | } | |
8857 | } | |
8858 | { | |
8859 | wxPy_BEGIN_ALLOW_THREADS; | |
8860 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
8861 | ||
8862 | wxPy_END_ALLOW_THREADS; | |
8863 | }{ | |
eec92d76 | 8864 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8865 | } |
8866 | { | |
8867 | delete _result; | |
8868 | } | |
8869 | return _resultobj; | |
8870 | } | |
8871 | ||
8872 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
8873 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8874 | PyObject * _resultobj; | |
8875 | wxMenuBar * _arg0; | |
8876 | int _arg1; | |
8877 | wxString * _arg2; | |
8878 | PyObject * _argo0 = 0; | |
8879 | PyObject * _obj2 = 0; | |
8880 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
8881 | ||
8882 | self = self; | |
8883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8884 | return NULL; | |
8885 | if (_argo0) { | |
8886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
8889 | return NULL; | |
8890 | } | |
8891 | } | |
8892 | { | |
185d7c3e RD |
8893 | #if PYTHON_API_VERSION >= 1009 |
8894 | char* tmpPtr; int tmpSize; | |
8895 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8896 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8897 | return NULL; |
8898 | } | |
8899 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8900 | return NULL; | |
8901 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8902 | #else | |
b1462dfa RD |
8903 | if (!PyString_Check(_obj2)) { |
8904 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8905 | return NULL; | |
8906 | } | |
185d7c3e RD |
8907 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8908 | #endif | |
b1462dfa RD |
8909 | } |
8910 | { | |
8911 | wxPy_BEGIN_ALLOW_THREADS; | |
8912 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
8913 | ||
8914 | wxPy_END_ALLOW_THREADS; | |
8915 | } Py_INCREF(Py_None); | |
8916 | _resultobj = Py_None; | |
8917 | { | |
8918 | if (_obj2) | |
8919 | delete _arg2; | |
8920 | } | |
8921 | return _resultobj; | |
8922 | } | |
8923 | ||
8924 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
8925 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8926 | PyObject * _resultobj; | |
8927 | wxString * _result; | |
8928 | wxMenuBar * _arg0; | |
8929 | int _arg1; | |
8930 | PyObject * _argo0 = 0; | |
8931 | char *_kwnames[] = { "self","id", NULL }; | |
8932 | ||
8933 | self = self; | |
8934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
8935 | return NULL; | |
8936 | if (_argo0) { | |
8937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8940 | return NULL; |
8941 | } | |
8942 | } | |
cf694132 RD |
8943 | { |
8944 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8945 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
8946 | |
8947 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8948 | }{ |
eec92d76 | 8949 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8950 | } |
8951 | { | |
8952 | delete _result; | |
8953 | } | |
8ab979d7 RD |
8954 | return _resultobj; |
8955 | } | |
8956 | ||
b1462dfa RD |
8957 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8958 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8959 | PyObject * _resultobj; |
b1462dfa RD |
8960 | wxMenuItem * _result; |
8961 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 8962 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
8963 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
8964 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
8965 | bool _arg4 = (bool ) FALSE; | |
8966 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 8967 | PyObject * _argo0 = 0; |
b1462dfa RD |
8968 | PyObject * _obj2 = 0; |
8969 | PyObject * _obj3 = 0; | |
8970 | int tempbool4 = (int) FALSE; | |
8971 | PyObject * _argo5 = 0; | |
8972 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
8973 | char _ptemp[128]; | |
8ab979d7 RD |
8974 | |
8975 | self = self; | |
b1462dfa | 8976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 8977 | return NULL; |
1d99702e RD |
8978 | if (_argo0) { |
8979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
8982 | return NULL; | |
8983 | } | |
8984 | } | |
8985 | if (_obj2) | |
8986 | { | |
185d7c3e RD |
8987 | #if PYTHON_API_VERSION >= 1009 |
8988 | char* tmpPtr; int tmpSize; | |
8989 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8990 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8991 | return NULL; |
8992 | } | |
8993 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8994 | return NULL; | |
8995 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8996 | #else | |
b1462dfa RD |
8997 | if (!PyString_Check(_obj2)) { |
8998 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8999 | return NULL; | |
9000 | } | |
185d7c3e RD |
9001 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9002 | #endif | |
b1462dfa RD |
9003 | } |
9004 | if (_obj3) | |
9005 | { | |
185d7c3e RD |
9006 | #if PYTHON_API_VERSION >= 1009 |
9007 | char* tmpPtr; int tmpSize; | |
9008 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 9009 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9010 | return NULL; |
9011 | } | |
9012 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9013 | return NULL; | |
9014 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9015 | #else | |
b1462dfa RD |
9016 | if (!PyString_Check(_obj3)) { |
9017 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9018 | return NULL; | |
9019 | } | |
185d7c3e RD |
9020 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
9021 | #endif | |
b1462dfa RD |
9022 | } |
9023 | _arg4 = (bool ) tempbool4; | |
9024 | if (_argo5) { | |
9025 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9026 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
9028 | return NULL; |
9029 | } | |
9030 | } | |
cf694132 RD |
9031 | { |
9032 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9033 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 RD |
9034 | |
9035 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9036 | } if (_result) { |
9037 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9038 | _resultobj = Py_BuildValue("s",_ptemp); | |
9039 | } else { | |
9040 | Py_INCREF(Py_None); | |
9041 | _resultobj = Py_None; | |
9042 | } | |
9043 | { | |
9044 | if (_obj2) | |
9045 | delete _arg2; | |
9046 | } | |
9047 | { | |
9048 | if (_obj3) | |
9049 | delete _arg3; | |
9050 | } | |
8ab979d7 RD |
9051 | return _resultobj; |
9052 | } | |
9053 | ||
b1462dfa RD |
9054 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
9055 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9056 | PyObject * _resultobj; |
b1462dfa | 9057 | wxMenu * _result; |
8ab979d7 | 9058 | wxMenuItem * _arg0; |
1d99702e | 9059 | PyObject * _argo0 = 0; |
efc5f224 | 9060 | char *_kwnames[] = { "self", NULL }; |
b1462dfa | 9061 | char _ptemp[128]; |
8ab979d7 RD |
9062 | |
9063 | self = self; | |
b1462dfa | 9064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 9065 | return NULL; |
1d99702e RD |
9066 | if (_argo0) { |
9067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9070 | return NULL; |
9071 | } | |
9072 | } | |
cf694132 RD |
9073 | { |
9074 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9075 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 RD |
9076 | |
9077 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9078 | } if (_result) { |
9079 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
9080 | _resultobj = Py_BuildValue("s",_ptemp); | |
9081 | } else { | |
9082 | Py_INCREF(Py_None); | |
9083 | _resultobj = Py_None; | |
9084 | } | |
8ab979d7 RD |
9085 | return _resultobj; |
9086 | } | |
9087 | ||
2abc0a0f RD |
9088 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
9089 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9090 | PyObject * _resultobj; |
9091 | wxMenuItem * _arg0; | |
2abc0a0f | 9092 | int _arg1; |
1d99702e | 9093 | PyObject * _argo0 = 0; |
2abc0a0f | 9094 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9095 | |
9096 | self = self; | |
2abc0a0f | 9097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9098 | return NULL; |
1d99702e RD |
9099 | if (_argo0) { |
9100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 9102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9103 | return NULL; |
9104 | } | |
9105 | } | |
cf694132 RD |
9106 | { |
9107 | wxPy_BEGIN_ALLOW_THREADS; | |
2abc0a0f | 9108 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 RD |
9109 | |
9110 | wxPy_END_ALLOW_THREADS; | |
9111 | } Py_INCREF(Py_None); | |
8ab979d7 | 9112 | _resultobj = Py_None; |
8ab979d7 RD |
9113 | return _resultobj; |
9114 | } | |
9115 | ||
b1462dfa RD |
9116 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
9117 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9118 | PyObject * _resultobj; |
b1462dfa | 9119 | int _result; |
8ab979d7 | 9120 | wxMenuItem * _arg0; |
1d99702e | 9121 | PyObject * _argo0 = 0; |
efc5f224 | 9122 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9123 | |
9124 | self = self; | |
b1462dfa | 9125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 9126 | return NULL; |
1d99702e RD |
9127 | if (_argo0) { |
9128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9131 | return NULL; |
9132 | } | |
9133 | } | |
8ab979d7 | 9134 | { |
cf694132 | 9135 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9136 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 RD |
9137 | |
9138 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9139 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9140 | return _resultobj; |
9141 | } | |
9142 | ||
b1462dfa RD |
9143 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
9144 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9145 | PyObject * _resultobj; |
b1462dfa | 9146 | bool _result; |
8ab979d7 | 9147 | wxMenuItem * _arg0; |
1d99702e | 9148 | PyObject * _argo0 = 0; |
efc5f224 | 9149 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9150 | |
9151 | self = self; | |
b1462dfa | 9152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 9153 | return NULL; |
1d99702e RD |
9154 | if (_argo0) { |
9155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9158 | return NULL; |
9159 | } | |
9160 | } | |
8ab979d7 | 9161 | { |
cf694132 | 9162 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9163 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 RD |
9164 | |
9165 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9166 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9167 | return _resultobj; |
9168 | } | |
9169 | ||
b1462dfa RD |
9170 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
9171 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9172 | PyObject * _resultobj; |
9173 | wxMenuItem * _arg0; | |
9174 | wxString * _arg1; | |
1d99702e | 9175 | PyObject * _argo0 = 0; |
8ab979d7 | 9176 | PyObject * _obj1 = 0; |
b1462dfa | 9177 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
9178 | |
9179 | self = self; | |
b1462dfa | 9180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9181 | return NULL; |
1d99702e RD |
9182 | if (_argo0) { |
9183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9186 | return NULL; |
9187 | } | |
9188 | } | |
9189 | { | |
185d7c3e RD |
9190 | #if PYTHON_API_VERSION >= 1009 |
9191 | char* tmpPtr; int tmpSize; | |
9192 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9193 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9194 | return NULL; |
9195 | } | |
9196 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9197 | return NULL; | |
9198 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9199 | #else | |
8ab979d7 RD |
9200 | if (!PyString_Check(_obj1)) { |
9201 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9202 | return NULL; | |
9203 | } | |
185d7c3e RD |
9204 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9205 | #endif | |
8ab979d7 | 9206 | } |
cf694132 RD |
9207 | { |
9208 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9209 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 RD |
9210 | |
9211 | wxPy_END_ALLOW_THREADS; | |
9212 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
9213 | _resultobj = Py_None; |
9214 | { | |
9215 | if (_obj1) | |
9216 | delete _arg1; | |
9217 | } | |
9218 | return _resultobj; | |
9219 | } | |
9220 | ||
b1462dfa RD |
9221 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
9222 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9223 | PyObject * _resultobj; |
b1462dfa | 9224 | wxString * _result; |
8ab979d7 | 9225 | wxMenuItem * _arg0; |
1d99702e | 9226 | PyObject * _argo0 = 0; |
b1462dfa | 9227 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9228 | |
9229 | self = self; | |
b1462dfa | 9230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 9231 | return NULL; |
1d99702e RD |
9232 | if (_argo0) { |
9233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9236 | return NULL; |
9237 | } | |
9238 | } | |
cf694132 RD |
9239 | { |
9240 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9241 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 RD |
9242 | |
9243 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9244 | }{ |
eec92d76 | 9245 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 9246 | } |
cf694132 | 9247 | { |
b1462dfa RD |
9248 | delete _result; |
9249 | } | |
cf694132 RD |
9250 | return _resultobj; |
9251 | } | |
9252 | ||
b1462dfa RD |
9253 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
9254 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9255 | PyObject * _resultobj; |
b1462dfa | 9256 | wxString * _result; |
cf694132 | 9257 | wxMenuItem * _arg0; |
1d99702e | 9258 | PyObject * _argo0 = 0; |
efc5f224 | 9259 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9260 | |
9261 | self = self; | |
b1462dfa | 9262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 9263 | return NULL; |
1d99702e RD |
9264 | if (_argo0) { |
9265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9268 | return NULL; |
9269 | } | |
9270 | } | |
9271 | { | |
9272 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9273 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
9274 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9275 | |
9276 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9277 | }{ |
eec92d76 | 9278 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 9279 | } |
cf694132 RD |
9280 | return _resultobj; |
9281 | } | |
9282 | ||
b1462dfa RD |
9283 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9284 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9285 | PyObject * _resultobj; |
cf694132 | 9286 | wxMenuItem * _arg0; |
b1462dfa | 9287 | bool _arg1; |
1d99702e | 9288 | PyObject * _argo0 = 0; |
b1462dfa RD |
9289 | int tempbool1; |
9290 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9291 | |
9292 | self = self; | |
b1462dfa | 9293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9294 | return NULL; |
1d99702e RD |
9295 | if (_argo0) { |
9296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9299 | return NULL; |
9300 | } | |
9301 | } | |
b1462dfa | 9302 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9303 | { |
9304 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9305 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 RD |
9306 | |
9307 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9308 | } Py_INCREF(Py_None); |
9309 | _resultobj = Py_None; | |
cf694132 RD |
9310 | return _resultobj; |
9311 | } | |
9312 | ||
b1462dfa RD |
9313 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9314 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9315 | PyObject * _resultobj; |
b1462dfa | 9316 | bool _result; |
cf694132 | 9317 | wxMenuItem * _arg0; |
1d99702e | 9318 | PyObject * _argo0 = 0; |
efc5f224 | 9319 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9320 | |
9321 | self = self; | |
b1462dfa | 9322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9323 | return NULL; |
1d99702e RD |
9324 | if (_argo0) { |
9325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9328 | return NULL; |
9329 | } | |
9330 | } | |
9331 | { | |
9332 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9333 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 RD |
9334 | |
9335 | wxPy_END_ALLOW_THREADS; | |
9336 | } _resultobj = Py_BuildValue("i",_result); | |
9337 | return _resultobj; | |
9338 | } | |
9339 | ||
b1462dfa RD |
9340 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9341 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9342 | PyObject * _resultobj; |
b1462dfa | 9343 | bool _result; |
cf694132 | 9344 | wxMenuItem * _arg0; |
1d99702e | 9345 | PyObject * _argo0 = 0; |
efc5f224 | 9346 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9347 | |
9348 | self = self; | |
b1462dfa | 9349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9350 | return NULL; |
1d99702e RD |
9351 | if (_argo0) { |
9352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9355 | return NULL; |
9356 | } | |
9357 | } | |
9358 | { | |
9359 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9360 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 RD |
9361 | |
9362 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9363 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9364 | return _resultobj; |
9365 | } | |
9366 | ||
b1462dfa RD |
9367 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9368 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9369 | PyObject * _resultobj; |
9370 | wxMenuItem * _arg0; | |
b1462dfa | 9371 | wxMenu * _arg1; |
1d99702e RD |
9372 | PyObject * _argo0 = 0; |
9373 | PyObject * _argo1 = 0; | |
b1462dfa | 9374 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9375 | |
9376 | self = self; | |
b1462dfa | 9377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9378 | return NULL; |
1d99702e RD |
9379 | if (_argo0) { |
9380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9383 | return NULL; |
9384 | } | |
9385 | } | |
1d99702e RD |
9386 | if (_argo1) { |
9387 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9388 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9390 | return NULL; |
9391 | } | |
9392 | } | |
9393 | { | |
9394 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9395 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 RD |
9396 | |
9397 | wxPy_END_ALLOW_THREADS; | |
9398 | } Py_INCREF(Py_None); | |
9399 | _resultobj = Py_None; | |
9400 | return _resultobj; | |
9401 | } | |
9402 | ||
b1462dfa RD |
9403 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9404 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9405 | PyObject * _resultobj; |
b1462dfa | 9406 | wxMenu * _result; |
cf694132 | 9407 | wxMenuItem * _arg0; |
1d99702e | 9408 | PyObject * _argo0 = 0; |
b1462dfa RD |
9409 | char *_kwnames[] = { "self", NULL }; |
9410 | char _ptemp[128]; | |
cf694132 RD |
9411 | |
9412 | self = self; | |
b1462dfa | 9413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 9414 | return NULL; |
1d99702e RD |
9415 | if (_argo0) { |
9416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9419 | return NULL; |
9420 | } | |
9421 | } | |
b1462dfa RD |
9422 | { |
9423 | wxPy_BEGIN_ALLOW_THREADS; | |
9424 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
9425 | ||
9426 | wxPy_END_ALLOW_THREADS; | |
9427 | } if (_result) { | |
9428 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
9429 | _resultobj = Py_BuildValue("s",_ptemp); | |
9430 | } else { | |
9431 | Py_INCREF(Py_None); | |
9432 | _resultobj = Py_None; | |
cf694132 | 9433 | } |
b1462dfa RD |
9434 | return _resultobj; |
9435 | } | |
9436 | ||
9437 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9438 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9439 | PyObject * _resultobj; | |
9440 | wxMenuItem * _arg0; | |
9441 | bool _arg1 = (bool ) TRUE; | |
9442 | PyObject * _argo0 = 0; | |
9443 | int tempbool1 = (int) TRUE; | |
9444 | char *_kwnames[] = { "self","enable", NULL }; | |
9445 | ||
9446 | self = self; | |
9447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9448 | return NULL; | |
9449 | if (_argo0) { | |
9450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
9453 | return NULL; |
9454 | } | |
9455 | } | |
b1462dfa | 9456 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9457 | { |
9458 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9459 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 RD |
9460 | |
9461 | wxPy_END_ALLOW_THREADS; | |
9462 | } Py_INCREF(Py_None); | |
9463 | _resultobj = Py_None; | |
9464 | return _resultobj; | |
9465 | } | |
9466 | ||
b1462dfa RD |
9467 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9468 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9469 | PyObject * _resultobj; |
b1462dfa | 9470 | bool _result; |
cf694132 | 9471 | wxMenuItem * _arg0; |
1d99702e | 9472 | PyObject * _argo0 = 0; |
b1462dfa | 9473 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9474 | |
9475 | self = self; | |
b1462dfa | 9476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9477 | return NULL; |
1d99702e RD |
9478 | if (_argo0) { |
9479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
9482 | return NULL; |
9483 | } | |
9484 | } | |
9485 | { | |
9486 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9487 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 RD |
9488 | |
9489 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9490 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9491 | return _resultobj; |
9492 | } | |
9493 | ||
b1462dfa RD |
9494 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
9495 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9496 | PyObject * _resultobj; |
9497 | wxMenuItem * _arg0; | |
b1462dfa | 9498 | bool _arg1 = (bool ) TRUE; |
1d99702e | 9499 | PyObject * _argo0 = 0; |
b1462dfa RD |
9500 | int tempbool1 = (int) TRUE; |
9501 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
9502 | |
9503 | self = self; | |
b1462dfa | 9504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9505 | return NULL; |
1d99702e RD |
9506 | if (_argo0) { |
9507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
9510 | return NULL; |
9511 | } | |
9512 | } | |
b1462dfa | 9513 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9514 | { |
9515 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9516 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 RD |
9517 | |
9518 | wxPy_END_ALLOW_THREADS; | |
9519 | } Py_INCREF(Py_None); | |
9520 | _resultobj = Py_None; | |
9521 | return _resultobj; | |
9522 | } | |
9523 | ||
b1462dfa RD |
9524 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
9525 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9526 | PyObject * _resultobj; |
b1462dfa | 9527 | bool _result; |
2abc0a0f | 9528 | wxMenuItem * _arg0; |
2abc0a0f | 9529 | PyObject * _argo0 = 0; |
b1462dfa | 9530 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
9531 | |
9532 | self = self; | |
b1462dfa | 9533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
9534 | return NULL; |
9535 | if (_argo0) { | |
9536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9539 | return NULL; |
9540 | } | |
9541 | } | |
2abc0a0f RD |
9542 | { |
9543 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9544 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f RD |
9545 | |
9546 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9547 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
9548 | return _resultobj; |
9549 | } | |
9550 | ||
b1462dfa RD |
9551 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
9552 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9553 | PyObject * _resultobj; |
2abc0a0f RD |
9554 | wxMenuItem * _arg0; |
9555 | PyObject * _argo0 = 0; | |
9556 | char *_kwnames[] = { "self", NULL }; | |
9557 | ||
9558 | self = self; | |
b1462dfa | 9559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
9560 | return NULL; |
9561 | if (_argo0) { | |
9562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9565 | return NULL; |
9566 | } | |
9567 | } | |
9568 | { | |
9569 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9570 | wxMenuItem_Toggle(_arg0); |
2abc0a0f RD |
9571 | |
9572 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9573 | } Py_INCREF(Py_None); |
9574 | _resultobj = Py_None; | |
2abc0a0f RD |
9575 | return _resultobj; |
9576 | } | |
9577 | ||
b1462dfa RD |
9578 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
9579 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9580 | PyObject * _resultobj; |
9581 | wxMenuItem * _arg0; | |
b1462dfa | 9582 | wxString * _arg1; |
1d99702e | 9583 | PyObject * _argo0 = 0; |
b1462dfa RD |
9584 | PyObject * _obj1 = 0; |
9585 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
9586 | |
9587 | self = self; | |
b1462dfa | 9588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 9589 | return NULL; |
1d99702e RD |
9590 | if (_argo0) { |
9591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
9594 | return NULL; |
9595 | } | |
9596 | } | |
b1462dfa | 9597 | { |
185d7c3e RD |
9598 | #if PYTHON_API_VERSION >= 1009 |
9599 | char* tmpPtr; int tmpSize; | |
9600 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9601 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9602 | return NULL; |
9603 | } | |
9604 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9605 | return NULL; | |
9606 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9607 | #else | |
b1462dfa RD |
9608 | if (!PyString_Check(_obj1)) { |
9609 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 9610 | return NULL; |
cf694132 | 9611 | } |
185d7c3e RD |
9612 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9613 | #endif | |
b1462dfa | 9614 | } |
cf694132 RD |
9615 | { |
9616 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9617 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 RD |
9618 | |
9619 | wxPy_END_ALLOW_THREADS; | |
9620 | } Py_INCREF(Py_None); | |
8ab979d7 | 9621 | _resultobj = Py_None; |
b1462dfa RD |
9622 | { |
9623 | if (_obj1) | |
9624 | delete _arg1; | |
9625 | } | |
8ab979d7 RD |
9626 | return _resultobj; |
9627 | } | |
9628 | ||
b1462dfa RD |
9629 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
9630 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 9631 | PyObject * _resultobj; |
b1462dfa | 9632 | wxString * _result; |
be4d9c1f | 9633 | wxMenuItem * _arg0; |
1d99702e | 9634 | PyObject * _argo0 = 0; |
efc5f224 | 9635 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
9636 | |
9637 | self = self; | |
b1462dfa | 9638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 9639 | return NULL; |
1d99702e RD |
9640 | if (_argo0) { |
9641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
9644 | return NULL; |
9645 | } | |
9646 | } | |
cf694132 RD |
9647 | { |
9648 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9649 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
9650 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9651 | |
9652 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9653 | }{ |
eec92d76 | 9654 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 9655 | } |
be4d9c1f RD |
9656 | return _resultobj; |
9657 | } | |
9658 | ||
b1462dfa RD |
9659 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
9660 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9661 | PyObject * _resultobj; |
b1462dfa | 9662 | wxAcceleratorEntry * _result; |
2abc0a0f | 9663 | wxMenuItem * _arg0; |
2abc0a0f | 9664 | PyObject * _argo0 = 0; |
b1462dfa RD |
9665 | char *_kwnames[] = { "self", NULL }; |
9666 | char _ptemp[128]; | |
2abc0a0f RD |
9667 | |
9668 | self = self; | |
b1462dfa | 9669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
9670 | return NULL; |
9671 | if (_argo0) { | |
9672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9675 | return NULL; |
9676 | } | |
9677 | } | |
2abc0a0f RD |
9678 | { |
9679 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9680 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f RD |
9681 | |
9682 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9683 | } if (_result) { |
9684 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9685 | _resultobj = Py_BuildValue("s",_ptemp); | |
9686 | } else { | |
9687 | Py_INCREF(Py_None); | |
9688 | _resultobj = Py_None; | |
9689 | } | |
2abc0a0f RD |
9690 | return _resultobj; |
9691 | } | |
9692 | ||
b1462dfa RD |
9693 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9694 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9695 | PyObject * _resultobj; |
9696 | wxMenuItem * _arg0; | |
b1462dfa | 9697 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9698 | PyObject * _argo0 = 0; |
9699 | PyObject * _argo1 = 0; | |
b1462dfa | 9700 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9701 | |
9702 | self = self; | |
b1462dfa | 9703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9704 | return NULL; |
9705 | if (_argo0) { | |
9706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9709 | return NULL; |
9710 | } | |
9711 | } | |
9712 | if (_argo1) { | |
9713 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9714 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
9715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
9716 | return NULL; |
9717 | } | |
9718 | } | |
9719 | { | |
9720 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9721 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f RD |
9722 | |
9723 | wxPy_END_ALLOW_THREADS; | |
9724 | } Py_INCREF(Py_None); | |
9725 | _resultobj = Py_None; | |
9726 | return _resultobj; | |
9727 | } | |
9728 | ||
1b62f00d RD |
9729 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9730 | PyObject * _resultobj; | |
9731 | wxString * _result; | |
9732 | wxString * _arg0; | |
9733 | PyObject * _obj0 = 0; | |
9734 | char *_kwnames[] = { "text", NULL }; | |
9735 | ||
9736 | self = self; | |
9737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
9738 | return NULL; | |
9739 | { | |
9740 | #if PYTHON_API_VERSION >= 1009 | |
9741 | char* tmpPtr; int tmpSize; | |
9742 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 9743 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
9744 | return NULL; |
9745 | } | |
9746 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9747 | return NULL; | |
9748 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9749 | #else | |
9750 | if (!PyString_Check(_obj0)) { | |
9751 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9752 | return NULL; | |
9753 | } | |
9754 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9755 | #endif | |
9756 | } | |
9757 | { | |
9758 | wxPy_BEGIN_ALLOW_THREADS; | |
9759 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); | |
9760 | ||
9761 | wxPy_END_ALLOW_THREADS; | |
9762 | }{ | |
9763 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9764 | } | |
9765 | { | |
9766 | if (_obj0) | |
9767 | delete _arg0; | |
9768 | } | |
9769 | { | |
9770 | delete _result; | |
9771 | } | |
9772 | return _resultobj; | |
9773 | } | |
9774 | ||
f3d9dc1d RD |
9775 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
9776 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9777 | PyObject * _resultobj; | |
9778 | wxMenuItem * _arg0; | |
9779 | wxFont * _arg1; | |
9780 | PyObject * _argo0 = 0; | |
9781 | PyObject * _argo1 = 0; | |
9782 | char *_kwnames[] = { "self","font", NULL }; | |
9783 | ||
9784 | self = self; | |
9785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
9786 | return NULL; | |
9787 | if (_argo0) { | |
9788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p."); | |
9791 | return NULL; | |
9792 | } | |
9793 | } | |
9794 | if (_argo1) { | |
9795 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9796 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
9797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); | |
9798 | return NULL; | |
9799 | } | |
9800 | } | |
9801 | { | |
9802 | wxPy_BEGIN_ALLOW_THREADS; | |
9803 | wxMenuItem_SetFont(_arg0,*_arg1); | |
9804 | ||
9805 | wxPy_END_ALLOW_THREADS; | |
9806 | } Py_INCREF(Py_None); | |
9807 | _resultobj = Py_None; | |
9808 | return _resultobj; | |
9809 | } | |
9810 | ||
9811 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
9812 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9813 | PyObject * _resultobj; | |
9814 | wxFont * _result; | |
9815 | wxMenuItem * _arg0; | |
9816 | PyObject * _argo0 = 0; | |
9817 | char *_kwnames[] = { "self", NULL }; | |
9818 | char _ptemp[128]; | |
9819 | ||
9820 | self = self; | |
9821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0)) | |
9822 | return NULL; | |
9823 | if (_argo0) { | |
9824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p."); | |
9827 | return NULL; | |
9828 | } | |
9829 | } | |
9830 | { | |
9831 | wxPy_BEGIN_ALLOW_THREADS; | |
9832 | wxFont & _result_ref = wxMenuItem_GetFont(_arg0); | |
9833 | _result = (wxFont *) &_result_ref; | |
9834 | ||
9835 | wxPy_END_ALLOW_THREADS; | |
9836 | } if (_result) { | |
9837 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
9838 | _resultobj = Py_BuildValue("s",_ptemp); | |
9839 | } else { | |
9840 | Py_INCREF(Py_None); | |
9841 | _resultobj = Py_None; | |
9842 | } | |
9843 | return _resultobj; | |
9844 | } | |
9845 | ||
9846 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
9847 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9848 | PyObject * _resultobj; | |
9849 | wxMenuItem * _arg0; | |
9850 | wxColour * _arg1; | |
9851 | PyObject * _argo0 = 0; | |
9852 | wxColour temp; | |
9853 | PyObject * _obj1 = 0; | |
9854 | char *_kwnames[] = { "self","colText", NULL }; | |
9855 | ||
9856 | self = self; | |
9857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
9858 | return NULL; | |
9859 | if (_argo0) { | |
9860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
9863 | return NULL; | |
9864 | } | |
9865 | } | |
9866 | { | |
9867 | _arg1 = &temp; | |
9868 | if (! wxColour_helper(_obj1, &_arg1)) | |
9869 | return NULL; | |
9870 | } | |
9871 | { | |
9872 | wxPy_BEGIN_ALLOW_THREADS; | |
9873 | wxMenuItem_SetTextColour(_arg0,*_arg1); | |
9874 | ||
9875 | wxPy_END_ALLOW_THREADS; | |
9876 | } Py_INCREF(Py_None); | |
9877 | _resultobj = Py_None; | |
9878 | return _resultobj; | |
9879 | } | |
9880 | ||
9881 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
9882 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9883 | PyObject * _resultobj; | |
9884 | wxColour * _result; | |
9885 | wxMenuItem * _arg0; | |
9886 | PyObject * _argo0 = 0; | |
9887 | char *_kwnames[] = { "self", NULL }; | |
9888 | char _ptemp[128]; | |
9889 | ||
9890 | self = self; | |
9891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
9892 | return NULL; | |
9893 | if (_argo0) { | |
9894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p."); | |
9897 | return NULL; | |
9898 | } | |
9899 | } | |
9900 | { | |
9901 | wxPy_BEGIN_ALLOW_THREADS; | |
9902 | wxColour & _result_ref = wxMenuItem_GetTextColour(_arg0); | |
9903 | _result = (wxColour *) &_result_ref; | |
9904 | ||
9905 | wxPy_END_ALLOW_THREADS; | |
9906 | } if (_result) { | |
9907 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
9908 | _resultobj = Py_BuildValue("s",_ptemp); | |
9909 | } else { | |
9910 | Py_INCREF(Py_None); | |
9911 | _resultobj = Py_None; | |
9912 | } | |
9913 | return _resultobj; | |
9914 | } | |
9915 | ||
9916 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
9917 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9918 | PyObject * _resultobj; | |
9919 | wxMenuItem * _arg0; | |
9920 | wxColour * _arg1; | |
9921 | PyObject * _argo0 = 0; | |
9922 | wxColour temp; | |
9923 | PyObject * _obj1 = 0; | |
9924 | char *_kwnames[] = { "self","colBack", NULL }; | |
9925 | ||
9926 | self = self; | |
9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
9928 | return NULL; | |
9929 | if (_argo0) { | |
9930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
9933 | return NULL; | |
9934 | } | |
9935 | } | |
9936 | { | |
9937 | _arg1 = &temp; | |
9938 | if (! wxColour_helper(_obj1, &_arg1)) | |
9939 | return NULL; | |
9940 | } | |
9941 | { | |
9942 | wxPy_BEGIN_ALLOW_THREADS; | |
9943 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); | |
9944 | ||
9945 | wxPy_END_ALLOW_THREADS; | |
9946 | } Py_INCREF(Py_None); | |
9947 | _resultobj = Py_None; | |
9948 | return _resultobj; | |
9949 | } | |
9950 | ||
9951 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
9952 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9953 | PyObject * _resultobj; | |
9954 | wxColour * _result; | |
9955 | wxMenuItem * _arg0; | |
9956 | PyObject * _argo0 = 0; | |
9957 | char *_kwnames[] = { "self", NULL }; | |
9958 | char _ptemp[128]; | |
9959 | ||
9960 | self = self; | |
9961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
9962 | return NULL; | |
9963 | if (_argo0) { | |
9964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
9967 | return NULL; | |
9968 | } | |
9969 | } | |
9970 | { | |
9971 | wxPy_BEGIN_ALLOW_THREADS; | |
9972 | wxColour & _result_ref = wxMenuItem_GetBackgroundColour(_arg0); | |
9973 | _result = (wxColour *) &_result_ref; | |
9974 | ||
9975 | wxPy_END_ALLOW_THREADS; | |
9976 | } if (_result) { | |
9977 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
9978 | _resultobj = Py_BuildValue("s",_ptemp); | |
9979 | } else { | |
9980 | Py_INCREF(Py_None); | |
9981 | _resultobj = Py_None; | |
9982 | } | |
9983 | return _resultobj; | |
9984 | } | |
9985 | ||
9986 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
9987 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9988 | PyObject * _resultobj; | |
9989 | wxMenuItem * _arg0; | |
9990 | wxBitmap * _arg1; | |
9991 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
9992 | PyObject * _argo0 = 0; | |
9993 | PyObject * _argo1 = 0; | |
9994 | PyObject * _argo2 = 0; | |
9995 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
9996 | ||
9997 | self = self; | |
9998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9999 | return NULL; | |
10000 | if (_argo0) { | |
10001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
10004 | return NULL; | |
10005 | } | |
10006 | } | |
10007 | if (_argo1) { | |
10008 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10009 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10011 | return NULL; | |
10012 | } | |
10013 | } | |
10014 | if (_argo2) { | |
10015 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10016 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10018 | return NULL; | |
10019 | } | |
10020 | } | |
10021 | { | |
10022 | wxPy_BEGIN_ALLOW_THREADS; | |
10023 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); | |
10024 | ||
10025 | wxPy_END_ALLOW_THREADS; | |
10026 | } Py_INCREF(Py_None); | |
10027 | _resultobj = Py_None; | |
10028 | return _resultobj; | |
10029 | } | |
10030 | ||
10031 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
10032 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10033 | PyObject * _resultobj; | |
10034 | wxMenuItem * _arg0; | |
10035 | wxBitmap * _arg1; | |
10036 | PyObject * _argo0 = 0; | |
10037 | PyObject * _argo1 = 0; | |
10038 | char *_kwnames[] = { "self","bmpChecked", NULL }; | |
10039 | ||
10040 | self = self; | |
10041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
10042 | return NULL; | |
10043 | if (_argo0) { | |
10044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
10047 | return NULL; | |
10048 | } | |
10049 | } | |
10050 | if (_argo1) { | |
10051 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10052 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); | |
10054 | return NULL; | |
10055 | } | |
10056 | } | |
10057 | { | |
10058 | wxPy_BEGIN_ALLOW_THREADS; | |
10059 | wxMenuItem_SetBitmap(_arg0,*_arg1); | |
10060 | ||
10061 | wxPy_END_ALLOW_THREADS; | |
10062 | } Py_INCREF(Py_None); | |
10063 | _resultobj = Py_None; | |
10064 | return _resultobj; | |
10065 | } | |
10066 | ||
10067 | #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0)) | |
10068 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10069 | PyObject * _resultobj; | |
10070 | wxBitmap * _result; | |
10071 | wxMenuItem * _arg0; | |
10072 | bool _arg1 = (bool ) TRUE; | |
10073 | PyObject * _argo0 = 0; | |
10074 | int tempbool1 = (int) TRUE; | |
10075 | char *_kwnames[] = { "self","bChecked", NULL }; | |
10076 | char _ptemp[128]; | |
10077 | ||
10078 | self = self; | |
10079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1)) | |
10080 | return NULL; | |
10081 | if (_argo0) { | |
10082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
10085 | return NULL; | |
10086 | } | |
10087 | } | |
10088 | _arg1 = (bool ) tempbool1; | |
10089 | { | |
10090 | wxPy_BEGIN_ALLOW_THREADS; | |
10091 | const wxBitmap & _result_ref = wxMenuItem_GetBitmap(_arg0,_arg1); | |
10092 | _result = (wxBitmap *) &_result_ref; | |
10093 | ||
10094 | wxPy_END_ALLOW_THREADS; | |
10095 | } if (_result) { | |
10096 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
10097 | _resultobj = Py_BuildValue("s",_ptemp); | |
10098 | } else { | |
10099 | Py_INCREF(Py_None); | |
10100 | _resultobj = Py_None; | |
10101 | } | |
10102 | return _resultobj; | |
10103 | } | |
10104 | ||
10105 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) | |
10106 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10107 | PyObject * _resultobj; | |
10108 | wxMenuItem * _arg0; | |
10109 | int _arg1; | |
10110 | PyObject * _argo0 = 0; | |
10111 | char *_kwnames[] = { "self","nWidth", NULL }; | |
10112 | ||
10113 | self = self; | |
10114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
10115 | return NULL; | |
10116 | if (_argo0) { | |
10117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
10120 | return NULL; | |
10121 | } | |
10122 | } | |
10123 | { | |
10124 | wxPy_BEGIN_ALLOW_THREADS; | |
10125 | wxMenuItem_SetMarginWidth(_arg0,_arg1); | |
10126 | ||
10127 | wxPy_END_ALLOW_THREADS; | |
10128 | } Py_INCREF(Py_None); | |
10129 | _resultobj = Py_None; | |
10130 | return _resultobj; | |
10131 | } | |
10132 | ||
10133 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
10134 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10135 | PyObject * _resultobj; | |
10136 | int _result; | |
10137 | wxMenuItem * _arg0; | |
10138 | PyObject * _argo0 = 0; | |
10139 | char *_kwnames[] = { "self", NULL }; | |
10140 | ||
10141 | self = self; | |
10142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
10143 | return NULL; | |
10144 | if (_argo0) { | |
10145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
10148 | return NULL; | |
10149 | } | |
10150 | } | |
10151 | { | |
10152 | wxPy_BEGIN_ALLOW_THREADS; | |
10153 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); | |
10154 | ||
10155 | wxPy_END_ALLOW_THREADS; | |
10156 | } _resultobj = Py_BuildValue("i",_result); | |
10157 | return _resultobj; | |
10158 | } | |
10159 | ||
10160 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10161 | PyObject * _resultobj; | |
10162 | int _result; | |
10163 | char *_kwnames[] = { NULL }; | |
10164 | ||
10165 | self = self; | |
10166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
10167 | return NULL; | |
10168 | { | |
10169 | wxPy_BEGIN_ALLOW_THREADS; | |
10170 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); | |
10171 | ||
10172 | wxPy_END_ALLOW_THREADS; | |
10173 | } _resultobj = Py_BuildValue("i",_result); | |
10174 | return _resultobj; | |
10175 | } | |
10176 | ||
10177 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
10178 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10179 | PyObject * _resultobj; | |
10180 | bool _result; | |
10181 | wxMenuItem * _arg0; | |
10182 | PyObject * _argo0 = 0; | |
10183 | char *_kwnames[] = { "self", NULL }; | |
10184 | ||
10185 | self = self; | |
10186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
10187 | return NULL; | |
10188 | if (_argo0) { | |
10189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
10192 | return NULL; | |
10193 | } | |
10194 | } | |
10195 | { | |
10196 | wxPy_BEGIN_ALLOW_THREADS; | |
10197 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); | |
10198 | ||
10199 | wxPy_END_ALLOW_THREADS; | |
10200 | } _resultobj = Py_BuildValue("i",_result); | |
10201 | return _resultobj; | |
10202 | } | |
10203 | ||
10204 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
10205 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10206 | PyObject * _resultobj; | |
10207 | wxMenuItem * _arg0; | |
10208 | PyObject * _argo0 = 0; | |
10209 | char *_kwnames[] = { "self", NULL }; | |
10210 | ||
10211 | self = self; | |
10212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
10213 | return NULL; | |
10214 | if (_argo0) { | |
10215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
10218 | return NULL; | |
10219 | } | |
10220 | } | |
10221 | { | |
10222 | wxPy_BEGIN_ALLOW_THREADS; | |
10223 | wxMenuItem_ResetOwnerDrawn(_arg0); | |
10224 | ||
10225 | wxPy_END_ALLOW_THREADS; | |
10226 | } Py_INCREF(Py_None); | |
10227 | _resultobj = Py_None; | |
10228 | return _resultobj; | |
10229 | } | |
10230 | ||
8ab979d7 | 10231 | static PyMethodDef windowscMethods[] = { |
f3d9dc1d RD |
10232 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, |
10233 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
10234 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10235 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10236 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10237 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10238 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10239 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
10240 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10241 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10242 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10243 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10244 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10245 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10246 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10247 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
10248 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10249 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10250 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10251 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10252 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10253 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10254 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10255 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10256 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10257 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 10258 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10259 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10260 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
10261 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10262 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10263 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10264 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10265 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
10266 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10267 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10268 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10269 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10270 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
10271 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10272 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
10273 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10274 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10275 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10276 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
10277 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10278 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10279 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10280 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10281 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
10282 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10283 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10284 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10285 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
10286 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10287 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
10288 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10289 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
10290 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
10291 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
10292 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10293 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10294 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10295 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10296 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10297 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
10298 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10299 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
10300 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10301 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10302 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
10303 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10304 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
10305 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10306 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10307 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10308 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10309 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10310 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
10311 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10312 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
10313 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 10314 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10315 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10316 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10317 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10318 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10319 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
10320 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
10321 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10322 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
10323 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
10324 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
10325 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
d1679124 RD |
10326 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10327 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
10328 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
10329 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
10330 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
10331 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10332 | { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS }, |
4c9993c3 | 10333 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10334 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10335 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10336 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10337 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
10338 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
10339 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10340 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10341 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10342 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10343 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10344 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
10345 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
f3d9dc1d RD |
10346 | { "wxDialog_CreateButtonSizer", (PyCFunction) _wrap_wxDialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, |
10347 | { "wxDialog_CreateTextSizer", (PyCFunction) _wrap_wxDialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10348 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, |
10349 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
10350 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
10351 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
10352 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10353 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
10354 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
10355 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
10356 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
10357 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10358 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
10359 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10360 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
10361 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10362 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10363 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10364 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10365 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
10366 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10367 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10368 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
10369 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10370 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
10371 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10372 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10373 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10374 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
10375 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10376 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10377 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10378 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10379 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10380 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10381 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10382 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10383 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10384 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
10385 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
10386 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10387 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10388 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
83b18bab | 10389 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10390 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10391 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
10392 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10393 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10394 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
dbbb98cd | 10395 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10396 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
10397 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10398 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10399 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10400 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10401 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10402 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10403 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10404 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10405 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10406 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10407 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10408 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10409 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 10410 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10411 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
10412 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
10413 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
10414 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10415 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10416 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10417 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10418 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
10419 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
10420 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10421 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10422 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10423 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10424 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10425 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
10426 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10427 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10428 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10429 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10430 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10431 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10432 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10433 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
10434 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
10435 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10436 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10437 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10438 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10439 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10440 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10441 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10442 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
10443 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10444 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10445 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10446 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10447 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10448 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10449 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10450 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10451 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10452 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10453 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10454 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10455 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10456 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10457 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10458 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10459 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 10460 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10461 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
10462 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10463 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10464 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10465 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10466 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10467 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10468 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10469 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10470 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10471 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10472 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
10473 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10474 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
10475 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10476 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
10477 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
10478 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10479 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
10480 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
10481 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
3ca6a5f0 BP |
10482 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
10483 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10484 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
10485 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
10486 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10487 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
10488 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
10489 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10490 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, |
10491 | { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10492 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, | |
10493 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10494 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10495 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
10496 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
926bb76c | 10497 | { "wxEvtHandler_GetClassName", (PyCFunction) _wrap_wxEvtHandler_GetClassName, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 10498 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10499 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
10500 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
10501 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10502 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
10503 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10504 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10505 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10506 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10507 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10508 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
a1df7a95 RD |
10509 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
10510 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10511 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10512 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
10513 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10514 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
10515 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
10516 | { NULL, NULL } |
10517 | }; | |
1d99702e RD |
10518 | #ifdef __cplusplus |
10519 | } | |
10520 | #endif | |
10521 | /* | |
10522 | * This table is used by the pointer type-checker | |
10523 | */ | |
10524 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
10525 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
10526 | { "_signed_long","_long",0}, | |
65dd82cb | 10527 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
b1462dfa RD |
10528 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, |
10529 | { "_wxPrintQuality","_wxCoord",0}, | |
1d99702e RD |
10530 | { "_wxPrintQuality","_int",0}, |
10531 | { "_wxPrintQuality","_signed_int",0}, | |
10532 | { "_wxPrintQuality","_unsigned_int",0}, | |
10533 | { "_wxPrintQuality","_wxWindowID",0}, | |
10534 | { "_wxPrintQuality","_uint",0}, | |
10535 | { "_wxPrintQuality","_EBool",0}, | |
10536 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10537 | { "_wxPrintQuality","_time_t",0}, |
b1462dfa | 10538 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
1d99702e | 10539 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 10540 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e RD |
10541 | { "_class_wxMenuBar","_wxMenuBar",0}, |
10542 | { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10543 | { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10544 | { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10545 | { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10546 | { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10547 | { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10548 | { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10549 | { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10550 | { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10551 | { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10552 | { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
10553 | { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
10554 | { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
10555 | { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
10556 | { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
10557 | { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e RD |
10558 | { "_class_wxEvtHandler","_wxEvtHandler",0}, |
10559 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
10560 | { "_wxCursor","_class_wxCursor",0}, | |
10561 | { "_wxMask","_class_wxMask",0}, | |
10562 | { "_wxPen","_class_wxPen",0}, | |
10563 | { "_byte","_unsigned_char",0}, | |
b1462dfa | 10564 | { "_wxDataObject","_class_wxDataObject",0}, |
f3d9dc1d | 10565 | { "_wxColourDatabase","_class_wxColourDatabase",0}, |
65dd82cb RD |
10566 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
10567 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
10568 | { "_long","_unsigned_long",0}, |
10569 | { "_long","_signed_long",0}, | |
10570 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa | 10571 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
1d99702e | 10572 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, |
b1462dfa | 10573 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e | 10574 | { "_wxDC","_class_wxDC",0}, |
b1462dfa RD |
10575 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
10576 | { "_size_t","_wxCoord",0}, | |
1d99702e | 10577 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10578 | { "_size_t","_time_t",0}, |
1d99702e RD |
10579 | { "_size_t","_unsigned_int",0}, |
10580 | { "_size_t","_int",0}, | |
10581 | { "_size_t","_wxWindowID",0}, | |
10582 | { "_size_t","_uint",0}, | |
10583 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
1d99702e RD |
10584 | { "_class_wxMenuItem","_wxMenuItem",0}, |
10585 | { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
10586 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
10587 | { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
10588 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
10589 | { "_wxPanel","_class_wxPanel",0}, | |
10590 | { "_class_wxMask","_wxMask",0}, | |
b1462dfa | 10591 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
1d99702e RD |
10592 | { "_wxColour","_class_wxColour",0}, |
10593 | { "_class_wxDialog","_wxDialog",0}, | |
b1462dfa RD |
10594 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
10595 | { "_class_wxDataObject","_wxDataObject",0}, | |
1d99702e | 10596 | { "_wxBrush","_class_wxBrush",0}, |
b1462dfa RD |
10597 | { "_wxDataFormat","_class_wxDataFormat",0}, |
10598 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
10599 | { "_uint","_wxCoord",0}, | |
1d99702e | 10600 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10601 | { "_uint","_time_t",0}, |
1d99702e RD |
10602 | { "_uint","_size_t",0}, |
10603 | { "_uint","_unsigned_int",0}, | |
10604 | { "_uint","_int",0}, | |
10605 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10606 | { "_wxChar","_char",0}, |
2f90df85 | 10607 | { "_wxPyValidator","_class_wxPyValidator",0}, |
1d99702e RD |
10608 | { "_wxRect","_class_wxRect",0}, |
10609 | { "_wxPoint","_class_wxPoint",0}, | |
f6bcfd97 | 10610 | { "_char","_wxChar",0}, |
1d99702e | 10611 | { "_wxBitmap","_class_wxBitmap",0}, |
f3d9dc1d | 10612 | { "_wxPenList","_class_wxPenList",0}, |
1d99702e RD |
10613 | { "_wxWindowDC","_class_wxWindowDC",0}, |
10614 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
2f90df85 RD |
10615 | { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
10616 | { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
10617 | { "_class_wxValidator","_wxValidator",0}, | |
b1462dfa | 10618 | { "_wxDropTarget","_class_wxDropTarget",0}, |
f3d9dc1d | 10619 | { "_class_wxColourDatabase","_wxColourDatabase",0}, |
b1462dfa | 10620 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10621 | { "_EBool","_wxPrintQuality",0}, |
10622 | { "_EBool","_signed_int",0}, | |
10623 | { "_EBool","_int",0}, | |
10624 | { "_EBool","_wxWindowID",0}, | |
10625 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa | 10626 | { "_class_wxDataFormat","_wxDataFormat",0}, |
1d99702e | 10627 | { "_wxFont","_class_wxFont",0}, |
b1462dfa | 10628 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
1d99702e RD |
10629 | { "_unsigned_long","_long",0}, |
10630 | { "_class_wxRect","_wxRect",0}, | |
10631 | { "_class_wxDC","_wxDC",0}, | |
f3d9dc1d RD |
10632 | { "_class_wxBrushList","_wxBrushList",0}, |
10633 | { "_class_wxPenList","_wxPenList",0}, | |
1d99702e RD |
10634 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, |
10635 | { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
10636 | { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
10637 | { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
10638 | { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
10639 | { "_class_wxPanel","_wxPanel",0}, | |
b1462dfa | 10640 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10641 | { "_signed_int","_wxPrintQuality",0}, |
10642 | { "_signed_int","_EBool",0}, | |
10643 | { "_signed_int","_wxWindowID",0}, | |
10644 | { "_signed_int","_int",0}, | |
10645 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
10646 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
b1462dfa | 10647 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e RD |
10648 | { "_wxMenu","_class_wxMenu",0}, |
10649 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
10650 | { "_WXTYPE","_short",0}, | |
10651 | { "_WXTYPE","_signed_short",0}, | |
10652 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 10653 | { "_class_wxDropTarget","_wxDropTarget",0}, |
1d99702e RD |
10654 | { "_class_wxBrush","_wxBrush",0}, |
10655 | { "_unsigned_short","_WXTYPE",0}, | |
10656 | { "_unsigned_short","_short",0}, | |
b1462dfa RD |
10657 | { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, |
10658 | { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
10659 | { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
10660 | { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
10661 | { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
10662 | { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
10663 | { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
10664 | { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
10665 | { "_class_wxWindow","_wxWindow",0}, | |
10666 | { "_class_wxFont","_wxFont",0}, | |
b1462dfa | 10667 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 10668 | { "_class_wxPyValidator","_wxPyValidator",0}, |
2abc0a0f | 10669 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
f3d9dc1d | 10670 | { "_wxFontList","_class_wxFontList",0}, |
65dd82cb | 10671 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, |
1d99702e RD |
10672 | { "_wxClientDC","_class_wxClientDC",0}, |
10673 | { "_class_wxPoint","_wxPoint",0}, | |
10674 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
10675 | { "_signed_short","_WXTYPE",0}, | |
10676 | { "_signed_short","_short",0}, | |
10677 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
65dd82cb | 10678 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
10679 | { "_wxPaintDC","_class_wxPaintDC",0}, |
10680 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
10681 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
10682 | { "_class_wxCursor","_wxCursor",0}, | |
b1462dfa | 10683 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
1d99702e RD |
10684 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
10685 | { "_unsigned_char","_byte",0}, | |
10686 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
10687 | { "_class_wxMenu","_wxMenu",0}, | |
b1462dfa | 10688 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10689 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10690 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10691 | { "_unsigned_int","_size_t",0}, |
10692 | { "_unsigned_int","_uint",0}, | |
10693 | { "_unsigned_int","_wxWindowID",0}, | |
10694 | { "_unsigned_int","_int",0}, | |
10695 | { "_wxIcon","_class_wxIcon",0}, | |
10696 | { "_wxDialog","_class_wxDialog",0}, | |
10697 | { "_class_wxPen","_wxPen",0}, | |
10698 | { "_short","_WXTYPE",0}, | |
10699 | { "_short","_unsigned_short",0}, | |
10700 | { "_short","_signed_short",0}, | |
65dd82cb RD |
10701 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
10702 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
1d99702e | 10703 | { "_class_wxImageList","_wxImageList",0}, |
b1462dfa | 10704 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10705 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10706 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10707 | { "_wxWindowID","_size_t",0}, |
10708 | { "_wxWindowID","_EBool",0}, | |
10709 | { "_wxWindowID","_uint",0}, | |
10710 | { "_wxWindowID","_int",0}, | |
10711 | { "_wxWindowID","_signed_int",0}, | |
10712 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10713 | { "_int","_wxCoord",0}, |
1d99702e | 10714 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10715 | { "_int","_time_t",0}, |
1d99702e RD |
10716 | { "_int","_size_t",0}, |
10717 | { "_int","_EBool",0}, | |
10718 | { "_int","_uint",0}, | |
10719 | { "_int","_wxWindowID",0}, | |
10720 | { "_int","_unsigned_int",0}, | |
10721 | { "_int","_signed_int",0}, | |
c368d904 RD |
10722 | { "_time_t","_wxCoord",0}, |
10723 | { "_time_t","_wxPrintQuality",0}, | |
10724 | { "_time_t","_unsigned_int",0}, | |
10725 | { "_time_t","_int",0}, | |
10726 | { "_time_t","_wxWindowID",0}, | |
10727 | { "_time_t","_uint",0}, | |
10728 | { "_time_t","_size_t",0}, | |
1d99702e RD |
10729 | { "_wxSize","_class_wxSize",0}, |
10730 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
65dd82cb | 10731 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
1d99702e | 10732 | { "_class_wxPaintDC","_wxPaintDC",0}, |
b1462dfa | 10733 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, |
2f90df85 RD |
10734 | { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
10735 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
10736 | { "_wxValidator","_class_wxValidator",0}, | |
1d99702e RD |
10737 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
10738 | { "_class_wxIcon","_wxIcon",0}, | |
10739 | { "_class_wxColour","_wxColour",0}, | |
10740 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
10741 | { "_wxPalette","_class_wxPalette",0}, | |
b1462dfa RD |
10742 | { "_wxCoord","_int",0}, |
10743 | { "_wxCoord","_signed_int",0}, | |
10744 | { "_wxCoord","_unsigned_int",0}, | |
10745 | { "_wxCoord","_wxWindowID",0}, | |
10746 | { "_wxCoord","_uint",0}, | |
10747 | { "_wxCoord","_EBool",0}, | |
10748 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10749 | { "_wxCoord","_time_t",0}, |
b1462dfa RD |
10750 | { "_wxCoord","_wxPrintQuality",0}, |
10751 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, | |
1d99702e | 10752 | { "_wxRegion","_class_wxRegion",0}, |
b1462dfa | 10753 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
2abc0a0f | 10754 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
f3d9dc1d | 10755 | { "_class_wxFontList","_wxFontList",0}, |
1d99702e | 10756 | { "_class_wxClientDC","_wxClientDC",0}, |
f3d9dc1d | 10757 | { "_wxBrushList","_class_wxBrushList",0}, |
b1462dfa | 10758 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
1d99702e RD |
10759 | { "_class_wxSize","_wxSize",0}, |
10760 | { "_class_wxBitmap","_wxBitmap",0}, | |
10761 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 10762 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e RD |
10763 | { "_wxMenuBar","_class_wxMenuBar",0}, |
10764 | { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10765 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10766 | { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10767 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10768 | { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10769 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10770 | { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10771 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10772 | { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10773 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10774 | { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
10775 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
10776 | { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
10777 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
10778 | { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
10779 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e RD |
10780 | { "_wxEvtHandler","_class_wxEvtHandler",0}, |
10781 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
1d99702e RD |
10782 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, |
10783 | { "_class_wxPalette","_wxPalette",0}, | |
b1462dfa RD |
10784 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
10785 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, | |
10786 | { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
10787 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
10788 | { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
10789 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
10790 | { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
10791 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
10792 | { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
10793 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
10794 | { "_wxWindow","_class_wxWindow",0}, | |
10795 | {0,0,0}}; | |
10796 | ||
8ab979d7 RD |
10797 | static PyObject *SWIG_globals; |
10798 | #ifdef __cplusplus | |
10799 | extern "C" | |
10800 | #endif | |
1d99702e | 10801 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
10802 | PyObject *m, *d; |
10803 | SWIG_globals = SWIG_newvarlink(); | |
10804 | m = Py_InitModule("windowsc", windowscMethods); | |
10805 | d = PyModule_GetDict(m); | |
1d99702e RD |
10806 | { |
10807 | int i; | |
10808 | for (i = 0; _swig_mapping[i].n1; i++) | |
10809 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10810 | } | |
8ab979d7 | 10811 | } |