]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/windows.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
dbbb98cd | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
dbbb98cd | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initwindowsc |
55 | ||
56 | #define SWIG_name "windowsc" | |
57 | ||
58 | #include "helpers.h" | |
8ab979d7 | 59 | #include <wx/menuitem.h> |
8ab979d7 RD |
60 | |
61 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
62 | PyObject* o2; | |
dbbb98cd | 63 | if (!target) { |
8ab979d7 | 64 | target = o; |
dbbb98cd | 65 | } else if (target == Py_None) { |
8ab979d7 RD |
66 | Py_DECREF(Py_None); |
67 | target = o; | |
dbbb98cd | 68 | } else { |
8ab979d7 RD |
69 | if (!PyList_Check(target)) { |
70 | o2 = target; | |
71 | target = PyList_New(0); | |
72 | PyList_Append(target, o2); | |
73 | Py_XDECREF(o2); | |
74 | } | |
75 | PyList_Append(target,o); | |
76 | Py_XDECREF(o); | |
77 | } | |
78 | return target; | |
79 | } | |
80 | ||
81 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
82 | PyObject* o2; | |
83 | PyObject* o3; | |
84 | ||
dbbb98cd | 85 | if (!target) { |
8ab979d7 | 86 | target = o; |
dbbb98cd | 87 | } else if (target == Py_None) { |
8ab979d7 RD |
88 | Py_DECREF(Py_None); |
89 | target = o; | |
dbbb98cd | 90 | } else { |
8ab979d7 RD |
91 | if (!PyTuple_Check(target)) { |
92 | o2 = target; | |
93 | target = PyTuple_New(1); | |
94 | PyTuple_SetItem(target, 0, o2); | |
95 | } | |
dbbb98cd RD |
96 | o3 = PyTuple_New(1); |
97 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
98 | |
99 | o2 = target; | |
dbbb98cd RD |
100 | target = PySequence_Concat(o2, o3); |
101 | Py_DECREF(o2); | |
8ab979d7 RD |
102 | Py_DECREF(o3); |
103 | } | |
104 | return target; | |
105 | } | |
106 | ||
2f90df85 RD |
107 | static char* wxStringErrorMsg = "string type is required for parameter"; |
108 | ||
e508a2b6 RD |
109 | static wxString wxPyEmptyStr(""); |
110 | ||
2f90df85 RD |
111 | bool wxValidator_IsSilent() { |
112 | return wxValidator::IsSilent(); | |
113 | } | |
8ab979d7 | 114 | |
2f90df85 RD |
115 | void wxValidator_SetBellOnError(int doIt = TRUE) { |
116 | wxValidator::SetBellOnError(doIt); | |
117 | } | |
8ab979d7 | 118 | |
2f90df85 RD |
119 | class wxPyValidator : public wxValidator { |
120 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
121 | public: | |
122 | wxPyValidator() { | |
123 | } | |
124 | // wxPyValidator(const wxPyValidator& other); | |
125 | ||
126 | ~wxPyValidator() { | |
127 | } | |
128 | ||
129 | wxObject* wxPyValidator::Clone() const { | |
694759cf RD |
130 | wxPyValidator* ptr = NULL; |
131 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 132 | |
694759cf RD |
133 | bool doSave = wxPyRestoreThread(); |
134 | if (self->m_myInst.findCallback("Clone")) { | |
135 | PyObject* ro; | |
136 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
137 | if (ro) { |
138 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
139 | Py_DECREF(ro); | |
140 | } | |
694759cf RD |
141 | } |
142 | // This is very dangerous!!! But is the only way I could find | |
143 | // to squash a memory leak. Currently it is okay, but if the | |
144 | // validator architecture in wxWindows ever changes, problems | |
145 | // could arise. | |
146 | delete self; | |
2f90df85 | 147 | |
694759cf RD |
148 | wxPySaveThread(doSave); |
149 | return ptr; | |
150 | } | |
2f90df85 RD |
151 | |
152 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); | |
153 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
154 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
155 | ||
156 | PYPRIVATE; | |
157 | // PyObject* m_data; | |
158 | }; | |
159 | ||
160 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
161 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
162 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
163 | ||
164 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 165 | |
8ab979d7 RD |
166 | |
167 | wxWindow* wxWindow_FindFocus() { | |
168 | return wxWindow::FindFocus(); | |
169 | } | |
2f90df85 RD |
170 | |
171 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
172 | wxWindow* win = new wxWindow; | |
173 | win->SetHWND(hWnd); | |
174 | win->SubclassWin(hWnd); | |
175 | return win; | |
176 | } | |
a1df7a95 RD |
177 | |
178 | int wxWindow_NewControlId() { | |
179 | return wxWindow::NewControlId(); | |
180 | } | |
181 | int wxWindow_NextControlId(int id) { | |
182 | return wxWindow::NextControlId(id); | |
183 | } | |
184 | int wxWindow_PrevControlId(int id) { | |
185 | return wxWindow::PrevControlId(id); | |
186 | } | |
2f90df85 RD |
187 | #ifdef __cplusplus |
188 | extern "C" { | |
189 | #endif | |
190 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
191 | PyObject * _resultobj; | |
192 | bool _result; | |
193 | char *_kwnames[] = { NULL }; | |
194 | ||
195 | self = self; | |
196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
197 | return NULL; | |
198 | { | |
199 | wxPy_BEGIN_ALLOW_THREADS; | |
200 | _result = (bool )wxValidator_IsSilent(); | |
201 | ||
202 | wxPy_END_ALLOW_THREADS; | |
203 | } _resultobj = Py_BuildValue("i",_result); | |
204 | return _resultobj; | |
205 | } | |
206 | ||
207 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
208 | PyObject * _resultobj; | |
209 | int _arg0 = (int ) TRUE; | |
210 | char *_kwnames[] = { "doIt", NULL }; | |
211 | ||
212 | self = self; | |
213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
214 | return NULL; | |
215 | { | |
216 | wxPy_BEGIN_ALLOW_THREADS; | |
217 | wxValidator_SetBellOnError(_arg0); | |
218 | ||
219 | wxPy_END_ALLOW_THREADS; | |
220 | } Py_INCREF(Py_None); | |
221 | _resultobj = Py_None; | |
222 | return _resultobj; | |
223 | } | |
224 | ||
225 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
226 | PyObject * _resultobj; | |
227 | wxWindow * _result; | |
228 | char *_kwnames[] = { NULL }; | |
229 | char _ptemp[128]; | |
230 | ||
231 | self = self; | |
232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
233 | return NULL; | |
234 | { | |
235 | wxPy_BEGIN_ALLOW_THREADS; | |
236 | _result = (wxWindow *)wxWindow_FindFocus(); | |
237 | ||
238 | wxPy_END_ALLOW_THREADS; | |
239 | } if (_result) { | |
240 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
241 | _resultobj = Py_BuildValue("s",_ptemp); | |
242 | } else { | |
243 | Py_INCREF(Py_None); | |
244 | _resultobj = Py_None; | |
245 | } | |
246 | return _resultobj; | |
247 | } | |
248 | ||
249 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
250 | PyObject * _resultobj; | |
251 | wxWindow * _result; | |
252 | unsigned long _arg0; | |
253 | char *_kwnames[] = { "hWnd", NULL }; | |
254 | char _ptemp[128]; | |
255 | ||
256 | self = self; | |
257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
258 | return NULL; | |
259 | { | |
260 | wxPy_BEGIN_ALLOW_THREADS; | |
261 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); | |
262 | ||
263 | wxPy_END_ALLOW_THREADS; | |
264 | } if (_result) { | |
265 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
266 | _resultobj = Py_BuildValue("s",_ptemp); | |
267 | } else { | |
268 | Py_INCREF(Py_None); | |
269 | _resultobj = Py_None; | |
270 | } | |
271 | return _resultobj; | |
272 | } | |
273 | ||
a1df7a95 RD |
274 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { |
275 | PyObject * _resultobj; | |
276 | int _result; | |
277 | char *_kwnames[] = { NULL }; | |
278 | ||
279 | self = self; | |
280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
281 | return NULL; | |
282 | { | |
283 | wxPy_BEGIN_ALLOW_THREADS; | |
284 | _result = (int )wxWindow_NewControlId(); | |
285 | ||
286 | wxPy_END_ALLOW_THREADS; | |
287 | } _resultobj = Py_BuildValue("i",_result); | |
288 | return _resultobj; | |
289 | } | |
290 | ||
291 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
292 | PyObject * _resultobj; | |
293 | int _result; | |
294 | int _arg0; | |
295 | char *_kwnames[] = { "id", NULL }; | |
296 | ||
297 | self = self; | |
298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
299 | return NULL; | |
300 | { | |
301 | wxPy_BEGIN_ALLOW_THREADS; | |
302 | _result = (int )wxWindow_NextControlId(_arg0); | |
303 | ||
304 | wxPy_END_ALLOW_THREADS; | |
305 | } _resultobj = Py_BuildValue("i",_result); | |
306 | return _resultobj; | |
307 | } | |
308 | ||
309 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
310 | PyObject * _resultobj; | |
311 | int _result; | |
312 | int _arg0; | |
313 | char *_kwnames[] = { "id", NULL }; | |
314 | ||
315 | self = self; | |
316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
317 | return NULL; | |
318 | { | |
319 | wxPy_BEGIN_ALLOW_THREADS; | |
320 | _result = (int )wxWindow_PrevControlId(_arg0); | |
321 | ||
322 | wxPy_END_ALLOW_THREADS; | |
323 | } _resultobj = Py_BuildValue("i",_result); | |
324 | return _resultobj; | |
325 | } | |
326 | ||
c368d904 RD |
327 | #define new_wxEvtHandler() (new wxEvtHandler()) |
328 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
329 | PyObject * _resultobj; | |
330 | wxEvtHandler * _result; | |
331 | char *_kwnames[] = { NULL }; | |
332 | char _ptemp[128]; | |
333 | ||
334 | self = self; | |
335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
336 | return NULL; | |
337 | { | |
338 | wxPy_BEGIN_ALLOW_THREADS; | |
339 | _result = (wxEvtHandler *)new_wxEvtHandler(); | |
340 | ||
341 | wxPy_END_ALLOW_THREADS; | |
342 | } if (_result) { | |
343 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
344 | _resultobj = Py_BuildValue("s",_ptemp); | |
345 | } else { | |
346 | Py_INCREF(Py_None); | |
347 | _resultobj = Py_None; | |
348 | } | |
349 | return _resultobj; | |
350 | } | |
351 | ||
2f90df85 RD |
352 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
353 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
354 | PyObject * _resultobj; | |
355 | bool _result; | |
356 | wxEvtHandler * _arg0; | |
357 | wxEvent * _arg1; | |
358 | PyObject * _argo0 = 0; | |
359 | PyObject * _argo1 = 0; | |
360 | char *_kwnames[] = { "self","event", NULL }; | |
361 | ||
362 | self = self; | |
363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
364 | return NULL; | |
365 | if (_argo0) { | |
366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
369 | return NULL; | |
370 | } | |
371 | } | |
372 | if (_argo1) { | |
373 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
374 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
376 | return NULL; | |
377 | } | |
378 | } | |
379 | { | |
380 | wxPy_BEGIN_ALLOW_THREADS; | |
381 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
382 | ||
383 | wxPy_END_ALLOW_THREADS; | |
384 | } _resultobj = Py_BuildValue("i",_result); | |
385 | return _resultobj; | |
386 | } | |
387 | ||
f6bcfd97 BP |
388 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
389 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
390 | PyObject * _resultobj; | |
391 | wxEvtHandler * _arg0; | |
392 | wxEvent * _arg1; | |
393 | PyObject * _argo0 = 0; | |
394 | PyObject * _argo1 = 0; | |
395 | char *_kwnames[] = { "self","event", NULL }; | |
396 | ||
397 | self = self; | |
398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
399 | return NULL; | |
400 | if (_argo0) { | |
401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
404 | return NULL; | |
405 | } | |
406 | } | |
407 | if (_argo1) { | |
408 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
409 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
411 | return NULL; | |
412 | } | |
413 | } | |
414 | { | |
415 | wxPy_BEGIN_ALLOW_THREADS; | |
416 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); | |
417 | ||
418 | wxPy_END_ALLOW_THREADS; | |
419 | } Py_INCREF(Py_None); | |
420 | _resultobj = Py_None; | |
421 | return _resultobj; | |
422 | } | |
423 | ||
2f90df85 RD |
424 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
425 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
426 | PyObject * _resultobj; | |
427 | bool _result; | |
428 | wxEvtHandler * _arg0; | |
429 | PyObject * _argo0 = 0; | |
430 | char *_kwnames[] = { "self", NULL }; | |
431 | ||
432 | self = self; | |
433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
434 | return NULL; | |
435 | if (_argo0) { | |
436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
439 | return NULL; | |
440 | } | |
441 | } | |
442 | { | |
443 | wxPy_BEGIN_ALLOW_THREADS; | |
444 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
445 | ||
446 | wxPy_END_ALLOW_THREADS; | |
447 | } _resultobj = Py_BuildValue("i",_result); | |
448 | return _resultobj; | |
449 | } | |
450 | ||
451 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
452 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
453 | PyObject * _resultobj; | |
454 | wxEvtHandler * _arg0; | |
455 | bool _arg1; | |
456 | PyObject * _argo0 = 0; | |
457 | int tempbool1; | |
458 | char *_kwnames[] = { "self","enabled", NULL }; | |
459 | ||
460 | self = self; | |
461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
462 | return NULL; | |
463 | if (_argo0) { | |
464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
467 | return NULL; | |
468 | } | |
469 | } | |
470 | _arg1 = (bool ) tempbool1; | |
471 | { | |
472 | wxPy_BEGIN_ALLOW_THREADS; | |
473 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
474 | ||
475 | wxPy_END_ALLOW_THREADS; | |
476 | } Py_INCREF(Py_None); | |
477 | _resultobj = Py_None; | |
478 | return _resultobj; | |
479 | } | |
480 | ||
481 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
482 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
483 | PyObject * _resultobj; | |
484 | wxEvtHandler * _result; | |
485 | wxEvtHandler * _arg0; | |
486 | PyObject * _argo0 = 0; | |
487 | char *_kwnames[] = { "self", NULL }; | |
488 | char _ptemp[128]; | |
489 | ||
490 | self = self; | |
491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
492 | return NULL; | |
493 | if (_argo0) { | |
494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
497 | return NULL; | |
498 | } | |
499 | } | |
500 | { | |
501 | wxPy_BEGIN_ALLOW_THREADS; | |
502 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
503 | ||
504 | wxPy_END_ALLOW_THREADS; | |
505 | } if (_result) { | |
506 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
507 | _resultobj = Py_BuildValue("s",_ptemp); | |
508 | } else { | |
509 | Py_INCREF(Py_None); | |
510 | _resultobj = Py_None; | |
511 | } | |
512 | return _resultobj; | |
513 | } | |
514 | ||
515 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
516 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
517 | PyObject * _resultobj; | |
518 | wxEvtHandler * _result; | |
519 | wxEvtHandler * _arg0; | |
520 | PyObject * _argo0 = 0; | |
521 | char *_kwnames[] = { "self", NULL }; | |
522 | char _ptemp[128]; | |
523 | ||
524 | self = self; | |
525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
526 | return NULL; | |
527 | if (_argo0) { | |
528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
531 | return NULL; | |
532 | } | |
533 | } | |
534 | { | |
535 | wxPy_BEGIN_ALLOW_THREADS; | |
536 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
537 | ||
538 | wxPy_END_ALLOW_THREADS; | |
539 | } if (_result) { | |
540 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
541 | _resultobj = Py_BuildValue("s",_ptemp); | |
542 | } else { | |
543 | Py_INCREF(Py_None); | |
544 | _resultobj = Py_None; | |
545 | } | |
546 | return _resultobj; | |
547 | } | |
548 | ||
549 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
550 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
551 | PyObject * _resultobj; | |
552 | wxEvtHandler * _arg0; | |
553 | wxEvtHandler * _arg1; | |
554 | PyObject * _argo0 = 0; | |
555 | PyObject * _argo1 = 0; | |
556 | char *_kwnames[] = { "self","handler", NULL }; | |
557 | ||
558 | self = self; | |
559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
560 | return NULL; | |
561 | if (_argo0) { | |
562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
565 | return NULL; | |
566 | } | |
567 | } | |
568 | if (_argo1) { | |
569 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
570 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
572 | return NULL; | |
573 | } | |
574 | } | |
575 | { | |
576 | wxPy_BEGIN_ALLOW_THREADS; | |
577 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
578 | ||
579 | wxPy_END_ALLOW_THREADS; | |
580 | } Py_INCREF(Py_None); | |
581 | _resultobj = Py_None; | |
582 | return _resultobj; | |
583 | } | |
584 | ||
585 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
586 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
587 | PyObject * _resultobj; | |
588 | wxEvtHandler * _arg0; | |
589 | wxEvtHandler * _arg1; | |
590 | PyObject * _argo0 = 0; | |
591 | PyObject * _argo1 = 0; | |
592 | char *_kwnames[] = { "self","handler", NULL }; | |
593 | ||
594 | self = self; | |
595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
596 | return NULL; | |
597 | if (_argo0) { | |
598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
601 | return NULL; | |
602 | } | |
603 | } | |
604 | if (_argo1) { | |
605 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
606 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
608 | return NULL; | |
609 | } | |
610 | } | |
611 | { | |
612 | wxPy_BEGIN_ALLOW_THREADS; | |
613 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
614 | ||
615 | wxPy_END_ALLOW_THREADS; | |
616 | } Py_INCREF(Py_None); | |
617 | _resultobj = Py_None; | |
618 | return _resultobj; | |
619 | } | |
620 | ||
621 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
622 | if (PyCallable_Check(func)) { | |
623 | self->Connect(id, lastId, eventType, | |
624 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
625 | new wxPyCallback(func)); | |
626 | } | |
627 | } | |
628 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
629 | PyObject * _resultobj; | |
630 | wxEvtHandler * _arg0; | |
631 | int _arg1; | |
632 | int _arg2; | |
633 | int _arg3; | |
634 | PyObject * _arg4; | |
635 | PyObject * _argo0 = 0; | |
636 | PyObject * _obj4 = 0; | |
637 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
638 | ||
639 | self = self; | |
640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
641 | return NULL; | |
642 | if (_argo0) { | |
643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
646 | return NULL; | |
647 | } | |
648 | } | |
649 | { | |
650 | _arg4 = _obj4; | |
651 | } | |
652 | { | |
653 | wxPy_BEGIN_ALLOW_THREADS; | |
654 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
655 | ||
656 | wxPy_END_ALLOW_THREADS; | |
657 | } Py_INCREF(Py_None); | |
658 | _resultobj = Py_None; | |
659 | return _resultobj; | |
660 | } | |
661 | ||
6999b0d8 RD |
662 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
663 | return self->Disconnect(id, lastId, eventType, | |
664 | (wxObjectEventFunction) | |
665 | &wxPyCallback::EventThunker); | |
666 | } | |
667 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
668 | PyObject * _resultobj; | |
669 | bool _result; | |
670 | wxEvtHandler * _arg0; | |
671 | int _arg1; | |
672 | int _arg2 = (int ) -1; | |
673 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
674 | PyObject * _argo0 = 0; | |
675 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
676 | ||
677 | self = self; | |
678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
679 | return NULL; | |
680 | if (_argo0) { | |
681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
684 | return NULL; | |
685 | } | |
686 | } | |
687 | { | |
688 | wxPy_BEGIN_ALLOW_THREADS; | |
689 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
690 | ||
691 | wxPy_END_ALLOW_THREADS; | |
692 | } _resultobj = Py_BuildValue("i",_result); | |
693 | return _resultobj; | |
694 | } | |
695 | ||
2f90df85 RD |
696 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
697 | wxValidator *src; | |
698 | wxEvtHandler *dest; | |
699 | src = (wxValidator *) ptr; | |
700 | dest = (wxEvtHandler *) src; | |
701 | return (void *) dest; | |
702 | } | |
703 | ||
704 | #define new_wxValidator() (new wxValidator()) | |
705 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
706 | PyObject * _resultobj; | |
707 | wxValidator * _result; | |
708 | char *_kwnames[] = { NULL }; | |
709 | char _ptemp[128]; | |
710 | ||
711 | self = self; | |
712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
713 | return NULL; | |
714 | { | |
715 | wxPy_BEGIN_ALLOW_THREADS; | |
716 | _result = (wxValidator *)new_wxValidator(); | |
717 | ||
718 | wxPy_END_ALLOW_THREADS; | |
719 | } if (_result) { | |
720 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
721 | _resultobj = Py_BuildValue("s",_ptemp); | |
722 | } else { | |
723 | Py_INCREF(Py_None); | |
724 | _resultobj = Py_None; | |
725 | } | |
726 | return _resultobj; | |
af309447 | 727 | } |
2f90df85 RD |
728 | |
729 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
730 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 731 | PyObject * _resultobj; |
2f90df85 RD |
732 | wxValidator * _result; |
733 | wxValidator * _arg0; | |
734 | PyObject * _argo0 = 0; | |
735 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
736 | char _ptemp[128]; |
737 | ||
738 | self = self; | |
2f90df85 RD |
739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
740 | return NULL; | |
741 | if (_argo0) { | |
742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 745 | return NULL; |
2f90df85 RD |
746 | } |
747 | } | |
cf694132 RD |
748 | { |
749 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 750 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 RD |
751 | |
752 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 753 | } if (_result) { |
2f90df85 | 754 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); |
1d99702e RD |
755 | _resultobj = Py_BuildValue("s",_ptemp); |
756 | } else { | |
757 | Py_INCREF(Py_None); | |
758 | _resultobj = Py_None; | |
759 | } | |
8ab979d7 RD |
760 | return _resultobj; |
761 | } | |
762 | ||
2f90df85 RD |
763 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
764 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
765 | PyObject * _resultobj; |
766 | wxWindow * _result; | |
2f90df85 RD |
767 | wxValidator * _arg0; |
768 | PyObject * _argo0 = 0; | |
769 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
770 | char _ptemp[128]; |
771 | ||
772 | self = self; | |
2f90df85 RD |
773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
774 | return NULL; | |
775 | if (_argo0) { | |
776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 779 | return NULL; |
2f90df85 RD |
780 | } |
781 | } | |
cf694132 RD |
782 | { |
783 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 784 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 RD |
785 | |
786 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
787 | } if (_result) { |
788 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
789 | _resultobj = Py_BuildValue("s",_ptemp); | |
790 | } else { | |
791 | Py_INCREF(Py_None); | |
792 | _resultobj = Py_None; | |
793 | } | |
af309447 RD |
794 | return _resultobj; |
795 | } | |
796 | ||
2f90df85 RD |
797 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
798 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 799 | PyObject * _resultobj; |
2f90df85 RD |
800 | wxValidator * _arg0; |
801 | wxWindow * _arg1; | |
1d99702e RD |
802 | PyObject * _argo0 = 0; |
803 | PyObject * _argo1 = 0; | |
2f90df85 | 804 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
805 | |
806 | self = self; | |
2f90df85 | 807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 808 | return NULL; |
1d99702e RD |
809 | if (_argo0) { |
810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
813 | return NULL; |
814 | } | |
815 | } | |
1d99702e RD |
816 | if (_argo1) { |
817 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
818 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
820 | return NULL; |
821 | } | |
822 | } | |
823 | { | |
824 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 825 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 RD |
826 | |
827 | wxPy_END_ALLOW_THREADS; | |
2f90df85 RD |
828 | } Py_INCREF(Py_None); |
829 | _resultobj = Py_None; | |
cf694132 RD |
830 | return _resultobj; |
831 | } | |
832 | ||
2f90df85 RD |
833 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
834 | wxPyValidator *src; | |
835 | wxValidator *dest; | |
836 | src = (wxPyValidator *) ptr; | |
837 | dest = (wxValidator *) src; | |
838 | return (void *) dest; | |
839 | } | |
840 | ||
841 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
842 | wxPyValidator *src; | |
843 | wxEvtHandler *dest; | |
844 | src = (wxPyValidator *) ptr; | |
845 | dest = (wxEvtHandler *) src; | |
846 | return (void *) dest; | |
847 | } | |
848 | ||
849 | #define new_wxPyValidator() (new wxPyValidator()) | |
850 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
851 | PyObject * _resultobj; | |
852 | wxPyValidator * _result; | |
853 | char *_kwnames[] = { NULL }; | |
854 | char _ptemp[128]; | |
855 | ||
856 | self = self; | |
857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
858 | return NULL; | |
859 | { | |
860 | wxPy_BEGIN_ALLOW_THREADS; | |
861 | _result = (wxPyValidator *)new_wxPyValidator(); | |
862 | ||
863 | wxPy_END_ALLOW_THREADS; | |
864 | } if (_result) { | |
865 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
866 | _resultobj = Py_BuildValue("s",_ptemp); | |
867 | } else { | |
868 | Py_INCREF(Py_None); | |
869 | _resultobj = Py_None; | |
870 | } | |
871 | return _resultobj; | |
872 | } | |
873 | ||
874 | static void wxPyValidator_Destroy(wxPyValidator *self) { delete self; } | |
875 | static PyObject *_wrap_wxPyValidator_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
876 | PyObject * _resultobj; | |
877 | wxPyValidator * _arg0; | |
878 | PyObject * _argo0 = 0; | |
879 | char *_kwnames[] = { "self", NULL }; | |
880 | ||
881 | self = self; | |
882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyValidator_Destroy",_kwnames,&_argo0)) | |
883 | return NULL; | |
884 | if (_argo0) { | |
885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator_Destroy. Expected _wxPyValidator_p."); | |
888 | return NULL; | |
8ab979d7 | 889 | } |
2f90df85 RD |
890 | } |
891 | { | |
892 | wxPy_BEGIN_ALLOW_THREADS; | |
893 | wxPyValidator_Destroy(_arg0); | |
894 | ||
895 | wxPy_END_ALLOW_THREADS; | |
896 | } Py_INCREF(Py_None); | |
897 | _resultobj = Py_None; | |
898 | return _resultobj; | |
899 | } | |
900 | ||
f6bcfd97 | 901 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2)) |
2f90df85 | 902 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 903 | PyObject * _resultobj; |
2f90df85 RD |
904 | wxPyValidator * _arg0; |
905 | PyObject * _arg1; | |
f6bcfd97 BP |
906 | PyObject * _arg2; |
907 | int _arg3 = (int ) TRUE; | |
1d99702e | 908 | PyObject * _argo0 = 0; |
2f90df85 | 909 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
910 | PyObject * _obj2 = 0; |
911 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
912 | |
913 | self = self; | |
f6bcfd97 | 914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 915 | return NULL; |
1d99702e RD |
916 | if (_argo0) { |
917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
8ab979d7 RD |
920 | return NULL; |
921 | } | |
922 | } | |
923 | { | |
2f90df85 | 924 | _arg1 = _obj1; |
8ab979d7 | 925 | } |
f6bcfd97 BP |
926 | { |
927 | _arg2 = _obj2; | |
928 | } | |
cf694132 RD |
929 | { |
930 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 931 | wxPyValidator__setSelf(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
932 | |
933 | wxPy_END_ALLOW_THREADS; | |
934 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
935 | _resultobj = Py_None; |
936 | return _resultobj; | |
937 | } | |
938 | ||
939 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
940 | wxWindow *src; | |
941 | wxEvtHandler *dest; | |
942 | src = (wxWindow *) ptr; | |
943 | dest = (wxEvtHandler *) src; | |
944 | return (void *) dest; | |
945 | } | |
946 | ||
947 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 948 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
949 | PyObject * _resultobj; |
950 | wxWindow * _result; | |
951 | wxWindow * _arg0; | |
952 | wxWindowID _arg1; | |
e508a2b6 RD |
953 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
954 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
955 | long _arg4 = (long ) 0; |
956 | char * _arg5 = (char *) "panel"; | |
957 | PyObject * _argo0 = 0; | |
2f90df85 RD |
958 | wxPoint temp; |
959 | PyObject * _obj2 = 0; | |
960 | wxSize temp0; | |
961 | PyObject * _obj3 = 0; | |
efc5f224 | 962 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
963 | char _ptemp[128]; |
964 | ||
965 | self = self; | |
2f90df85 | 966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 967 | return NULL; |
1d99702e RD |
968 | if (_argo0) { |
969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
972 | return NULL; | |
973 | } | |
974 | } | |
2f90df85 RD |
975 | if (_obj2) |
976 | { | |
977 | _arg2 = &temp; | |
978 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 979 | return NULL; |
2f90df85 RD |
980 | } |
981 | if (_obj3) | |
982 | { | |
983 | _arg3 = &temp0; | |
984 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 985 | return NULL; |
2f90df85 | 986 | } |
cf694132 RD |
987 | { |
988 | wxPy_BEGIN_ALLOW_THREADS; | |
989 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
990 | ||
991 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
992 | } if (_result) { |
993 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
994 | _resultobj = Py_BuildValue("s",_ptemp); | |
995 | } else { | |
996 | Py_INCREF(Py_None); | |
997 | _resultobj = Py_None; | |
998 | } | |
8ab979d7 RD |
999 | return _resultobj; |
1000 | } | |
1001 | ||
1002 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
efc5f224 | 1003 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1004 | PyObject * _resultobj; |
1005 | wxWindow * _arg0; | |
1d99702e | 1006 | PyObject * _argo0 = 0; |
efc5f224 | 1007 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1008 | |
1009 | self = self; | |
efc5f224 | 1010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
8ab979d7 | 1011 | return NULL; |
1d99702e RD |
1012 | if (_argo0) { |
1013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
1016 | return NULL; | |
1017 | } | |
1018 | } | |
cf694132 RD |
1019 | { |
1020 | wxPy_BEGIN_ALLOW_THREADS; | |
1021 | wxWindow_CaptureMouse(_arg0); | |
1022 | ||
1023 | wxPy_END_ALLOW_THREADS; | |
1024 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1025 | _resultobj = Py_None; |
1026 | return _resultobj; | |
1027 | } | |
1028 | ||
1029 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 1030 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1031 | PyObject * _resultobj; |
1032 | wxWindow * _arg0; | |
1d99702e RD |
1033 | int _arg1 = (int ) wxBOTH; |
1034 | PyObject * _argo0 = 0; | |
efc5f224 | 1035 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1036 | |
1037 | self = self; | |
efc5f224 | 1038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1039 | return NULL; |
1d99702e RD |
1040 | if (_argo0) { |
1041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1044 | return NULL; | |
1045 | } | |
1046 | } | |
cf694132 RD |
1047 | { |
1048 | wxPy_BEGIN_ALLOW_THREADS; | |
1049 | wxWindow_Center(_arg0,_arg1); | |
1050 | ||
1051 | wxPy_END_ALLOW_THREADS; | |
1052 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1053 | _resultobj = Py_None; |
1054 | return _resultobj; | |
1055 | } | |
1056 | ||
1057 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1058 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1059 | PyObject * _resultobj; |
1060 | wxWindow * _arg0; | |
1d99702e RD |
1061 | int _arg1 = (int ) wxBOTH; |
1062 | PyObject * _argo0 = 0; | |
efc5f224 | 1063 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1064 | |
1065 | self = self; | |
efc5f224 | 1066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1067 | return NULL; |
1d99702e RD |
1068 | if (_argo0) { |
1069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1072 | return NULL; | |
1073 | } | |
1074 | } | |
cf694132 RD |
1075 | { |
1076 | wxPy_BEGIN_ALLOW_THREADS; | |
1077 | wxWindow_Centre(_arg0,_arg1); | |
1078 | ||
1079 | wxPy_END_ALLOW_THREADS; | |
1080 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1081 | _resultobj = Py_None; |
1082 | return _resultobj; | |
1083 | } | |
1084 | ||
bb0054cd | 1085 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1086 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1087 | PyObject * _resultobj; |
1088 | wxWindow * _arg0; | |
1d99702e RD |
1089 | int _arg1 = (int ) wxBOTH; |
1090 | PyObject * _argo0 = 0; | |
efc5f224 | 1091 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1092 | |
1093 | self = self; | |
efc5f224 | 1094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1095 | return NULL; |
1d99702e RD |
1096 | if (_argo0) { |
1097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1100 | return NULL; | |
1101 | } | |
1102 | } | |
1103 | { | |
1104 | wxPy_BEGIN_ALLOW_THREADS; | |
1105 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1106 | ||
1107 | wxPy_END_ALLOW_THREADS; | |
1108 | } Py_INCREF(Py_None); | |
1109 | _resultobj = Py_None; | |
1110 | return _resultobj; | |
1111 | } | |
1112 | ||
1113 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1114 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1115 | PyObject * _resultobj; |
1116 | wxWindow * _arg0; | |
1d99702e RD |
1117 | int _arg1 = (int ) wxBOTH; |
1118 | PyObject * _argo0 = 0; | |
efc5f224 | 1119 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1120 | |
1121 | self = self; | |
efc5f224 | 1122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1123 | return NULL; |
1d99702e RD |
1124 | if (_argo0) { |
1125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1128 | return NULL; | |
1129 | } | |
1130 | } | |
1131 | { | |
1132 | wxPy_BEGIN_ALLOW_THREADS; | |
1133 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1134 | ||
1135 | wxPy_END_ALLOW_THREADS; | |
1136 | } Py_INCREF(Py_None); | |
1137 | _resultobj = Py_None; | |
1138 | return _resultobj; | |
1139 | } | |
1140 | ||
3ca6a5f0 BP |
1141 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1142 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1143 | PyObject * _resultobj; | |
1144 | wxWindow * _arg0; | |
1145 | int _arg1 = (int ) wxBOTH; | |
1146 | PyObject * _argo0 = 0; | |
1147 | char *_kwnames[] = { "self","direction", NULL }; | |
1148 | ||
1149 | self = self; | |
1150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1151 | return NULL; | |
1152 | if (_argo0) { | |
1153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1156 | return NULL; | |
1157 | } | |
1158 | } | |
1159 | { | |
1160 | wxPy_BEGIN_ALLOW_THREADS; | |
1161 | wxWindow_CentreOnScreen(_arg0,_arg1); | |
1162 | ||
1163 | wxPy_END_ALLOW_THREADS; | |
1164 | } Py_INCREF(Py_None); | |
1165 | _resultobj = Py_None; | |
1166 | return _resultobj; | |
1167 | } | |
1168 | ||
1169 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1170 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1171 | PyObject * _resultobj; | |
1172 | wxWindow * _arg0; | |
1173 | int _arg1 = (int ) wxBOTH; | |
1174 | PyObject * _argo0 = 0; | |
1175 | char *_kwnames[] = { "self","direction", NULL }; | |
1176 | ||
1177 | self = self; | |
1178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1179 | return NULL; | |
1180 | if (_argo0) { | |
1181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1184 | return NULL; | |
1185 | } | |
1186 | } | |
1187 | { | |
1188 | wxPy_BEGIN_ALLOW_THREADS; | |
1189 | wxWindow_CenterOnScreen(_arg0,_arg1); | |
1190 | ||
1191 | wxPy_END_ALLOW_THREADS; | |
1192 | } Py_INCREF(Py_None); | |
1193 | _resultobj = Py_None; | |
1194 | return _resultobj; | |
1195 | } | |
1196 | ||
af309447 | 1197 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1198 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1199 | PyObject * _resultobj; |
1200 | wxWindow * _arg0; | |
1201 | int * _arg1; | |
1202 | int * _arg2; | |
1d99702e | 1203 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1204 | int temp; |
1205 | PyObject * _obj1 = 0; | |
1206 | int temp0; | |
1207 | PyObject * _obj2 = 0; | |
efc5f224 | 1208 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1209 | |
1210 | self = self; | |
efc5f224 | 1211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1212 | return NULL; |
1d99702e RD |
1213 | if (_argo0) { |
1214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1217 | return NULL; |
1218 | } | |
1219 | } | |
1220 | { | |
1221 | temp = (int) PyInt_AsLong(_obj1); | |
1222 | _arg1 = &temp; | |
1223 | } | |
1224 | { | |
1225 | temp0 = (int) PyInt_AsLong(_obj2); | |
1226 | _arg2 = &temp0; | |
1227 | } | |
cf694132 RD |
1228 | { |
1229 | wxPy_BEGIN_ALLOW_THREADS; | |
1230 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1231 | ||
1232 | wxPy_END_ALLOW_THREADS; | |
1233 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1234 | _resultobj = Py_None; |
1235 | { | |
1236 | PyObject *o; | |
1237 | o = PyInt_FromLong((long) (*_arg1)); | |
1238 | _resultobj = t_output_helper(_resultobj, o); | |
1239 | } | |
1240 | { | |
1241 | PyObject *o; | |
1242 | o = PyInt_FromLong((long) (*_arg2)); | |
1243 | _resultobj = t_output_helper(_resultobj, o); | |
1244 | } | |
1245 | return _resultobj; | |
1246 | } | |
1247 | ||
af309447 | 1248 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1249 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1250 | PyObject * _resultobj; |
1251 | wxPoint * _result; | |
1252 | wxWindow * _arg0; | |
1253 | wxPoint * _arg1; | |
1d99702e | 1254 | PyObject * _argo0 = 0; |
2f90df85 RD |
1255 | wxPoint temp; |
1256 | PyObject * _obj1 = 0; | |
efc5f224 | 1257 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1258 | char _ptemp[128]; |
1259 | ||
1260 | self = self; | |
2f90df85 | 1261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1262 | return NULL; |
1d99702e RD |
1263 | if (_argo0) { |
1264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1267 | return NULL; | |
1268 | } | |
1269 | } | |
2f90df85 RD |
1270 | { |
1271 | _arg1 = &temp; | |
1272 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1273 | return NULL; |
2f90df85 | 1274 | } |
cf694132 RD |
1275 | { |
1276 | wxPy_BEGIN_ALLOW_THREADS; | |
1277 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1278 | ||
1279 | wxPy_END_ALLOW_THREADS; | |
1280 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
af309447 RD |
1281 | _resultobj = Py_BuildValue("s",_ptemp); |
1282 | return _resultobj; | |
1283 | } | |
1284 | ||
8ab979d7 | 1285 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1286 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1287 | PyObject * _resultobj; |
1288 | bool _result; | |
1289 | wxWindow * _arg0; | |
1d99702e RD |
1290 | int _arg1 = (int ) FALSE; |
1291 | PyObject * _argo0 = 0; | |
efc5f224 | 1292 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1293 | |
1294 | self = self; | |
efc5f224 | 1295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1296 | return NULL; |
1d99702e RD |
1297 | if (_argo0) { |
1298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1301 | return NULL; | |
1302 | } | |
1303 | } | |
cf694132 RD |
1304 | { |
1305 | wxPy_BEGIN_ALLOW_THREADS; | |
1306 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1307 | ||
1308 | wxPy_END_ALLOW_THREADS; | |
1309 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1310 | return _resultobj; |
1311 | } | |
1312 | ||
1313 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1314 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1315 | PyObject * _resultobj; |
1316 | bool _result; | |
1317 | wxWindow * _arg0; | |
1d99702e | 1318 | PyObject * _argo0 = 0; |
efc5f224 | 1319 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1320 | |
1321 | self = self; | |
efc5f224 | 1322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1323 | return NULL; |
1d99702e RD |
1324 | if (_argo0) { |
1325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1328 | return NULL; | |
1329 | } | |
1330 | } | |
cf694132 RD |
1331 | { |
1332 | wxPy_BEGIN_ALLOW_THREADS; | |
1333 | _result = (bool )wxWindow_Destroy(_arg0); | |
1334 | ||
1335 | wxPy_END_ALLOW_THREADS; | |
1336 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1337 | return _resultobj; |
1338 | } | |
1339 | ||
1340 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1341 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1342 | PyObject * _resultobj; |
1343 | wxWindow * _arg0; | |
1d99702e | 1344 | PyObject * _argo0 = 0; |
efc5f224 | 1345 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1346 | |
1347 | self = self; | |
efc5f224 | 1348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1349 | return NULL; |
1d99702e RD |
1350 | if (_argo0) { |
1351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1354 | return NULL; | |
1355 | } | |
1356 | } | |
cf694132 RD |
1357 | { |
1358 | wxPy_BEGIN_ALLOW_THREADS; | |
1359 | wxWindow_DestroyChildren(_arg0); | |
1360 | ||
1361 | wxPy_END_ALLOW_THREADS; | |
1362 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1363 | _resultobj = Py_None; |
1364 | return _resultobj; | |
1365 | } | |
1366 | ||
1367 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) | |
efc5f224 | 1368 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1369 | PyObject * _resultobj; |
1370 | wxWindow * _arg0; | |
1371 | bool _arg1; | |
1d99702e | 1372 | PyObject * _argo0 = 0; |
8ab979d7 | 1373 | int tempbool1; |
efc5f224 | 1374 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1375 | |
1376 | self = self; | |
efc5f224 | 1377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1378 | return NULL; |
1d99702e RD |
1379 | if (_argo0) { |
1380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1383 | return NULL; | |
1384 | } | |
1385 | } | |
1386 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1387 | { |
1388 | wxPy_BEGIN_ALLOW_THREADS; | |
1389 | wxWindow_DragAcceptFiles(_arg0,_arg1); | |
1390 | ||
1391 | wxPy_END_ALLOW_THREADS; | |
1392 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1393 | _resultobj = Py_None; |
1394 | return _resultobj; | |
1395 | } | |
1396 | ||
1397 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1398 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1399 | PyObject * _resultobj; |
1400 | wxWindow * _arg0; | |
1401 | bool _arg1; | |
1d99702e | 1402 | PyObject * _argo0 = 0; |
8ab979d7 | 1403 | int tempbool1; |
efc5f224 | 1404 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1405 | |
1406 | self = self; | |
efc5f224 | 1407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1408 | return NULL; |
1d99702e RD |
1409 | if (_argo0) { |
1410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1413 | return NULL; | |
1414 | } | |
1415 | } | |
1416 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1417 | { |
1418 | wxPy_BEGIN_ALLOW_THREADS; | |
1419 | wxWindow_Enable(_arg0,_arg1); | |
1420 | ||
1421 | wxPy_END_ALLOW_THREADS; | |
1422 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1423 | _resultobj = Py_None; |
1424 | return _resultobj; | |
1425 | } | |
1426 | ||
af309447 | 1427 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1428 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1429 | PyObject * _resultobj; |
1430 | wxWindow * _result; | |
1431 | wxWindow * _arg0; | |
1432 | long _arg1; | |
1d99702e | 1433 | PyObject * _argo0 = 0; |
efc5f224 | 1434 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1435 | char _ptemp[128]; |
1436 | ||
1437 | self = self; | |
efc5f224 | 1438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1439 | return NULL; |
1d99702e RD |
1440 | if (_argo0) { |
1441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1444 | return NULL; |
1445 | } | |
1446 | } | |
cf694132 RD |
1447 | { |
1448 | wxPy_BEGIN_ALLOW_THREADS; | |
1449 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1450 | ||
1451 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1452 | } if (_result) { |
1453 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1454 | _resultobj = Py_BuildValue("s",_ptemp); | |
1455 | } else { | |
1456 | Py_INCREF(Py_None); | |
1457 | _resultobj = Py_None; | |
1458 | } | |
8ab979d7 RD |
1459 | return _resultobj; |
1460 | } | |
1461 | ||
1462 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1463 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1464 | PyObject * _resultobj; |
1465 | wxWindow * _result; | |
1466 | wxWindow * _arg0; | |
1467 | wxString * _arg1; | |
1d99702e | 1468 | PyObject * _argo0 = 0; |
8ab979d7 | 1469 | PyObject * _obj1 = 0; |
efc5f224 | 1470 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1471 | char _ptemp[128]; |
1472 | ||
1473 | self = self; | |
efc5f224 | 1474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1475 | return NULL; |
1d99702e RD |
1476 | if (_argo0) { |
1477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1480 | return NULL; | |
1481 | } | |
1482 | } | |
1483 | { | |
185d7c3e RD |
1484 | #if PYTHON_API_VERSION >= 1009 |
1485 | char* tmpPtr; int tmpSize; | |
1486 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1487 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1488 | return NULL; | |
1489 | } | |
1490 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1491 | return NULL; | |
1492 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1493 | #else | |
8ab979d7 RD |
1494 | if (!PyString_Check(_obj1)) { |
1495 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1496 | return NULL; | |
1497 | } | |
185d7c3e RD |
1498 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1499 | #endif | |
8ab979d7 | 1500 | } |
cf694132 RD |
1501 | { |
1502 | wxPy_BEGIN_ALLOW_THREADS; | |
1503 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1504 | ||
1505 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1506 | } if (_result) { |
1507 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1508 | _resultobj = Py_BuildValue("s",_ptemp); | |
1509 | } else { | |
1510 | Py_INCREF(Py_None); | |
1511 | _resultobj = Py_None; | |
1512 | } | |
8ab979d7 RD |
1513 | { |
1514 | if (_obj1) | |
1515 | delete _arg1; | |
1516 | } | |
1517 | return _resultobj; | |
1518 | } | |
1519 | ||
1520 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1521 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1522 | PyObject * _resultobj; |
1523 | wxWindow * _arg0; | |
1d99702e | 1524 | PyObject * _argo0 = 0; |
efc5f224 | 1525 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1526 | |
1527 | self = self; | |
efc5f224 | 1528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1529 | return NULL; |
1d99702e RD |
1530 | if (_argo0) { |
1531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1534 | return NULL; | |
1535 | } | |
1536 | } | |
cf694132 RD |
1537 | { |
1538 | wxPy_BEGIN_ALLOW_THREADS; | |
1539 | wxWindow_Fit(_arg0); | |
1540 | ||
1541 | wxPy_END_ALLOW_THREADS; | |
1542 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1543 | _resultobj = Py_None; |
1544 | return _resultobj; | |
1545 | } | |
1546 | ||
1547 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1548 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1549 | PyObject * _resultobj; |
1550 | wxColour * _result; | |
1551 | wxWindow * _arg0; | |
1d99702e | 1552 | PyObject * _argo0 = 0; |
efc5f224 | 1553 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1554 | char _ptemp[128]; |
1555 | ||
1556 | self = self; | |
efc5f224 | 1557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1558 | return NULL; |
1d99702e RD |
1559 | if (_argo0) { |
1560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1563 | return NULL; | |
1564 | } | |
1565 | } | |
cf694132 RD |
1566 | { |
1567 | wxPy_BEGIN_ALLOW_THREADS; | |
1568 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1569 | ||
1570 | wxPy_END_ALLOW_THREADS; | |
1571 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
1572 | _resultobj = Py_BuildValue("s",_ptemp); |
1573 | return _resultobj; | |
1574 | } | |
1575 | ||
d426c97e RD |
1576 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1577 | wxWindowList& list = self->GetChildren(); | |
1578 | return wxPy_ConvertList(&list, "wxWindow"); | |
1579 | } | |
1580 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1581 | PyObject * _resultobj; | |
1582 | PyObject * _result; | |
1583 | wxWindow * _arg0; | |
1584 | PyObject * _argo0 = 0; | |
1585 | char *_kwnames[] = { "self", NULL }; | |
1586 | ||
1587 | self = self; | |
1588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1589 | return NULL; | |
1590 | if (_argo0) { | |
1591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1594 | return NULL; | |
1595 | } | |
1596 | } | |
1597 | { | |
1598 | wxPy_BEGIN_ALLOW_THREADS; | |
1599 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1600 | ||
1601 | wxPy_END_ALLOW_THREADS; | |
1602 | }{ | |
1603 | _resultobj = _result; | |
1604 | } | |
1605 | return _resultobj; | |
1606 | } | |
1607 | ||
8ab979d7 | 1608 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1609 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1610 | PyObject * _resultobj; |
1611 | int _result; | |
1612 | wxWindow * _arg0; | |
1d99702e | 1613 | PyObject * _argo0 = 0; |
efc5f224 | 1614 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1615 | |
1616 | self = self; | |
efc5f224 | 1617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1618 | return NULL; |
1d99702e RD |
1619 | if (_argo0) { |
1620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1623 | return NULL; | |
1624 | } | |
1625 | } | |
cf694132 RD |
1626 | { |
1627 | wxPy_BEGIN_ALLOW_THREADS; | |
1628 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1629 | ||
1630 | wxPy_END_ALLOW_THREADS; | |
1631 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1632 | return _resultobj; |
1633 | } | |
1634 | ||
1635 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1636 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1637 | PyObject * _resultobj; |
1638 | int _result; | |
1639 | wxWindow * _arg0; | |
1d99702e | 1640 | PyObject * _argo0 = 0; |
efc5f224 | 1641 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1642 | |
1643 | self = self; | |
efc5f224 | 1644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1645 | return NULL; |
1d99702e RD |
1646 | if (_argo0) { |
1647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1650 | return NULL; | |
1651 | } | |
1652 | } | |
cf694132 RD |
1653 | { |
1654 | wxPy_BEGIN_ALLOW_THREADS; | |
1655 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1656 | ||
1657 | wxPy_END_ALLOW_THREADS; | |
1658 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1659 | return _resultobj; |
1660 | } | |
1661 | ||
b8b8dda7 | 1662 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1663 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1664 | PyObject * _resultobj; |
1665 | wxWindow * _arg0; | |
1666 | int * _arg1; | |
1667 | int temp; | |
1668 | int * _arg2; | |
1669 | int temp0; | |
1d99702e | 1670 | PyObject * _argo0 = 0; |
efc5f224 | 1671 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1672 | |
1673 | self = self; | |
1674 | { | |
1675 | _arg1 = &temp; | |
1676 | } | |
1677 | { | |
1678 | _arg2 = &temp0; | |
1679 | } | |
efc5f224 | 1680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1681 | return NULL; |
1d99702e RD |
1682 | if (_argo0) { |
1683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1686 | return NULL; |
1687 | } | |
1688 | } | |
cf694132 RD |
1689 | { |
1690 | wxPy_BEGIN_ALLOW_THREADS; | |
1691 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1692 | ||
1693 | wxPy_END_ALLOW_THREADS; | |
1694 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1695 | _resultobj = Py_None; |
1696 | { | |
1697 | PyObject *o; | |
1698 | o = PyInt_FromLong((long) (*_arg1)); | |
1699 | _resultobj = t_output_helper(_resultobj, o); | |
1700 | } | |
1701 | { | |
1702 | PyObject *o; | |
1703 | o = PyInt_FromLong((long) (*_arg2)); | |
1704 | _resultobj = t_output_helper(_resultobj, o); | |
1705 | } | |
1706 | return _resultobj; | |
1707 | } | |
1708 | ||
b8b8dda7 | 1709 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1710 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1711 | PyObject * _resultobj; |
1712 | wxSize * _result; | |
1713 | wxWindow * _arg0; | |
1d99702e | 1714 | PyObject * _argo0 = 0; |
efc5f224 | 1715 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1716 | char _ptemp[128]; |
1717 | ||
1718 | self = self; | |
efc5f224 | 1719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1720 | return NULL; |
1d99702e RD |
1721 | if (_argo0) { |
1722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1725 | return NULL; | |
1726 | } | |
1727 | } | |
cf694132 RD |
1728 | { |
1729 | wxPy_BEGIN_ALLOW_THREADS; | |
1730 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1731 | ||
1732 | wxPy_END_ALLOW_THREADS; | |
1733 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
1734 | _resultobj = Py_BuildValue("s",_ptemp); |
1735 | return _resultobj; | |
1736 | } | |
1737 | ||
8ab979d7 | 1738 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1739 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1740 | PyObject * _resultobj; |
1741 | wxLayoutConstraints * _result; | |
1742 | wxWindow * _arg0; | |
1d99702e | 1743 | PyObject * _argo0 = 0; |
efc5f224 | 1744 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1745 | char _ptemp[128]; |
1746 | ||
1747 | self = self; | |
efc5f224 | 1748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1749 | return NULL; |
1d99702e RD |
1750 | if (_argo0) { |
1751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1754 | return NULL; | |
1755 | } | |
1756 | } | |
cf694132 RD |
1757 | { |
1758 | wxPy_BEGIN_ALLOW_THREADS; | |
1759 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1760 | ||
1761 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1762 | } if (_result) { |
1763 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1764 | _resultobj = Py_BuildValue("s",_ptemp); | |
1765 | } else { | |
1766 | Py_INCREF(Py_None); | |
1767 | _resultobj = Py_None; | |
1768 | } | |
8ab979d7 RD |
1769 | return _resultobj; |
1770 | } | |
1771 | ||
1afc06c2 RD |
1772 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1773 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1774 | PyObject * _resultobj; | |
1775 | wxEvtHandler * _result; | |
1776 | wxWindow * _arg0; | |
1777 | PyObject * _argo0 = 0; | |
1778 | char *_kwnames[] = { "self", NULL }; | |
1779 | char _ptemp[128]; | |
1780 | ||
1781 | self = self; | |
1782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1783 | return NULL; | |
1784 | if (_argo0) { | |
1785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1788 | return NULL; | |
1789 | } | |
1790 | } | |
1791 | { | |
1792 | wxPy_BEGIN_ALLOW_THREADS; | |
1793 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1794 | ||
1795 | wxPy_END_ALLOW_THREADS; | |
1796 | } if (_result) { | |
1797 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
1798 | _resultobj = Py_BuildValue("s",_ptemp); | |
1799 | } else { | |
1800 | Py_INCREF(Py_None); | |
1801 | _resultobj = Py_None; | |
1802 | } | |
1803 | return _resultobj; | |
1804 | } | |
1805 | ||
8ab979d7 | 1806 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1807 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1808 | PyObject * _resultobj; |
1809 | wxFont * _result; | |
1810 | wxWindow * _arg0; | |
1d99702e | 1811 | PyObject * _argo0 = 0; |
efc5f224 | 1812 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1813 | char _ptemp[128]; |
1814 | ||
1815 | self = self; | |
efc5f224 | 1816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1817 | return NULL; |
1d99702e RD |
1818 | if (_argo0) { |
1819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1822 | return NULL; | |
1823 | } | |
1824 | } | |
cf694132 RD |
1825 | { |
1826 | wxPy_BEGIN_ALLOW_THREADS; | |
1827 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
b8b8dda7 | 1828 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
1829 | |
1830 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1831 | } if (_result) { |
1832 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1833 | _resultobj = Py_BuildValue("s",_ptemp); | |
1834 | } else { | |
1835 | Py_INCREF(Py_None); | |
1836 | _resultobj = Py_None; | |
1837 | } | |
8ab979d7 RD |
1838 | return _resultobj; |
1839 | } | |
1840 | ||
1841 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1842 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1843 | PyObject * _resultobj; |
1844 | wxColour * _result; | |
1845 | wxWindow * _arg0; | |
1d99702e | 1846 | PyObject * _argo0 = 0; |
efc5f224 | 1847 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1848 | char _ptemp[128]; |
1849 | ||
1850 | self = self; | |
efc5f224 | 1851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1852 | return NULL; |
1d99702e RD |
1853 | if (_argo0) { |
1854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1857 | return NULL; | |
1858 | } | |
1859 | } | |
cf694132 RD |
1860 | { |
1861 | wxPy_BEGIN_ALLOW_THREADS; | |
1862 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1863 | ||
1864 | wxPy_END_ALLOW_THREADS; | |
1865 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
1866 | _resultobj = Py_BuildValue("s",_ptemp); |
1867 | return _resultobj; | |
1868 | } | |
1869 | ||
1870 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1871 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1872 | PyObject * _resultobj; |
1873 | wxWindow * _result; | |
1874 | wxWindow * _arg0; | |
1d99702e | 1875 | PyObject * _argo0 = 0; |
efc5f224 | 1876 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1877 | char _ptemp[128]; |
1878 | ||
1879 | self = self; | |
efc5f224 | 1880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1881 | return NULL; |
1d99702e RD |
1882 | if (_argo0) { |
1883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1886 | return NULL; | |
1887 | } | |
1888 | } | |
cf694132 RD |
1889 | { |
1890 | wxPy_BEGIN_ALLOW_THREADS; | |
1891 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1892 | ||
1893 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1894 | } if (_result) { |
1895 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1896 | _resultobj = Py_BuildValue("s",_ptemp); | |
1897 | } else { | |
1898 | Py_INCREF(Py_None); | |
1899 | _resultobj = Py_None; | |
1900 | } | |
8ab979d7 RD |
1901 | return _resultobj; |
1902 | } | |
1903 | ||
2abc0a0f | 1904 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1905 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1906 | } |
1907 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1908 | PyObject * _resultobj; | |
1909 | long _result; | |
1910 | wxWindow * _arg0; | |
1911 | PyObject * _argo0 = 0; | |
1912 | char *_kwnames[] = { "self", NULL }; | |
1913 | ||
1914 | self = self; | |
1915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1916 | return NULL; | |
1917 | if (_argo0) { | |
1918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1921 | return NULL; | |
1922 | } | |
1923 | } | |
1924 | { | |
1925 | wxPy_BEGIN_ALLOW_THREADS; | |
1926 | _result = (long )wxWindow_GetHandle(_arg0); | |
1927 | ||
1928 | wxPy_END_ALLOW_THREADS; | |
1929 | } _resultobj = Py_BuildValue("l",_result); | |
1930 | return _resultobj; | |
1931 | } | |
1932 | ||
8ab979d7 | 1933 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 1934 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1935 | PyObject * _resultobj; |
1936 | int _result; | |
1937 | wxWindow * _arg0; | |
1d99702e | 1938 | PyObject * _argo0 = 0; |
efc5f224 | 1939 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1940 | |
1941 | self = self; | |
efc5f224 | 1942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 1943 | return NULL; |
1d99702e RD |
1944 | if (_argo0) { |
1945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
1948 | return NULL; | |
1949 | } | |
1950 | } | |
cf694132 RD |
1951 | { |
1952 | wxPy_BEGIN_ALLOW_THREADS; | |
1953 | _result = (int )wxWindow_GetId(_arg0); | |
1954 | ||
1955 | wxPy_END_ALLOW_THREADS; | |
1956 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1957 | return _resultobj; |
1958 | } | |
1959 | ||
8ab979d7 | 1960 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 1961 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1962 | PyObject * _resultobj; |
1963 | wxString * _result; | |
1964 | wxWindow * _arg0; | |
1d99702e | 1965 | PyObject * _argo0 = 0; |
efc5f224 | 1966 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1967 | |
1968 | self = self; | |
efc5f224 | 1969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 1970 | return NULL; |
1d99702e RD |
1971 | if (_argo0) { |
1972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
1975 | return NULL; | |
1976 | } | |
1977 | } | |
8ab979d7 | 1978 | { |
cf694132 RD |
1979 | wxPy_BEGIN_ALLOW_THREADS; |
1980 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
1981 | ||
1982 | wxPy_END_ALLOW_THREADS; | |
1983 | }{ | |
eec92d76 | 1984 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1985 | } |
1986 | { | |
1987 | delete _result; | |
1988 | } | |
1989 | return _resultobj; | |
1990 | } | |
1991 | ||
bb0054cd | 1992 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 1993 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1994 | PyObject * _resultobj; |
1995 | wxWindow * _arg0; | |
1996 | wxString * _arg1; | |
1d99702e | 1997 | PyObject * _argo0 = 0; |
bb0054cd | 1998 | PyObject * _obj1 = 0; |
efc5f224 | 1999 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2000 | |
2001 | self = self; | |
efc5f224 | 2002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2003 | return NULL; |
1d99702e RD |
2004 | if (_argo0) { |
2005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2008 | return NULL; | |
2009 | } | |
2010 | } | |
2011 | { | |
185d7c3e RD |
2012 | #if PYTHON_API_VERSION >= 1009 |
2013 | char* tmpPtr; int tmpSize; | |
2014 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2015 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2016 | return NULL; | |
2017 | } | |
2018 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2019 | return NULL; | |
2020 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2021 | #else | |
bb0054cd RD |
2022 | if (!PyString_Check(_obj1)) { |
2023 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2024 | return NULL; | |
2025 | } | |
185d7c3e RD |
2026 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2027 | #endif | |
bb0054cd RD |
2028 | } |
2029 | { | |
2030 | wxPy_BEGIN_ALLOW_THREADS; | |
2031 | wxWindow_SetLabel(_arg0,*_arg1); | |
2032 | ||
2033 | wxPy_END_ALLOW_THREADS; | |
2034 | } Py_INCREF(Py_None); | |
2035 | _resultobj = Py_None; | |
2036 | { | |
2037 | if (_obj1) | |
2038 | delete _arg1; | |
2039 | } | |
2040 | return _resultobj; | |
2041 | } | |
2042 | ||
8ab979d7 | 2043 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2044 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2045 | PyObject * _resultobj; |
2046 | wxString * _result; | |
2047 | wxWindow * _arg0; | |
1d99702e | 2048 | PyObject * _argo0 = 0; |
efc5f224 | 2049 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2050 | |
2051 | self = self; | |
efc5f224 | 2052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2053 | return NULL; |
1d99702e RD |
2054 | if (_argo0) { |
2055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2058 | return NULL; | |
2059 | } | |
2060 | } | |
8ab979d7 | 2061 | { |
cf694132 RD |
2062 | wxPy_BEGIN_ALLOW_THREADS; |
2063 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2064 | ||
2065 | wxPy_END_ALLOW_THREADS; | |
2066 | }{ | |
eec92d76 | 2067 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2068 | } |
2069 | { | |
2070 | delete _result; | |
2071 | } | |
2072 | return _resultobj; | |
2073 | } | |
2074 | ||
2075 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2076 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2077 | PyObject * _resultobj; |
2078 | wxWindow * _result; | |
2079 | wxWindow * _arg0; | |
1d99702e | 2080 | PyObject * _argo0 = 0; |
efc5f224 | 2081 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2082 | char _ptemp[128]; |
2083 | ||
2084 | self = self; | |
efc5f224 | 2085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2086 | return NULL; |
1d99702e RD |
2087 | if (_argo0) { |
2088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2091 | return NULL; | |
2092 | } | |
2093 | } | |
cf694132 RD |
2094 | { |
2095 | wxPy_BEGIN_ALLOW_THREADS; | |
2096 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2097 | ||
2098 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2099 | } if (_result) { |
2100 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
2101 | _resultobj = Py_BuildValue("s",_ptemp); | |
2102 | } else { | |
2103 | Py_INCREF(Py_None); | |
2104 | _resultobj = Py_None; | |
2105 | } | |
8ab979d7 RD |
2106 | return _resultobj; |
2107 | } | |
2108 | ||
b8b8dda7 | 2109 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2110 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2111 | PyObject * _resultobj; |
2112 | wxWindow * _arg0; | |
2113 | int * _arg1; | |
2114 | int temp; | |
2115 | int * _arg2; | |
2116 | int temp0; | |
1d99702e | 2117 | PyObject * _argo0 = 0; |
efc5f224 | 2118 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2119 | |
2120 | self = self; | |
2121 | { | |
2122 | _arg1 = &temp; | |
2123 | } | |
2124 | { | |
2125 | _arg2 = &temp0; | |
2126 | } | |
efc5f224 | 2127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2128 | return NULL; |
1d99702e RD |
2129 | if (_argo0) { |
2130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2133 | return NULL; | |
2134 | } | |
2135 | } | |
cf694132 RD |
2136 | { |
2137 | wxPy_BEGIN_ALLOW_THREADS; | |
2138 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2139 | ||
2140 | wxPy_END_ALLOW_THREADS; | |
2141 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
2142 | _resultobj = Py_None; |
2143 | { | |
2144 | PyObject *o; | |
2145 | o = PyInt_FromLong((long) (*_arg1)); | |
2146 | _resultobj = t_output_helper(_resultobj, o); | |
2147 | } | |
2148 | { | |
2149 | PyObject *o; | |
2150 | o = PyInt_FromLong((long) (*_arg2)); | |
2151 | _resultobj = t_output_helper(_resultobj, o); | |
2152 | } | |
2153 | return _resultobj; | |
2154 | } | |
2155 | ||
2156 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2157 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2158 | PyObject * _resultobj; |
2159 | wxPoint * _result; | |
2160 | wxWindow * _arg0; | |
1d99702e | 2161 | PyObject * _argo0 = 0; |
efc5f224 | 2162 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2163 | char _ptemp[128]; |
2164 | ||
2165 | self = self; | |
efc5f224 | 2166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2167 | return NULL; |
1d99702e RD |
2168 | if (_argo0) { |
2169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2172 | return NULL; | |
2173 | } | |
2174 | } | |
cf694132 RD |
2175 | { |
2176 | wxPy_BEGIN_ALLOW_THREADS; | |
2177 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2178 | ||
2179 | wxPy_END_ALLOW_THREADS; | |
2180 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
2181 | _resultobj = Py_BuildValue("s",_ptemp); |
2182 | return _resultobj; | |
2183 | } | |
2184 | ||
2185 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2186 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2187 | PyObject * _resultobj; |
2188 | wxRect * _result; | |
2189 | wxWindow * _arg0; | |
1d99702e | 2190 | PyObject * _argo0 = 0; |
efc5f224 | 2191 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2192 | char _ptemp[128]; |
2193 | ||
2194 | self = self; | |
efc5f224 | 2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2196 | return NULL; |
1d99702e RD |
2197 | if (_argo0) { |
2198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2201 | return NULL; | |
2202 | } | |
2203 | } | |
cf694132 RD |
2204 | { |
2205 | wxPy_BEGIN_ALLOW_THREADS; | |
2206 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2207 | ||
2208 | wxPy_END_ALLOW_THREADS; | |
2209 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
b8b8dda7 RD |
2210 | _resultobj = Py_BuildValue("s",_ptemp); |
2211 | return _resultobj; | |
2212 | } | |
2213 | ||
8ab979d7 | 2214 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2215 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2216 | PyObject * _resultobj; |
2217 | int _result; | |
2218 | wxWindow * _arg0; | |
2219 | int _arg1; | |
1d99702e | 2220 | PyObject * _argo0 = 0; |
efc5f224 | 2221 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2222 | |
2223 | self = self; | |
efc5f224 | 2224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2225 | return NULL; |
1d99702e RD |
2226 | if (_argo0) { |
2227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2230 | return NULL; | |
2231 | } | |
2232 | } | |
cf694132 RD |
2233 | { |
2234 | wxPy_BEGIN_ALLOW_THREADS; | |
2235 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2236 | ||
2237 | wxPy_END_ALLOW_THREADS; | |
2238 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2239 | return _resultobj; |
2240 | } | |
2241 | ||
2242 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2243 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2244 | PyObject * _resultobj; |
2245 | int _result; | |
2246 | wxWindow * _arg0; | |
2247 | int _arg1; | |
1d99702e | 2248 | PyObject * _argo0 = 0; |
efc5f224 | 2249 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2250 | |
2251 | self = self; | |
efc5f224 | 2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2253 | return NULL; |
1d99702e RD |
2254 | if (_argo0) { |
2255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2258 | return NULL; | |
2259 | } | |
2260 | } | |
cf694132 RD |
2261 | { |
2262 | wxPy_BEGIN_ALLOW_THREADS; | |
2263 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2264 | ||
2265 | wxPy_END_ALLOW_THREADS; | |
2266 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2267 | return _resultobj; |
2268 | } | |
2269 | ||
2270 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2271 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2272 | PyObject * _resultobj; |
2273 | int _result; | |
2274 | wxWindow * _arg0; | |
2275 | int _arg1; | |
1d99702e | 2276 | PyObject * _argo0 = 0; |
efc5f224 | 2277 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2278 | |
2279 | self = self; | |
efc5f224 | 2280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2281 | return NULL; |
1d99702e RD |
2282 | if (_argo0) { |
2283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2286 | return NULL; | |
2287 | } | |
2288 | } | |
cf694132 RD |
2289 | { |
2290 | wxPy_BEGIN_ALLOW_THREADS; | |
2291 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2292 | ||
2293 | wxPy_END_ALLOW_THREADS; | |
2294 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2295 | return _resultobj; |
2296 | } | |
2297 | ||
b8b8dda7 | 2298 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2299 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2300 | PyObject * _resultobj; |
2301 | wxWindow * _arg0; | |
2302 | int * _arg1; | |
2303 | int temp; | |
2304 | int * _arg2; | |
2305 | int temp0; | |
1d99702e | 2306 | PyObject * _argo0 = 0; |
efc5f224 | 2307 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2308 | |
2309 | self = self; | |
2310 | { | |
2311 | _arg1 = &temp; | |
2312 | } | |
2313 | { | |
2314 | _arg2 = &temp0; | |
2315 | } | |
efc5f224 | 2316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2317 | return NULL; |
1d99702e RD |
2318 | if (_argo0) { |
2319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2322 | return NULL; |
2323 | } | |
2324 | } | |
cf694132 RD |
2325 | { |
2326 | wxPy_BEGIN_ALLOW_THREADS; | |
2327 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2328 | ||
2329 | wxPy_END_ALLOW_THREADS; | |
2330 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2331 | _resultobj = Py_None; |
2332 | { | |
2333 | PyObject *o; | |
2334 | o = PyInt_FromLong((long) (*_arg1)); | |
2335 | _resultobj = t_output_helper(_resultobj, o); | |
2336 | } | |
2337 | { | |
2338 | PyObject *o; | |
2339 | o = PyInt_FromLong((long) (*_arg2)); | |
2340 | _resultobj = t_output_helper(_resultobj, o); | |
2341 | } | |
2342 | return _resultobj; | |
2343 | } | |
2344 | ||
b8b8dda7 | 2345 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2346 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2347 | PyObject * _resultobj; |
2348 | wxSize * _result; | |
2349 | wxWindow * _arg0; | |
1d99702e | 2350 | PyObject * _argo0 = 0; |
efc5f224 | 2351 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2352 | char _ptemp[128]; |
2353 | ||
2354 | self = self; | |
efc5f224 | 2355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2356 | return NULL; |
1d99702e RD |
2357 | if (_argo0) { |
2358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2361 | return NULL; | |
2362 | } | |
2363 | } | |
cf694132 RD |
2364 | { |
2365 | wxPy_BEGIN_ALLOW_THREADS; | |
2366 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2367 | ||
2368 | wxPy_END_ALLOW_THREADS; | |
2369 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
2370 | _resultobj = Py_BuildValue("s",_ptemp); |
2371 | return _resultobj; | |
2372 | } | |
2373 | ||
8ab979d7 | 2374 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2375 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2376 | PyObject * _resultobj; |
2377 | wxWindow * _arg0; | |
2378 | wxString * _arg1; | |
2379 | int * _arg2; | |
2380 | int temp; | |
2381 | int * _arg3; | |
2382 | int temp0; | |
1d99702e | 2383 | PyObject * _argo0 = 0; |
8ab979d7 | 2384 | PyObject * _obj1 = 0; |
efc5f224 | 2385 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2386 | |
2387 | self = self; | |
2388 | { | |
2389 | _arg2 = &temp; | |
2390 | } | |
2391 | { | |
2392 | _arg3 = &temp0; | |
2393 | } | |
efc5f224 | 2394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2395 | return NULL; |
1d99702e RD |
2396 | if (_argo0) { |
2397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2400 | return NULL; | |
2401 | } | |
2402 | } | |
2403 | { | |
185d7c3e RD |
2404 | #if PYTHON_API_VERSION >= 1009 |
2405 | char* tmpPtr; int tmpSize; | |
2406 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2407 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2408 | return NULL; | |
2409 | } | |
2410 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2411 | return NULL; | |
2412 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2413 | #else | |
8ab979d7 RD |
2414 | if (!PyString_Check(_obj1)) { |
2415 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2416 | return NULL; | |
2417 | } | |
185d7c3e RD |
2418 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2419 | #endif | |
8ab979d7 | 2420 | } |
cf694132 RD |
2421 | { |
2422 | wxPy_BEGIN_ALLOW_THREADS; | |
2423 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2424 | ||
2425 | wxPy_END_ALLOW_THREADS; | |
2426 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2427 | _resultobj = Py_None; |
2428 | { | |
2429 | PyObject *o; | |
2430 | o = PyInt_FromLong((long) (*_arg2)); | |
2431 | _resultobj = t_output_helper(_resultobj, o); | |
2432 | } | |
2433 | { | |
2434 | PyObject *o; | |
2435 | o = PyInt_FromLong((long) (*_arg3)); | |
2436 | _resultobj = t_output_helper(_resultobj, o); | |
2437 | } | |
2438 | { | |
2439 | if (_obj1) | |
2440 | delete _arg1; | |
2441 | } | |
2442 | return _resultobj; | |
2443 | } | |
2444 | ||
af309447 | 2445 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2446 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2447 | PyObject * _resultobj; |
2448 | wxWindow * _arg0; | |
2449 | wxString * _arg1; | |
2450 | int * _arg2; | |
2451 | int temp; | |
2452 | int * _arg3; | |
2453 | int temp0; | |
2454 | int * _arg4; | |
2455 | int temp1; | |
2456 | int * _arg5; | |
2457 | int temp2; | |
1d99702e RD |
2458 | wxFont * _arg6 = (wxFont *) NULL; |
2459 | PyObject * _argo0 = 0; | |
af309447 | 2460 | PyObject * _obj1 = 0; |
1d99702e | 2461 | PyObject * _argo6 = 0; |
efc5f224 | 2462 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2463 | |
2464 | self = self; | |
2465 | { | |
2466 | _arg2 = &temp; | |
2467 | } | |
2468 | { | |
2469 | _arg3 = &temp0; | |
2470 | } | |
2471 | { | |
2472 | _arg4 = &temp1; | |
2473 | } | |
2474 | { | |
2475 | _arg5 = &temp2; | |
2476 | } | |
efc5f224 | 2477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2478 | return NULL; |
1d99702e RD |
2479 | if (_argo0) { |
2480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2483 | return NULL; | |
2484 | } | |
2485 | } | |
2486 | { | |
185d7c3e RD |
2487 | #if PYTHON_API_VERSION >= 1009 |
2488 | char* tmpPtr; int tmpSize; | |
2489 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2490 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2491 | return NULL; | |
2492 | } | |
2493 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2494 | return NULL; | |
2495 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2496 | #else | |
af309447 RD |
2497 | if (!PyString_Check(_obj1)) { |
2498 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2499 | return NULL; | |
2500 | } | |
185d7c3e RD |
2501 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2502 | #endif | |
af309447 | 2503 | } |
1d99702e RD |
2504 | if (_argo6) { |
2505 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2506 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2508 | return NULL; | |
2509 | } | |
2510 | } | |
cf694132 RD |
2511 | { |
2512 | wxPy_BEGIN_ALLOW_THREADS; | |
2513 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2514 | ||
2515 | wxPy_END_ALLOW_THREADS; | |
2516 | } Py_INCREF(Py_None); | |
af309447 RD |
2517 | _resultobj = Py_None; |
2518 | { | |
2519 | PyObject *o; | |
2520 | o = PyInt_FromLong((long) (*_arg2)); | |
2521 | _resultobj = t_output_helper(_resultobj, o); | |
2522 | } | |
2523 | { | |
2524 | PyObject *o; | |
2525 | o = PyInt_FromLong((long) (*_arg3)); | |
2526 | _resultobj = t_output_helper(_resultobj, o); | |
2527 | } | |
2528 | { | |
2529 | PyObject *o; | |
2530 | o = PyInt_FromLong((long) (*_arg4)); | |
2531 | _resultobj = t_output_helper(_resultobj, o); | |
2532 | } | |
2533 | { | |
2534 | PyObject *o; | |
2535 | o = PyInt_FromLong((long) (*_arg5)); | |
2536 | _resultobj = t_output_helper(_resultobj, o); | |
2537 | } | |
2538 | { | |
2539 | if (_obj1) | |
2540 | delete _arg1; | |
2541 | } | |
2542 | return _resultobj; | |
2543 | } | |
2544 | ||
8ab979d7 | 2545 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2546 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2547 | PyObject * _resultobj; |
2548 | wxString * _result; | |
2549 | wxWindow * _arg0; | |
1d99702e | 2550 | PyObject * _argo0 = 0; |
efc5f224 | 2551 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2552 | |
2553 | self = self; | |
efc5f224 | 2554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2555 | return NULL; |
1d99702e RD |
2556 | if (_argo0) { |
2557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2560 | return NULL; | |
2561 | } | |
2562 | } | |
8ab979d7 | 2563 | { |
cf694132 RD |
2564 | wxPy_BEGIN_ALLOW_THREADS; |
2565 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2566 | ||
2567 | wxPy_END_ALLOW_THREADS; | |
2568 | }{ | |
eec92d76 | 2569 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2570 | } |
2571 | { | |
2572 | delete _result; | |
2573 | } | |
2574 | return _resultobj; | |
2575 | } | |
2576 | ||
8bf5d46e | 2577 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2578 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2579 | PyObject * _resultobj; |
2580 | wxRegion * _result; | |
2581 | wxWindow * _arg0; | |
1d99702e | 2582 | PyObject * _argo0 = 0; |
efc5f224 | 2583 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2584 | char _ptemp[128]; |
2585 | ||
2586 | self = self; | |
efc5f224 | 2587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2588 | return NULL; |
1d99702e RD |
2589 | if (_argo0) { |
2590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2593 | return NULL; | |
2594 | } | |
2595 | } | |
2596 | { | |
2597 | wxPy_BEGIN_ALLOW_THREADS; | |
2598 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2599 | ||
2600 | wxPy_END_ALLOW_THREADS; | |
2601 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); | |
2602 | _resultobj = Py_BuildValue("s",_ptemp); | |
2603 | return _resultobj; | |
2604 | } | |
2605 | ||
8ab979d7 | 2606 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2607 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2608 | PyObject * _resultobj; |
2609 | long _result; | |
2610 | wxWindow * _arg0; | |
1d99702e | 2611 | PyObject * _argo0 = 0; |
efc5f224 | 2612 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2613 | |
2614 | self = self; | |
efc5f224 | 2615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2616 | return NULL; |
1d99702e RD |
2617 | if (_argo0) { |
2618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2621 | return NULL; | |
2622 | } | |
2623 | } | |
cf694132 RD |
2624 | { |
2625 | wxPy_BEGIN_ALLOW_THREADS; | |
2626 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2627 | ||
2628 | wxPy_END_ALLOW_THREADS; | |
2629 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2630 | return _resultobj; |
2631 | } | |
2632 | ||
f6bcfd97 BP |
2633 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2634 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2635 | PyObject * _resultobj; | |
2636 | wxWindow * _arg0; | |
2637 | long _arg1; | |
2638 | PyObject * _argo0 = 0; | |
2639 | char *_kwnames[] = { "self","style", NULL }; | |
2640 | ||
2641 | self = self; | |
2642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2643 | return NULL; | |
2644 | if (_argo0) { | |
2645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2648 | return NULL; | |
2649 | } | |
2650 | } | |
2651 | { | |
2652 | wxPy_BEGIN_ALLOW_THREADS; | |
2653 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2654 | ||
2655 | wxPy_END_ALLOW_THREADS; | |
2656 | } Py_INCREF(Py_None); | |
2657 | _resultobj = Py_None; | |
2658 | return _resultobj; | |
2659 | } | |
2660 | ||
2661 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2662 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2663 | PyObject * _resultobj; | |
2664 | wxWindow * _arg0; | |
2665 | long _arg1; | |
2666 | PyObject * _argo0 = 0; | |
2667 | char *_kwnames[] = { "self","style", NULL }; | |
2668 | ||
2669 | self = self; | |
2670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2671 | return NULL; | |
2672 | if (_argo0) { | |
2673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2676 | return NULL; | |
2677 | } | |
2678 | } | |
2679 | { | |
2680 | wxPy_BEGIN_ALLOW_THREADS; | |
2681 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2682 | ||
2683 | wxPy_END_ALLOW_THREADS; | |
2684 | } Py_INCREF(Py_None); | |
2685 | _resultobj = Py_None; | |
2686 | return _resultobj; | |
2687 | } | |
2688 | ||
bb0054cd | 2689 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2690 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2691 | PyObject * _resultobj; |
2692 | bool _result; | |
2693 | wxWindow * _arg0; | |
1d99702e | 2694 | PyObject * _argo0 = 0; |
efc5f224 | 2695 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2696 | |
2697 | self = self; | |
efc5f224 | 2698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2699 | return NULL; |
1d99702e RD |
2700 | if (_argo0) { |
2701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2704 | return NULL; | |
2705 | } | |
2706 | } | |
2707 | { | |
2708 | wxPy_BEGIN_ALLOW_THREADS; | |
2709 | _result = (bool )wxWindow_Hide(_arg0); | |
2710 | ||
2711 | wxPy_END_ALLOW_THREADS; | |
2712 | } _resultobj = Py_BuildValue("i",_result); | |
2713 | return _resultobj; | |
2714 | } | |
2715 | ||
8ab979d7 | 2716 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2717 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2718 | PyObject * _resultobj; |
2719 | wxWindow * _arg0; | |
1d99702e | 2720 | PyObject * _argo0 = 0; |
efc5f224 | 2721 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2722 | |
2723 | self = self; | |
efc5f224 | 2724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2725 | return NULL; |
1d99702e RD |
2726 | if (_argo0) { |
2727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2730 | return NULL; | |
2731 | } | |
2732 | } | |
cf694132 RD |
2733 | { |
2734 | wxPy_BEGIN_ALLOW_THREADS; | |
2735 | wxWindow_InitDialog(_arg0); | |
2736 | ||
2737 | wxPy_END_ALLOW_THREADS; | |
2738 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2739 | _resultobj = Py_None; |
2740 | return _resultobj; | |
2741 | } | |
2742 | ||
2743 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2744 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2745 | PyObject * _resultobj; |
2746 | bool _result; | |
2747 | wxWindow * _arg0; | |
1d99702e | 2748 | PyObject * _argo0 = 0; |
efc5f224 | 2749 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2750 | |
2751 | self = self; | |
efc5f224 | 2752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2753 | return NULL; |
1d99702e RD |
2754 | if (_argo0) { |
2755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2758 | return NULL; | |
2759 | } | |
2760 | } | |
cf694132 RD |
2761 | { |
2762 | wxPy_BEGIN_ALLOW_THREADS; | |
2763 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2764 | ||
2765 | wxPy_END_ALLOW_THREADS; | |
2766 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2767 | return _resultobj; |
2768 | } | |
2769 | ||
1b55cabf RD |
2770 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2771 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2772 | PyObject * _resultobj; | |
2773 | bool _result; | |
2774 | wxWindow * _arg0; | |
2775 | int _arg1; | |
2776 | int _arg2; | |
2777 | int _arg3 = (int ) 0; | |
2778 | int _arg4 = (int ) 0; | |
2779 | PyObject * _argo0 = 0; | |
2780 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2781 | ||
2782 | self = self; | |
2783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2784 | return NULL; | |
2785 | if (_argo0) { | |
2786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2789 | return NULL; | |
2790 | } | |
2791 | } | |
2792 | { | |
2793 | wxPy_BEGIN_ALLOW_THREADS; | |
2794 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2795 | ||
2796 | wxPy_END_ALLOW_THREADS; | |
2797 | } _resultobj = Py_BuildValue("i",_result); | |
2798 | return _resultobj; | |
2799 | } | |
2800 | ||
2801 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2802 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2803 | PyObject * _resultobj; | |
2804 | bool _result; | |
2805 | wxWindow * _arg0; | |
2806 | wxPoint * _arg1; | |
2807 | PyObject * _argo0 = 0; | |
2808 | wxPoint temp; | |
2809 | PyObject * _obj1 = 0; | |
2810 | char *_kwnames[] = { "self","pt", NULL }; | |
2811 | ||
2812 | self = self; | |
2813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2814 | return NULL; | |
2815 | if (_argo0) { | |
2816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2819 | return NULL; | |
2820 | } | |
2821 | } | |
2822 | { | |
2823 | _arg1 = &temp; | |
2824 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2825 | return NULL; | |
2826 | } | |
2827 | { | |
2828 | wxPy_BEGIN_ALLOW_THREADS; | |
2829 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2830 | ||
2831 | wxPy_END_ALLOW_THREADS; | |
2832 | } _resultobj = Py_BuildValue("i",_result); | |
2833 | return _resultobj; | |
2834 | } | |
2835 | ||
2836 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2837 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2838 | PyObject * _resultobj; | |
2839 | bool _result; | |
2840 | wxWindow * _arg0; | |
2841 | wxRect * _arg1; | |
2842 | PyObject * _argo0 = 0; | |
2843 | wxRect temp; | |
2844 | PyObject * _obj1 = 0; | |
2845 | char *_kwnames[] = { "self","rect", NULL }; | |
2846 | ||
2847 | self = self; | |
2848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2849 | return NULL; | |
2850 | if (_argo0) { | |
2851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2854 | return NULL; | |
2855 | } | |
2856 | } | |
2857 | { | |
2858 | _arg1 = &temp; | |
2859 | if (! wxRect_helper(_obj1, &_arg1)) | |
2860 | return NULL; | |
2861 | } | |
2862 | { | |
2863 | wxPy_BEGIN_ALLOW_THREADS; | |
2864 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2865 | ||
2866 | wxPy_END_ALLOW_THREADS; | |
2867 | } _resultobj = Py_BuildValue("i",_result); | |
2868 | return _resultobj; | |
2869 | } | |
2870 | ||
8ab979d7 | 2871 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 2872 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2873 | PyObject * _resultobj; |
2874 | bool _result; | |
2875 | wxWindow * _arg0; | |
1d99702e | 2876 | PyObject * _argo0 = 0; |
efc5f224 | 2877 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2878 | |
2879 | self = self; | |
efc5f224 | 2880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 2881 | return NULL; |
1d99702e RD |
2882 | if (_argo0) { |
2883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
2886 | return NULL; | |
2887 | } | |
2888 | } | |
cf694132 RD |
2889 | { |
2890 | wxPy_BEGIN_ALLOW_THREADS; | |
2891 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2892 | ||
2893 | wxPy_END_ALLOW_THREADS; | |
2894 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2895 | return _resultobj; |
2896 | } | |
2897 | ||
2898 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 2899 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2900 | PyObject * _resultobj; |
2901 | bool _result; | |
2902 | wxWindow * _arg0; | |
1d99702e | 2903 | PyObject * _argo0 = 0; |
efc5f224 | 2904 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2905 | |
2906 | self = self; | |
efc5f224 | 2907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 2908 | return NULL; |
1d99702e RD |
2909 | if (_argo0) { |
2910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
2913 | return NULL; | |
2914 | } | |
2915 | } | |
cf694132 RD |
2916 | { |
2917 | wxPy_BEGIN_ALLOW_THREADS; | |
2918 | _result = (bool )wxWindow_IsShown(_arg0); | |
2919 | ||
2920 | wxPy_END_ALLOW_THREADS; | |
2921 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2922 | return _resultobj; |
2923 | } | |
2924 | ||
bb0054cd | 2925 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 2926 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2927 | PyObject * _resultobj; |
2928 | bool _result; | |
2929 | wxWindow * _arg0; | |
1d99702e | 2930 | PyObject * _argo0 = 0; |
efc5f224 | 2931 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2932 | |
2933 | self = self; | |
efc5f224 | 2934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 2935 | return NULL; |
1d99702e RD |
2936 | if (_argo0) { |
2937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
2940 | return NULL; | |
2941 | } | |
2942 | } | |
2943 | { | |
2944 | wxPy_BEGIN_ALLOW_THREADS; | |
2945 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2946 | ||
2947 | wxPy_END_ALLOW_THREADS; | |
2948 | } _resultobj = Py_BuildValue("i",_result); | |
2949 | return _resultobj; | |
2950 | } | |
2951 | ||
8ab979d7 | 2952 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 2953 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2954 | PyObject * _resultobj; |
2955 | wxWindow * _arg0; | |
1d99702e | 2956 | PyObject * _argo0 = 0; |
efc5f224 | 2957 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2958 | |
2959 | self = self; | |
efc5f224 | 2960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 2961 | return NULL; |
1d99702e RD |
2962 | if (_argo0) { |
2963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
2966 | return NULL; | |
2967 | } | |
2968 | } | |
cf694132 RD |
2969 | { |
2970 | wxPy_BEGIN_ALLOW_THREADS; | |
2971 | wxWindow_Layout(_arg0); | |
2972 | ||
2973 | wxPy_END_ALLOW_THREADS; | |
2974 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2975 | _resultobj = Py_None; |
2976 | return _resultobj; | |
2977 | } | |
2978 | ||
2979 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2980 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2981 | PyObject * _resultobj; |
2982 | bool _result; | |
2983 | wxWindow * _arg0; | |
2984 | wxWindow * _arg1; | |
2985 | wxString * _arg2; | |
1d99702e RD |
2986 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
2987 | PyObject * _argo0 = 0; | |
2988 | PyObject * _argo1 = 0; | |
8ab979d7 | 2989 | PyObject * _obj2 = 0; |
1d99702e | 2990 | PyObject * _argo3 = 0; |
efc5f224 | 2991 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
2992 | |
2993 | self = self; | |
efc5f224 | 2994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 2995 | return NULL; |
1d99702e RD |
2996 | if (_argo0) { |
2997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3000 | return NULL; | |
3001 | } | |
3002 | } | |
1d99702e RD |
3003 | if (_argo1) { |
3004 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3005 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3007 | return NULL; | |
3008 | } | |
3009 | } | |
3010 | { | |
185d7c3e RD |
3011 | #if PYTHON_API_VERSION >= 1009 |
3012 | char* tmpPtr; int tmpSize; | |
3013 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3014 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3015 | return NULL; | |
3016 | } | |
3017 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3018 | return NULL; | |
3019 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3020 | #else | |
8ab979d7 RD |
3021 | if (!PyString_Check(_obj2)) { |
3022 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3023 | return NULL; | |
3024 | } | |
185d7c3e RD |
3025 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3026 | #endif | |
8ab979d7 | 3027 | } |
1d99702e RD |
3028 | if (_argo3) { |
3029 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3030 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3032 | return NULL; | |
3033 | } | |
3034 | } | |
cf694132 RD |
3035 | { |
3036 | wxPy_BEGIN_ALLOW_THREADS; | |
3037 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
3038 | ||
3039 | wxPy_END_ALLOW_THREADS; | |
3040 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3041 | { |
3042 | if (_obj2) | |
3043 | delete _arg2; | |
3044 | } | |
3045 | return _resultobj; | |
3046 | } | |
3047 | ||
3048 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3049 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3050 | PyObject * _resultobj; |
3051 | wxWindow * _arg0; | |
1d99702e | 3052 | PyObject * _argo0 = 0; |
efc5f224 | 3053 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3054 | |
3055 | self = self; | |
efc5f224 | 3056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3057 | return NULL; |
1d99702e RD |
3058 | if (_argo0) { |
3059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3062 | return NULL; | |
3063 | } | |
3064 | } | |
cf694132 RD |
3065 | { |
3066 | wxPy_BEGIN_ALLOW_THREADS; | |
3067 | wxWindow_Lower(_arg0); | |
3068 | ||
3069 | wxPy_END_ALLOW_THREADS; | |
3070 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3071 | _resultobj = Py_None; |
3072 | return _resultobj; | |
3073 | } | |
3074 | ||
3075 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3076 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3077 | PyObject * _resultobj; |
3078 | wxWindow * _arg0; | |
3079 | bool _arg1; | |
1d99702e | 3080 | PyObject * _argo0 = 0; |
8ab979d7 | 3081 | int tempbool1; |
efc5f224 | 3082 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3083 | |
3084 | self = self; | |
efc5f224 | 3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3086 | return NULL; |
1d99702e RD |
3087 | if (_argo0) { |
3088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3091 | return NULL; | |
3092 | } | |
3093 | } | |
3094 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3095 | { |
3096 | wxPy_BEGIN_ALLOW_THREADS; | |
3097 | wxWindow_MakeModal(_arg0,_arg1); | |
3098 | ||
3099 | wxPy_END_ALLOW_THREADS; | |
3100 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3101 | _resultobj = Py_None; |
3102 | return _resultobj; | |
3103 | } | |
3104 | ||
af309447 | 3105 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3106 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3107 | PyObject * _resultobj; |
3108 | wxWindow * _arg0; | |
3109 | int _arg1; | |
3110 | int _arg2; | |
1d99702e | 3111 | PyObject * _argo0 = 0; |
efc5f224 | 3112 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3113 | |
3114 | self = self; | |
efc5f224 | 3115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 3116 | return NULL; |
1d99702e RD |
3117 | if (_argo0) { |
3118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3121 | return NULL; | |
3122 | } | |
3123 | } | |
cf694132 RD |
3124 | { |
3125 | wxPy_BEGIN_ALLOW_THREADS; | |
3126 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
3127 | ||
3128 | wxPy_END_ALLOW_THREADS; | |
3129 | } Py_INCREF(Py_None); | |
af309447 RD |
3130 | _resultobj = Py_None; |
3131 | return _resultobj; | |
3132 | } | |
3133 | ||
3134 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
efc5f224 | 3135 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3136 | PyObject * _resultobj; |
3137 | wxWindow * _arg0; | |
3138 | wxPoint * _arg1; | |
1d99702e | 3139 | PyObject * _argo0 = 0; |
2f90df85 RD |
3140 | wxPoint temp; |
3141 | PyObject * _obj1 = 0; | |
efc5f224 | 3142 | char *_kwnames[] = { "self","point", NULL }; |
af309447 RD |
3143 | |
3144 | self = self; | |
2f90df85 | 3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3146 | return NULL; |
1d99702e RD |
3147 | if (_argo0) { |
3148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3151 | return NULL; | |
3152 | } | |
3153 | } | |
2f90df85 RD |
3154 | { |
3155 | _arg1 = &temp; | |
3156 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3157 | return NULL; |
2f90df85 | 3158 | } |
cf694132 RD |
3159 | { |
3160 | wxPy_BEGIN_ALLOW_THREADS; | |
3161 | wxWindow_Move(_arg0,*_arg1); | |
3162 | ||
3163 | wxPy_END_ALLOW_THREADS; | |
3164 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3165 | _resultobj = Py_None; |
3166 | return _resultobj; | |
3167 | } | |
3168 | ||
1afc06c2 RD |
3169 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3170 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3171 | PyObject * _resultobj; | |
3172 | wxEvtHandler * _result; | |
3173 | wxWindow * _arg0; | |
3174 | bool _arg1 = (bool ) FALSE; | |
3175 | PyObject * _argo0 = 0; | |
3176 | int tempbool1 = (int) FALSE; | |
3177 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
3178 | char _ptemp[128]; | |
3179 | ||
3180 | self = self; | |
3181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3182 | return NULL; | |
3183 | if (_argo0) { | |
3184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3187 | return NULL; | |
3188 | } | |
3189 | } | |
3190 | _arg1 = (bool ) tempbool1; | |
3191 | { | |
3192 | wxPy_BEGIN_ALLOW_THREADS; | |
3193 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3194 | ||
3195 | wxPy_END_ALLOW_THREADS; | |
3196 | } if (_result) { | |
3197 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
3198 | _resultobj = Py_BuildValue("s",_ptemp); | |
3199 | } else { | |
3200 | Py_INCREF(Py_None); | |
3201 | _resultobj = Py_None; | |
3202 | } | |
3203 | return _resultobj; | |
3204 | } | |
3205 | ||
3206 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3207 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3208 | PyObject * _resultobj; | |
3209 | wxWindow * _arg0; | |
3210 | wxEvtHandler * _arg1; | |
3211 | PyObject * _argo0 = 0; | |
3212 | PyObject * _argo1 = 0; | |
3213 | char *_kwnames[] = { "self","handler", NULL }; | |
3214 | ||
3215 | self = self; | |
3216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3217 | return NULL; | |
3218 | if (_argo0) { | |
3219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3222 | return NULL; | |
3223 | } | |
3224 | } | |
3225 | if (_argo1) { | |
3226 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3227 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3229 | return NULL; | |
3230 | } | |
3231 | } | |
3232 | { | |
3233 | wxPy_BEGIN_ALLOW_THREADS; | |
3234 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3235 | ||
3236 | wxPy_END_ALLOW_THREADS; | |
3237 | } Py_INCREF(Py_None); | |
3238 | _resultobj = Py_None; | |
3239 | return _resultobj; | |
3240 | } | |
3241 | ||
8bf5d46e | 3242 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3243 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3244 | PyObject * _resultobj; |
3245 | bool _result; | |
3246 | wxWindow * _arg0; | |
3247 | wxMenu * _arg1; | |
3248 | int _arg2; | |
3249 | int _arg3; | |
1d99702e RD |
3250 | PyObject * _argo0 = 0; |
3251 | PyObject * _argo1 = 0; | |
efc5f224 | 3252 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3253 | |
3254 | self = self; | |
efc5f224 | 3255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3256 | return NULL; |
1d99702e RD |
3257 | if (_argo0) { |
3258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3261 | return NULL; | |
3262 | } | |
3263 | } | |
1d99702e RD |
3264 | if (_argo1) { |
3265 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3266 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3268 | return NULL; | |
3269 | } | |
3270 | } | |
3271 | { | |
3272 | wxPy_BEGIN_ALLOW_THREADS; | |
3273 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3274 | ||
3275 | wxPy_END_ALLOW_THREADS; | |
3276 | } _resultobj = Py_BuildValue("i",_result); | |
3277 | return _resultobj; | |
3278 | } | |
3279 | ||
3280 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3281 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3282 | PyObject * _resultobj; |
3283 | bool _result; | |
3284 | wxWindow * _arg0; | |
3285 | wxMenu * _arg1; | |
3286 | wxPoint * _arg2; | |
1d99702e RD |
3287 | PyObject * _argo0 = 0; |
3288 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3289 | wxPoint temp; |
3290 | PyObject * _obj2 = 0; | |
efc5f224 | 3291 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3292 | |
3293 | self = self; | |
2f90df85 | 3294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3295 | return NULL; |
1d99702e RD |
3296 | if (_argo0) { |
3297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3300 | return NULL; | |
3301 | } | |
3302 | } | |
1d99702e RD |
3303 | if (_argo1) { |
3304 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3305 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3307 | return NULL; | |
3308 | } | |
3309 | } | |
2f90df85 RD |
3310 | { |
3311 | _arg2 = &temp; | |
3312 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3313 | return NULL; |
2f90df85 | 3314 | } |
cf694132 RD |
3315 | { |
3316 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 3317 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 RD |
3318 | |
3319 | wxPy_END_ALLOW_THREADS; | |
3320 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3321 | return _resultobj; |
3322 | } | |
3323 | ||
3324 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3325 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3326 | PyObject * _resultobj; |
3327 | wxWindow * _arg0; | |
1d99702e | 3328 | PyObject * _argo0 = 0; |
efc5f224 | 3329 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3330 | |
3331 | self = self; | |
efc5f224 | 3332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3333 | return NULL; |
1d99702e RD |
3334 | if (_argo0) { |
3335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3338 | return NULL; | |
3339 | } | |
3340 | } | |
cf694132 RD |
3341 | { |
3342 | wxPy_BEGIN_ALLOW_THREADS; | |
3343 | wxWindow_Raise(_arg0); | |
3344 | ||
3345 | wxPy_END_ALLOW_THREADS; | |
3346 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3347 | _resultobj = Py_None; |
3348 | return _resultobj; | |
3349 | } | |
3350 | ||
3351 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3352 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3353 | PyObject * _resultobj; |
3354 | wxWindow * _arg0; | |
1d99702e RD |
3355 | bool _arg1 = (bool ) TRUE; |
3356 | wxRect * _arg2 = (wxRect *) NULL; | |
3357 | PyObject * _argo0 = 0; | |
3358 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3359 | wxRect temp; |
3360 | PyObject * _obj2 = 0; | |
efc5f224 | 3361 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3362 | |
3363 | self = self; | |
2f90df85 | 3364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3365 | return NULL; |
1d99702e RD |
3366 | if (_argo0) { |
3367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3370 | return NULL; | |
3371 | } | |
3372 | } | |
3373 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3374 | if (_obj2) |
3375 | { | |
3376 | _arg2 = &temp; | |
3377 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3378 | return NULL; |
2f90df85 | 3379 | } |
cf694132 RD |
3380 | { |
3381 | wxPy_BEGIN_ALLOW_THREADS; | |
3382 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3383 | ||
3384 | wxPy_END_ALLOW_THREADS; | |
3385 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3386 | _resultobj = Py_None; |
3387 | return _resultobj; | |
3388 | } | |
3389 | ||
3390 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
efc5f224 | 3391 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3392 | PyObject * _resultobj; |
3393 | wxWindow * _arg0; | |
1d99702e | 3394 | PyObject * _argo0 = 0; |
efc5f224 | 3395 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3396 | |
3397 | self = self; | |
efc5f224 | 3398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3399 | return NULL; |
1d99702e RD |
3400 | if (_argo0) { |
3401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3404 | return NULL; | |
3405 | } | |
3406 | } | |
cf694132 RD |
3407 | { |
3408 | wxPy_BEGIN_ALLOW_THREADS; | |
3409 | wxWindow_ReleaseMouse(_arg0); | |
3410 | ||
3411 | wxPy_END_ALLOW_THREADS; | |
3412 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3413 | _resultobj = Py_None; |
3414 | return _resultobj; | |
3415 | } | |
3416 | ||
b7e72427 RD |
3417 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3418 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3419 | PyObject * _resultobj; | |
3420 | wxWindow * _arg0; | |
3421 | wxWindow * _arg1; | |
3422 | PyObject * _argo0 = 0; | |
3423 | PyObject * _argo1 = 0; | |
3424 | char *_kwnames[] = { "self","child", NULL }; | |
3425 | ||
3426 | self = self; | |
3427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3428 | return NULL; | |
3429 | if (_argo0) { | |
3430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3433 | return NULL; | |
3434 | } | |
3435 | } | |
3436 | if (_argo1) { | |
3437 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3438 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3440 | return NULL; | |
3441 | } | |
3442 | } | |
3443 | { | |
3444 | wxPy_BEGIN_ALLOW_THREADS; | |
3445 | wxWindow_RemoveChild(_arg0,_arg1); | |
3446 | ||
3447 | wxPy_END_ALLOW_THREADS; | |
3448 | } Py_INCREF(Py_None); | |
3449 | _resultobj = Py_None; | |
3450 | return _resultobj; | |
3451 | } | |
3452 | ||
bb0054cd | 3453 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3454 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3455 | PyObject * _resultobj; |
3456 | bool _result; | |
3457 | wxWindow * _arg0; | |
3458 | wxWindow * _arg1; | |
1d99702e RD |
3459 | PyObject * _argo0 = 0; |
3460 | PyObject * _argo1 = 0; | |
efc5f224 | 3461 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3462 | |
3463 | self = self; | |
efc5f224 | 3464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3465 | return NULL; |
1d99702e RD |
3466 | if (_argo0) { |
3467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3470 | return NULL; | |
3471 | } | |
3472 | } | |
1d99702e RD |
3473 | if (_argo1) { |
3474 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3475 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3477 | return NULL; | |
3478 | } | |
3479 | } | |
3480 | { | |
3481 | wxPy_BEGIN_ALLOW_THREADS; | |
3482 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3483 | ||
3484 | wxPy_END_ALLOW_THREADS; | |
3485 | } _resultobj = Py_BuildValue("i",_result); | |
3486 | return _resultobj; | |
3487 | } | |
3488 | ||
af309447 | 3489 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3490 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3491 | PyObject * _resultobj; |
3492 | wxWindow * _arg0; | |
3493 | int * _arg1; | |
3494 | int * _arg2; | |
1d99702e | 3495 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3496 | int temp; |
3497 | PyObject * _obj1 = 0; | |
3498 | int temp0; | |
3499 | PyObject * _obj2 = 0; | |
efc5f224 | 3500 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3501 | |
3502 | self = self; | |
efc5f224 | 3503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3504 | return NULL; |
1d99702e RD |
3505 | if (_argo0) { |
3506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3509 | return NULL; |
3510 | } | |
3511 | } | |
3512 | { | |
3513 | temp = (int) PyInt_AsLong(_obj1); | |
3514 | _arg1 = &temp; | |
3515 | } | |
3516 | { | |
3517 | temp0 = (int) PyInt_AsLong(_obj2); | |
3518 | _arg2 = &temp0; | |
3519 | } | |
cf694132 RD |
3520 | { |
3521 | wxPy_BEGIN_ALLOW_THREADS; | |
3522 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3523 | ||
3524 | wxPy_END_ALLOW_THREADS; | |
3525 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3526 | _resultobj = Py_None; |
3527 | { | |
3528 | PyObject *o; | |
3529 | o = PyInt_FromLong((long) (*_arg1)); | |
3530 | _resultobj = t_output_helper(_resultobj, o); | |
3531 | } | |
3532 | { | |
3533 | PyObject *o; | |
3534 | o = PyInt_FromLong((long) (*_arg2)); | |
3535 | _resultobj = t_output_helper(_resultobj, o); | |
3536 | } | |
3537 | return _resultobj; | |
3538 | } | |
3539 | ||
af309447 | 3540 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3541 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3542 | PyObject * _resultobj; |
3543 | wxPoint * _result; | |
3544 | wxWindow * _arg0; | |
3545 | wxPoint * _arg1; | |
1d99702e | 3546 | PyObject * _argo0 = 0; |
2f90df85 RD |
3547 | wxPoint temp; |
3548 | PyObject * _obj1 = 0; | |
efc5f224 | 3549 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3550 | char _ptemp[128]; |
3551 | ||
3552 | self = self; | |
2f90df85 | 3553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3554 | return NULL; |
1d99702e RD |
3555 | if (_argo0) { |
3556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3559 | return NULL; | |
3560 | } | |
3561 | } | |
2f90df85 RD |
3562 | { |
3563 | _arg1 = &temp; | |
3564 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3565 | return NULL; |
2f90df85 | 3566 | } |
cf694132 RD |
3567 | { |
3568 | wxPy_BEGIN_ALLOW_THREADS; | |
3569 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3570 | ||
3571 | wxPy_END_ALLOW_THREADS; | |
3572 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
af309447 RD |
3573 | _resultobj = Py_BuildValue("s",_ptemp); |
3574 | return _resultobj; | |
3575 | } | |
3576 | ||
8ab979d7 | 3577 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3578 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3579 | PyObject * _resultobj; |
3580 | wxWindow * _arg0; | |
3581 | int _arg1; | |
3582 | int _arg2; | |
1d99702e RD |
3583 | wxRect * _arg3 = (wxRect *) NULL; |
3584 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3585 | wxRect temp; |
3586 | PyObject * _obj3 = 0; | |
efc5f224 | 3587 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3588 | |
3589 | self = self; | |
2f90df85 | 3590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3591 | return NULL; |
1d99702e RD |
3592 | if (_argo0) { |
3593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3596 | return NULL; | |
3597 | } | |
3598 | } | |
2f90df85 RD |
3599 | if (_obj3) |
3600 | { | |
3601 | _arg3 = &temp; | |
3602 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3603 | return NULL; |
2f90df85 | 3604 | } |
cf694132 RD |
3605 | { |
3606 | wxPy_BEGIN_ALLOW_THREADS; | |
3607 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3608 | ||
3609 | wxPy_END_ALLOW_THREADS; | |
3610 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3611 | _resultobj = Py_None; |
3612 | return _resultobj; | |
3613 | } | |
3614 | ||
b8b8dda7 | 3615 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
efc5f224 | 3616 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
3617 | PyObject * _resultobj; |
3618 | wxWindow * _arg0; | |
3619 | wxAcceleratorTable * _arg1; | |
1d99702e RD |
3620 | PyObject * _argo0 = 0; |
3621 | PyObject * _argo1 = 0; | |
efc5f224 | 3622 | char *_kwnames[] = { "self","accel", NULL }; |
b8b8dda7 RD |
3623 | |
3624 | self = self; | |
efc5f224 | 3625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 3626 | return NULL; |
1d99702e RD |
3627 | if (_argo0) { |
3628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
3630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); |
3631 | return NULL; | |
3632 | } | |
3633 | } | |
1d99702e RD |
3634 | if (_argo1) { |
3635 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3636 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
b8b8dda7 RD |
3637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
3638 | return NULL; | |
3639 | } | |
3640 | } | |
cf694132 RD |
3641 | { |
3642 | wxPy_BEGIN_ALLOW_THREADS; | |
3643 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
3644 | ||
3645 | wxPy_END_ALLOW_THREADS; | |
3646 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
3647 | _resultobj = Py_None; |
3648 | return _resultobj; | |
3649 | } | |
3650 | ||
8ab979d7 | 3651 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) |
efc5f224 | 3652 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3653 | PyObject * _resultobj; |
3654 | wxWindow * _arg0; | |
3655 | bool _arg1; | |
1d99702e | 3656 | PyObject * _argo0 = 0; |
8ab979d7 | 3657 | int tempbool1; |
efc5f224 | 3658 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3659 | |
3660 | self = self; | |
efc5f224 | 3661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3662 | return NULL; |
1d99702e RD |
3663 | if (_argo0) { |
3664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3667 | return NULL; | |
3668 | } | |
3669 | } | |
3670 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3671 | { |
3672 | wxPy_BEGIN_ALLOW_THREADS; | |
3673 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3674 | ||
3675 | wxPy_END_ALLOW_THREADS; | |
3676 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3677 | _resultobj = Py_None; |
3678 | return _resultobj; | |
3679 | } | |
3680 | ||
9d8bd15f RD |
3681 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3682 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3683 | PyObject * _resultobj; | |
3684 | bool _result; | |
3685 | wxWindow * _arg0; | |
3686 | PyObject * _argo0 = 0; | |
3687 | char *_kwnames[] = { "self", NULL }; | |
3688 | ||
3689 | self = self; | |
3690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3691 | return NULL; | |
3692 | if (_argo0) { | |
3693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3696 | return NULL; | |
3697 | } | |
3698 | } | |
3699 | { | |
3700 | wxPy_BEGIN_ALLOW_THREADS; | |
3701 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3702 | ||
3703 | wxPy_END_ALLOW_THREADS; | |
3704 | } _resultobj = Py_BuildValue("i",_result); | |
3705 | return _resultobj; | |
3706 | } | |
3707 | ||
8ab979d7 | 3708 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3709 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3710 | PyObject * _resultobj; |
3711 | wxWindow * _arg0; | |
3712 | wxColour * _arg1; | |
1d99702e | 3713 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3714 | wxColour temp; |
3715 | PyObject * _obj1 = 0; | |
efc5f224 | 3716 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3717 | |
3718 | self = self; | |
f6bcfd97 | 3719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3720 | return NULL; |
1d99702e RD |
3721 | if (_argo0) { |
3722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3725 | return NULL; | |
3726 | } | |
3727 | } | |
f6bcfd97 BP |
3728 | { |
3729 | _arg1 = &temp; | |
3730 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3731 | return NULL; |
f6bcfd97 | 3732 | } |
cf694132 RD |
3733 | { |
3734 | wxPy_BEGIN_ALLOW_THREADS; | |
3735 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3736 | ||
3737 | wxPy_END_ALLOW_THREADS; | |
3738 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3739 | _resultobj = Py_None; |
3740 | return _resultobj; | |
3741 | } | |
3742 | ||
3743 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3744 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3745 | PyObject * _resultobj; |
3746 | wxWindow * _arg0; | |
3747 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3748 | PyObject * _argo0 = 0; |
3749 | PyObject * _argo1 = 0; | |
efc5f224 | 3750 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3751 | |
3752 | self = self; | |
efc5f224 | 3753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3754 | return NULL; |
1d99702e RD |
3755 | if (_argo0) { |
3756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3759 | return NULL; | |
3760 | } | |
3761 | } | |
1d99702e RD |
3762 | if (_argo1) { |
3763 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3764 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3766 | return NULL; | |
3767 | } | |
3768 | } | |
cf694132 RD |
3769 | { |
3770 | wxPy_BEGIN_ALLOW_THREADS; | |
3771 | wxWindow_SetConstraints(_arg0,_arg1); | |
3772 | ||
3773 | wxPy_END_ALLOW_THREADS; | |
3774 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3775 | _resultobj = Py_None; |
3776 | return _resultobj; | |
3777 | } | |
3778 | ||
2f90df85 RD |
3779 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3780 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3781 | PyObject * _resultobj; | |
3782 | wxWindow * _arg0; | |
3783 | wxLayoutConstraints * _arg1; | |
3784 | PyObject * _argo0 = 0; | |
3785 | PyObject * _argo1 = 0; | |
3786 | char *_kwnames[] = { "self","constraints", NULL }; | |
3787 | ||
3788 | self = self; | |
3789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3790 | return NULL; | |
3791 | if (_argo0) { | |
3792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3795 | return NULL; | |
3796 | } | |
3797 | } | |
3798 | if (_argo1) { | |
3799 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3800 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3802 | return NULL; | |
3803 | } | |
3804 | } | |
3805 | { | |
3806 | wxPy_BEGIN_ALLOW_THREADS; | |
3807 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3808 | ||
3809 | wxPy_END_ALLOW_THREADS; | |
3810 | } Py_INCREF(Py_None); | |
3811 | _resultobj = Py_None; | |
3812 | return _resultobj; | |
3813 | } | |
3814 | ||
8ab979d7 | 3815 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3816 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3817 | PyObject * _resultobj; |
3818 | wxWindow * _arg0; | |
1d99702e | 3819 | PyObject * _argo0 = 0; |
efc5f224 | 3820 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3821 | |
3822 | self = self; | |
efc5f224 | 3823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3824 | return NULL; |
1d99702e RD |
3825 | if (_argo0) { |
3826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3829 | return NULL; | |
3830 | } | |
3831 | } | |
cf694132 RD |
3832 | { |
3833 | wxPy_BEGIN_ALLOW_THREADS; | |
3834 | wxWindow_SetFocus(_arg0); | |
3835 | ||
3836 | wxPy_END_ALLOW_THREADS; | |
3837 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3838 | _resultobj = Py_None; |
3839 | return _resultobj; | |
3840 | } | |
3841 | ||
2f90df85 RD |
3842 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3843 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3844 | PyObject * _resultobj; | |
3845 | bool _result; | |
3846 | wxWindow * _arg0; | |
3847 | PyObject * _argo0 = 0; | |
3848 | char *_kwnames[] = { "self", NULL }; | |
3849 | ||
3850 | self = self; | |
3851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3852 | return NULL; | |
3853 | if (_argo0) { | |
3854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3857 | return NULL; | |
3858 | } | |
3859 | } | |
3860 | { | |
3861 | wxPy_BEGIN_ALLOW_THREADS; | |
3862 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3863 | ||
3864 | wxPy_END_ALLOW_THREADS; | |
3865 | } _resultobj = Py_BuildValue("i",_result); | |
3866 | return _resultobj; | |
3867 | } | |
3868 | ||
8ab979d7 | 3869 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 3870 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3871 | PyObject * _resultobj; |
3872 | wxWindow * _arg0; | |
3873 | wxFont * _arg1; | |
1d99702e RD |
3874 | PyObject * _argo0 = 0; |
3875 | PyObject * _argo1 = 0; | |
efc5f224 | 3876 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
3877 | |
3878 | self = self; | |
efc5f224 | 3879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3880 | return NULL; |
1d99702e RD |
3881 | if (_argo0) { |
3882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3885 | return NULL; | |
3886 | } | |
3887 | } | |
1d99702e RD |
3888 | if (_argo1) { |
3889 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3890 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
3891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3892 | return NULL; | |
3893 | } | |
3894 | } | |
cf694132 RD |
3895 | { |
3896 | wxPy_BEGIN_ALLOW_THREADS; | |
3897 | wxWindow_SetFont(_arg0,*_arg1); | |
3898 | ||
3899 | wxPy_END_ALLOW_THREADS; | |
3900 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3901 | _resultobj = Py_None; |
3902 | return _resultobj; | |
3903 | } | |
3904 | ||
3905 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 3906 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3907 | PyObject * _resultobj; |
3908 | wxWindow * _arg0; | |
3909 | wxColour * _arg1; | |
1d99702e | 3910 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3911 | wxColour temp; |
3912 | PyObject * _obj1 = 0; | |
efc5f224 | 3913 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3914 | |
3915 | self = self; | |
f6bcfd97 | 3916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3917 | return NULL; |
1d99702e RD |
3918 | if (_argo0) { |
3919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
3922 | return NULL; | |
3923 | } | |
3924 | } | |
f6bcfd97 BP |
3925 | { |
3926 | _arg1 = &temp; | |
3927 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3928 | return NULL; |
f6bcfd97 | 3929 | } |
cf694132 RD |
3930 | { |
3931 | wxPy_BEGIN_ALLOW_THREADS; | |
3932 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3933 | ||
3934 | wxPy_END_ALLOW_THREADS; | |
3935 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3936 | _resultobj = Py_None; |
3937 | return _resultobj; | |
3938 | } | |
3939 | ||
3940 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 3941 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3942 | PyObject * _resultobj; |
3943 | wxWindow * _arg0; | |
3944 | int _arg1; | |
1d99702e | 3945 | PyObject * _argo0 = 0; |
efc5f224 | 3946 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
3947 | |
3948 | self = self; | |
efc5f224 | 3949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3950 | return NULL; |
1d99702e RD |
3951 | if (_argo0) { |
3952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
3955 | return NULL; | |
3956 | } | |
3957 | } | |
cf694132 RD |
3958 | { |
3959 | wxPy_BEGIN_ALLOW_THREADS; | |
3960 | wxWindow_SetId(_arg0,_arg1); | |
3961 | ||
3962 | wxPy_END_ALLOW_THREADS; | |
3963 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3964 | _resultobj = Py_None; |
3965 | return _resultobj; | |
3966 | } | |
3967 | ||
3968 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 3969 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3970 | PyObject * _resultobj; |
3971 | wxWindow * _arg0; | |
3972 | wxString * _arg1; | |
1d99702e | 3973 | PyObject * _argo0 = 0; |
8ab979d7 | 3974 | PyObject * _obj1 = 0; |
efc5f224 | 3975 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
3976 | |
3977 | self = self; | |
efc5f224 | 3978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3979 | return NULL; |
1d99702e RD |
3980 | if (_argo0) { |
3981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
3984 | return NULL; | |
3985 | } | |
3986 | } | |
3987 | { | |
185d7c3e RD |
3988 | #if PYTHON_API_VERSION >= 1009 |
3989 | char* tmpPtr; int tmpSize; | |
3990 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3991 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3992 | return NULL; | |
3993 | } | |
3994 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3995 | return NULL; | |
3996 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3997 | #else | |
8ab979d7 RD |
3998 | if (!PyString_Check(_obj1)) { |
3999 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4000 | return NULL; | |
4001 | } | |
185d7c3e RD |
4002 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4003 | #endif | |
8ab979d7 | 4004 | } |
cf694132 RD |
4005 | { |
4006 | wxPy_BEGIN_ALLOW_THREADS; | |
4007 | wxWindow_SetName(_arg0,*_arg1); | |
4008 | ||
4009 | wxPy_END_ALLOW_THREADS; | |
4010 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4011 | _resultobj = Py_None; |
4012 | { | |
4013 | if (_obj1) | |
4014 | delete _arg1; | |
4015 | } | |
4016 | return _resultobj; | |
4017 | } | |
4018 | ||
8ab979d7 | 4019 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4020 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4021 | PyObject * _resultobj; |
4022 | wxWindow * _arg0; | |
4023 | int _arg1; | |
4024 | int _arg2; | |
4025 | int _arg3; | |
4026 | int _arg4; | |
eb715945 | 4027 | int _arg5 = (int ) TRUE; |
1d99702e | 4028 | PyObject * _argo0 = 0; |
efc5f224 | 4029 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4030 | |
4031 | self = self; | |
eb715945 | 4032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4033 | return NULL; |
1d99702e RD |
4034 | if (_argo0) { |
4035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4038 | return NULL; | |
4039 | } | |
4040 | } | |
cf694132 RD |
4041 | { |
4042 | wxPy_BEGIN_ALLOW_THREADS; | |
4043 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4044 | ||
4045 | wxPy_END_ALLOW_THREADS; | |
4046 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4047 | _resultobj = Py_None; |
4048 | return _resultobj; | |
4049 | } | |
4050 | ||
4051 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4052 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4053 | PyObject * _resultobj; |
4054 | wxWindow * _arg0; | |
4055 | int _arg1; | |
4056 | int _arg2; | |
1d99702e RD |
4057 | bool _arg3 = (bool ) TRUE; |
4058 | PyObject * _argo0 = 0; | |
4059 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4060 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4061 | |
4062 | self = self; | |
efc5f224 | 4063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4064 | return NULL; |
1d99702e RD |
4065 | if (_argo0) { |
4066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4069 | return NULL; | |
4070 | } | |
4071 | } | |
4072 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
4073 | { |
4074 | wxPy_BEGIN_ALLOW_THREADS; | |
4075 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4076 | ||
4077 | wxPy_END_ALLOW_THREADS; | |
4078 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4079 | _resultobj = Py_None; |
4080 | return _resultobj; | |
4081 | } | |
4082 | ||
4083 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4084 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4085 | PyObject * _resultobj; |
4086 | wxWindow * _arg0; | |
4087 | int _arg1; | |
4088 | int _arg2; | |
4089 | int _arg3; | |
4090 | int _arg4; | |
1d99702e RD |
4091 | int _arg5 = (int ) wxSIZE_AUTO; |
4092 | PyObject * _argo0 = 0; | |
efc5f224 | 4093 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4094 | |
4095 | self = self; | |
efc5f224 | 4096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4097 | return NULL; |
1d99702e RD |
4098 | if (_argo0) { |
4099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4102 | return NULL; | |
4103 | } | |
4104 | } | |
cf694132 RD |
4105 | { |
4106 | wxPy_BEGIN_ALLOW_THREADS; | |
4107 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4108 | ||
4109 | wxPy_END_ALLOW_THREADS; | |
4110 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4111 | _resultobj = Py_None; |
4112 | return _resultobj; | |
4113 | } | |
4114 | ||
4115 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4116 | self->SetSize(size); |
8ab979d7 | 4117 | } |
efc5f224 | 4118 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4119 | PyObject * _resultobj; |
4120 | wxWindow * _arg0; | |
4121 | wxSize * _arg1; | |
1d99702e | 4122 | PyObject * _argo0 = 0; |
2f90df85 RD |
4123 | wxSize temp; |
4124 | PyObject * _obj1 = 0; | |
efc5f224 | 4125 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4126 | |
4127 | self = self; | |
2f90df85 | 4128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4129 | return NULL; |
1d99702e RD |
4130 | if (_argo0) { |
4131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4134 | return NULL; | |
4135 | } | |
4136 | } | |
2f90df85 RD |
4137 | { |
4138 | _arg1 = &temp; | |
4139 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4140 | return NULL; |
2f90df85 | 4141 | } |
cf694132 RD |
4142 | { |
4143 | wxPy_BEGIN_ALLOW_THREADS; | |
4144 | wxWindow_SetSize(_arg0,*_arg1); | |
4145 | ||
4146 | wxPy_END_ALLOW_THREADS; | |
4147 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4148 | _resultobj = Py_None; |
4149 | return _resultobj; | |
4150 | } | |
4151 | ||
4152 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
b7e72427 | 4153 | self->Move(pos); |
8ab979d7 | 4154 | } |
efc5f224 | 4155 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4156 | PyObject * _resultobj; |
4157 | wxWindow * _arg0; | |
4158 | wxPoint * _arg1; | |
1d99702e | 4159 | PyObject * _argo0 = 0; |
2f90df85 RD |
4160 | wxPoint temp; |
4161 | PyObject * _obj1 = 0; | |
efc5f224 | 4162 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4163 | |
4164 | self = self; | |
2f90df85 | 4165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4166 | return NULL; |
1d99702e RD |
4167 | if (_argo0) { |
4168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4171 | return NULL; | |
4172 | } | |
4173 | } | |
2f90df85 RD |
4174 | { |
4175 | _arg1 = &temp; | |
4176 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4177 | return NULL; |
2f90df85 | 4178 | } |
cf694132 RD |
4179 | { |
4180 | wxPy_BEGIN_ALLOW_THREADS; | |
4181 | wxWindow_SetPosition(_arg0,*_arg1); | |
4182 | ||
4183 | wxPy_END_ALLOW_THREADS; | |
4184 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4185 | _resultobj = Py_None; |
4186 | return _resultobj; | |
4187 | } | |
4188 | ||
dbbb98cd RD |
4189 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4190 | self->SetSize(rect, sizeFlags); | |
4191 | } | |
4192 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4193 | PyObject * _resultobj; | |
4194 | wxWindow * _arg0; | |
4195 | wxRect * _arg1; | |
4196 | int _arg2 = (int ) wxSIZE_AUTO; | |
4197 | PyObject * _argo0 = 0; | |
4198 | wxRect temp; | |
4199 | PyObject * _obj1 = 0; | |
4200 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4201 | ||
4202 | self = self; | |
4203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4204 | return NULL; | |
4205 | if (_argo0) { | |
4206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4209 | return NULL; | |
4210 | } | |
4211 | } | |
4212 | { | |
4213 | _arg1 = &temp; | |
4214 | if (! wxRect_helper(_obj1, &_arg1)) | |
4215 | return NULL; | |
4216 | } | |
4217 | { | |
4218 | wxPy_BEGIN_ALLOW_THREADS; | |
4219 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4220 | ||
4221 | wxPy_END_ALLOW_THREADS; | |
4222 | } Py_INCREF(Py_None); | |
4223 | _resultobj = Py_None; | |
4224 | return _resultobj; | |
4225 | } | |
4226 | ||
8ab979d7 | 4227 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4228 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4229 | PyObject * _resultobj; |
4230 | wxWindow * _arg0; | |
1d99702e RD |
4231 | int _arg1 = (int ) -1; |
4232 | int _arg2 = (int ) -1; | |
4233 | int _arg3 = (int ) -1; | |
4234 | int _arg4 = (int ) -1; | |
4235 | int _arg5 = (int ) -1; | |
4236 | int _arg6 = (int ) -1; | |
4237 | PyObject * _argo0 = 0; | |
efc5f224 | 4238 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4239 | |
4240 | self = self; | |
efc5f224 | 4241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4242 | return NULL; |
1d99702e RD |
4243 | if (_argo0) { |
4244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4247 | return NULL; | |
4248 | } | |
4249 | } | |
cf694132 RD |
4250 | { |
4251 | wxPy_BEGIN_ALLOW_THREADS; | |
4252 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4253 | ||
4254 | wxPy_END_ALLOW_THREADS; | |
4255 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4256 | _resultobj = Py_None; |
4257 | return _resultobj; | |
4258 | } | |
4259 | ||
af309447 | 4260 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4261 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4262 | PyObject * _resultobj; |
4263 | wxWindow * _arg0; | |
4264 | int _arg1; | |
4265 | int _arg2; | |
1d99702e | 4266 | PyObject * _argo0 = 0; |
efc5f224 | 4267 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4268 | |
4269 | self = self; | |
efc5f224 | 4270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4271 | return NULL; |
1d99702e RD |
4272 | if (_argo0) { |
4273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4276 | return NULL; | |
4277 | } | |
4278 | } | |
cf694132 RD |
4279 | { |
4280 | wxPy_BEGIN_ALLOW_THREADS; | |
4281 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4282 | ||
4283 | wxPy_END_ALLOW_THREADS; | |
4284 | } Py_INCREF(Py_None); | |
af309447 RD |
4285 | _resultobj = Py_None; |
4286 | return _resultobj; | |
4287 | } | |
4288 | ||
4289 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4290 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4291 | PyObject * _resultobj; |
4292 | wxWindow * _arg0; | |
4293 | wxSize * _arg1; | |
1d99702e | 4294 | PyObject * _argo0 = 0; |
2f90df85 RD |
4295 | wxSize temp; |
4296 | PyObject * _obj1 = 0; | |
efc5f224 | 4297 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4298 | |
4299 | self = self; | |
2f90df85 | 4300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4301 | return NULL; |
1d99702e RD |
4302 | if (_argo0) { |
4303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4306 | return NULL; | |
4307 | } | |
4308 | } | |
2f90df85 RD |
4309 | { |
4310 | _arg1 = &temp; | |
4311 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4312 | return NULL; |
2f90df85 | 4313 | } |
cf694132 RD |
4314 | { |
4315 | wxPy_BEGIN_ALLOW_THREADS; | |
4316 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4317 | ||
4318 | wxPy_END_ALLOW_THREADS; | |
4319 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4320 | _resultobj = Py_None; |
4321 | return _resultobj; | |
4322 | } | |
4323 | ||
4324 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4325 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4326 | PyObject * _resultobj; |
4327 | wxWindow * _arg0; | |
4328 | wxCursor * _arg1; | |
1d99702e RD |
4329 | PyObject * _argo0 = 0; |
4330 | PyObject * _argo1 = 0; | |
efc5f224 | 4331 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4332 | |
4333 | self = self; | |
efc5f224 | 4334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4335 | return NULL; |
1d99702e RD |
4336 | if (_argo0) { |
4337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4340 | return NULL; | |
4341 | } | |
4342 | } | |
1d99702e RD |
4343 | if (_argo1) { |
4344 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4345 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4347 | return NULL; | |
4348 | } | |
4349 | } | |
cf694132 RD |
4350 | { |
4351 | wxPy_BEGIN_ALLOW_THREADS; | |
4352 | wxWindow_SetCursor(_arg0,*_arg1); | |
4353 | ||
4354 | wxPy_END_ALLOW_THREADS; | |
4355 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4356 | _resultobj = Py_None; |
4357 | return _resultobj; | |
4358 | } | |
4359 | ||
1afc06c2 RD |
4360 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4361 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4362 | PyObject * _resultobj; | |
4363 | wxWindow * _arg0; | |
4364 | wxEvtHandler * _arg1; | |
4365 | PyObject * _argo0 = 0; | |
4366 | PyObject * _argo1 = 0; | |
4367 | char *_kwnames[] = { "self","handler", NULL }; | |
4368 | ||
4369 | self = self; | |
4370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4371 | return NULL; | |
4372 | if (_argo0) { | |
4373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4376 | return NULL; | |
4377 | } | |
4378 | } | |
4379 | if (_argo1) { | |
4380 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4381 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4383 | return NULL; | |
4384 | } | |
4385 | } | |
4386 | { | |
4387 | wxPy_BEGIN_ALLOW_THREADS; | |
4388 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4389 | ||
4390 | wxPy_END_ALLOW_THREADS; | |
4391 | } Py_INCREF(Py_None); | |
4392 | _resultobj = Py_None; | |
4393 | return _resultobj; | |
4394 | } | |
4395 | ||
83b18bab RD |
4396 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4397 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4398 | PyObject * _resultobj; | |
4399 | wxWindow * _arg0; | |
4400 | long _arg1; | |
4401 | PyObject * _argo0 = 0; | |
4402 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4403 | ||
4404 | self = self; | |
4405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4406 | return NULL; | |
4407 | if (_argo0) { | |
4408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4411 | return NULL; | |
4412 | } | |
4413 | } | |
4414 | { | |
4415 | wxPy_BEGIN_ALLOW_THREADS; | |
4416 | wxWindow_SetExtraStyle(_arg0,_arg1); | |
4417 | ||
4418 | wxPy_END_ALLOW_THREADS; | |
4419 | } Py_INCREF(Py_None); | |
4420 | _resultobj = Py_None; | |
4421 | return _resultobj; | |
4422 | } | |
4423 | ||
8ab979d7 | 4424 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4425 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4426 | PyObject * _resultobj; |
4427 | wxWindow * _arg0; | |
4428 | wxString * _arg1; | |
1d99702e | 4429 | PyObject * _argo0 = 0; |
8ab979d7 | 4430 | PyObject * _obj1 = 0; |
efc5f224 | 4431 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4432 | |
4433 | self = self; | |
efc5f224 | 4434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4435 | return NULL; |
1d99702e RD |
4436 | if (_argo0) { |
4437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4440 | return NULL; | |
4441 | } | |
4442 | } | |
4443 | { | |
185d7c3e RD |
4444 | #if PYTHON_API_VERSION >= 1009 |
4445 | char* tmpPtr; int tmpSize; | |
4446 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4447 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4448 | return NULL; | |
4449 | } | |
4450 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4451 | return NULL; | |
4452 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4453 | #else | |
8ab979d7 RD |
4454 | if (!PyString_Check(_obj1)) { |
4455 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4456 | return NULL; | |
4457 | } | |
185d7c3e RD |
4458 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4459 | #endif | |
8ab979d7 | 4460 | } |
cf694132 RD |
4461 | { |
4462 | wxPy_BEGIN_ALLOW_THREADS; | |
4463 | wxWindow_SetTitle(_arg0,*_arg1); | |
4464 | ||
4465 | wxPy_END_ALLOW_THREADS; | |
4466 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4467 | _resultobj = Py_None; |
4468 | { | |
4469 | if (_obj1) | |
4470 | delete _arg1; | |
4471 | } | |
4472 | return _resultobj; | |
4473 | } | |
4474 | ||
4475 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4476 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4477 | PyObject * _resultobj; |
4478 | bool _result; | |
4479 | wxWindow * _arg0; | |
4480 | bool _arg1; | |
1d99702e | 4481 | PyObject * _argo0 = 0; |
8ab979d7 | 4482 | int tempbool1; |
efc5f224 | 4483 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4484 | |
4485 | self = self; | |
efc5f224 | 4486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4487 | return NULL; |
1d99702e RD |
4488 | if (_argo0) { |
4489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4492 | return NULL; | |
4493 | } | |
4494 | } | |
4495 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4496 | { |
4497 | wxPy_BEGIN_ALLOW_THREADS; | |
4498 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4499 | ||
4500 | wxPy_END_ALLOW_THREADS; | |
4501 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4502 | return _resultobj; |
4503 | } | |
4504 | ||
4505 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4506 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4507 | PyObject * _resultobj; |
4508 | bool _result; | |
4509 | wxWindow * _arg0; | |
1d99702e | 4510 | PyObject * _argo0 = 0; |
efc5f224 | 4511 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4512 | |
4513 | self = self; | |
efc5f224 | 4514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4515 | return NULL; |
1d99702e RD |
4516 | if (_argo0) { |
4517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4520 | return NULL; | |
4521 | } | |
4522 | } | |
cf694132 RD |
4523 | { |
4524 | wxPy_BEGIN_ALLOW_THREADS; | |
4525 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4526 | ||
4527 | wxPy_END_ALLOW_THREADS; | |
4528 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4529 | return _resultobj; |
4530 | } | |
4531 | ||
4532 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4533 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4534 | PyObject * _resultobj; |
4535 | bool _result; | |
4536 | wxWindow * _arg0; | |
1d99702e | 4537 | PyObject * _argo0 = 0; |
efc5f224 | 4538 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4539 | |
4540 | self = self; | |
efc5f224 | 4541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4542 | return NULL; |
1d99702e RD |
4543 | if (_argo0) { |
4544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4547 | return NULL; | |
4548 | } | |
4549 | } | |
cf694132 RD |
4550 | { |
4551 | wxPy_BEGIN_ALLOW_THREADS; | |
4552 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4553 | ||
4554 | wxPy_END_ALLOW_THREADS; | |
4555 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4556 | return _resultobj; |
4557 | } | |
4558 | ||
4559 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4560 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4561 | PyObject * _resultobj; |
4562 | bool _result; | |
4563 | wxWindow * _arg0; | |
1d99702e | 4564 | PyObject * _argo0 = 0; |
efc5f224 | 4565 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4566 | |
4567 | self = self; | |
efc5f224 | 4568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4569 | return NULL; |
1d99702e RD |
4570 | if (_argo0) { |
4571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4574 | return NULL; | |
4575 | } | |
4576 | } | |
cf694132 RD |
4577 | { |
4578 | wxPy_BEGIN_ALLOW_THREADS; | |
4579 | _result = (bool )wxWindow_Validate(_arg0); | |
4580 | ||
4581 | wxPy_END_ALLOW_THREADS; | |
4582 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4583 | return _resultobj; |
4584 | } | |
4585 | ||
4586 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4587 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4588 | PyObject * _resultobj; |
4589 | wxWindow * _arg0; | |
4590 | int _arg1; | |
4591 | int _arg2; | |
1d99702e | 4592 | PyObject * _argo0 = 0; |
efc5f224 | 4593 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4594 | |
4595 | self = self; | |
efc5f224 | 4596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4597 | return NULL; |
1d99702e RD |
4598 | if (_argo0) { |
4599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4602 | return NULL; | |
4603 | } | |
4604 | } | |
cf694132 RD |
4605 | { |
4606 | wxPy_BEGIN_ALLOW_THREADS; | |
4607 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4608 | ||
4609 | wxPy_END_ALLOW_THREADS; | |
4610 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4611 | _resultobj = Py_None; |
4612 | return _resultobj; | |
4613 | } | |
4614 | ||
b8b8dda7 | 4615 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4616 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4617 | PyObject * _resultobj; |
4618 | wxPoint * _result; | |
4619 | wxWindow * _arg0; | |
4620 | wxPoint * _arg1; | |
1d99702e | 4621 | PyObject * _argo0 = 0; |
2f90df85 RD |
4622 | wxPoint temp; |
4623 | PyObject * _obj1 = 0; | |
efc5f224 | 4624 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4625 | char _ptemp[128]; |
4626 | ||
4627 | self = self; | |
2f90df85 | 4628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4629 | return NULL; |
1d99702e RD |
4630 | if (_argo0) { |
4631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4634 | return NULL; | |
4635 | } | |
4636 | } | |
2f90df85 RD |
4637 | { |
4638 | _arg1 = &temp; | |
4639 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4640 | return NULL; |
2f90df85 | 4641 | } |
cf694132 RD |
4642 | { |
4643 | wxPy_BEGIN_ALLOW_THREADS; | |
4644 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4645 | ||
4646 | wxPy_END_ALLOW_THREADS; | |
4647 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
4648 | _resultobj = Py_BuildValue("s",_ptemp); |
4649 | return _resultobj; | |
4650 | } | |
4651 | ||
4652 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4653 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4654 | PyObject * _resultobj; |
4655 | wxSize * _result; | |
4656 | wxWindow * _arg0; | |
4657 | wxSize * _arg1; | |
1d99702e | 4658 | PyObject * _argo0 = 0; |
2f90df85 RD |
4659 | wxSize temp; |
4660 | PyObject * _obj1 = 0; | |
efc5f224 | 4661 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4662 | char _ptemp[128]; |
4663 | ||
4664 | self = self; | |
2f90df85 | 4665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4666 | return NULL; |
1d99702e RD |
4667 | if (_argo0) { |
4668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4671 | return NULL; | |
4672 | } | |
4673 | } | |
2f90df85 RD |
4674 | { |
4675 | _arg1 = &temp; | |
4676 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4677 | return NULL; |
2f90df85 | 4678 | } |
cf694132 RD |
4679 | { |
4680 | wxPy_BEGIN_ALLOW_THREADS; | |
4681 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4682 | ||
4683 | wxPy_END_ALLOW_THREADS; | |
4684 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
4685 | _resultobj = Py_BuildValue("s",_ptemp); |
4686 | return _resultobj; | |
4687 | } | |
4688 | ||
4689 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4690 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4691 | PyObject * _resultobj; |
4692 | wxPoint * _result; | |
4693 | wxWindow * _arg0; | |
4694 | wxPoint * _arg1; | |
1d99702e | 4695 | PyObject * _argo0 = 0; |
2f90df85 RD |
4696 | wxPoint temp; |
4697 | PyObject * _obj1 = 0; | |
efc5f224 | 4698 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4699 | char _ptemp[128]; |
4700 | ||
4701 | self = self; | |
2f90df85 | 4702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4703 | return NULL; |
1d99702e RD |
4704 | if (_argo0) { |
4705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4708 | return NULL; | |
4709 | } | |
4710 | } | |
2f90df85 RD |
4711 | { |
4712 | _arg1 = &temp; | |
4713 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4714 | return NULL; |
2f90df85 | 4715 | } |
cf694132 RD |
4716 | { |
4717 | wxPy_BEGIN_ALLOW_THREADS; | |
4718 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4719 | ||
4720 | wxPy_END_ALLOW_THREADS; | |
4721 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
4722 | _resultobj = Py_BuildValue("s",_ptemp); |
4723 | return _resultobj; | |
4724 | } | |
4725 | ||
4726 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4727 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4728 | PyObject * _resultobj; |
4729 | wxSize * _result; | |
4730 | wxWindow * _arg0; | |
4731 | wxSize * _arg1; | |
1d99702e | 4732 | PyObject * _argo0 = 0; |
2f90df85 RD |
4733 | wxSize temp; |
4734 | PyObject * _obj1 = 0; | |
efc5f224 | 4735 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4736 | char _ptemp[128]; |
4737 | ||
4738 | self = self; | |
2f90df85 | 4739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4740 | return NULL; |
1d99702e RD |
4741 | if (_argo0) { |
4742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4745 | return NULL; | |
4746 | } | |
4747 | } | |
2f90df85 RD |
4748 | { |
4749 | _arg1 = &temp; | |
4750 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4751 | return NULL; |
2f90df85 | 4752 | } |
cf694132 RD |
4753 | { |
4754 | wxPy_BEGIN_ALLOW_THREADS; | |
4755 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4756 | ||
4757 | wxPy_END_ALLOW_THREADS; | |
4758 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
4759 | _resultobj = Py_BuildValue("s",_ptemp); |
4760 | return _resultobj; | |
4761 | } | |
4762 | ||
af309447 | 4763 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4764 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4765 | PyObject * _resultobj; |
4766 | wxWindow * _arg0; | |
4767 | wxString * _arg1; | |
1d99702e | 4768 | PyObject * _argo0 = 0; |
af309447 | 4769 | PyObject * _obj1 = 0; |
efc5f224 | 4770 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4771 | |
4772 | self = self; | |
efc5f224 | 4773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4774 | return NULL; |
1d99702e RD |
4775 | if (_argo0) { |
4776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4779 | return NULL; | |
4780 | } | |
4781 | } | |
4782 | { | |
185d7c3e RD |
4783 | #if PYTHON_API_VERSION >= 1009 |
4784 | char* tmpPtr; int tmpSize; | |
4785 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4786 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4787 | return NULL; | |
4788 | } | |
4789 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4790 | return NULL; | |
4791 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4792 | #else | |
af309447 RD |
4793 | if (!PyString_Check(_obj1)) { |
4794 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4795 | return NULL; | |
4796 | } | |
185d7c3e RD |
4797 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4798 | #endif | |
af309447 | 4799 | } |
cf694132 RD |
4800 | { |
4801 | wxPy_BEGIN_ALLOW_THREADS; | |
4802 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4803 | ||
4804 | wxPy_END_ALLOW_THREADS; | |
4805 | } Py_INCREF(Py_None); | |
af309447 RD |
4806 | _resultobj = Py_None; |
4807 | { | |
4808 | if (_obj1) | |
4809 | delete _arg1; | |
4810 | } | |
4811 | return _resultobj; | |
4812 | } | |
4813 | ||
4814 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4815 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4816 | PyObject * _resultobj; |
4817 | wxWindow * _arg0; | |
4818 | wxToolTip * _arg1; | |
1d99702e RD |
4819 | PyObject * _argo0 = 0; |
4820 | PyObject * _argo1 = 0; | |
efc5f224 | 4821 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4822 | |
4823 | self = self; | |
efc5f224 | 4824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4825 | return NULL; |
1d99702e RD |
4826 | if (_argo0) { |
4827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4830 | return NULL; | |
4831 | } | |
4832 | } | |
1d99702e RD |
4833 | if (_argo1) { |
4834 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4835 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4837 | return NULL; | |
4838 | } | |
4839 | } | |
cf694132 RD |
4840 | { |
4841 | wxPy_BEGIN_ALLOW_THREADS; | |
4842 | wxWindow_SetToolTip(_arg0,_arg1); | |
4843 | ||
4844 | wxPy_END_ALLOW_THREADS; | |
4845 | } Py_INCREF(Py_None); | |
af309447 RD |
4846 | _resultobj = Py_None; |
4847 | return _resultobj; | |
4848 | } | |
4849 | ||
4850 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 4851 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4852 | PyObject * _resultobj; |
4853 | wxToolTip * _result; | |
4854 | wxWindow * _arg0; | |
1d99702e | 4855 | PyObject * _argo0 = 0; |
efc5f224 | 4856 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
4857 | char _ptemp[128]; |
4858 | ||
4859 | self = self; | |
efc5f224 | 4860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 4861 | return NULL; |
1d99702e RD |
4862 | if (_argo0) { |
4863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4866 | return NULL; | |
4867 | } | |
4868 | } | |
cf694132 RD |
4869 | { |
4870 | wxPy_BEGIN_ALLOW_THREADS; | |
4871 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4872 | ||
4873 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4874 | } if (_result) { |
4875 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
4876 | _resultobj = Py_BuildValue("s",_ptemp); | |
4877 | } else { | |
4878 | Py_INCREF(Py_None); | |
4879 | _resultobj = Py_None; | |
4880 | } | |
af309447 RD |
4881 | return _resultobj; |
4882 | } | |
4883 | ||
2f90df85 RD |
4884 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
4885 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4886 | PyObject * _resultobj; | |
4887 | wxWindow * _arg0; | |
4888 | wxSizer * _arg1; | |
4889 | PyObject * _argo0 = 0; | |
4890 | PyObject * _argo1 = 0; | |
4891 | char *_kwnames[] = { "self","sizer", NULL }; | |
4892 | ||
4893 | self = self; | |
4894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4895 | return NULL; | |
4896 | if (_argo0) { | |
4897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4900 | return NULL; | |
4901 | } | |
4902 | } | |
4903 | if (_argo1) { | |
4904 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4905 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4907 | return NULL; | |
4908 | } | |
4909 | } | |
4910 | { | |
4911 | wxPy_BEGIN_ALLOW_THREADS; | |
4912 | wxWindow_SetSizer(_arg0,_arg1); | |
4913 | ||
4914 | wxPy_END_ALLOW_THREADS; | |
4915 | } Py_INCREF(Py_None); | |
4916 | _resultobj = Py_None; | |
4917 | return _resultobj; | |
4918 | } | |
4919 | ||
f6bcfd97 BP |
4920 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
4921 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4922 | PyObject * _resultobj; | |
4923 | wxSizer * _result; | |
4924 | wxWindow * _arg0; | |
4925 | PyObject * _argo0 = 0; | |
4926 | char *_kwnames[] = { "self", NULL }; | |
4927 | char _ptemp[128]; | |
4928 | ||
4929 | self = self; | |
4930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
4931 | return NULL; | |
4932 | if (_argo0) { | |
4933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
4936 | return NULL; | |
4937 | } | |
4938 | } | |
4939 | { | |
4940 | wxPy_BEGIN_ALLOW_THREADS; | |
4941 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
4942 | ||
4943 | wxPy_END_ALLOW_THREADS; | |
4944 | } if (_result) { | |
4945 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p"); | |
4946 | _resultobj = Py_BuildValue("s",_ptemp); | |
4947 | } else { | |
4948 | Py_INCREF(Py_None); | |
4949 | _resultobj = Py_None; | |
4950 | } | |
4951 | return _resultobj; | |
4952 | } | |
4953 | ||
2f90df85 RD |
4954 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
4955 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4956 | PyObject * _resultobj; | |
4957 | wxValidator * _result; | |
4958 | wxWindow * _arg0; | |
4959 | PyObject * _argo0 = 0; | |
4960 | char *_kwnames[] = { "self", NULL }; | |
4961 | char _ptemp[128]; | |
4962 | ||
4963 | self = self; | |
4964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
4965 | return NULL; | |
4966 | if (_argo0) { | |
4967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
4970 | return NULL; | |
4971 | } | |
4972 | } | |
4973 | { | |
4974 | wxPy_BEGIN_ALLOW_THREADS; | |
4975 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
4976 | ||
4977 | wxPy_END_ALLOW_THREADS; | |
4978 | } if (_result) { | |
4979 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
4980 | _resultobj = Py_BuildValue("s",_ptemp); | |
4981 | } else { | |
4982 | Py_INCREF(Py_None); | |
4983 | _resultobj = Py_None; | |
4984 | } | |
4985 | return _resultobj; | |
4986 | } | |
4987 | ||
4988 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
4989 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4990 | PyObject * _resultobj; | |
4991 | wxWindow * _arg0; | |
4992 | wxValidator * _arg1; | |
4993 | PyObject * _argo0 = 0; | |
4994 | PyObject * _argo1 = 0; | |
4995 | char *_kwnames[] = { "self","validator", NULL }; | |
4996 | ||
4997 | self = self; | |
4998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
4999 | return NULL; | |
5000 | if (_argo0) { | |
5001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5004 | return NULL; | |
5005 | } | |
5006 | } | |
5007 | if (_argo1) { | |
5008 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5009 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5011 | return NULL; | |
5012 | } | |
5013 | } | |
5014 | { | |
5015 | wxPy_BEGIN_ALLOW_THREADS; | |
5016 | wxWindow_SetValidator(_arg0,*_arg1); | |
5017 | ||
5018 | wxPy_END_ALLOW_THREADS; | |
5019 | } Py_INCREF(Py_None); | |
5020 | _resultobj = Py_None; | |
5021 | return _resultobj; | |
5022 | } | |
5023 | ||
b1462dfa RD |
5024 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5025 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5026 | PyObject * _resultobj; | |
5027 | wxWindow * _arg0; | |
5028 | wxDropTarget * _arg1; | |
5029 | PyObject * _argo0 = 0; | |
5030 | PyObject * _argo1 = 0; | |
5031 | char *_kwnames[] = { "self","target", NULL }; | |
5032 | ||
5033 | self = self; | |
5034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5035 | return NULL; | |
5036 | if (_argo0) { | |
5037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5040 | return NULL; | |
5041 | } | |
5042 | } | |
5043 | if (_argo1) { | |
5044 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5045 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5047 | return NULL; | |
5048 | } | |
5049 | } | |
5050 | { | |
5051 | wxPy_BEGIN_ALLOW_THREADS; | |
5052 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5053 | ||
5054 | wxPy_END_ALLOW_THREADS; | |
5055 | } Py_INCREF(Py_None); | |
5056 | _resultobj = Py_None; | |
5057 | return _resultobj; | |
5058 | } | |
5059 | ||
5060 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5061 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5062 | PyObject * _resultobj; | |
5063 | wxDropTarget * _result; | |
5064 | wxWindow * _arg0; | |
5065 | PyObject * _argo0 = 0; | |
5066 | char *_kwnames[] = { "self", NULL }; | |
5067 | char _ptemp[128]; | |
5068 | ||
5069 | self = self; | |
5070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5071 | return NULL; | |
5072 | if (_argo0) { | |
5073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5076 | return NULL; | |
5077 | } | |
5078 | } | |
5079 | { | |
5080 | wxPy_BEGIN_ALLOW_THREADS; | |
5081 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5082 | ||
5083 | wxPy_END_ALLOW_THREADS; | |
5084 | } if (_result) { | |
5085 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5086 | _resultobj = Py_BuildValue("s",_ptemp); | |
5087 | } else { | |
5088 | Py_INCREF(Py_None); | |
5089 | _resultobj = Py_None; | |
5090 | } | |
5091 | return _resultobj; | |
5092 | } | |
5093 | ||
694759cf RD |
5094 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5095 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5096 | PyObject * _resultobj; | |
5097 | wxSize * _result; | |
5098 | wxWindow * _arg0; | |
5099 | PyObject * _argo0 = 0; | |
5100 | char *_kwnames[] = { "self", NULL }; | |
5101 | char _ptemp[128]; | |
5102 | ||
5103 | self = self; | |
5104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5105 | return NULL; | |
5106 | if (_argo0) { | |
5107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5110 | return NULL; | |
5111 | } | |
5112 | } | |
5113 | { | |
5114 | wxPy_BEGIN_ALLOW_THREADS; | |
5115 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5116 | ||
5117 | wxPy_END_ALLOW_THREADS; | |
5118 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5119 | _resultobj = Py_BuildValue("s",_ptemp); | |
5120 | return _resultobj; | |
5121 | } | |
5122 | ||
a1df7a95 RD |
5123 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5124 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5125 | PyObject * _resultobj; | |
5126 | wxWindow * _arg0; | |
5127 | wxCaret * _arg1; | |
5128 | PyObject * _argo0 = 0; | |
5129 | PyObject * _argo1 = 0; | |
5130 | char *_kwnames[] = { "self","caret", NULL }; | |
5131 | ||
5132 | self = self; | |
5133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5134 | return NULL; | |
5135 | if (_argo0) { | |
5136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5139 | return NULL; | |
5140 | } | |
5141 | } | |
5142 | if (_argo1) { | |
5143 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5144 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5146 | return NULL; | |
5147 | } | |
5148 | } | |
5149 | { | |
5150 | wxPy_BEGIN_ALLOW_THREADS; | |
5151 | wxWindow_SetCaret(_arg0,_arg1); | |
5152 | ||
5153 | wxPy_END_ALLOW_THREADS; | |
5154 | } Py_INCREF(Py_None); | |
5155 | _resultobj = Py_None; | |
5156 | return _resultobj; | |
5157 | } | |
5158 | ||
5159 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5160 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5161 | PyObject * _resultobj; | |
5162 | wxCaret * _result; | |
5163 | wxWindow * _arg0; | |
5164 | PyObject * _argo0 = 0; | |
5165 | char *_kwnames[] = { "self", NULL }; | |
5166 | char _ptemp[128]; | |
5167 | ||
5168 | self = self; | |
5169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5170 | return NULL; | |
5171 | if (_argo0) { | |
5172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5175 | return NULL; | |
5176 | } | |
5177 | } | |
5178 | { | |
5179 | wxPy_BEGIN_ALLOW_THREADS; | |
5180 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5181 | ||
5182 | wxPy_END_ALLOW_THREADS; | |
5183 | } if (_result) { | |
5184 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5185 | _resultobj = Py_BuildValue("s",_ptemp); | |
5186 | } else { | |
5187 | Py_INCREF(Py_None); | |
5188 | _resultobj = Py_None; | |
5189 | } | |
5190 | return _resultobj; | |
5191 | } | |
5192 | ||
8ab979d7 RD |
5193 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5194 | wxPanel *src; | |
5195 | wxWindow *dest; | |
5196 | src = (wxPanel *) ptr; | |
5197 | dest = (wxWindow *) src; | |
5198 | return (void *) dest; | |
5199 | } | |
5200 | ||
5201 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5202 | wxPanel *src; | |
5203 | wxEvtHandler *dest; | |
5204 | src = (wxPanel *) ptr; | |
5205 | dest = (wxEvtHandler *) src; | |
5206 | return (void *) dest; | |
5207 | } | |
5208 | ||
5209 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 5210 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5211 | PyObject * _resultobj; |
5212 | wxPanel * _result; | |
5213 | wxWindow * _arg0; | |
5214 | wxWindowID _arg1; | |
e508a2b6 RD |
5215 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5216 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5217 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
5218 | char * _arg5 = (char *) "panel"; | |
5219 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5220 | wxPoint temp; |
5221 | PyObject * _obj2 = 0; | |
5222 | wxSize temp0; | |
5223 | PyObject * _obj3 = 0; | |
efc5f224 | 5224 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5225 | char _ptemp[128]; |
5226 | ||
5227 | self = self; | |
2f90df85 | 5228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5229 | return NULL; |
1d99702e RD |
5230 | if (_argo0) { |
5231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5234 | return NULL; | |
5235 | } | |
5236 | } | |
2f90df85 RD |
5237 | if (_obj2) |
5238 | { | |
5239 | _arg2 = &temp; | |
5240 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5241 | return NULL; |
2f90df85 RD |
5242 | } |
5243 | if (_obj3) | |
5244 | { | |
5245 | _arg3 = &temp0; | |
5246 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5247 | return NULL; |
2f90df85 | 5248 | } |
cf694132 RD |
5249 | { |
5250 | wxPy_BEGIN_ALLOW_THREADS; | |
5251 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5252 | ||
5253 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5254 | } if (_result) { |
5255 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5256 | _resultobj = Py_BuildValue("s",_ptemp); | |
5257 | } else { | |
5258 | Py_INCREF(Py_None); | |
5259 | _resultobj = Py_None; | |
5260 | } | |
8ab979d7 RD |
5261 | return _resultobj; |
5262 | } | |
5263 | ||
5264 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
efc5f224 | 5265 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5266 | PyObject * _resultobj; |
5267 | wxPanel * _arg0; | |
1d99702e | 5268 | PyObject * _argo0 = 0; |
efc5f224 | 5269 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5270 | |
5271 | self = self; | |
efc5f224 | 5272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 5273 | return NULL; |
1d99702e RD |
5274 | if (_argo0) { |
5275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
5277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
5278 | return NULL; | |
5279 | } | |
5280 | } | |
cf694132 RD |
5281 | { |
5282 | wxPy_BEGIN_ALLOW_THREADS; | |
5283 | wxPanel_InitDialog(_arg0); | |
5284 | ||
5285 | wxPy_END_ALLOW_THREADS; | |
5286 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5287 | _resultobj = Py_None; |
5288 | return _resultobj; | |
5289 | } | |
5290 | ||
bb0054cd | 5291 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
efc5f224 | 5292 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5293 | PyObject * _resultobj; |
5294 | wxButton * _result; | |
5295 | wxPanel * _arg0; | |
1d99702e | 5296 | PyObject * _argo0 = 0; |
efc5f224 | 5297 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5298 | char _ptemp[128]; |
5299 | ||
5300 | self = self; | |
efc5f224 | 5301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
bb0054cd | 5302 | return NULL; |
1d99702e RD |
5303 | if (_argo0) { |
5304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
5307 | return NULL; | |
5308 | } | |
5309 | } | |
5310 | { | |
5311 | wxPy_BEGIN_ALLOW_THREADS; | |
5312 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
5313 | ||
5314 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5315 | } if (_result) { |
5316 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
5317 | _resultobj = Py_BuildValue("s",_ptemp); | |
5318 | } else { | |
5319 | Py_INCREF(Py_None); | |
5320 | _resultobj = Py_None; | |
5321 | } | |
bb0054cd RD |
5322 | return _resultobj; |
5323 | } | |
5324 | ||
5325 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
efc5f224 | 5326 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5327 | PyObject * _resultobj; |
5328 | wxPanel * _arg0; | |
5329 | wxButton * _arg1; | |
1d99702e RD |
5330 | PyObject * _argo0 = 0; |
5331 | PyObject * _argo1 = 0; | |
efc5f224 | 5332 | char *_kwnames[] = { "self","btn", NULL }; |
bb0054cd RD |
5333 | |
5334 | self = self; | |
efc5f224 | 5335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 5336 | return NULL; |
1d99702e RD |
5337 | if (_argo0) { |
5338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
5341 | return NULL; | |
5342 | } | |
5343 | } | |
1d99702e RD |
5344 | if (_argo1) { |
5345 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5346 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
bb0054cd RD |
5347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
5348 | return NULL; | |
5349 | } | |
5350 | } | |
5351 | { | |
5352 | wxPy_BEGIN_ALLOW_THREADS; | |
5353 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
5354 | ||
5355 | wxPy_END_ALLOW_THREADS; | |
5356 | } Py_INCREF(Py_None); | |
5357 | _resultobj = Py_None; | |
5358 | return _resultobj; | |
5359 | } | |
5360 | ||
8ab979d7 RD |
5361 | static void *SwigwxDialogTowxPanel(void *ptr) { |
5362 | wxDialog *src; | |
5363 | wxPanel *dest; | |
5364 | src = (wxDialog *) ptr; | |
5365 | dest = (wxPanel *) src; | |
5366 | return (void *) dest; | |
5367 | } | |
5368 | ||
5369 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
5370 | wxDialog *src; | |
5371 | wxWindow *dest; | |
5372 | src = (wxDialog *) ptr; | |
5373 | dest = (wxWindow *) src; | |
5374 | return (void *) dest; | |
5375 | } | |
5376 | ||
5377 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
5378 | wxDialog *src; | |
5379 | wxEvtHandler *dest; | |
5380 | src = (wxDialog *) ptr; | |
5381 | dest = (wxEvtHandler *) src; | |
5382 | return (void *) dest; | |
5383 | } | |
5384 | ||
5385 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 5386 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5387 | PyObject * _resultobj; |
5388 | wxDialog * _result; | |
5389 | wxWindow * _arg0; | |
5390 | wxWindowID _arg1; | |
5391 | wxString * _arg2; | |
e508a2b6 RD |
5392 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
5393 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5394 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; |
5395 | char * _arg6 = (char *) "dialogBox"; | |
5396 | PyObject * _argo0 = 0; | |
8ab979d7 | 5397 | PyObject * _obj2 = 0; |
2f90df85 RD |
5398 | wxPoint temp; |
5399 | PyObject * _obj3 = 0; | |
5400 | wxSize temp0; | |
5401 | PyObject * _obj4 = 0; | |
efc5f224 | 5402 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
8ab979d7 RD |
5403 | char _ptemp[128]; |
5404 | ||
5405 | self = self; | |
2f90df85 | 5406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 5407 | return NULL; |
1d99702e RD |
5408 | if (_argo0) { |
5409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); |
5412 | return NULL; | |
5413 | } | |
5414 | } | |
5415 | { | |
185d7c3e RD |
5416 | #if PYTHON_API_VERSION >= 1009 |
5417 | char* tmpPtr; int tmpSize; | |
5418 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
5419 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5420 | return NULL; | |
5421 | } | |
5422 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5423 | return NULL; | |
5424 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5425 | #else | |
8ab979d7 RD |
5426 | if (!PyString_Check(_obj2)) { |
5427 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5428 | return NULL; | |
5429 | } | |
185d7c3e RD |
5430 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5431 | #endif | |
8ab979d7 | 5432 | } |
2f90df85 RD |
5433 | if (_obj3) |
5434 | { | |
5435 | _arg3 = &temp; | |
5436 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 5437 | return NULL; |
2f90df85 RD |
5438 | } |
5439 | if (_obj4) | |
5440 | { | |
5441 | _arg4 = &temp0; | |
5442 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 5443 | return NULL; |
2f90df85 | 5444 | } |
cf694132 RD |
5445 | { |
5446 | wxPy_BEGIN_ALLOW_THREADS; | |
5447 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5448 | ||
5449 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5450 | } if (_result) { |
5451 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
5452 | _resultobj = Py_BuildValue("s",_ptemp); | |
5453 | } else { | |
5454 | Py_INCREF(Py_None); | |
5455 | _resultobj = Py_None; | |
5456 | } | |
8ab979d7 RD |
5457 | { |
5458 | if (_obj2) | |
5459 | delete _arg2; | |
5460 | } | |
5461 | return _resultobj; | |
5462 | } | |
5463 | ||
5464 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 5465 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5466 | PyObject * _resultobj; |
5467 | wxDialog * _arg0; | |
1d99702e RD |
5468 | int _arg1 = (int ) wxBOTH; |
5469 | PyObject * _argo0 = 0; | |
efc5f224 | 5470 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
5471 | |
5472 | self = self; | |
efc5f224 | 5473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5474 | return NULL; |
1d99702e RD |
5475 | if (_argo0) { |
5476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); |
5479 | return NULL; | |
5480 | } | |
5481 | } | |
cf694132 RD |
5482 | { |
5483 | wxPy_BEGIN_ALLOW_THREADS; | |
5484 | wxDialog_Centre(_arg0,_arg1); | |
5485 | ||
5486 | wxPy_END_ALLOW_THREADS; | |
5487 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5488 | _resultobj = Py_None; |
5489 | return _resultobj; | |
5490 | } | |
5491 | ||
5492 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
efc5f224 | 5493 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5494 | PyObject * _resultobj; |
5495 | wxDialog * _arg0; | |
5496 | int _arg1; | |
1d99702e | 5497 | PyObject * _argo0 = 0; |
efc5f224 | 5498 | char *_kwnames[] = { "self","retCode", NULL }; |
8ab979d7 RD |
5499 | |
5500 | self = self; | |
efc5f224 | 5501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5502 | return NULL; |
1d99702e RD |
5503 | if (_argo0) { |
5504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); |
5507 | return NULL; | |
5508 | } | |
5509 | } | |
cf694132 RD |
5510 | { |
5511 | wxPy_BEGIN_ALLOW_THREADS; | |
5512 | wxDialog_EndModal(_arg0,_arg1); | |
5513 | ||
5514 | wxPy_END_ALLOW_THREADS; | |
5515 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5516 | _resultobj = Py_None; |
5517 | return _resultobj; | |
5518 | } | |
5519 | ||
5520 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
efc5f224 | 5521 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5522 | PyObject * _resultobj; |
5523 | wxString * _result; | |
5524 | wxDialog * _arg0; | |
1d99702e | 5525 | PyObject * _argo0 = 0; |
efc5f224 | 5526 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5527 | |
5528 | self = self; | |
efc5f224 | 5529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 5530 | return NULL; |
1d99702e RD |
5531 | if (_argo0) { |
5532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); |
5535 | return NULL; | |
5536 | } | |
5537 | } | |
8ab979d7 | 5538 | { |
cf694132 RD |
5539 | wxPy_BEGIN_ALLOW_THREADS; |
5540 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
5541 | ||
5542 | wxPy_END_ALLOW_THREADS; | |
5543 | }{ | |
eec92d76 | 5544 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
5545 | } |
5546 | { | |
5547 | delete _result; | |
5548 | } | |
5549 | return _resultobj; | |
5550 | } | |
5551 | ||
5552 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
efc5f224 | 5553 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5554 | PyObject * _resultobj; |
5555 | wxDialog * _arg0; | |
5556 | bool _arg1; | |
1d99702e | 5557 | PyObject * _argo0 = 0; |
8ab979d7 | 5558 | int tempbool1; |
efc5f224 | 5559 | char *_kwnames[] = { "self","iconize", NULL }; |
8ab979d7 RD |
5560 | |
5561 | self = self; | |
efc5f224 | 5562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) |
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_Iconize. Expected _wxDialog_p."); |
5568 | return NULL; | |
5569 | } | |
5570 | } | |
5571 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5572 | { |
5573 | wxPy_BEGIN_ALLOW_THREADS; | |
5574 | wxDialog_Iconize(_arg0,_arg1); | |
5575 | ||
5576 | wxPy_END_ALLOW_THREADS; | |
5577 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5578 | _resultobj = Py_None; |
5579 | return _resultobj; | |
5580 | } | |
5581 | ||
5582 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
efc5f224 | 5583 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5584 | PyObject * _resultobj; |
5585 | bool _result; | |
5586 | wxDialog * _arg0; | |
1d99702e | 5587 | PyObject * _argo0 = 0; |
efc5f224 | 5588 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5589 | |
5590 | self = self; | |
efc5f224 | 5591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) |
8ab979d7 | 5592 | return NULL; |
1d99702e RD |
5593 | if (_argo0) { |
5594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); |
5597 | return NULL; | |
5598 | } | |
5599 | } | |
cf694132 RD |
5600 | { |
5601 | wxPy_BEGIN_ALLOW_THREADS; | |
5602 | _result = (bool )wxDialog_IsIconized(_arg0); | |
5603 | ||
5604 | wxPy_END_ALLOW_THREADS; | |
5605 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5606 | return _resultobj; |
5607 | } | |
5608 | ||
5609 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
efc5f224 | 5610 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5611 | PyObject * _resultobj; |
5612 | wxDialog * _arg0; | |
5613 | bool _arg1; | |
1d99702e | 5614 | PyObject * _argo0 = 0; |
8ab979d7 | 5615 | int tempbool1; |
efc5f224 | 5616 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
5617 | |
5618 | self = self; | |
efc5f224 | 5619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5620 | return NULL; |
1d99702e RD |
5621 | if (_argo0) { |
5622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); |
5625 | return NULL; | |
5626 | } | |
5627 | } | |
5628 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5629 | { |
5630 | wxPy_BEGIN_ALLOW_THREADS; | |
5631 | wxDialog_SetModal(_arg0,_arg1); | |
5632 | ||
5633 | wxPy_END_ALLOW_THREADS; | |
5634 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5635 | _resultobj = Py_None; |
5636 | return _resultobj; | |
5637 | } | |
5638 | ||
5639 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
efc5f224 | 5640 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5641 | PyObject * _resultobj; |
5642 | bool _result; | |
5643 | wxDialog * _arg0; | |
1d99702e | 5644 | PyObject * _argo0 = 0; |
efc5f224 | 5645 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5646 | |
5647 | self = self; | |
efc5f224 | 5648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) |
8ab979d7 | 5649 | return NULL; |
1d99702e RD |
5650 | if (_argo0) { |
5651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); |
5654 | return NULL; | |
5655 | } | |
5656 | } | |
cf694132 RD |
5657 | { |
5658 | wxPy_BEGIN_ALLOW_THREADS; | |
5659 | _result = (bool )wxDialog_IsModal(_arg0); | |
5660 | ||
5661 | wxPy_END_ALLOW_THREADS; | |
5662 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5663 | return _resultobj; |
5664 | } | |
5665 | ||
5666 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 5667 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5668 | PyObject * _resultobj; |
5669 | wxDialog * _arg0; | |
5670 | wxString * _arg1; | |
1d99702e | 5671 | PyObject * _argo0 = 0; |
8ab979d7 | 5672 | PyObject * _obj1 = 0; |
efc5f224 | 5673 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
5674 | |
5675 | self = self; | |
efc5f224 | 5676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5677 | return NULL; |
1d99702e RD |
5678 | if (_argo0) { |
5679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); |
5682 | return NULL; | |
5683 | } | |
5684 | } | |
5685 | { | |
185d7c3e RD |
5686 | #if PYTHON_API_VERSION >= 1009 |
5687 | char* tmpPtr; int tmpSize; | |
5688 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5689 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5690 | return NULL; | |
5691 | } | |
5692 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5693 | return NULL; | |
5694 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5695 | #else | |
8ab979d7 RD |
5696 | if (!PyString_Check(_obj1)) { |
5697 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5698 | return NULL; | |
5699 | } | |
185d7c3e RD |
5700 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5701 | #endif | |
8ab979d7 | 5702 | } |
cf694132 RD |
5703 | { |
5704 | wxPy_BEGIN_ALLOW_THREADS; | |
5705 | wxDialog_SetTitle(_arg0,*_arg1); | |
5706 | ||
5707 | wxPy_END_ALLOW_THREADS; | |
5708 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5709 | _resultobj = Py_None; |
5710 | { | |
5711 | if (_obj1) | |
5712 | delete _arg1; | |
5713 | } | |
5714 | return _resultobj; | |
5715 | } | |
5716 | ||
5717 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 5718 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5719 | PyObject * _resultobj; |
5720 | bool _result; | |
5721 | wxDialog * _arg0; | |
5722 | bool _arg1; | |
1d99702e | 5723 | PyObject * _argo0 = 0; |
8ab979d7 | 5724 | int tempbool1; |
efc5f224 | 5725 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
5726 | |
5727 | self = self; | |
efc5f224 | 5728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5729 | return NULL; |
1d99702e RD |
5730 | if (_argo0) { |
5731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); |
5734 | return NULL; | |
5735 | } | |
5736 | } | |
5737 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5738 | { |
5739 | wxPy_BEGIN_ALLOW_THREADS; | |
5740 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
5741 | ||
5742 | wxPy_END_ALLOW_THREADS; | |
5743 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5744 | return _resultobj; |
5745 | } | |
5746 | ||
5747 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 5748 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5749 | PyObject * _resultobj; |
5750 | int _result; | |
5751 | wxDialog * _arg0; | |
1d99702e | 5752 | PyObject * _argo0 = 0; |
efc5f224 | 5753 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5754 | |
5755 | self = self; | |
efc5f224 | 5756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 5757 | return NULL; |
1d99702e RD |
5758 | if (_argo0) { |
5759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); |
5762 | return NULL; | |
5763 | } | |
5764 | } | |
cf694132 RD |
5765 | { |
5766 | wxPy_BEGIN_ALLOW_THREADS; | |
5767 | _result = (int )wxDialog_ShowModal(_arg0); | |
5768 | ||
5769 | wxPy_END_ALLOW_THREADS; | |
5770 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5771 | return _resultobj; |
5772 | } | |
5773 | ||
bb0054cd | 5774 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) |
efc5f224 | 5775 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5776 | PyObject * _resultobj; |
5777 | int _result; | |
5778 | wxDialog * _arg0; | |
1d99702e | 5779 | PyObject * _argo0 = 0; |
efc5f224 | 5780 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5781 | |
5782 | self = self; | |
efc5f224 | 5783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) |
bb0054cd | 5784 | return NULL; |
1d99702e RD |
5785 | if (_argo0) { |
5786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); |
5789 | return NULL; | |
5790 | } | |
5791 | } | |
5792 | { | |
5793 | wxPy_BEGIN_ALLOW_THREADS; | |
5794 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
5795 | ||
5796 | wxPy_END_ALLOW_THREADS; | |
5797 | } _resultobj = Py_BuildValue("i",_result); | |
5798 | return _resultobj; | |
5799 | } | |
5800 | ||
5801 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
efc5f224 | 5802 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5803 | PyObject * _resultobj; |
5804 | wxDialog * _arg0; | |
5805 | int _arg1; | |
1d99702e | 5806 | PyObject * _argo0 = 0; |
efc5f224 | 5807 | char *_kwnames[] = { "self","retCode", NULL }; |
bb0054cd RD |
5808 | |
5809 | self = self; | |
efc5f224 | 5810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 5811 | return NULL; |
1d99702e RD |
5812 | if (_argo0) { |
5813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); |
5816 | return NULL; | |
5817 | } | |
5818 | } | |
5819 | { | |
5820 | wxPy_BEGIN_ALLOW_THREADS; | |
5821 | wxDialog_SetReturnCode(_arg0,_arg1); | |
5822 | ||
5823 | wxPy_END_ALLOW_THREADS; | |
5824 | } Py_INCREF(Py_None); | |
5825 | _resultobj = Py_None; | |
5826 | return _resultobj; | |
5827 | } | |
5828 | ||
5829 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { | |
5830 | wxScrolledWindow *src; | |
5831 | wxPanel *dest; | |
5832 | src = (wxScrolledWindow *) ptr; | |
5833 | dest = (wxPanel *) src; | |
5834 | return (void *) dest; | |
5835 | } | |
5836 | ||
8ab979d7 RD |
5837 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
5838 | wxScrolledWindow *src; | |
5839 | wxWindow *dest; | |
5840 | src = (wxScrolledWindow *) ptr; | |
5841 | dest = (wxWindow *) src; | |
5842 | return (void *) dest; | |
5843 | } | |
5844 | ||
5845 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
5846 | wxScrolledWindow *src; | |
5847 | wxEvtHandler *dest; | |
5848 | src = (wxScrolledWindow *) ptr; | |
5849 | dest = (wxEvtHandler *) src; | |
5850 | return (void *) dest; | |
5851 | } | |
5852 | ||
5853 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 5854 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5855 | PyObject * _resultobj; |
5856 | wxScrolledWindow * _result; | |
5857 | wxWindow * _arg0; | |
1d99702e | 5858 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
5859 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5860 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5861 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
5862 | char * _arg5 = (char *) "scrolledWindow"; | |
5863 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5864 | wxPoint temp; |
5865 | PyObject * _obj2 = 0; | |
5866 | wxSize temp0; | |
5867 | PyObject * _obj3 = 0; | |
efc5f224 | 5868 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5869 | char _ptemp[128]; |
5870 | ||
5871 | self = self; | |
2f90df85 | 5872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5873 | return NULL; |
1d99702e RD |
5874 | if (_argo0) { |
5875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
5878 | return NULL; | |
5879 | } | |
5880 | } | |
2f90df85 RD |
5881 | if (_obj2) |
5882 | { | |
5883 | _arg2 = &temp; | |
5884 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5885 | return NULL; |
2f90df85 RD |
5886 | } |
5887 | if (_obj3) | |
5888 | { | |
5889 | _arg3 = &temp0; | |
5890 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5891 | return NULL; |
2f90df85 | 5892 | } |
cf694132 RD |
5893 | { |
5894 | wxPy_BEGIN_ALLOW_THREADS; | |
5895 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5896 | ||
5897 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5898 | } if (_result) { |
5899 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
5900 | _resultobj = Py_BuildValue("s",_ptemp); | |
5901 | } else { | |
5902 | Py_INCREF(Py_None); | |
5903 | _resultobj = Py_None; | |
5904 | } | |
8ab979d7 RD |
5905 | return _resultobj; |
5906 | } | |
5907 | ||
5908 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
efc5f224 | 5909 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5910 | PyObject * _resultobj; |
5911 | wxScrolledWindow * _arg0; | |
5912 | bool _arg1; | |
5913 | bool _arg2; | |
1d99702e | 5914 | PyObject * _argo0 = 0; |
8ab979d7 RD |
5915 | int tempbool1; |
5916 | int tempbool2; | |
efc5f224 | 5917 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
5918 | |
5919 | self = self; | |
efc5f224 | 5920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 5921 | return NULL; |
1d99702e RD |
5922 | if (_argo0) { |
5923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
5926 | return NULL; | |
5927 | } | |
5928 | } | |
5929 | _arg1 = (bool ) tempbool1; | |
5930 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
5931 | { |
5932 | wxPy_BEGIN_ALLOW_THREADS; | |
5933 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
5934 | ||
5935 | wxPy_END_ALLOW_THREADS; | |
5936 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5937 | _resultobj = Py_None; |
5938 | return _resultobj; | |
5939 | } | |
5940 | ||
b7e72427 RD |
5941 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
5942 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5943 | PyObject * _resultobj; | |
5944 | int _result; | |
5945 | wxScrolledWindow * _arg0; | |
5946 | int _arg1; | |
5947 | PyObject * _argo0 = 0; | |
5948 | char *_kwnames[] = { "self","orient", NULL }; | |
5949 | ||
5950 | self = self; | |
5951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
5952 | return NULL; | |
5953 | if (_argo0) { | |
5954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
5957 | return NULL; | |
5958 | } | |
5959 | } | |
5960 | { | |
5961 | wxPy_BEGIN_ALLOW_THREADS; | |
5962 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
5963 | ||
5964 | wxPy_END_ALLOW_THREADS; | |
5965 | } _resultobj = Py_BuildValue("i",_result); | |
5966 | return _resultobj; | |
5967 | } | |
5968 | ||
8ab979d7 | 5969 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 5970 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5971 | PyObject * _resultobj; |
5972 | wxScrolledWindow * _arg0; | |
5973 | int * _arg1; | |
5974 | int temp; | |
5975 | int * _arg2; | |
5976 | int temp0; | |
1d99702e | 5977 | PyObject * _argo0 = 0; |
efc5f224 | 5978 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5979 | |
5980 | self = self; | |
5981 | { | |
5982 | _arg1 = &temp; | |
5983 | } | |
5984 | { | |
5985 | _arg2 = &temp0; | |
5986 | } | |
efc5f224 | 5987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 5988 | return NULL; |
1d99702e RD |
5989 | if (_argo0) { |
5990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
5993 | return NULL; | |
5994 | } | |
5995 | } | |
cf694132 RD |
5996 | { |
5997 | wxPy_BEGIN_ALLOW_THREADS; | |
5998 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
5999 | ||
6000 | wxPy_END_ALLOW_THREADS; | |
6001 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6002 | _resultobj = Py_None; |
6003 | { | |
6004 | PyObject *o; | |
6005 | o = PyInt_FromLong((long) (*_arg1)); | |
6006 | _resultobj = t_output_helper(_resultobj, o); | |
6007 | } | |
6008 | { | |
6009 | PyObject *o; | |
6010 | o = PyInt_FromLong((long) (*_arg2)); | |
6011 | _resultobj = t_output_helper(_resultobj, o); | |
6012 | } | |
6013 | return _resultobj; | |
6014 | } | |
6015 | ||
b7e72427 RD |
6016 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6017 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6018 | PyObject * _resultobj; | |
6019 | wxWindow * _result; | |
6020 | wxScrolledWindow * _arg0; | |
6021 | PyObject * _argo0 = 0; | |
6022 | char *_kwnames[] = { "self", NULL }; | |
6023 | char _ptemp[128]; | |
6024 | ||
6025 | self = self; | |
6026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6027 | return NULL; | |
6028 | if (_argo0) { | |
6029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6032 | return NULL; | |
6033 | } | |
6034 | } | |
6035 | { | |
6036 | wxPy_BEGIN_ALLOW_THREADS; | |
6037 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6038 | ||
6039 | wxPy_END_ALLOW_THREADS; | |
6040 | } if (_result) { | |
6041 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
6042 | _resultobj = Py_BuildValue("s",_ptemp); | |
6043 | } else { | |
6044 | Py_INCREF(Py_None); | |
6045 | _resultobj = Py_None; | |
6046 | } | |
6047 | return _resultobj; | |
6048 | } | |
6049 | ||
8ab979d7 | 6050 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6051 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6052 | PyObject * _resultobj; |
6053 | wxScrolledWindow * _arg0; | |
6054 | int * _arg1; | |
6055 | int temp; | |
6056 | int * _arg2; | |
6057 | int temp0; | |
1d99702e | 6058 | PyObject * _argo0 = 0; |
efc5f224 | 6059 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6060 | |
6061 | self = self; | |
6062 | { | |
6063 | _arg1 = &temp; | |
6064 | } | |
6065 | { | |
6066 | _arg2 = &temp0; | |
6067 | } | |
efc5f224 | 6068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6069 | return NULL; |
1d99702e RD |
6070 | if (_argo0) { |
6071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6074 | return NULL; | |
6075 | } | |
6076 | } | |
cf694132 RD |
6077 | { |
6078 | wxPy_BEGIN_ALLOW_THREADS; | |
6079 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6080 | ||
6081 | wxPy_END_ALLOW_THREADS; | |
6082 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6083 | _resultobj = Py_None; |
6084 | { | |
6085 | PyObject *o; | |
6086 | o = PyInt_FromLong((long) (*_arg1)); | |
6087 | _resultobj = t_output_helper(_resultobj, o); | |
6088 | } | |
6089 | { | |
6090 | PyObject *o; | |
6091 | o = PyInt_FromLong((long) (*_arg2)); | |
6092 | _resultobj = t_output_helper(_resultobj, o); | |
6093 | } | |
6094 | return _resultobj; | |
6095 | } | |
6096 | ||
6097 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6098 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6099 | PyObject * _resultobj; |
6100 | bool _result; | |
6101 | wxScrolledWindow * _arg0; | |
1d99702e | 6102 | PyObject * _argo0 = 0; |
efc5f224 | 6103 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6104 | |
6105 | self = self; | |
efc5f224 | 6106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6107 | return NULL; |
1d99702e RD |
6108 | if (_argo0) { |
6109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6112 | return NULL; | |
6113 | } | |
6114 | } | |
cf694132 RD |
6115 | { |
6116 | wxPy_BEGIN_ALLOW_THREADS; | |
6117 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6118 | ||
6119 | wxPy_END_ALLOW_THREADS; | |
6120 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6121 | return _resultobj; |
6122 | } | |
6123 | ||
6124 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6125 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6126 | PyObject * _resultobj; |
6127 | wxScrolledWindow * _arg0; | |
6128 | wxDC * _arg1; | |
1d99702e RD |
6129 | PyObject * _argo0 = 0; |
6130 | PyObject * _argo1 = 0; | |
efc5f224 | 6131 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6132 | |
6133 | self = self; | |
efc5f224 | 6134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6135 | return NULL; |
1d99702e RD |
6136 | if (_argo0) { |
6137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6140 | return NULL; | |
6141 | } | |
6142 | } | |
1d99702e RD |
6143 | if (_argo1) { |
6144 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6145 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6147 | return NULL; | |
6148 | } | |
6149 | } | |
cf694132 RD |
6150 | { |
6151 | wxPy_BEGIN_ALLOW_THREADS; | |
6152 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
6153 | ||
6154 | wxPy_END_ALLOW_THREADS; | |
6155 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6156 | _resultobj = Py_None; |
6157 | return _resultobj; | |
6158 | } | |
6159 | ||
6160 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6161 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6162 | PyObject * _resultobj; |
6163 | wxScrolledWindow * _arg0; | |
6164 | int _arg1; | |
6165 | int _arg2; | |
1d99702e | 6166 | PyObject * _argo0 = 0; |
efc5f224 | 6167 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6168 | |
6169 | self = self; | |
efc5f224 | 6170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6171 | return NULL; |
1d99702e RD |
6172 | if (_argo0) { |
6173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6176 | return NULL; | |
6177 | } | |
6178 | } | |
cf694132 RD |
6179 | { |
6180 | wxPy_BEGIN_ALLOW_THREADS; | |
6181 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
6182 | ||
6183 | wxPy_END_ALLOW_THREADS; | |
6184 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6185 | _resultobj = Py_None; |
6186 | return _resultobj; | |
6187 | } | |
6188 | ||
f6bcfd97 | 6189 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6190 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6191 | PyObject * _resultobj; |
6192 | wxScrolledWindow * _arg0; | |
6193 | int _arg1; | |
6194 | int _arg2; | |
6195 | int _arg3; | |
6196 | int _arg4; | |
1d99702e RD |
6197 | int _arg5 = (int ) 0; |
6198 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6199 | int _arg7 = (int ) FALSE; |
1d99702e | 6200 | PyObject * _argo0 = 0; |
f6bcfd97 | 6201 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6202 | |
6203 | self = self; | |
f6bcfd97 | 6204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6205 | return NULL; |
1d99702e RD |
6206 | if (_argo0) { |
6207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6210 | return NULL; | |
6211 | } | |
6212 | } | |
cf694132 RD |
6213 | { |
6214 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6215 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 RD |
6216 | |
6217 | wxPy_END_ALLOW_THREADS; | |
6218 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6219 | _resultobj = Py_None; |
6220 | return _resultobj; | |
6221 | } | |
6222 | ||
b7e72427 RD |
6223 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6224 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6225 | PyObject * _resultobj; | |
6226 | wxScrolledWindow * _arg0; | |
6227 | int _arg1; | |
6228 | int _arg2; | |
6229 | PyObject * _argo0 = 0; | |
6230 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6231 | ||
6232 | self = self; | |
6233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6234 | return NULL; | |
6235 | if (_argo0) { | |
6236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6239 | return NULL; | |
6240 | } | |
6241 | } | |
6242 | { | |
6243 | wxPy_BEGIN_ALLOW_THREADS; | |
6244 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6245 | ||
6246 | wxPy_END_ALLOW_THREADS; | |
6247 | } Py_INCREF(Py_None); | |
6248 | _resultobj = Py_None; | |
6249 | return _resultobj; | |
6250 | } | |
6251 | ||
eb715945 RD |
6252 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6253 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6254 | PyObject * _resultobj; | |
6255 | wxScrolledWindow * _arg0; | |
6256 | wxWindow * _arg1; | |
6257 | PyObject * _argo0 = 0; | |
6258 | PyObject * _argo1 = 0; | |
6259 | char *_kwnames[] = { "self","window", NULL }; | |
6260 | ||
6261 | self = self; | |
6262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6263 | return NULL; | |
6264 | if (_argo0) { | |
6265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6268 | return NULL; | |
6269 | } | |
6270 | } | |
6271 | if (_argo1) { | |
6272 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6273 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6275 | return NULL; | |
6276 | } | |
6277 | } | |
6278 | { | |
6279 | wxPy_BEGIN_ALLOW_THREADS; | |
6280 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6281 | ||
6282 | wxPy_END_ALLOW_THREADS; | |
6283 | } Py_INCREF(Py_None); | |
6284 | _resultobj = Py_None; | |
6285 | return _resultobj; | |
6286 | } | |
6287 | ||
4c9993c3 RD |
6288 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6289 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6290 | PyObject * _resultobj; | |
6291 | wxScrolledWindow * _arg0; | |
6292 | int * _arg1; | |
6293 | int temp; | |
6294 | int * _arg2; | |
6295 | int temp0; | |
6296 | PyObject * _argo0 = 0; | |
6297 | char *_kwnames[] = { "self", NULL }; | |
6298 | ||
6299 | self = self; | |
6300 | { | |
6301 | _arg1 = &temp; | |
6302 | } | |
6303 | { | |
6304 | _arg2 = &temp0; | |
6305 | } | |
6306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6307 | return NULL; | |
6308 | if (_argo0) { | |
6309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6312 | return NULL; | |
6313 | } | |
6314 | } | |
6315 | { | |
6316 | wxPy_BEGIN_ALLOW_THREADS; | |
6317 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6318 | ||
6319 | wxPy_END_ALLOW_THREADS; | |
6320 | } Py_INCREF(Py_None); | |
6321 | _resultobj = Py_None; | |
6322 | { | |
6323 | PyObject *o; | |
6324 | o = PyInt_FromLong((long) (*_arg1)); | |
6325 | _resultobj = t_output_helper(_resultobj, o); | |
6326 | } | |
6327 | { | |
6328 | PyObject *o; | |
6329 | o = PyInt_FromLong((long) (*_arg2)); | |
6330 | _resultobj = t_output_helper(_resultobj, o); | |
6331 | } | |
6332 | return _resultobj; | |
6333 | } | |
6334 | ||
8ab979d7 | 6335 | #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1)) |
efc5f224 | 6336 | static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6337 | PyObject * _resultobj; |
6338 | wxScrolledWindow * _arg0; | |
6339 | int * _arg1; | |
6340 | int temp; | |
6341 | int * _arg2; | |
6342 | int temp0; | |
1d99702e | 6343 | PyObject * _argo0 = 0; |
efc5f224 | 6344 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6345 | |
6346 | self = self; | |
6347 | { | |
6348 | _arg1 = &temp; | |
6349 | } | |
6350 | { | |
6351 | _arg2 = &temp0; | |
6352 | } | |
efc5f224 | 6353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0)) |
8ab979d7 | 6354 | return NULL; |
1d99702e RD |
6355 | if (_argo0) { |
6356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p."); |
6359 | return NULL; | |
6360 | } | |
6361 | } | |
cf694132 RD |
6362 | { |
6363 | wxPy_BEGIN_ALLOW_THREADS; | |
6364 | wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2); | |
6365 | ||
6366 | wxPy_END_ALLOW_THREADS; | |
6367 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6368 | _resultobj = Py_None; |
6369 | { | |
6370 | PyObject *o; | |
6371 | o = PyInt_FromLong((long) (*_arg1)); | |
6372 | _resultobj = t_output_helper(_resultobj, o); | |
6373 | } | |
6374 | { | |
6375 | PyObject *o; | |
6376 | o = PyInt_FromLong((long) (*_arg2)); | |
6377 | _resultobj = t_output_helper(_resultobj, o); | |
6378 | } | |
6379 | return _resultobj; | |
6380 | } | |
6381 | ||
9d8bd15f RD |
6382 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6383 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6384 | PyObject * _resultobj; | |
6385 | wxScrolledWindow * _arg0; | |
6386 | int _arg1; | |
6387 | int _arg2; | |
6388 | int * _arg3; | |
6389 | int temp; | |
6390 | int * _arg4; | |
6391 | int temp0; | |
6392 | PyObject * _argo0 = 0; | |
6393 | char *_kwnames[] = { "self","x","y", NULL }; | |
6394 | ||
6395 | self = self; | |
6396 | { | |
6397 | _arg3 = &temp; | |
6398 | } | |
6399 | { | |
6400 | _arg4 = &temp0; | |
6401 | } | |
6402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6403 | return NULL; | |
6404 | if (_argo0) { | |
6405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6408 | return NULL; | |
6409 | } | |
6410 | } | |
6411 | { | |
6412 | wxPy_BEGIN_ALLOW_THREADS; | |
6413 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6414 | ||
6415 | wxPy_END_ALLOW_THREADS; | |
6416 | } Py_INCREF(Py_None); | |
6417 | _resultobj = Py_None; | |
6418 | { | |
6419 | PyObject *o; | |
6420 | o = PyInt_FromLong((long) (*_arg3)); | |
6421 | _resultobj = t_output_helper(_resultobj, o); | |
6422 | } | |
6423 | { | |
6424 | PyObject *o; | |
6425 | o = PyInt_FromLong((long) (*_arg4)); | |
6426 | _resultobj = t_output_helper(_resultobj, o); | |
6427 | } | |
6428 | return _resultobj; | |
6429 | } | |
6430 | ||
6431 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6432 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6433 | PyObject * _resultobj; | |
6434 | wxScrolledWindow * _arg0; | |
6435 | int _arg1; | |
6436 | int _arg2; | |
6437 | int * _arg3; | |
6438 | int temp; | |
6439 | int * _arg4; | |
6440 | int temp0; | |
6441 | PyObject * _argo0 = 0; | |
6442 | char *_kwnames[] = { "self","x","y", NULL }; | |
6443 | ||
6444 | self = self; | |
6445 | { | |
6446 | _arg3 = &temp; | |
6447 | } | |
6448 | { | |
6449 | _arg4 = &temp0; | |
6450 | } | |
6451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6452 | return NULL; | |
6453 | if (_argo0) { | |
6454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6457 | return NULL; | |
6458 | } | |
6459 | } | |
6460 | { | |
6461 | wxPy_BEGIN_ALLOW_THREADS; | |
6462 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6463 | ||
6464 | wxPy_END_ALLOW_THREADS; | |
6465 | } Py_INCREF(Py_None); | |
6466 | _resultobj = Py_None; | |
6467 | { | |
6468 | PyObject *o; | |
6469 | o = PyInt_FromLong((long) (*_arg3)); | |
6470 | _resultobj = t_output_helper(_resultobj, o); | |
6471 | } | |
6472 | { | |
6473 | PyObject *o; | |
6474 | o = PyInt_FromLong((long) (*_arg4)); | |
6475 | _resultobj = t_output_helper(_resultobj, o); | |
6476 | } | |
6477 | return _resultobj; | |
6478 | } | |
6479 | ||
8ab979d7 RD |
6480 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
6481 | wxMenu *src; | |
6482 | wxEvtHandler *dest; | |
6483 | src = (wxMenu *) ptr; | |
6484 | dest = (wxEvtHandler *) src; | |
6485 | return (void *) dest; | |
6486 | } | |
6487 | ||
8bf5d46e | 6488 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 6489 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6490 | PyObject * _resultobj; |
6491 | wxMenu * _result; | |
1d99702e RD |
6492 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
6493 | long _arg1 = (long ) 0; | |
8ab979d7 | 6494 | PyObject * _obj0 = 0; |
efc5f224 | 6495 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
6496 | char _ptemp[128]; |
6497 | ||
6498 | self = self; | |
efc5f224 | 6499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
6500 | return NULL; |
6501 | if (_obj0) | |
6502 | { | |
185d7c3e RD |
6503 | #if PYTHON_API_VERSION >= 1009 |
6504 | char* tmpPtr; int tmpSize; | |
6505 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
6506 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6507 | return NULL; | |
6508 | } | |
6509 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6510 | return NULL; | |
6511 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6512 | #else | |
8ab979d7 RD |
6513 | if (!PyString_Check(_obj0)) { |
6514 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6515 | return NULL; | |
6516 | } | |
185d7c3e RD |
6517 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
6518 | #endif | |
8ab979d7 | 6519 | } |
cf694132 RD |
6520 | { |
6521 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 6522 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 RD |
6523 | |
6524 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6525 | } if (_result) { |
6526 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6527 | _resultobj = Py_BuildValue("s",_ptemp); | |
6528 | } else { | |
6529 | Py_INCREF(Py_None); | |
6530 | _resultobj = Py_None; | |
6531 | } | |
8ab979d7 RD |
6532 | { |
6533 | if (_obj0) | |
6534 | delete _arg0; | |
6535 | } | |
6536 | return _resultobj; | |
6537 | } | |
6538 | ||
6539 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6540 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6541 | PyObject * _resultobj; |
6542 | wxMenu * _arg0; | |
6543 | int _arg1; | |
6544 | wxString * _arg2; | |
1d99702e RD |
6545 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
6546 | int _arg4 = (int ) FALSE; | |
6547 | PyObject * _argo0 = 0; | |
8ab979d7 RD |
6548 | PyObject * _obj2 = 0; |
6549 | PyObject * _obj3 = 0; | |
efc5f224 | 6550 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
6551 | |
6552 | self = self; | |
efc5f224 | 6553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 6554 | return NULL; |
1d99702e RD |
6555 | if (_argo0) { |
6556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
6559 | return NULL; | |
6560 | } | |
6561 | } | |
6562 | { | |
185d7c3e RD |
6563 | #if PYTHON_API_VERSION >= 1009 |
6564 | char* tmpPtr; int tmpSize; | |
6565 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6566 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6567 | return NULL; | |
6568 | } | |
6569 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6570 | return NULL; | |
6571 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6572 | #else | |
8ab979d7 RD |
6573 | if (!PyString_Check(_obj2)) { |
6574 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6575 | return NULL; | |
6576 | } | |
185d7c3e RD |
6577 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6578 | #endif | |
8ab979d7 RD |
6579 | } |
6580 | if (_obj3) | |
6581 | { | |
185d7c3e RD |
6582 | #if PYTHON_API_VERSION >= 1009 |
6583 | char* tmpPtr; int tmpSize; | |
6584 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
6585 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6586 | return NULL; | |
6587 | } | |
6588 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6589 | return NULL; | |
6590 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6591 | #else | |
8ab979d7 RD |
6592 | if (!PyString_Check(_obj3)) { |
6593 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6594 | return NULL; | |
6595 | } | |
185d7c3e RD |
6596 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6597 | #endif | |
8ab979d7 | 6598 | } |
cf694132 RD |
6599 | { |
6600 | wxPy_BEGIN_ALLOW_THREADS; | |
6601 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
6602 | ||
6603 | wxPy_END_ALLOW_THREADS; | |
6604 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6605 | _resultobj = Py_None; |
6606 | { | |
6607 | if (_obj2) | |
6608 | delete _arg2; | |
6609 | } | |
6610 | { | |
6611 | if (_obj3) | |
6612 | delete _arg3; | |
6613 | } | |
6614 | return _resultobj; | |
6615 | } | |
6616 | ||
6617 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6618 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6619 | PyObject * _resultobj; |
6620 | wxMenu * _arg0; | |
6621 | int _arg1; | |
6622 | wxString * _arg2; | |
6623 | wxMenu * _arg3; | |
1d99702e RD |
6624 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
6625 | PyObject * _argo0 = 0; | |
8ab979d7 | 6626 | PyObject * _obj2 = 0; |
1d99702e | 6627 | PyObject * _argo3 = 0; |
8ab979d7 | 6628 | PyObject * _obj4 = 0; |
efc5f224 | 6629 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
6630 | |
6631 | self = self; | |
efc5f224 | 6632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 6633 | return NULL; |
1d99702e RD |
6634 | if (_argo0) { |
6635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6638 | return NULL; | |
6639 | } | |
6640 | } | |
6641 | { | |
185d7c3e RD |
6642 | #if PYTHON_API_VERSION >= 1009 |
6643 | char* tmpPtr; int tmpSize; | |
6644 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6645 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6646 | return NULL; | |
6647 | } | |
6648 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6649 | return NULL; | |
6650 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6651 | #else | |
8ab979d7 RD |
6652 | if (!PyString_Check(_obj2)) { |
6653 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6654 | return NULL; | |
6655 | } | |
185d7c3e RD |
6656 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6657 | #endif | |
8ab979d7 | 6658 | } |
1d99702e RD |
6659 | if (_argo3) { |
6660 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6661 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
6662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6663 | return NULL; | |
6664 | } | |
6665 | } | |
6666 | if (_obj4) | |
6667 | { | |
185d7c3e RD |
6668 | #if PYTHON_API_VERSION >= 1009 |
6669 | char* tmpPtr; int tmpSize; | |
6670 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
6671 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6672 | return NULL; | |
6673 | } | |
6674 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
6675 | return NULL; | |
6676 | _arg4 = new wxString(tmpPtr, tmpSize); | |
6677 | #else | |
8ab979d7 RD |
6678 | if (!PyString_Check(_obj4)) { |
6679 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6680 | return NULL; | |
6681 | } | |
185d7c3e RD |
6682 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
6683 | #endif | |
8ab979d7 | 6684 | } |
cf694132 RD |
6685 | { |
6686 | wxPy_BEGIN_ALLOW_THREADS; | |
6687 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
6688 | ||
6689 | wxPy_END_ALLOW_THREADS; | |
6690 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6691 | _resultobj = Py_None; |
6692 | { | |
6693 | if (_obj2) | |
6694 | delete _arg2; | |
6695 | } | |
6696 | { | |
6697 | if (_obj4) | |
6698 | delete _arg4; | |
6699 | } | |
6700 | return _resultobj; | |
6701 | } | |
6702 | ||
af309447 | 6703 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 6704 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
6705 | PyObject * _resultobj; |
6706 | wxMenu * _arg0; | |
6707 | wxMenuItem * _arg1; | |
1d99702e RD |
6708 | PyObject * _argo0 = 0; |
6709 | PyObject * _argo1 = 0; | |
efc5f224 | 6710 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
6711 | |
6712 | self = self; | |
efc5f224 | 6713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 6714 | return NULL; |
1d99702e RD |
6715 | if (_argo0) { |
6716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
6718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
6719 | return NULL; | |
6720 | } | |
6721 | } | |
1d99702e RD |
6722 | if (_argo1) { |
6723 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6724 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
6725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
6726 | return NULL; | |
6727 | } | |
6728 | } | |
cf694132 RD |
6729 | { |
6730 | wxPy_BEGIN_ALLOW_THREADS; | |
6731 | wxMenu_AppendItem(_arg0,_arg1); | |
6732 | ||
6733 | wxPy_END_ALLOW_THREADS; | |
6734 | } Py_INCREF(Py_None); | |
af309447 RD |
6735 | _resultobj = Py_None; |
6736 | return _resultobj; | |
6737 | } | |
6738 | ||
8ab979d7 | 6739 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 6740 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6741 | PyObject * _resultobj; |
6742 | wxMenu * _arg0; | |
1d99702e | 6743 | PyObject * _argo0 = 0; |
efc5f224 | 6744 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6745 | |
6746 | self = self; | |
efc5f224 | 6747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 6748 | return NULL; |
1d99702e RD |
6749 | if (_argo0) { |
6750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
6753 | return NULL; | |
6754 | } | |
6755 | } | |
cf694132 RD |
6756 | { |
6757 | wxPy_BEGIN_ALLOW_THREADS; | |
6758 | wxMenu_AppendSeparator(_arg0); | |
6759 | ||
6760 | wxPy_END_ALLOW_THREADS; | |
6761 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6762 | _resultobj = Py_None; |
6763 | return _resultobj; | |
6764 | } | |
6765 | ||
6766 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 6767 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6768 | PyObject * _resultobj; |
6769 | wxMenu * _arg0; | |
1d99702e | 6770 | PyObject * _argo0 = 0; |
efc5f224 | 6771 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6772 | |
6773 | self = self; | |
efc5f224 | 6774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 6775 | return NULL; |
1d99702e RD |
6776 | if (_argo0) { |
6777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
6780 | return NULL; | |
6781 | } | |
6782 | } | |
cf694132 RD |
6783 | { |
6784 | wxPy_BEGIN_ALLOW_THREADS; | |
6785 | wxMenu_Break(_arg0); | |
6786 | ||
6787 | wxPy_END_ALLOW_THREADS; | |
6788 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6789 | _resultobj = Py_None; |
6790 | return _resultobj; | |
6791 | } | |
6792 | ||
6793 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 6794 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6795 | PyObject * _resultobj; |
6796 | wxMenu * _arg0; | |
6797 | int _arg1; | |
6798 | bool _arg2; | |
1d99702e | 6799 | PyObject * _argo0 = 0; |
8ab979d7 | 6800 | int tempbool2; |
efc5f224 | 6801 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
6802 | |
6803 | self = self; | |
efc5f224 | 6804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 6805 | return NULL; |
1d99702e RD |
6806 | if (_argo0) { |
6807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
6810 | return NULL; | |
6811 | } | |
6812 | } | |
6813 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6814 | { |
6815 | wxPy_BEGIN_ALLOW_THREADS; | |
6816 | wxMenu_Check(_arg0,_arg1,_arg2); | |
6817 | ||
6818 | wxPy_END_ALLOW_THREADS; | |
6819 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6820 | _resultobj = Py_None; |
6821 | return _resultobj; | |
6822 | } | |
6823 | ||
b1462dfa RD |
6824 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
6825 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6826 | PyObject * _resultobj; | |
6827 | bool _result; | |
6828 | wxMenu * _arg0; | |
6829 | int _arg1; | |
6830 | PyObject * _argo0 = 0; | |
6831 | char *_kwnames[] = { "self","id", NULL }; | |
6832 | ||
6833 | self = self; | |
6834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
6835 | return NULL; | |
6836 | if (_argo0) { | |
6837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
6840 | return NULL; | |
6841 | } | |
6842 | } | |
6843 | { | |
6844 | wxPy_BEGIN_ALLOW_THREADS; | |
6845 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
6846 | ||
6847 | wxPy_END_ALLOW_THREADS; | |
6848 | } _resultobj = Py_BuildValue("i",_result); | |
6849 | return _resultobj; | |
6850 | } | |
6851 | ||
8ab979d7 | 6852 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 6853 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6854 | PyObject * _resultobj; |
6855 | wxMenu * _arg0; | |
6856 | int _arg1; | |
6857 | bool _arg2; | |
1d99702e | 6858 | PyObject * _argo0 = 0; |
8ab979d7 | 6859 | int tempbool2; |
efc5f224 | 6860 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
6861 | |
6862 | self = self; | |
efc5f224 | 6863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 6864 | return NULL; |
1d99702e RD |
6865 | if (_argo0) { |
6866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
6869 | return NULL; | |
6870 | } | |
6871 | } | |
6872 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6873 | { |
6874 | wxPy_BEGIN_ALLOW_THREADS; | |
6875 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
6876 | ||
6877 | wxPy_END_ALLOW_THREADS; | |
6878 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6879 | _resultobj = Py_None; |
6880 | return _resultobj; | |
6881 | } | |
6882 | ||
b1462dfa RD |
6883 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
6884 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6885 | PyObject * _resultobj; | |
6886 | bool _result; | |
6887 | wxMenu * _arg0; | |
6888 | int _arg1; | |
6889 | PyObject * _argo0 = 0; | |
6890 | char *_kwnames[] = { "self","id", NULL }; | |
6891 | ||
6892 | self = self; | |
6893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
6894 | return NULL; | |
6895 | if (_argo0) { | |
6896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
6899 | return NULL; | |
6900 | } | |
6901 | } | |
6902 | { | |
6903 | wxPy_BEGIN_ALLOW_THREADS; | |
6904 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
6905 | ||
6906 | wxPy_END_ALLOW_THREADS; | |
6907 | } _resultobj = Py_BuildValue("i",_result); | |
6908 | return _resultobj; | |
6909 | } | |
6910 | ||
8ab979d7 | 6911 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 6912 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6913 | PyObject * _resultobj; |
6914 | int _result; | |
6915 | wxMenu * _arg0; | |
6916 | wxString * _arg1; | |
1d99702e | 6917 | PyObject * _argo0 = 0; |
8ab979d7 | 6918 | PyObject * _obj1 = 0; |
efc5f224 | 6919 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
6920 | |
6921 | self = self; | |
efc5f224 | 6922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6923 | return NULL; |
1d99702e RD |
6924 | if (_argo0) { |
6925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
6928 | return NULL; | |
6929 | } | |
6930 | } | |
6931 | { | |
185d7c3e RD |
6932 | #if PYTHON_API_VERSION >= 1009 |
6933 | char* tmpPtr; int tmpSize; | |
6934 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6935 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6936 | return NULL; | |
6937 | } | |
6938 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6939 | return NULL; | |
6940 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6941 | #else | |
8ab979d7 RD |
6942 | if (!PyString_Check(_obj1)) { |
6943 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6944 | return NULL; | |
6945 | } | |
185d7c3e RD |
6946 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6947 | #endif | |
8ab979d7 | 6948 | } |
cf694132 RD |
6949 | { |
6950 | wxPy_BEGIN_ALLOW_THREADS; | |
6951 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
6952 | ||
6953 | wxPy_END_ALLOW_THREADS; | |
6954 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6955 | { |
6956 | if (_obj1) | |
6957 | delete _arg1; | |
6958 | } | |
6959 | return _resultobj; | |
6960 | } | |
6961 | ||
b1462dfa RD |
6962 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
6963 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6964 | PyObject * _resultobj; | |
6965 | wxMenuItem * _result; | |
6966 | wxMenu * _arg0; | |
6967 | int _arg1; | |
6968 | PyObject * _argo0 = 0; | |
6969 | char *_kwnames[] = { "self","id", NULL }; | |
6970 | char _ptemp[128]; | |
6971 | ||
6972 | self = self; | |
6973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
6974 | return NULL; | |
6975 | if (_argo0) { | |
6976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
6979 | return NULL; | |
6980 | } | |
6981 | } | |
6982 | { | |
6983 | wxPy_BEGIN_ALLOW_THREADS; | |
6984 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
6985 | ||
6986 | wxPy_END_ALLOW_THREADS; | |
6987 | } if (_result) { | |
6988 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
6989 | _resultobj = Py_BuildValue("s",_ptemp); | |
6990 | } else { | |
6991 | Py_INCREF(Py_None); | |
6992 | _resultobj = Py_None; | |
6993 | } | |
6994 | return _resultobj; | |
6995 | } | |
6996 | ||
8ab979d7 | 6997 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 6998 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6999 | PyObject * _resultobj; |
7000 | wxString * _result; | |
7001 | wxMenu * _arg0; | |
1d99702e | 7002 | PyObject * _argo0 = 0; |
efc5f224 | 7003 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7004 | |
7005 | self = self; | |
efc5f224 | 7006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 7007 | return NULL; |
1d99702e RD |
7008 | if (_argo0) { |
7009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
7012 | return NULL; | |
7013 | } | |
7014 | } | |
8ab979d7 | 7015 | { |
cf694132 RD |
7016 | wxPy_BEGIN_ALLOW_THREADS; |
7017 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
7018 | ||
7019 | wxPy_END_ALLOW_THREADS; | |
7020 | }{ | |
eec92d76 | 7021 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7022 | } |
7023 | { | |
7024 | delete _result; | |
7025 | } | |
7026 | return _resultobj; | |
7027 | } | |
7028 | ||
7029 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7030 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7031 | PyObject * _resultobj; |
7032 | wxMenu * _arg0; | |
7033 | wxString * _arg1; | |
1d99702e | 7034 | PyObject * _argo0 = 0; |
8ab979d7 | 7035 | PyObject * _obj1 = 0; |
efc5f224 | 7036 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7037 | |
7038 | self = self; | |
efc5f224 | 7039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7040 | return NULL; |
1d99702e RD |
7041 | if (_argo0) { |
7042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7045 | return NULL; | |
7046 | } | |
7047 | } | |
7048 | { | |
185d7c3e RD |
7049 | #if PYTHON_API_VERSION >= 1009 |
7050 | char* tmpPtr; int tmpSize; | |
7051 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7052 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7053 | return NULL; | |
7054 | } | |
7055 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7056 | return NULL; | |
7057 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7058 | #else | |
8ab979d7 RD |
7059 | if (!PyString_Check(_obj1)) { |
7060 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7061 | return NULL; | |
7062 | } | |
185d7c3e RD |
7063 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7064 | #endif | |
8ab979d7 | 7065 | } |
cf694132 RD |
7066 | { |
7067 | wxPy_BEGIN_ALLOW_THREADS; | |
7068 | wxMenu_SetTitle(_arg0,*_arg1); | |
7069 | ||
7070 | wxPy_END_ALLOW_THREADS; | |
7071 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7072 | _resultobj = Py_None; |
7073 | { | |
7074 | if (_obj1) | |
7075 | delete _arg1; | |
7076 | } | |
7077 | return _resultobj; | |
7078 | } | |
7079 | ||
b1462dfa RD |
7080 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7081 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7082 | PyObject * _resultobj; |
b1462dfa | 7083 | wxString * _result; |
8ab979d7 RD |
7084 | wxMenu * _arg0; |
7085 | int _arg1; | |
1d99702e | 7086 | PyObject * _argo0 = 0; |
efc5f224 | 7087 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7088 | |
7089 | self = self; | |
b1462dfa | 7090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7091 | return NULL; |
1d99702e RD |
7092 | if (_argo0) { |
7093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7096 | return NULL; |
7097 | } | |
7098 | } | |
cf694132 RD |
7099 | { |
7100 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7101 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 RD |
7102 | |
7103 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7104 | }{ |
eec92d76 | 7105 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7106 | } |
7107 | { | |
7108 | delete _result; | |
7109 | } | |
8ab979d7 RD |
7110 | return _resultobj; |
7111 | } | |
7112 | ||
b1462dfa RD |
7113 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7114 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7115 | PyObject * _resultobj; |
8ab979d7 RD |
7116 | wxMenu * _arg0; |
7117 | int _arg1; | |
b1462dfa | 7118 | wxString * _arg2; |
1d99702e | 7119 | PyObject * _argo0 = 0; |
b1462dfa RD |
7120 | PyObject * _obj2 = 0; |
7121 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7122 | |
7123 | self = self; | |
b1462dfa | 7124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7125 | return NULL; |
1d99702e RD |
7126 | if (_argo0) { |
7127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7130 | return NULL; |
7131 | } | |
7132 | } | |
b1462dfa | 7133 | { |
185d7c3e RD |
7134 | #if PYTHON_API_VERSION >= 1009 |
7135 | char* tmpPtr; int tmpSize; | |
7136 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7137 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7138 | return NULL; | |
7139 | } | |
7140 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7141 | return NULL; | |
7142 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7143 | #else | |
b1462dfa RD |
7144 | if (!PyString_Check(_obj2)) { |
7145 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7146 | return NULL; | |
7147 | } | |
185d7c3e RD |
7148 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7149 | #endif | |
b1462dfa | 7150 | } |
8ab979d7 | 7151 | { |
cf694132 | 7152 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7153 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
7154 | |
7155 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7156 | } Py_INCREF(Py_None); |
7157 | _resultobj = Py_None; | |
8ab979d7 | 7158 | { |
b1462dfa RD |
7159 | if (_obj2) |
7160 | delete _arg2; | |
8ab979d7 RD |
7161 | } |
7162 | return _resultobj; | |
7163 | } | |
7164 | ||
b1462dfa RD |
7165 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7166 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7167 | PyObject * _resultobj; |
7168 | wxString * _result; | |
7169 | wxMenu * _arg0; | |
7170 | int _arg1; | |
1d99702e | 7171 | PyObject * _argo0 = 0; |
efc5f224 | 7172 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7173 | |
7174 | self = self; | |
b1462dfa | 7175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7176 | return NULL; |
1d99702e RD |
7177 | if (_argo0) { |
7178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7181 | return NULL; |
7182 | } | |
7183 | } | |
8ab979d7 | 7184 | { |
cf694132 | 7185 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7186 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
7187 | |
7188 | wxPy_END_ALLOW_THREADS; | |
7189 | }{ | |
eec92d76 | 7190 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7191 | } |
7192 | { | |
7193 | delete _result; | |
7194 | } | |
7195 | return _resultobj; | |
7196 | } | |
7197 | ||
7198 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7199 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7200 | PyObject * _resultobj; |
7201 | wxMenu * _arg0; | |
7202 | int _arg1; | |
7203 | wxString * _arg2; | |
1d99702e | 7204 | PyObject * _argo0 = 0; |
8ab979d7 | 7205 | PyObject * _obj2 = 0; |
efc5f224 | 7206 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7207 | |
7208 | self = self; | |
efc5f224 | 7209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7210 | return NULL; |
1d99702e RD |
7211 | if (_argo0) { |
7212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7215 | return NULL; | |
7216 | } | |
7217 | } | |
7218 | { | |
185d7c3e RD |
7219 | #if PYTHON_API_VERSION >= 1009 |
7220 | char* tmpPtr; int tmpSize; | |
7221 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7222 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7223 | return NULL; | |
7224 | } | |
7225 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7226 | return NULL; | |
7227 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7228 | #else | |
8ab979d7 RD |
7229 | if (!PyString_Check(_obj2)) { |
7230 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7231 | return NULL; | |
7232 | } | |
185d7c3e RD |
7233 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7234 | #endif | |
8ab979d7 | 7235 | } |
cf694132 RD |
7236 | { |
7237 | wxPy_BEGIN_ALLOW_THREADS; | |
7238 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
7239 | ||
7240 | wxPy_END_ALLOW_THREADS; | |
7241 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7242 | _resultobj = Py_None; |
7243 | { | |
7244 | if (_obj2) | |
7245 | delete _arg2; | |
7246 | } | |
7247 | return _resultobj; | |
7248 | } | |
7249 | ||
b1462dfa RD |
7250 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7251 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7252 | PyObject * _resultobj; |
8ab979d7 | 7253 | wxMenu * _arg0; |
b1462dfa | 7254 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7255 | PyObject * _argo0 = 0; |
b1462dfa RD |
7256 | PyObject * _argo1 = 0; |
7257 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7258 | |
7259 | self = self; | |
b1462dfa | 7260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7261 | return NULL; |
1d99702e RD |
7262 | if (_argo0) { |
7263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
7265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7266 | return NULL; | |
7267 | } | |
7268 | } | |
7269 | if (_argo1) { | |
7270 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7271 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7273 | return NULL; |
7274 | } | |
7275 | } | |
cf694132 RD |
7276 | { |
7277 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7278 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 RD |
7279 | |
7280 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7281 | } Py_INCREF(Py_None); |
7282 | _resultobj = Py_None; | |
8ab979d7 RD |
7283 | return _resultobj; |
7284 | } | |
7285 | ||
b1462dfa RD |
7286 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7287 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7288 | PyObject * _resultobj; |
7289 | bool _result; | |
7290 | wxMenu * _arg0; | |
7291 | int _arg1; | |
1d99702e | 7292 | PyObject * _argo0 = 0; |
efc5f224 | 7293 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7294 | |
7295 | self = self; | |
b1462dfa | 7296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7297 | return NULL; |
1d99702e RD |
7298 | if (_argo0) { |
7299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
7302 | return NULL; |
7303 | } | |
7304 | } | |
cf694132 RD |
7305 | { |
7306 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7307 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 RD |
7308 | |
7309 | wxPy_END_ALLOW_THREADS; | |
7310 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7311 | return _resultobj; |
7312 | } | |
7313 | ||
b1462dfa RD |
7314 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7315 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7316 | PyObject * _resultobj; |
b1462dfa | 7317 | bool _result; |
8ab979d7 | 7318 | wxMenu * _arg0; |
b1462dfa | 7319 | wxMenuItem * _arg1; |
1d99702e | 7320 | PyObject * _argo0 = 0; |
b1462dfa RD |
7321 | PyObject * _argo1 = 0; |
7322 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7323 | |
7324 | self = self; | |
b1462dfa | 7325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7326 | return NULL; |
1d99702e RD |
7327 | if (_argo0) { |
7328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7331 | return NULL; |
7332 | } | |
7333 | } | |
b1462dfa RD |
7334 | if (_argo1) { |
7335 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7336 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7338 | return NULL; |
b1462dfa | 7339 | } |
8ab979d7 | 7340 | } |
cf694132 RD |
7341 | { |
7342 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7343 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 RD |
7344 | |
7345 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7346 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7347 | return _resultobj; |
7348 | } | |
7349 | ||
b1462dfa RD |
7350 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7351 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7352 | PyObject * _resultobj; |
b1462dfa | 7353 | bool _result; |
8bf5d46e | 7354 | wxMenu * _arg0; |
b1462dfa RD |
7355 | size_t _arg1; |
7356 | wxMenuItem * _arg2; | |
1d99702e | 7357 | PyObject * _argo0 = 0; |
b1462dfa RD |
7358 | PyObject * _argo2 = 0; |
7359 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7360 | |
7361 | self = self; | |
b1462dfa | 7362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7363 | return NULL; |
1d99702e RD |
7364 | if (_argo0) { |
7365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7368 | return NULL; |
7369 | } | |
7370 | } | |
b1462dfa RD |
7371 | if (_argo2) { |
7372 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7373 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7375 | return NULL; |
7376 | } | |
7377 | } | |
cf694132 RD |
7378 | { |
7379 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7380 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 RD |
7381 | |
7382 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7383 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7384 | return _resultobj; |
7385 | } | |
7386 | ||
b1462dfa RD |
7387 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7388 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7389 | PyObject * _resultobj; |
b1462dfa | 7390 | wxMenuItem * _result; |
efc5f224 | 7391 | wxMenu * _arg0; |
b1462dfa | 7392 | int _arg1; |
efc5f224 | 7393 | PyObject * _argo0 = 0; |
b1462dfa RD |
7394 | char *_kwnames[] = { "self","id", NULL }; |
7395 | char _ptemp[128]; | |
efc5f224 RD |
7396 | |
7397 | self = self; | |
b1462dfa | 7398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7399 | return NULL; |
7400 | if (_argo0) { | |
7401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7404 | return NULL; |
7405 | } | |
7406 | } | |
7407 | { | |
7408 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7409 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 RD |
7410 | |
7411 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7412 | } if (_result) { |
7413 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7414 | _resultobj = Py_BuildValue("s",_ptemp); | |
7415 | } else { | |
7416 | Py_INCREF(Py_None); | |
7417 | _resultobj = Py_None; | |
7418 | } | |
efc5f224 RD |
7419 | return _resultobj; |
7420 | } | |
7421 | ||
b1462dfa RD |
7422 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7423 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7424 | PyObject * _resultobj; |
b1462dfa RD |
7425 | wxMenuItem * _result; |
7426 | wxMenu * _arg0; | |
7427 | wxMenuItem * _arg1; | |
7428 | PyObject * _argo0 = 0; | |
7429 | PyObject * _argo1 = 0; | |
7430 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7431 | char _ptemp[128]; |
7432 | ||
7433 | self = self; | |
b1462dfa RD |
7434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7435 | return NULL; | |
7436 | if (_argo0) { | |
7437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7440 | return NULL; | |
7441 | } | |
7442 | } | |
7443 | if (_argo1) { | |
7444 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7445 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7447 | return NULL; |
b1462dfa RD |
7448 | } |
7449 | } | |
cf694132 RD |
7450 | { |
7451 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7452 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 RD |
7453 | |
7454 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 7455 | } if (_result) { |
b1462dfa | 7456 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); |
1d99702e RD |
7457 | _resultobj = Py_BuildValue("s",_ptemp); |
7458 | } else { | |
7459 | Py_INCREF(Py_None); | |
7460 | _resultobj = Py_None; | |
7461 | } | |
8ab979d7 RD |
7462 | return _resultobj; |
7463 | } | |
7464 | ||
eb715945 | 7465 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7466 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7467 | PyObject * _resultobj; |
b1462dfa | 7468 | wxMenu * _arg0; |
1d99702e | 7469 | PyObject * _argo0 = 0; |
b1462dfa | 7470 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7471 | |
7472 | self = self; | |
b1462dfa | 7473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7474 | return NULL; |
1d99702e RD |
7475 | if (_argo0) { |
7476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7479 | return NULL; |
7480 | } | |
7481 | } | |
cf694132 RD |
7482 | { |
7483 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7484 | wxMenu_Destroy(_arg0); |
cf694132 RD |
7485 | |
7486 | wxPy_END_ALLOW_THREADS; | |
7487 | } Py_INCREF(Py_None); | |
8ab979d7 | 7488 | _resultobj = Py_None; |
8ab979d7 RD |
7489 | return _resultobj; |
7490 | } | |
7491 | ||
b1462dfa RD |
7492 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7493 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7494 | PyObject * _resultobj; |
b1462dfa RD |
7495 | bool _result; |
7496 | wxMenu * _arg0; | |
8ab979d7 | 7497 | int _arg1; |
1d99702e | 7498 | PyObject * _argo0 = 0; |
b1462dfa | 7499 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7500 | |
7501 | self = self; | |
b1462dfa | 7502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7503 | return NULL; |
1d99702e RD |
7504 | if (_argo0) { |
7505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
7508 | return NULL; |
7509 | } | |
7510 | } | |
cf694132 RD |
7511 | { |
7512 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7513 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 RD |
7514 | |
7515 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7516 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7517 | return _resultobj; |
7518 | } | |
7519 | ||
b1462dfa RD |
7520 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7521 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7522 | PyObject * _resultobj; |
b1462dfa RD |
7523 | bool _result; |
7524 | wxMenu * _arg0; | |
7525 | wxMenuItem * _arg1; | |
1d99702e | 7526 | PyObject * _argo0 = 0; |
b1462dfa RD |
7527 | PyObject * _argo1 = 0; |
7528 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7529 | |
7530 | self = self; | |
b1462dfa | 7531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7532 | return NULL; |
1d99702e RD |
7533 | if (_argo0) { |
7534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7537 | return NULL; | |
7538 | } | |
7539 | } | |
7540 | if (_argo1) { | |
7541 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7542 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7544 | return NULL; |
7545 | } | |
7546 | } | |
cf694132 RD |
7547 | { |
7548 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7549 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 RD |
7550 | |
7551 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7552 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7553 | return _resultobj; |
7554 | } | |
7555 | ||
b1462dfa RD |
7556 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
7557 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7558 | PyObject * _resultobj; |
b1462dfa RD |
7559 | size_t _result; |
7560 | wxMenu * _arg0; | |
1d99702e | 7561 | PyObject * _argo0 = 0; |
b1462dfa | 7562 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7563 | |
7564 | self = self; | |
b1462dfa | 7565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 7566 | return NULL; |
1d99702e RD |
7567 | if (_argo0) { |
7568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
7571 | return NULL; |
7572 | } | |
7573 | } | |
cf694132 RD |
7574 | { |
7575 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7576 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 RD |
7577 | |
7578 | wxPy_END_ALLOW_THREADS; | |
2abc0a0f | 7579 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7580 | return _resultobj; |
7581 | } | |
7582 | ||
b1462dfa RD |
7583 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
7584 | wxMenuItemList& list = self->GetMenuItems(); | |
7585 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
7586 | } | |
7587 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7588 | PyObject * _resultobj; |
b1462dfa RD |
7589 | PyObject * _result; |
7590 | wxMenu * _arg0; | |
1d99702e | 7591 | PyObject * _argo0 = 0; |
b1462dfa | 7592 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7593 | |
7594 | self = self; | |
b1462dfa | 7595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 7596 | return NULL; |
1d99702e RD |
7597 | if (_argo0) { |
7598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
7601 | return NULL; |
7602 | } | |
7603 | } | |
cf694132 RD |
7604 | { |
7605 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7606 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 RD |
7607 | |
7608 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7609 | }{ |
7610 | _resultobj = _result; | |
7611 | } | |
8ab979d7 RD |
7612 | return _resultobj; |
7613 | } | |
7614 | ||
b1462dfa RD |
7615 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
7616 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7617 | PyObject * _resultobj; |
b1462dfa RD |
7618 | wxMenu * _arg0; |
7619 | wxEvtHandler * _arg1; | |
1d99702e | 7620 | PyObject * _argo0 = 0; |
b1462dfa RD |
7621 | PyObject * _argo1 = 0; |
7622 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
7623 | |
7624 | self = self; | |
b1462dfa | 7625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7626 | return NULL; |
1d99702e RD |
7627 | if (_argo0) { |
7628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7631 | return NULL; |
7632 | } | |
7633 | } | |
b1462dfa RD |
7634 | if (_argo1) { |
7635 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7636 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 7638 | return NULL; |
b1462dfa | 7639 | } |
8ab979d7 | 7640 | } |
cf694132 RD |
7641 | { |
7642 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7643 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 RD |
7644 | |
7645 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7646 | } Py_INCREF(Py_None); |
7647 | _resultobj = Py_None; | |
8ab979d7 RD |
7648 | return _resultobj; |
7649 | } | |
7650 | ||
b1462dfa RD |
7651 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
7652 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7653 | PyObject * _resultobj; |
b1462dfa RD |
7654 | wxEvtHandler * _result; |
7655 | wxMenu * _arg0; | |
1d99702e | 7656 | PyObject * _argo0 = 0; |
b1462dfa | 7657 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7658 | char _ptemp[128]; |
7659 | ||
7660 | self = self; | |
b1462dfa | 7661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 7662 | return NULL; |
1d99702e RD |
7663 | if (_argo0) { |
7664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7667 | return NULL; |
7668 | } | |
7669 | } | |
cf694132 RD |
7670 | { |
7671 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7672 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 RD |
7673 | |
7674 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 7675 | } if (_result) { |
b1462dfa | 7676 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); |
1d99702e RD |
7677 | _resultobj = Py_BuildValue("s",_ptemp); |
7678 | } else { | |
7679 | Py_INCREF(Py_None); | |
7680 | _resultobj = Py_None; | |
7681 | } | |
8ab979d7 RD |
7682 | return _resultobj; |
7683 | } | |
7684 | ||
b1462dfa RD |
7685 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
7686 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 7687 | PyObject * _resultobj; |
b1462dfa RD |
7688 | wxMenu * _arg0; |
7689 | wxWindow * _arg1; | |
2f90df85 | 7690 | PyObject * _argo0 = 0; |
b1462dfa RD |
7691 | PyObject * _argo1 = 0; |
7692 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
7693 | |
7694 | self = self; | |
b1462dfa | 7695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
7696 | return NULL; |
7697 | if (_argo0) { | |
7698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
7701 | return NULL; |
7702 | } | |
7703 | } | |
b1462dfa RD |
7704 | if (_argo1) { |
7705 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7706 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 7708 | return NULL; |
b1462dfa | 7709 | } |
2f90df85 | 7710 | } |
2f90df85 RD |
7711 | { |
7712 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7713 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 RD |
7714 | |
7715 | wxPy_END_ALLOW_THREADS; | |
7716 | } Py_INCREF(Py_None); | |
7717 | _resultobj = Py_None; | |
2f90df85 RD |
7718 | return _resultobj; |
7719 | } | |
7720 | ||
b1462dfa RD |
7721 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
7722 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7723 | PyObject * _resultobj; |
b1462dfa RD |
7724 | wxWindow * _result; |
7725 | wxMenu * _arg0; | |
1d99702e | 7726 | PyObject * _argo0 = 0; |
b1462dfa RD |
7727 | char *_kwnames[] = { "self", NULL }; |
7728 | char _ptemp[128]; | |
8ab979d7 RD |
7729 | |
7730 | self = self; | |
b1462dfa | 7731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 7732 | return NULL; |
1d99702e RD |
7733 | if (_argo0) { |
7734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
7737 | return NULL; |
7738 | } | |
7739 | } | |
cf694132 RD |
7740 | { |
7741 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7742 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 RD |
7743 | |
7744 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7745 | } if (_result) { |
7746 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
7747 | _resultobj = Py_BuildValue("s",_ptemp); | |
7748 | } else { | |
7749 | Py_INCREF(Py_None); | |
7750 | _resultobj = Py_None; | |
7751 | } | |
8ab979d7 RD |
7752 | return _resultobj; |
7753 | } | |
7754 | ||
b1462dfa RD |
7755 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
7756 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7757 | PyObject * _resultobj; |
b1462dfa RD |
7758 | long _result; |
7759 | wxMenu * _arg0; | |
1d99702e | 7760 | PyObject * _argo0 = 0; |
b1462dfa | 7761 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7762 | |
7763 | self = self; | |
b1462dfa | 7764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 7765 | return NULL; |
1d99702e RD |
7766 | if (_argo0) { |
7767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
7770 | return NULL; |
7771 | } | |
7772 | } | |
8ab979d7 | 7773 | { |
cf694132 | 7774 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7775 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 RD |
7776 | |
7777 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7778 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7779 | return _resultobj; |
7780 | } | |
7781 | ||
b1462dfa RD |
7782 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
7783 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7784 | PyObject * _resultobj; |
b1462dfa RD |
7785 | bool _result; |
7786 | wxMenu * _arg0; | |
1d99702e | 7787 | PyObject * _argo0 = 0; |
b1462dfa | 7788 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7789 | |
7790 | self = self; | |
b1462dfa | 7791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 7792 | return NULL; |
1d99702e RD |
7793 | if (_argo0) { |
7794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
7797 | return NULL; |
7798 | } | |
7799 | } | |
8ab979d7 | 7800 | { |
cf694132 | 7801 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7802 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 RD |
7803 | |
7804 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7805 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7806 | return _resultobj; |
7807 | } | |
7808 | ||
b1462dfa RD |
7809 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
7810 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7811 | PyObject * _resultobj; |
b1462dfa RD |
7812 | wxMenu * _arg0; |
7813 | wxMenu * _arg1; | |
1d99702e | 7814 | PyObject * _argo0 = 0; |
b1462dfa RD |
7815 | PyObject * _argo1 = 0; |
7816 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
7817 | |
7818 | self = self; | |
b1462dfa | 7819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7820 | return NULL; |
1d99702e RD |
7821 | if (_argo0) { |
7822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
7825 | return NULL; |
7826 | } | |
7827 | } | |
b1462dfa RD |
7828 | if (_argo1) { |
7829 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7830 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
7831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 7832 | return NULL; |
b1462dfa | 7833 | } |
8ab979d7 | 7834 | } |
cf694132 RD |
7835 | { |
7836 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7837 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 RD |
7838 | |
7839 | wxPy_END_ALLOW_THREADS; | |
7840 | } Py_INCREF(Py_None); | |
8ab979d7 | 7841 | _resultobj = Py_None; |
8ab979d7 RD |
7842 | return _resultobj; |
7843 | } | |
7844 | ||
b1462dfa RD |
7845 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
7846 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7847 | PyObject * _resultobj; |
b1462dfa RD |
7848 | wxMenu * _result; |
7849 | wxMenu * _arg0; | |
1d99702e | 7850 | PyObject * _argo0 = 0; |
b1462dfa RD |
7851 | char *_kwnames[] = { "self", NULL }; |
7852 | char _ptemp[128]; | |
8ab979d7 RD |
7853 | |
7854 | self = self; | |
b1462dfa | 7855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 7856 | return NULL; |
1d99702e RD |
7857 | if (_argo0) { |
7858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
7861 | return NULL; |
7862 | } | |
7863 | } | |
8ab979d7 | 7864 | { |
cf694132 | 7865 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7866 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 RD |
7867 | |
7868 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7869 | } if (_result) { |
7870 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7871 | _resultobj = Py_BuildValue("s",_ptemp); | |
7872 | } else { | |
7873 | Py_INCREF(Py_None); | |
7874 | _resultobj = Py_None; | |
7875 | } | |
7876 | return _resultobj; | |
8ab979d7 | 7877 | } |
b1462dfa RD |
7878 | |
7879 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
7880 | wxMenuBar *src; | |
7881 | wxWindow *dest; | |
7882 | src = (wxMenuBar *) ptr; | |
7883 | dest = (wxWindow *) src; | |
7884 | return (void *) dest; | |
7885 | } | |
7886 | ||
7887 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
7888 | wxMenuBar *src; | |
7889 | wxEvtHandler *dest; | |
7890 | src = (wxMenuBar *) ptr; | |
7891 | dest = (wxEvtHandler *) src; | |
7892 | return (void *) dest; | |
8ab979d7 | 7893 | } |
b1462dfa | 7894 | |
c368d904 | 7895 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
7896 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
7897 | PyObject * _resultobj; | |
7898 | wxMenuBar * _result; | |
c368d904 RD |
7899 | long _arg0 = (long ) 0; |
7900 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
7901 | char _ptemp[128]; |
7902 | ||
7903 | self = self; | |
c368d904 | 7904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
7905 | return NULL; |
7906 | { | |
7907 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 7908 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa RD |
7909 | |
7910 | wxPy_END_ALLOW_THREADS; | |
7911 | } if (_result) { | |
7912 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
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 wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
7922 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7923 | PyObject * _resultobj; |
b1462dfa | 7924 | bool _result; |
8ab979d7 | 7925 | wxMenuBar * _arg0; |
b1462dfa | 7926 | wxMenu * _arg1; |
8ab979d7 | 7927 | wxString * _arg2; |
1d99702e | 7928 | PyObject * _argo0 = 0; |
b1462dfa | 7929 | PyObject * _argo1 = 0; |
8ab979d7 | 7930 | PyObject * _obj2 = 0; |
b1462dfa | 7931 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
7932 | |
7933 | self = self; | |
b1462dfa | 7934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7935 | return NULL; |
1d99702e RD |
7936 | if (_argo0) { |
7937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
7939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
7940 | return NULL; | |
7941 | } | |
7942 | } | |
7943 | if (_argo1) { | |
7944 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7945 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
7946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
7947 | return NULL; |
7948 | } | |
7949 | } | |
7950 | { | |
185d7c3e RD |
7951 | #if PYTHON_API_VERSION >= 1009 |
7952 | char* tmpPtr; int tmpSize; | |
7953 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7954 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7955 | return NULL; | |
7956 | } | |
7957 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7958 | return NULL; | |
7959 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7960 | #else | |
8ab979d7 RD |
7961 | if (!PyString_Check(_obj2)) { |
7962 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7963 | return NULL; | |
7964 | } | |
185d7c3e RD |
7965 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7966 | #endif | |
8ab979d7 | 7967 | } |
cf694132 RD |
7968 | { |
7969 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7970 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 RD |
7971 | |
7972 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7973 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7974 | { |
7975 | if (_obj2) | |
7976 | delete _arg2; | |
7977 | } | |
7978 | return _resultobj; | |
7979 | } | |
7980 | ||
b1462dfa RD |
7981 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
7982 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7983 | PyObject * _resultobj; |
b1462dfa | 7984 | bool _result; |
8ab979d7 | 7985 | wxMenuBar * _arg0; |
b1462dfa RD |
7986 | size_t _arg1; |
7987 | wxMenu * _arg2; | |
7988 | wxString * _arg3; | |
1d99702e | 7989 | PyObject * _argo0 = 0; |
b1462dfa RD |
7990 | PyObject * _argo2 = 0; |
7991 | PyObject * _obj3 = 0; | |
7992 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
7993 | |
7994 | self = self; | |
b1462dfa | 7995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 7996 | return NULL; |
1d99702e RD |
7997 | if (_argo0) { |
7998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
8001 | return NULL; | |
8002 | } | |
8003 | } | |
8004 | if (_argo2) { | |
8005 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8006 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
8008 | return NULL; |
8009 | } | |
8010 | } | |
b1462dfa | 8011 | { |
185d7c3e RD |
8012 | #if PYTHON_API_VERSION >= 1009 |
8013 | char* tmpPtr; int tmpSize; | |
8014 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8015 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8016 | return NULL; | |
8017 | } | |
8018 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8019 | return NULL; | |
8020 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8021 | #else | |
b1462dfa RD |
8022 | if (!PyString_Check(_obj3)) { |
8023 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8024 | return NULL; | |
8025 | } | |
185d7c3e RD |
8026 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8027 | #endif | |
b1462dfa | 8028 | } |
cf694132 RD |
8029 | { |
8030 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8031 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
8032 | |
8033 | wxPy_END_ALLOW_THREADS; | |
8034 | } _resultobj = Py_BuildValue("i",_result); | |
b1462dfa RD |
8035 | { |
8036 | if (_obj3) | |
8037 | delete _arg3; | |
8038 | } | |
8ab979d7 RD |
8039 | return _resultobj; |
8040 | } | |
8041 | ||
b1462dfa RD |
8042 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8043 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8044 | PyObject * _resultobj; |
b1462dfa | 8045 | size_t _result; |
8ab979d7 | 8046 | wxMenuBar * _arg0; |
1d99702e | 8047 | PyObject * _argo0 = 0; |
b1462dfa | 8048 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8049 | |
8050 | self = self; | |
b1462dfa | 8051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8052 | return NULL; |
1d99702e RD |
8053 | if (_argo0) { |
8054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8057 | return NULL; |
8058 | } | |
8059 | } | |
cf694132 RD |
8060 | { |
8061 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8062 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 RD |
8063 | |
8064 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8065 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8066 | return _resultobj; |
8067 | } | |
8068 | ||
b1462dfa RD |
8069 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8070 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8071 | PyObject * _resultobj; |
b1462dfa | 8072 | wxMenu * _result; |
06c0fba4 | 8073 | wxMenuBar * _arg0; |
b1462dfa | 8074 | size_t _arg1; |
06c0fba4 | 8075 | PyObject * _argo0 = 0; |
b1462dfa RD |
8076 | char *_kwnames[] = { "self","pos", NULL }; |
8077 | char _ptemp[128]; | |
06c0fba4 RD |
8078 | |
8079 | self = self; | |
b1462dfa | 8080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8081 | return NULL; |
8082 | if (_argo0) { | |
8083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8086 | return NULL; |
8087 | } | |
8088 | } | |
8089 | { | |
8090 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8091 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 RD |
8092 | |
8093 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8094 | } if (_result) { |
8095 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8096 | _resultobj = Py_BuildValue("s",_ptemp); | |
8097 | } else { | |
8098 | Py_INCREF(Py_None); | |
8099 | _resultobj = Py_None; | |
8100 | } | |
06c0fba4 RD |
8101 | return _resultobj; |
8102 | } | |
8103 | ||
2abc0a0f RD |
8104 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8105 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8106 | PyObject * _resultobj; | |
8107 | wxMenu * _result; | |
8108 | wxMenuBar * _arg0; | |
8109 | size_t _arg1; | |
8110 | wxMenu * _arg2; | |
8111 | wxString * _arg3; | |
8112 | PyObject * _argo0 = 0; | |
8113 | PyObject * _argo2 = 0; | |
8114 | PyObject * _obj3 = 0; | |
8115 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8116 | char _ptemp[128]; | |
8117 | ||
8118 | self = self; | |
8119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8120 | return NULL; | |
8121 | if (_argo0) { | |
8122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8125 | return NULL; | |
8126 | } | |
8127 | } | |
8128 | if (_argo2) { | |
8129 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8130 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8132 | return NULL; | |
8133 | } | |
8134 | } | |
8135 | { | |
185d7c3e RD |
8136 | #if PYTHON_API_VERSION >= 1009 |
8137 | char* tmpPtr; int tmpSize; | |
8138 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8139 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8140 | return NULL; | |
8141 | } | |
8142 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8143 | return NULL; | |
8144 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8145 | #else | |
2abc0a0f RD |
8146 | if (!PyString_Check(_obj3)) { |
8147 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8148 | return NULL; | |
8149 | } | |
185d7c3e RD |
8150 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8151 | #endif | |
2abc0a0f RD |
8152 | } |
8153 | { | |
8154 | wxPy_BEGIN_ALLOW_THREADS; | |
8155 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
8156 | ||
8157 | wxPy_END_ALLOW_THREADS; | |
8158 | } if (_result) { | |
8159 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8160 | _resultobj = Py_BuildValue("s",_ptemp); | |
8161 | } else { | |
8162 | Py_INCREF(Py_None); | |
8163 | _resultobj = Py_None; | |
8164 | } | |
8165 | { | |
8166 | if (_obj3) | |
8167 | delete _arg3; | |
8168 | } | |
8169 | return _resultobj; | |
8170 | } | |
8171 | ||
8172 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8173 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8174 | PyObject * _resultobj; | |
8175 | wxMenu * _result; | |
8176 | wxMenuBar * _arg0; | |
8177 | size_t _arg1; | |
8178 | PyObject * _argo0 = 0; | |
8179 | char *_kwnames[] = { "self","pos", NULL }; | |
8180 | char _ptemp[128]; | |
8181 | ||
8182 | self = self; | |
8183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8184 | return NULL; | |
8185 | if (_argo0) { | |
8186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8189 | return NULL; | |
8190 | } | |
8191 | } | |
8192 | { | |
8193 | wxPy_BEGIN_ALLOW_THREADS; | |
8194 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
8195 | ||
8196 | wxPy_END_ALLOW_THREADS; | |
8197 | } if (_result) { | |
8198 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8199 | _resultobj = Py_BuildValue("s",_ptemp); | |
8200 | } else { | |
8201 | Py_INCREF(Py_None); | |
8202 | _resultobj = Py_None; | |
8203 | } | |
8204 | return _resultobj; | |
8205 | } | |
8206 | ||
b1462dfa RD |
8207 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8208 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8209 | PyObject * _resultobj; |
b1462dfa RD |
8210 | wxMenuBar * _arg0; |
8211 | size_t _arg1; | |
8212 | bool _arg2; | |
8213 | PyObject * _argo0 = 0; | |
8214 | int tempbool2; | |
8215 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8216 | ||
8217 | self = self; | |
8218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8219 | return NULL; | |
8220 | if (_argo0) { | |
8221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8224 | return NULL; | |
8225 | } | |
8226 | } | |
8227 | _arg2 = (bool ) tempbool2; | |
8228 | { | |
8229 | wxPy_BEGIN_ALLOW_THREADS; | |
8230 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
8231 | ||
8232 | wxPy_END_ALLOW_THREADS; | |
8233 | } Py_INCREF(Py_None); | |
8234 | _resultobj = Py_None; | |
8235 | return _resultobj; | |
8236 | } | |
8237 | ||
8238 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8239 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8240 | PyObject * _resultobj; | |
8241 | wxMenuBar * _arg0; | |
8242 | size_t _arg1; | |
8243 | wxString * _arg2; | |
1d99702e | 8244 | PyObject * _argo0 = 0; |
cf694132 | 8245 | PyObject * _obj2 = 0; |
b1462dfa | 8246 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8247 | |
8248 | self = self; | |
b1462dfa | 8249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8250 | return NULL; |
1d99702e RD |
8251 | if (_argo0) { |
8252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8255 | return NULL; |
8256 | } | |
8257 | } | |
cf694132 | 8258 | { |
185d7c3e RD |
8259 | #if PYTHON_API_VERSION >= 1009 |
8260 | char* tmpPtr; int tmpSize; | |
8261 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8262 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8263 | return NULL; | |
8264 | } | |
8265 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8266 | return NULL; | |
8267 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8268 | #else | |
cf694132 RD |
8269 | if (!PyString_Check(_obj2)) { |
8270 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8271 | return NULL; | |
8272 | } | |
185d7c3e RD |
8273 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8274 | #endif | |
cf694132 | 8275 | } |
cf694132 | 8276 | { |
b1462dfa RD |
8277 | wxPy_BEGIN_ALLOW_THREADS; |
8278 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
8279 | ||
8280 | wxPy_END_ALLOW_THREADS; | |
8281 | } Py_INCREF(Py_None); | |
8282 | _resultobj = Py_None; | |
8283 | { | |
8284 | if (_obj2) | |
8285 | delete _arg2; | |
8286 | } | |
8287 | return _resultobj; | |
8288 | } | |
8289 | ||
8290 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8291 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8292 | PyObject * _resultobj; | |
8293 | wxString * _result; | |
8294 | wxMenuBar * _arg0; | |
8295 | size_t _arg1; | |
8296 | PyObject * _argo0 = 0; | |
8297 | char *_kwnames[] = { "self","pos", NULL }; | |
8298 | ||
8299 | self = self; | |
8300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8301 | return NULL; | |
8302 | if (_argo0) { | |
8303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8306 | return NULL; | |
8307 | } | |
8308 | } | |
8309 | { | |
8310 | wxPy_BEGIN_ALLOW_THREADS; | |
8311 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
8312 | ||
8313 | wxPy_END_ALLOW_THREADS; | |
8314 | }{ | |
eec92d76 | 8315 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8316 | } |
8317 | { | |
8318 | delete _result; | |
8319 | } | |
8320 | return _resultobj; | |
8321 | } | |
8322 | ||
8323 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
8324 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8325 | PyObject * _resultobj; | |
8326 | int _result; | |
8327 | wxMenuBar * _arg0; | |
8328 | wxString * _arg1; | |
8329 | wxString * _arg2; | |
8330 | PyObject * _argo0 = 0; | |
8331 | PyObject * _obj1 = 0; | |
8332 | PyObject * _obj2 = 0; | |
8333 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8334 | ||
8335 | self = self; | |
8336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8337 | return NULL; | |
8338 | if (_argo0) { | |
8339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8342 | return NULL; | |
8343 | } | |
8344 | } | |
8345 | { | |
185d7c3e RD |
8346 | #if PYTHON_API_VERSION >= 1009 |
8347 | char* tmpPtr; int tmpSize; | |
8348 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8349 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8350 | return NULL; | |
8351 | } | |
8352 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8353 | return NULL; | |
8354 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8355 | #else | |
b1462dfa | 8356 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
8357 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
8358 | return NULL; | |
8359 | } | |
185d7c3e RD |
8360 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8361 | #endif | |
cf694132 | 8362 | } |
b1462dfa | 8363 | { |
185d7c3e RD |
8364 | #if PYTHON_API_VERSION >= 1009 |
8365 | char* tmpPtr; int tmpSize; | |
8366 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8367 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8368 | return NULL; | |
8369 | } | |
8370 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8371 | return NULL; | |
8372 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8373 | #else | |
b1462dfa RD |
8374 | if (!PyString_Check(_obj2)) { |
8375 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8376 | return NULL; | |
8377 | } | |
185d7c3e RD |
8378 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8379 | #endif | |
b1462dfa RD |
8380 | } |
8381 | { | |
8382 | wxPy_BEGIN_ALLOW_THREADS; | |
8383 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
8384 | ||
8385 | wxPy_END_ALLOW_THREADS; | |
8386 | } _resultobj = Py_BuildValue("i",_result); | |
8387 | { | |
8388 | if (_obj1) | |
8389 | delete _arg1; | |
8390 | } | |
8391 | { | |
8392 | if (_obj2) | |
8393 | delete _arg2; | |
8394 | } | |
8395 | return _resultobj; | |
8396 | } | |
8397 | ||
8398 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8399 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8400 | PyObject * _resultobj; | |
8401 | wxMenuItem * _result; | |
8402 | wxMenuBar * _arg0; | |
8403 | int _arg1; | |
8404 | PyObject * _argo0 = 0; | |
8405 | char *_kwnames[] = { "self","id", NULL }; | |
8406 | char _ptemp[128]; | |
8407 | ||
8408 | self = self; | |
8409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8410 | return NULL; | |
8411 | if (_argo0) { | |
8412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8415 | return NULL; |
8416 | } | |
8417 | } | |
8418 | { | |
8419 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8420 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 RD |
8421 | |
8422 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
8423 | } if (_result) { |
8424 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
8425 | _resultobj = Py_BuildValue("s",_ptemp); | |
8426 | } else { | |
8427 | Py_INCREF(Py_None); | |
8428 | _resultobj = Py_None; | |
8429 | } | |
b1462dfa | 8430 | return _resultobj; |
cf694132 | 8431 | } |
b1462dfa RD |
8432 | |
8433 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8434 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8435 | PyObject * _resultobj; | |
8436 | wxMenuBar * _arg0; | |
8437 | int _arg1; | |
8438 | bool _arg2; | |
8439 | PyObject * _argo0 = 0; | |
8440 | int tempbool2; | |
8441 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8442 | ||
8443 | self = self; | |
8444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8445 | return NULL; | |
8446 | if (_argo0) { | |
8447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8450 | return NULL; | |
8451 | } | |
8452 | } | |
8453 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8454 | { |
b1462dfa RD |
8455 | wxPy_BEGIN_ALLOW_THREADS; |
8456 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8457 | ||
8458 | wxPy_END_ALLOW_THREADS; | |
8459 | } Py_INCREF(Py_None); | |
8460 | _resultobj = Py_None; | |
8461 | return _resultobj; | |
cf694132 | 8462 | } |
b1462dfa RD |
8463 | |
8464 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8465 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8466 | PyObject * _resultobj; | |
8467 | wxMenuBar * _arg0; | |
8468 | int _arg1; | |
8469 | bool _arg2; | |
8470 | PyObject * _argo0 = 0; | |
8471 | int tempbool2; | |
8472 | char *_kwnames[] = { "self","id","check", NULL }; | |
8473 | ||
8474 | self = self; | |
8475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8476 | return NULL; | |
8477 | if (_argo0) { | |
8478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8481 | return NULL; | |
8482 | } | |
8483 | } | |
8484 | _arg2 = (bool ) tempbool2; | |
8485 | { | |
8486 | wxPy_BEGIN_ALLOW_THREADS; | |
8487 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8488 | ||
8489 | wxPy_END_ALLOW_THREADS; | |
8490 | } Py_INCREF(Py_None); | |
8491 | _resultobj = Py_None; | |
cf694132 RD |
8492 | return _resultobj; |
8493 | } | |
8494 | ||
b1462dfa RD |
8495 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8496 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8497 | PyObject * _resultobj; |
8498 | bool _result; | |
b1462dfa RD |
8499 | wxMenuBar * _arg0; |
8500 | int _arg1; | |
1d99702e | 8501 | PyObject * _argo0 = 0; |
b1462dfa | 8502 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8503 | |
8504 | self = self; | |
b1462dfa | 8505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8506 | return NULL; |
1d99702e RD |
8507 | if (_argo0) { |
8508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8511 | return NULL; |
8512 | } | |
8513 | } | |
cf694132 RD |
8514 | { |
8515 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8516 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 RD |
8517 | |
8518 | wxPy_END_ALLOW_THREADS; | |
8519 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
8520 | return _resultobj; |
8521 | } | |
8522 | ||
b1462dfa RD |
8523 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8524 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8525 | PyObject * _resultobj; |
8526 | bool _result; | |
b1462dfa RD |
8527 | wxMenuBar * _arg0; |
8528 | int _arg1; | |
1d99702e | 8529 | PyObject * _argo0 = 0; |
b1462dfa | 8530 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8531 | |
8532 | self = self; | |
b1462dfa | 8533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8534 | return NULL; |
1d99702e RD |
8535 | if (_argo0) { |
8536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8539 | return NULL; |
8540 | } | |
8541 | } | |
cf694132 RD |
8542 | { |
8543 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8544 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 RD |
8545 | |
8546 | wxPy_END_ALLOW_THREADS; | |
8547 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
8548 | return _resultobj; |
8549 | } | |
8550 | ||
b1462dfa RD |
8551 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8552 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8553 | PyObject * _resultobj; |
b1462dfa RD |
8554 | wxMenuBar * _arg0; |
8555 | int _arg1; | |
8556 | wxString * _arg2; | |
1d99702e | 8557 | PyObject * _argo0 = 0; |
b1462dfa RD |
8558 | PyObject * _obj2 = 0; |
8559 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8560 | |
8561 | self = self; | |
b1462dfa | 8562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8563 | return NULL; |
1d99702e RD |
8564 | if (_argo0) { |
8565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8568 | return NULL; |
8569 | } | |
8570 | } | |
b1462dfa | 8571 | { |
185d7c3e RD |
8572 | #if PYTHON_API_VERSION >= 1009 |
8573 | char* tmpPtr; int tmpSize; | |
8574 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8575 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8576 | return NULL; | |
8577 | } | |
8578 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8579 | return NULL; | |
8580 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8581 | #else | |
b1462dfa RD |
8582 | if (!PyString_Check(_obj2)) { |
8583 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8584 | return NULL; | |
8585 | } | |
185d7c3e RD |
8586 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8587 | #endif | |
b1462dfa | 8588 | } |
cf694132 RD |
8589 | { |
8590 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8591 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
8592 | |
8593 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8594 | } Py_INCREF(Py_None); |
8595 | _resultobj = Py_None; | |
8596 | { | |
8597 | if (_obj2) | |
8598 | delete _arg2; | |
8599 | } | |
8ab979d7 RD |
8600 | return _resultobj; |
8601 | } | |
8602 | ||
b1462dfa RD |
8603 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8604 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8605 | PyObject * _resultobj; |
b1462dfa RD |
8606 | wxString * _result; |
8607 | wxMenuBar * _arg0; | |
8608 | int _arg1; | |
1d99702e | 8609 | PyObject * _argo0 = 0; |
b1462dfa | 8610 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8611 | |
8612 | self = self; | |
b1462dfa | 8613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8614 | return NULL; |
1d99702e RD |
8615 | if (_argo0) { |
8616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
8619 | return NULL; | |
8620 | } | |
8621 | } | |
8622 | { | |
8623 | wxPy_BEGIN_ALLOW_THREADS; | |
8624 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
8625 | ||
8626 | wxPy_END_ALLOW_THREADS; | |
8627 | }{ | |
eec92d76 | 8628 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8629 | } |
8630 | { | |
8631 | delete _result; | |
8632 | } | |
8633 | return _resultobj; | |
8634 | } | |
8635 | ||
8636 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
8637 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8638 | PyObject * _resultobj; | |
8639 | wxMenuBar * _arg0; | |
8640 | int _arg1; | |
8641 | wxString * _arg2; | |
8642 | PyObject * _argo0 = 0; | |
8643 | PyObject * _obj2 = 0; | |
8644 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
8645 | ||
8646 | self = self; | |
8647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8648 | return NULL; | |
8649 | if (_argo0) { | |
8650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
8653 | return NULL; | |
8654 | } | |
8655 | } | |
8656 | { | |
185d7c3e RD |
8657 | #if PYTHON_API_VERSION >= 1009 |
8658 | char* tmpPtr; int tmpSize; | |
8659 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8660 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8661 | return NULL; | |
8662 | } | |
8663 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8664 | return NULL; | |
8665 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8666 | #else | |
b1462dfa RD |
8667 | if (!PyString_Check(_obj2)) { |
8668 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8669 | return NULL; | |
8670 | } | |
185d7c3e RD |
8671 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8672 | #endif | |
b1462dfa RD |
8673 | } |
8674 | { | |
8675 | wxPy_BEGIN_ALLOW_THREADS; | |
8676 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
8677 | ||
8678 | wxPy_END_ALLOW_THREADS; | |
8679 | } Py_INCREF(Py_None); | |
8680 | _resultobj = Py_None; | |
8681 | { | |
8682 | if (_obj2) | |
8683 | delete _arg2; | |
8684 | } | |
8685 | return _resultobj; | |
8686 | } | |
8687 | ||
8688 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
8689 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8690 | PyObject * _resultobj; | |
8691 | wxString * _result; | |
8692 | wxMenuBar * _arg0; | |
8693 | int _arg1; | |
8694 | PyObject * _argo0 = 0; | |
8695 | char *_kwnames[] = { "self","id", NULL }; | |
8696 | ||
8697 | self = self; | |
8698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
8699 | return NULL; | |
8700 | if (_argo0) { | |
8701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8704 | return NULL; |
8705 | } | |
8706 | } | |
cf694132 RD |
8707 | { |
8708 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8709 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
8710 | |
8711 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8712 | }{ |
eec92d76 | 8713 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8714 | } |
8715 | { | |
8716 | delete _result; | |
8717 | } | |
8ab979d7 RD |
8718 | return _resultobj; |
8719 | } | |
8720 | ||
b1462dfa RD |
8721 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8722 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8723 | PyObject * _resultobj; |
b1462dfa RD |
8724 | wxMenuItem * _result; |
8725 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 8726 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
8727 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
8728 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
8729 | bool _arg4 = (bool ) FALSE; | |
8730 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 8731 | PyObject * _argo0 = 0; |
b1462dfa RD |
8732 | PyObject * _obj2 = 0; |
8733 | PyObject * _obj3 = 0; | |
8734 | int tempbool4 = (int) FALSE; | |
8735 | PyObject * _argo5 = 0; | |
8736 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
8737 | char _ptemp[128]; | |
8ab979d7 RD |
8738 | |
8739 | self = self; | |
b1462dfa | 8740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 8741 | return NULL; |
1d99702e RD |
8742 | if (_argo0) { |
8743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
8746 | return NULL; | |
8747 | } | |
8748 | } | |
8749 | if (_obj2) | |
8750 | { | |
185d7c3e RD |
8751 | #if PYTHON_API_VERSION >= 1009 |
8752 | char* tmpPtr; int tmpSize; | |
8753 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8754 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8755 | return NULL; | |
8756 | } | |
8757 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8758 | return NULL; | |
8759 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8760 | #else | |
b1462dfa RD |
8761 | if (!PyString_Check(_obj2)) { |
8762 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8763 | return NULL; | |
8764 | } | |
185d7c3e RD |
8765 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8766 | #endif | |
b1462dfa RD |
8767 | } |
8768 | if (_obj3) | |
8769 | { | |
185d7c3e RD |
8770 | #if PYTHON_API_VERSION >= 1009 |
8771 | char* tmpPtr; int tmpSize; | |
8772 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8773 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8774 | return NULL; | |
8775 | } | |
8776 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8777 | return NULL; | |
8778 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8779 | #else | |
b1462dfa RD |
8780 | if (!PyString_Check(_obj3)) { |
8781 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8782 | return NULL; | |
8783 | } | |
185d7c3e RD |
8784 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8785 | #endif | |
b1462dfa RD |
8786 | } |
8787 | _arg4 = (bool ) tempbool4; | |
8788 | if (_argo5) { | |
8789 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8790 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
8791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
8792 | return NULL; |
8793 | } | |
8794 | } | |
cf694132 RD |
8795 | { |
8796 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8797 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 RD |
8798 | |
8799 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8800 | } if (_result) { |
8801 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
8802 | _resultobj = Py_BuildValue("s",_ptemp); | |
8803 | } else { | |
8804 | Py_INCREF(Py_None); | |
8805 | _resultobj = Py_None; | |
8806 | } | |
8807 | { | |
8808 | if (_obj2) | |
8809 | delete _arg2; | |
8810 | } | |
8811 | { | |
8812 | if (_obj3) | |
8813 | delete _arg3; | |
8814 | } | |
8ab979d7 RD |
8815 | return _resultobj; |
8816 | } | |
8817 | ||
b1462dfa RD |
8818 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
8819 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8820 | PyObject * _resultobj; |
b1462dfa | 8821 | wxMenu * _result; |
8ab979d7 | 8822 | wxMenuItem * _arg0; |
1d99702e | 8823 | PyObject * _argo0 = 0; |
efc5f224 | 8824 | char *_kwnames[] = { "self", NULL }; |
b1462dfa | 8825 | char _ptemp[128]; |
8ab979d7 RD |
8826 | |
8827 | self = self; | |
b1462dfa | 8828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 8829 | return NULL; |
1d99702e RD |
8830 | if (_argo0) { |
8831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8834 | return NULL; |
8835 | } | |
8836 | } | |
cf694132 RD |
8837 | { |
8838 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8839 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 RD |
8840 | |
8841 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8842 | } if (_result) { |
8843 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8844 | _resultobj = Py_BuildValue("s",_ptemp); | |
8845 | } else { | |
8846 | Py_INCREF(Py_None); | |
8847 | _resultobj = Py_None; | |
8848 | } | |
8ab979d7 RD |
8849 | return _resultobj; |
8850 | } | |
8851 | ||
2abc0a0f RD |
8852 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
8853 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8854 | PyObject * _resultobj; |
8855 | wxMenuItem * _arg0; | |
2abc0a0f | 8856 | int _arg1; |
1d99702e | 8857 | PyObject * _argo0 = 0; |
2abc0a0f | 8858 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8859 | |
8860 | self = self; | |
2abc0a0f | 8861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8862 | return NULL; |
1d99702e RD |
8863 | if (_argo0) { |
8864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 8866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8867 | return NULL; |
8868 | } | |
8869 | } | |
cf694132 RD |
8870 | { |
8871 | wxPy_BEGIN_ALLOW_THREADS; | |
2abc0a0f | 8872 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 RD |
8873 | |
8874 | wxPy_END_ALLOW_THREADS; | |
8875 | } Py_INCREF(Py_None); | |
8ab979d7 | 8876 | _resultobj = Py_None; |
8ab979d7 RD |
8877 | return _resultobj; |
8878 | } | |
8879 | ||
b1462dfa RD |
8880 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
8881 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8882 | PyObject * _resultobj; |
b1462dfa | 8883 | int _result; |
8ab979d7 | 8884 | wxMenuItem * _arg0; |
1d99702e | 8885 | PyObject * _argo0 = 0; |
efc5f224 | 8886 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8887 | |
8888 | self = self; | |
b1462dfa | 8889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 8890 | return NULL; |
1d99702e RD |
8891 | if (_argo0) { |
8892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8895 | return NULL; |
8896 | } | |
8897 | } | |
8ab979d7 | 8898 | { |
cf694132 | 8899 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8900 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 RD |
8901 | |
8902 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8903 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8904 | return _resultobj; |
8905 | } | |
8906 | ||
b1462dfa RD |
8907 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
8908 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8909 | PyObject * _resultobj; |
b1462dfa | 8910 | bool _result; |
8ab979d7 | 8911 | wxMenuItem * _arg0; |
1d99702e | 8912 | PyObject * _argo0 = 0; |
efc5f224 | 8913 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8914 | |
8915 | self = self; | |
b1462dfa | 8916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 8917 | return NULL; |
1d99702e RD |
8918 | if (_argo0) { |
8919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8922 | return NULL; |
8923 | } | |
8924 | } | |
8ab979d7 | 8925 | { |
cf694132 | 8926 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8927 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 RD |
8928 | |
8929 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8930 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8931 | return _resultobj; |
8932 | } | |
8933 | ||
b1462dfa RD |
8934 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
8935 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8936 | PyObject * _resultobj; |
8937 | wxMenuItem * _arg0; | |
8938 | wxString * _arg1; | |
1d99702e | 8939 | PyObject * _argo0 = 0; |
8ab979d7 | 8940 | PyObject * _obj1 = 0; |
b1462dfa | 8941 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
8942 | |
8943 | self = self; | |
b1462dfa | 8944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8945 | return NULL; |
1d99702e RD |
8946 | if (_argo0) { |
8947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8950 | return NULL; |
8951 | } | |
8952 | } | |
8953 | { | |
185d7c3e RD |
8954 | #if PYTHON_API_VERSION >= 1009 |
8955 | char* tmpPtr; int tmpSize; | |
8956 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8957 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8958 | return NULL; | |
8959 | } | |
8960 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8961 | return NULL; | |
8962 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8963 | #else | |
8ab979d7 RD |
8964 | if (!PyString_Check(_obj1)) { |
8965 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8966 | return NULL; | |
8967 | } | |
185d7c3e RD |
8968 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8969 | #endif | |
8ab979d7 | 8970 | } |
cf694132 RD |
8971 | { |
8972 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8973 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 RD |
8974 | |
8975 | wxPy_END_ALLOW_THREADS; | |
8976 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
8977 | _resultobj = Py_None; |
8978 | { | |
8979 | if (_obj1) | |
8980 | delete _arg1; | |
8981 | } | |
8982 | return _resultobj; | |
8983 | } | |
8984 | ||
b1462dfa RD |
8985 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
8986 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8987 | PyObject * _resultobj; |
b1462dfa | 8988 | wxString * _result; |
8ab979d7 | 8989 | wxMenuItem * _arg0; |
1d99702e | 8990 | PyObject * _argo0 = 0; |
b1462dfa | 8991 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8992 | |
8993 | self = self; | |
b1462dfa | 8994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 8995 | return NULL; |
1d99702e RD |
8996 | if (_argo0) { |
8997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9000 | return NULL; |
9001 | } | |
9002 | } | |
cf694132 RD |
9003 | { |
9004 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9005 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 RD |
9006 | |
9007 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9008 | }{ |
eec92d76 | 9009 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 9010 | } |
cf694132 | 9011 | { |
b1462dfa RD |
9012 | delete _result; |
9013 | } | |
cf694132 RD |
9014 | return _resultobj; |
9015 | } | |
9016 | ||
b1462dfa RD |
9017 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
9018 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9019 | PyObject * _resultobj; |
b1462dfa | 9020 | wxString * _result; |
cf694132 | 9021 | wxMenuItem * _arg0; |
1d99702e | 9022 | PyObject * _argo0 = 0; |
efc5f224 | 9023 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9024 | |
9025 | self = self; | |
b1462dfa | 9026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 9027 | return NULL; |
1d99702e RD |
9028 | if (_argo0) { |
9029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9032 | return NULL; |
9033 | } | |
9034 | } | |
9035 | { | |
9036 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9037 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
9038 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9039 | |
9040 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9041 | }{ |
eec92d76 | 9042 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 9043 | } |
cf694132 RD |
9044 | return _resultobj; |
9045 | } | |
9046 | ||
b1462dfa RD |
9047 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9048 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9049 | PyObject * _resultobj; |
cf694132 | 9050 | wxMenuItem * _arg0; |
b1462dfa | 9051 | bool _arg1; |
1d99702e | 9052 | PyObject * _argo0 = 0; |
b1462dfa RD |
9053 | int tempbool1; |
9054 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9055 | |
9056 | self = self; | |
b1462dfa | 9057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9058 | return NULL; |
1d99702e RD |
9059 | if (_argo0) { |
9060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9063 | return NULL; |
9064 | } | |
9065 | } | |
b1462dfa | 9066 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9067 | { |
9068 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9069 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 RD |
9070 | |
9071 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9072 | } Py_INCREF(Py_None); |
9073 | _resultobj = Py_None; | |
cf694132 RD |
9074 | return _resultobj; |
9075 | } | |
9076 | ||
b1462dfa RD |
9077 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9078 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9079 | PyObject * _resultobj; |
b1462dfa | 9080 | bool _result; |
cf694132 | 9081 | wxMenuItem * _arg0; |
1d99702e | 9082 | PyObject * _argo0 = 0; |
efc5f224 | 9083 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9084 | |
9085 | self = self; | |
b1462dfa | 9086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9087 | return NULL; |
1d99702e RD |
9088 | if (_argo0) { |
9089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9092 | return NULL; |
9093 | } | |
9094 | } | |
9095 | { | |
9096 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9097 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 RD |
9098 | |
9099 | wxPy_END_ALLOW_THREADS; | |
9100 | } _resultobj = Py_BuildValue("i",_result); | |
9101 | return _resultobj; | |
9102 | } | |
9103 | ||
b1462dfa RD |
9104 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9105 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9106 | PyObject * _resultobj; |
b1462dfa | 9107 | bool _result; |
cf694132 | 9108 | wxMenuItem * _arg0; |
1d99702e | 9109 | PyObject * _argo0 = 0; |
efc5f224 | 9110 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9111 | |
9112 | self = self; | |
b1462dfa | 9113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9114 | return NULL; |
1d99702e RD |
9115 | if (_argo0) { |
9116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9119 | return NULL; |
9120 | } | |
9121 | } | |
9122 | { | |
9123 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9124 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 RD |
9125 | |
9126 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9127 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9128 | return _resultobj; |
9129 | } | |
9130 | ||
b1462dfa RD |
9131 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9132 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9133 | PyObject * _resultobj; |
9134 | wxMenuItem * _arg0; | |
b1462dfa | 9135 | wxMenu * _arg1; |
1d99702e RD |
9136 | PyObject * _argo0 = 0; |
9137 | PyObject * _argo1 = 0; | |
b1462dfa | 9138 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9139 | |
9140 | self = self; | |
b1462dfa | 9141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9142 | return NULL; |
1d99702e RD |
9143 | if (_argo0) { |
9144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9147 | return NULL; |
9148 | } | |
9149 | } | |
1d99702e RD |
9150 | if (_argo1) { |
9151 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9152 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9154 | return NULL; |
9155 | } | |
9156 | } | |
9157 | { | |
9158 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9159 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 RD |
9160 | |
9161 | wxPy_END_ALLOW_THREADS; | |
9162 | } Py_INCREF(Py_None); | |
9163 | _resultobj = Py_None; | |
9164 | return _resultobj; | |
9165 | } | |
9166 | ||
b1462dfa RD |
9167 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9168 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9169 | PyObject * _resultobj; |
b1462dfa | 9170 | wxMenu * _result; |
cf694132 | 9171 | wxMenuItem * _arg0; |
1d99702e | 9172 | PyObject * _argo0 = 0; |
b1462dfa RD |
9173 | char *_kwnames[] = { "self", NULL }; |
9174 | char _ptemp[128]; | |
cf694132 RD |
9175 | |
9176 | self = self; | |
b1462dfa | 9177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 9178 | return NULL; |
1d99702e RD |
9179 | if (_argo0) { |
9180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9183 | return NULL; |
9184 | } | |
9185 | } | |
b1462dfa RD |
9186 | { |
9187 | wxPy_BEGIN_ALLOW_THREADS; | |
9188 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
9189 | ||
9190 | wxPy_END_ALLOW_THREADS; | |
9191 | } if (_result) { | |
9192 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
9193 | _resultobj = Py_BuildValue("s",_ptemp); | |
9194 | } else { | |
9195 | Py_INCREF(Py_None); | |
9196 | _resultobj = Py_None; | |
cf694132 | 9197 | } |
b1462dfa RD |
9198 | return _resultobj; |
9199 | } | |
9200 | ||
9201 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9202 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9203 | PyObject * _resultobj; | |
9204 | wxMenuItem * _arg0; | |
9205 | bool _arg1 = (bool ) TRUE; | |
9206 | PyObject * _argo0 = 0; | |
9207 | int tempbool1 = (int) TRUE; | |
9208 | char *_kwnames[] = { "self","enable", NULL }; | |
9209 | ||
9210 | self = self; | |
9211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9212 | return NULL; | |
9213 | if (_argo0) { | |
9214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
9217 | return NULL; |
9218 | } | |
9219 | } | |
b1462dfa | 9220 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9221 | { |
9222 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9223 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 RD |
9224 | |
9225 | wxPy_END_ALLOW_THREADS; | |
9226 | } Py_INCREF(Py_None); | |
9227 | _resultobj = Py_None; | |
9228 | return _resultobj; | |
9229 | } | |
9230 | ||
b1462dfa RD |
9231 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9232 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9233 | PyObject * _resultobj; |
b1462dfa | 9234 | bool _result; |
cf694132 | 9235 | wxMenuItem * _arg0; |
1d99702e | 9236 | PyObject * _argo0 = 0; |
b1462dfa | 9237 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9238 | |
9239 | self = self; | |
b1462dfa | 9240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9241 | return NULL; |
1d99702e RD |
9242 | if (_argo0) { |
9243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
9246 | return NULL; |
9247 | } | |
9248 | } | |
9249 | { | |
9250 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9251 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 RD |
9252 | |
9253 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9254 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9255 | return _resultobj; |
9256 | } | |
9257 | ||
b1462dfa RD |
9258 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
9259 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9260 | PyObject * _resultobj; |
9261 | wxMenuItem * _arg0; | |
b1462dfa | 9262 | bool _arg1 = (bool ) TRUE; |
1d99702e | 9263 | PyObject * _argo0 = 0; |
b1462dfa RD |
9264 | int tempbool1 = (int) TRUE; |
9265 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
9266 | |
9267 | self = self; | |
b1462dfa | 9268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9269 | return NULL; |
1d99702e RD |
9270 | if (_argo0) { |
9271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
9274 | return NULL; |
9275 | } | |
9276 | } | |
b1462dfa | 9277 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9278 | { |
9279 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9280 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 RD |
9281 | |
9282 | wxPy_END_ALLOW_THREADS; | |
9283 | } Py_INCREF(Py_None); | |
9284 | _resultobj = Py_None; | |
9285 | return _resultobj; | |
9286 | } | |
9287 | ||
b1462dfa RD |
9288 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
9289 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9290 | PyObject * _resultobj; |
b1462dfa | 9291 | bool _result; |
2abc0a0f | 9292 | wxMenuItem * _arg0; |
2abc0a0f | 9293 | PyObject * _argo0 = 0; |
b1462dfa | 9294 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
9295 | |
9296 | self = self; | |
b1462dfa | 9297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
9298 | return NULL; |
9299 | if (_argo0) { | |
9300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9303 | return NULL; |
9304 | } | |
9305 | } | |
2abc0a0f RD |
9306 | { |
9307 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9308 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f RD |
9309 | |
9310 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9311 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
9312 | return _resultobj; |
9313 | } | |
9314 | ||
b1462dfa RD |
9315 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
9316 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9317 | PyObject * _resultobj; |
2abc0a0f RD |
9318 | wxMenuItem * _arg0; |
9319 | PyObject * _argo0 = 0; | |
9320 | char *_kwnames[] = { "self", NULL }; | |
9321 | ||
9322 | self = self; | |
b1462dfa | 9323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
9324 | return NULL; |
9325 | if (_argo0) { | |
9326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9329 | return NULL; |
9330 | } | |
9331 | } | |
9332 | { | |
9333 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9334 | wxMenuItem_Toggle(_arg0); |
2abc0a0f RD |
9335 | |
9336 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9337 | } Py_INCREF(Py_None); |
9338 | _resultobj = Py_None; | |
2abc0a0f RD |
9339 | return _resultobj; |
9340 | } | |
9341 | ||
b1462dfa RD |
9342 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
9343 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9344 | PyObject * _resultobj; |
9345 | wxMenuItem * _arg0; | |
b1462dfa | 9346 | wxString * _arg1; |
1d99702e | 9347 | PyObject * _argo0 = 0; |
b1462dfa RD |
9348 | PyObject * _obj1 = 0; |
9349 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
9350 | |
9351 | self = self; | |
b1462dfa | 9352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 9353 | return NULL; |
1d99702e RD |
9354 | if (_argo0) { |
9355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
9358 | return NULL; |
9359 | } | |
9360 | } | |
b1462dfa | 9361 | { |
185d7c3e RD |
9362 | #if PYTHON_API_VERSION >= 1009 |
9363 | char* tmpPtr; int tmpSize; | |
9364 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9365 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
9366 | return NULL; | |
9367 | } | |
9368 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9369 | return NULL; | |
9370 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9371 | #else | |
b1462dfa RD |
9372 | if (!PyString_Check(_obj1)) { |
9373 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 9374 | return NULL; |
cf694132 | 9375 | } |
185d7c3e RD |
9376 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9377 | #endif | |
b1462dfa | 9378 | } |
cf694132 RD |
9379 | { |
9380 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9381 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 RD |
9382 | |
9383 | wxPy_END_ALLOW_THREADS; | |
9384 | } Py_INCREF(Py_None); | |
8ab979d7 | 9385 | _resultobj = Py_None; |
b1462dfa RD |
9386 | { |
9387 | if (_obj1) | |
9388 | delete _arg1; | |
9389 | } | |
8ab979d7 RD |
9390 | return _resultobj; |
9391 | } | |
9392 | ||
b1462dfa RD |
9393 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
9394 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 9395 | PyObject * _resultobj; |
b1462dfa | 9396 | wxString * _result; |
be4d9c1f | 9397 | wxMenuItem * _arg0; |
1d99702e | 9398 | PyObject * _argo0 = 0; |
efc5f224 | 9399 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
9400 | |
9401 | self = self; | |
b1462dfa | 9402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 9403 | return NULL; |
1d99702e RD |
9404 | if (_argo0) { |
9405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
9408 | return NULL; |
9409 | } | |
9410 | } | |
cf694132 RD |
9411 | { |
9412 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9413 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
9414 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9415 | |
9416 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 9417 | }{ |
eec92d76 | 9418 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 9419 | } |
be4d9c1f RD |
9420 | return _resultobj; |
9421 | } | |
9422 | ||
b1462dfa RD |
9423 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
9424 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9425 | PyObject * _resultobj; |
b1462dfa | 9426 | wxAcceleratorEntry * _result; |
2abc0a0f | 9427 | wxMenuItem * _arg0; |
2abc0a0f | 9428 | PyObject * _argo0 = 0; |
b1462dfa RD |
9429 | char *_kwnames[] = { "self", NULL }; |
9430 | char _ptemp[128]; | |
2abc0a0f RD |
9431 | |
9432 | self = self; | |
b1462dfa | 9433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
9434 | return NULL; |
9435 | if (_argo0) { | |
9436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9439 | return NULL; |
9440 | } | |
9441 | } | |
2abc0a0f RD |
9442 | { |
9443 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9444 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f RD |
9445 | |
9446 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
9447 | } if (_result) { |
9448 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9449 | _resultobj = Py_BuildValue("s",_ptemp); | |
9450 | } else { | |
9451 | Py_INCREF(Py_None); | |
9452 | _resultobj = Py_None; | |
9453 | } | |
2abc0a0f RD |
9454 | return _resultobj; |
9455 | } | |
9456 | ||
b1462dfa RD |
9457 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9458 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9459 | PyObject * _resultobj; |
9460 | wxMenuItem * _arg0; | |
b1462dfa | 9461 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9462 | PyObject * _argo0 = 0; |
9463 | PyObject * _argo1 = 0; | |
b1462dfa | 9464 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9465 | |
9466 | self = self; | |
b1462dfa | 9467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9468 | return NULL; |
9469 | if (_argo0) { | |
9470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9473 | return NULL; |
9474 | } | |
9475 | } | |
9476 | if (_argo1) { | |
9477 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9478 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
9479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
9480 | return NULL; |
9481 | } | |
9482 | } | |
9483 | { | |
9484 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9485 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f RD |
9486 | |
9487 | wxPy_END_ALLOW_THREADS; | |
9488 | } Py_INCREF(Py_None); | |
9489 | _resultobj = Py_None; | |
9490 | return _resultobj; | |
9491 | } | |
9492 | ||
1b62f00d RD |
9493 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9494 | PyObject * _resultobj; | |
9495 | wxString * _result; | |
9496 | wxString * _arg0; | |
9497 | PyObject * _obj0 = 0; | |
9498 | char *_kwnames[] = { "text", NULL }; | |
9499 | ||
9500 | self = self; | |
9501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
9502 | return NULL; | |
9503 | { | |
9504 | #if PYTHON_API_VERSION >= 1009 | |
9505 | char* tmpPtr; int tmpSize; | |
9506 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
9507 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
9508 | return NULL; | |
9509 | } | |
9510 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9511 | return NULL; | |
9512 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9513 | #else | |
9514 | if (!PyString_Check(_obj0)) { | |
9515 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9516 | return NULL; | |
9517 | } | |
9518 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9519 | #endif | |
9520 | } | |
9521 | { | |
9522 | wxPy_BEGIN_ALLOW_THREADS; | |
9523 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); | |
9524 | ||
9525 | wxPy_END_ALLOW_THREADS; | |
9526 | }{ | |
9527 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9528 | } | |
9529 | { | |
9530 | if (_obj0) | |
9531 | delete _arg0; | |
9532 | } | |
9533 | { | |
9534 | delete _result; | |
9535 | } | |
9536 | return _resultobj; | |
9537 | } | |
9538 | ||
8ab979d7 | 9539 | static PyMethodDef windowscMethods[] = { |
1b62f00d | 9540 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9541 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
9542 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
9543 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9544 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9545 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
9546 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9547 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9548 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9549 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9550 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9551 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 9552 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9553 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9554 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
9555 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9556 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9557 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9558 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9559 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
9560 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9561 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9562 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9563 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9564 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
9565 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 9566 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
9567 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
9568 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9569 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9570 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
9571 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
9572 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
9573 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9574 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9575 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
9576 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9577 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
9578 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
9579 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
9580 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9581 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
9582 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
9583 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
9584 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
9585 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
9586 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
9587 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9588 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9589 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9590 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9591 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
9592 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9593 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
9594 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9595 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9596 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
9597 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9598 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
9599 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
9600 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9601 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9602 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9603 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9604 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
9605 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9606 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
9607 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 9608 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9609 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9610 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9611 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9612 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9613 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
9614 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
9615 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
9616 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
9617 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
9618 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
9619 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
9620 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
9621 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9622 | { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS }, |
4c9993c3 | 9623 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 9624 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 9625 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9626 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
9627 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
9628 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
9629 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
9630 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 9631 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9632 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 9633 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9634 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
9635 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
9636 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
9637 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
9638 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
9639 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
9640 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9641 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
9642 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
9643 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
9644 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
9645 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9646 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
9647 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
9648 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
9649 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
9650 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
9651 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
9652 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
9653 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
9654 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 9655 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9656 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
9657 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
9658 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
9659 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9660 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 9661 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9662 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
9663 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
9664 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
9665 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
9666 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
9667 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9668 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9669 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9670 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9671 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
9672 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
9673 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
9674 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
9675 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
9676 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
83b18bab | 9677 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 9678 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9679 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
9680 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
9681 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
9682 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
dbbb98cd | 9683 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9684 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
9685 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
9686 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
9687 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
9688 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
9689 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
9690 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9691 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9692 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 9693 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9694 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 9695 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9696 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
9697 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 9698 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9699 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
9700 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
9701 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
9702 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
9703 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
9704 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 9705 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9706 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
9707 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
9708 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
9709 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
9710 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
9711 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
9712 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9713 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
9714 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
9715 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
9716 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
9717 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
9718 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
9719 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
9720 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
9721 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
9722 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
9723 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
9724 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9725 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
9726 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
9727 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9728 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
9729 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9730 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
9731 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
9732 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9733 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
9734 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
9735 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
9736 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
9737 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
9738 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
9739 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
9740 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
9741 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
9742 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
9743 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
9744 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
9745 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9746 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9747 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 9748 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9749 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
9750 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9751 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 9752 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9753 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
9754 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
9755 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
9756 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
9757 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 9758 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9759 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
9760 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
9761 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
9762 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
9763 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
9764 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
9765 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
9766 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9767 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
9768 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
9769 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
3ca6a5f0 BP |
9770 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
9771 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9772 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
9773 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
9774 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
9775 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
9776 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
9777 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
9778 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, |
9779 | { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9780 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, | |
9781 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9782 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9783 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
9784 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 9785 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9786 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
9787 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
9788 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
9789 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
9790 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
9791 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9792 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9793 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9794 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 9795 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
a1df7a95 RD |
9796 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
9797 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
9798 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9799 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
9800 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
9801 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
9802 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
9803 | { NULL, NULL } |
9804 | }; | |
1d99702e RD |
9805 | #ifdef __cplusplus |
9806 | } | |
9807 | #endif | |
9808 | /* | |
9809 | * This table is used by the pointer type-checker | |
9810 | */ | |
9811 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
9812 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
9813 | { "_signed_long","_long",0}, | |
65dd82cb | 9814 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
b1462dfa RD |
9815 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, |
9816 | { "_wxPrintQuality","_wxCoord",0}, | |
1d99702e RD |
9817 | { "_wxPrintQuality","_int",0}, |
9818 | { "_wxPrintQuality","_signed_int",0}, | |
9819 | { "_wxPrintQuality","_unsigned_int",0}, | |
9820 | { "_wxPrintQuality","_wxWindowID",0}, | |
9821 | { "_wxPrintQuality","_uint",0}, | |
9822 | { "_wxPrintQuality","_EBool",0}, | |
9823 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 9824 | { "_wxPrintQuality","_time_t",0}, |
b1462dfa | 9825 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
1d99702e | 9826 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 9827 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e RD |
9828 | { "_class_wxMenuBar","_wxMenuBar",0}, |
9829 | { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9830 | { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9831 | { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9832 | { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9833 | { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9834 | { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9835 | { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9836 | { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9837 | { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9838 | { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9839 | { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
9840 | { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
9841 | { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
9842 | { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
9843 | { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
9844 | { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e RD |
9845 | { "_class_wxEvtHandler","_wxEvtHandler",0}, |
9846 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
9847 | { "_wxCursor","_class_wxCursor",0}, | |
9848 | { "_wxMask","_class_wxMask",0}, | |
9849 | { "_wxPen","_class_wxPen",0}, | |
9850 | { "_byte","_unsigned_char",0}, | |
b1462dfa | 9851 | { "_wxDataObject","_class_wxDataObject",0}, |
65dd82cb RD |
9852 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
9853 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
9854 | { "_long","_unsigned_long",0}, |
9855 | { "_long","_signed_long",0}, | |
9856 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa | 9857 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
1d99702e | 9858 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, |
b1462dfa | 9859 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e | 9860 | { "_wxDC","_class_wxDC",0}, |
b1462dfa RD |
9861 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
9862 | { "_size_t","_wxCoord",0}, | |
1d99702e | 9863 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 9864 | { "_size_t","_time_t",0}, |
1d99702e RD |
9865 | { "_size_t","_unsigned_int",0}, |
9866 | { "_size_t","_int",0}, | |
9867 | { "_size_t","_wxWindowID",0}, | |
9868 | { "_size_t","_uint",0}, | |
9869 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
1d99702e RD |
9870 | { "_class_wxMenuItem","_wxMenuItem",0}, |
9871 | { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9872 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9873 | { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
9874 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
9875 | { "_wxPanel","_class_wxPanel",0}, | |
9876 | { "_class_wxMask","_wxMask",0}, | |
b1462dfa | 9877 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
1d99702e RD |
9878 | { "_wxColour","_class_wxColour",0}, |
9879 | { "_class_wxDialog","_wxDialog",0}, | |
b1462dfa RD |
9880 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
9881 | { "_class_wxDataObject","_wxDataObject",0}, | |
1d99702e | 9882 | { "_wxBrush","_class_wxBrush",0}, |
b1462dfa RD |
9883 | { "_wxDataFormat","_class_wxDataFormat",0}, |
9884 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
9885 | { "_uint","_wxCoord",0}, | |
1d99702e | 9886 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 9887 | { "_uint","_time_t",0}, |
1d99702e RD |
9888 | { "_uint","_size_t",0}, |
9889 | { "_uint","_unsigned_int",0}, | |
9890 | { "_uint","_int",0}, | |
9891 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 9892 | { "_wxChar","_char",0}, |
2f90df85 | 9893 | { "_wxPyValidator","_class_wxPyValidator",0}, |
1d99702e RD |
9894 | { "_wxRect","_class_wxRect",0}, |
9895 | { "_wxPoint","_class_wxPoint",0}, | |
f6bcfd97 | 9896 | { "_char","_wxChar",0}, |
1d99702e | 9897 | { "_wxBitmap","_class_wxBitmap",0}, |
1d99702e RD |
9898 | { "_wxWindowDC","_class_wxWindowDC",0}, |
9899 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
2f90df85 RD |
9900 | { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
9901 | { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
9902 | { "_class_wxValidator","_wxValidator",0}, | |
b1462dfa RD |
9903 | { "_wxDropTarget","_class_wxDropTarget",0}, |
9904 | { "_EBool","_wxCoord",0}, | |
1d99702e RD |
9905 | { "_EBool","_wxPrintQuality",0}, |
9906 | { "_EBool","_signed_int",0}, | |
9907 | { "_EBool","_int",0}, | |
9908 | { "_EBool","_wxWindowID",0}, | |
9909 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa | 9910 | { "_class_wxDataFormat","_wxDataFormat",0}, |
1d99702e | 9911 | { "_wxFont","_class_wxFont",0}, |
b1462dfa | 9912 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
1d99702e RD |
9913 | { "_unsigned_long","_long",0}, |
9914 | { "_class_wxRect","_wxRect",0}, | |
9915 | { "_class_wxDC","_wxDC",0}, | |
1d99702e RD |
9916 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, |
9917 | { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9918 | { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9919 | { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
9920 | { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
9921 | { "_class_wxPanel","_wxPanel",0}, | |
b1462dfa | 9922 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
9923 | { "_signed_int","_wxPrintQuality",0}, |
9924 | { "_signed_int","_EBool",0}, | |
9925 | { "_signed_int","_wxWindowID",0}, | |
9926 | { "_signed_int","_int",0}, | |
9927 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
9928 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
b1462dfa | 9929 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e RD |
9930 | { "_wxMenu","_class_wxMenu",0}, |
9931 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
9932 | { "_WXTYPE","_short",0}, | |
9933 | { "_WXTYPE","_signed_short",0}, | |
9934 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 9935 | { "_class_wxDropTarget","_wxDropTarget",0}, |
1d99702e RD |
9936 | { "_class_wxBrush","_wxBrush",0}, |
9937 | { "_unsigned_short","_WXTYPE",0}, | |
9938 | { "_unsigned_short","_short",0}, | |
b1462dfa RD |
9939 | { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, |
9940 | { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
9941 | { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
9942 | { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
9943 | { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
9944 | { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
9945 | { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
9946 | { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
9947 | { "_class_wxWindow","_wxWindow",0}, | |
9948 | { "_class_wxFont","_wxFont",0}, | |
b1462dfa | 9949 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 9950 | { "_class_wxPyValidator","_wxPyValidator",0}, |
2abc0a0f | 9951 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
65dd82cb | 9952 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, |
1d99702e RD |
9953 | { "_wxClientDC","_class_wxClientDC",0}, |
9954 | { "_class_wxPoint","_wxPoint",0}, | |
9955 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
9956 | { "_signed_short","_WXTYPE",0}, | |
9957 | { "_signed_short","_short",0}, | |
9958 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
65dd82cb | 9959 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
9960 | { "_wxPaintDC","_class_wxPaintDC",0}, |
9961 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
9962 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
9963 | { "_class_wxCursor","_wxCursor",0}, | |
b1462dfa | 9964 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
1d99702e RD |
9965 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
9966 | { "_unsigned_char","_byte",0}, | |
9967 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
9968 | { "_class_wxMenu","_wxMenu",0}, | |
b1462dfa | 9969 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 9970 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 9971 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
9972 | { "_unsigned_int","_size_t",0}, |
9973 | { "_unsigned_int","_uint",0}, | |
9974 | { "_unsigned_int","_wxWindowID",0}, | |
9975 | { "_unsigned_int","_int",0}, | |
9976 | { "_wxIcon","_class_wxIcon",0}, | |
9977 | { "_wxDialog","_class_wxDialog",0}, | |
9978 | { "_class_wxPen","_wxPen",0}, | |
9979 | { "_short","_WXTYPE",0}, | |
9980 | { "_short","_unsigned_short",0}, | |
9981 | { "_short","_signed_short",0}, | |
65dd82cb RD |
9982 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
9983 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
1d99702e | 9984 | { "_class_wxImageList","_wxImageList",0}, |
b1462dfa | 9985 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 9986 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 9987 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
9988 | { "_wxWindowID","_size_t",0}, |
9989 | { "_wxWindowID","_EBool",0}, | |
9990 | { "_wxWindowID","_uint",0}, | |
9991 | { "_wxWindowID","_int",0}, | |
9992 | { "_wxWindowID","_signed_int",0}, | |
9993 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 9994 | { "_int","_wxCoord",0}, |
1d99702e | 9995 | { "_int","_wxPrintQuality",0}, |
c368d904 | 9996 | { "_int","_time_t",0}, |
1d99702e RD |
9997 | { "_int","_size_t",0}, |
9998 | { "_int","_EBool",0}, | |
9999 | { "_int","_uint",0}, | |
10000 | { "_int","_wxWindowID",0}, | |
10001 | { "_int","_unsigned_int",0}, | |
10002 | { "_int","_signed_int",0}, | |
c368d904 RD |
10003 | { "_time_t","_wxCoord",0}, |
10004 | { "_time_t","_wxPrintQuality",0}, | |
10005 | { "_time_t","_unsigned_int",0}, | |
10006 | { "_time_t","_int",0}, | |
10007 | { "_time_t","_wxWindowID",0}, | |
10008 | { "_time_t","_uint",0}, | |
10009 | { "_time_t","_size_t",0}, | |
1d99702e RD |
10010 | { "_wxSize","_class_wxSize",0}, |
10011 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
65dd82cb | 10012 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
1d99702e | 10013 | { "_class_wxPaintDC","_wxPaintDC",0}, |
b1462dfa | 10014 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, |
2f90df85 RD |
10015 | { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
10016 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
10017 | { "_wxValidator","_class_wxValidator",0}, | |
1d99702e RD |
10018 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
10019 | { "_class_wxIcon","_wxIcon",0}, | |
10020 | { "_class_wxColour","_wxColour",0}, | |
10021 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
10022 | { "_wxPalette","_class_wxPalette",0}, | |
b1462dfa RD |
10023 | { "_wxCoord","_int",0}, |
10024 | { "_wxCoord","_signed_int",0}, | |
10025 | { "_wxCoord","_unsigned_int",0}, | |
10026 | { "_wxCoord","_wxWindowID",0}, | |
10027 | { "_wxCoord","_uint",0}, | |
10028 | { "_wxCoord","_EBool",0}, | |
10029 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10030 | { "_wxCoord","_time_t",0}, |
b1462dfa RD |
10031 | { "_wxCoord","_wxPrintQuality",0}, |
10032 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, | |
1d99702e | 10033 | { "_wxRegion","_class_wxRegion",0}, |
b1462dfa | 10034 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
2abc0a0f | 10035 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
1d99702e | 10036 | { "_class_wxClientDC","_wxClientDC",0}, |
b1462dfa | 10037 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
1d99702e RD |
10038 | { "_class_wxSize","_wxSize",0}, |
10039 | { "_class_wxBitmap","_wxBitmap",0}, | |
10040 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 10041 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e RD |
10042 | { "_wxMenuBar","_class_wxMenuBar",0}, |
10043 | { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10044 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10045 | { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10046 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10047 | { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10048 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10049 | { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10050 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10051 | { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10052 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10053 | { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
10054 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
10055 | { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
10056 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
10057 | { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
10058 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e RD |
10059 | { "_wxEvtHandler","_class_wxEvtHandler",0}, |
10060 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
1d99702e RD |
10061 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, |
10062 | { "_class_wxPalette","_wxPalette",0}, | |
b1462dfa RD |
10063 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
10064 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, | |
10065 | { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
10066 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
10067 | { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
10068 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
10069 | { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
10070 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
10071 | { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
10072 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
10073 | { "_wxWindow","_class_wxWindow",0}, | |
10074 | {0,0,0}}; | |
10075 | ||
8ab979d7 RD |
10076 | static PyObject *SWIG_globals; |
10077 | #ifdef __cplusplus | |
10078 | extern "C" | |
10079 | #endif | |
1d99702e | 10080 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
10081 | PyObject *m, *d; |
10082 | SWIG_globals = SWIG_newvarlink(); | |
10083 | m = Py_InitModule("windowsc", windowscMethods); | |
10084 | d = PyModule_GetDict(m); | |
1d99702e RD |
10085 | { |
10086 | int i; | |
10087 | for (i = 0; _swig_mapping[i].n1; i++) | |
10088 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10089 | } | |
8ab979d7 | 10090 | } |