]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
9c039d08 | 2 | * FILE : msw/windows.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
1afc06c2 | 6 | * Version 1.1 (Build 810) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
1d99702e | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
1d99702e | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
1d99702e | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
39 | #ifdef __cplusplus | |
40 | extern "C" { | |
41 | #endif | |
42 | #include "Python.h" | |
43 | extern void SWIG_MakePtr(char *, void *, char *); | |
44 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
45 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 46 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
47 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
48 | extern PyObject *SWIG_newvarlink(void); | |
49 | #ifdef __cplusplus | |
50 | } | |
51 | #endif | |
8ab979d7 RD |
52 | #define SWIG_init initwindowsc |
53 | ||
54 | #define SWIG_name "windowsc" | |
55 | ||
56 | #include "helpers.h" | |
8ab979d7 | 57 | #include <wx/menuitem.h> |
8ab979d7 RD |
58 | |
59 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
60 | PyObject* o2; | |
1d99702e RD |
61 | PyObject* o3; |
62 | if (!target) { | |
8ab979d7 | 63 | target = o; |
1d99702e | 64 | } else if (target == Py_None) { |
8ab979d7 RD |
65 | Py_DECREF(Py_None); |
66 | target = o; | |
1d99702e | 67 | } else { |
8ab979d7 RD |
68 | if (!PyList_Check(target)) { |
69 | o2 = target; | |
70 | target = PyList_New(0); | |
71 | PyList_Append(target, o2); | |
72 | Py_XDECREF(o2); | |
73 | } | |
74 | PyList_Append(target,o); | |
75 | Py_XDECREF(o); | |
76 | } | |
77 | return target; | |
78 | } | |
79 | ||
80 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
81 | PyObject* o2; | |
82 | PyObject* o3; | |
83 | ||
1d99702e | 84 | if (!target) { |
8ab979d7 | 85 | target = o; |
1d99702e | 86 | } else if (target == Py_None) { |
8ab979d7 RD |
87 | Py_DECREF(Py_None); |
88 | target = o; | |
1d99702e | 89 | } else { |
8ab979d7 RD |
90 | if (!PyTuple_Check(target)) { |
91 | o2 = target; | |
92 | target = PyTuple_New(1); | |
93 | PyTuple_SetItem(target, 0, o2); | |
94 | } | |
1d99702e RD |
95 | o3 = PyTuple_New(1); |
96 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
97 | |
98 | o2 = target; | |
1d99702e RD |
99 | target = PySequence_Concat(o2, o3); |
100 | Py_DECREF(o2); | |
8ab979d7 RD |
101 | Py_DECREF(o3); |
102 | } | |
103 | return target; | |
104 | } | |
105 | ||
2f90df85 RD |
106 | static char* wxStringErrorMsg = "string type is required for parameter"; |
107 | ||
108 | bool wxValidator_IsSilent() { | |
109 | return wxValidator::IsSilent(); | |
110 | } | |
8ab979d7 | 111 | |
2f90df85 RD |
112 | void wxValidator_SetBellOnError(int doIt = TRUE) { |
113 | wxValidator::SetBellOnError(doIt); | |
114 | } | |
8ab979d7 | 115 | |
2f90df85 RD |
116 | class wxPyValidator : public wxValidator { |
117 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
118 | public: | |
119 | wxPyValidator() { | |
120 | } | |
121 | // wxPyValidator(const wxPyValidator& other); | |
122 | ||
123 | ~wxPyValidator() { | |
124 | } | |
125 | ||
126 | wxObject* wxPyValidator::Clone() const { | |
694759cf RD |
127 | wxPyValidator* ptr = NULL; |
128 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 129 | |
694759cf RD |
130 | bool doSave = wxPyRestoreThread(); |
131 | if (self->m_myInst.findCallback("Clone")) { | |
132 | PyObject* ro; | |
133 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
134 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
135 | } | |
136 | // This is very dangerous!!! But is the only way I could find | |
137 | // to squash a memory leak. Currently it is okay, but if the | |
138 | // validator architecture in wxWindows ever changes, problems | |
139 | // could arise. | |
140 | delete self; | |
2f90df85 | 141 | |
694759cf RD |
142 | wxPySaveThread(doSave); |
143 | return ptr; | |
144 | } | |
2f90df85 RD |
145 | |
146 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); | |
147 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
148 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
149 | ||
150 | PYPRIVATE; | |
151 | // PyObject* m_data; | |
152 | }; | |
153 | ||
154 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
155 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
156 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
157 | ||
158 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 159 | |
8ab979d7 RD |
160 | |
161 | wxWindow* wxWindow_FindFocus() { | |
162 | return wxWindow::FindFocus(); | |
163 | } | |
2f90df85 RD |
164 | |
165 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
166 | wxWindow* win = new wxWindow; | |
167 | win->SetHWND(hWnd); | |
168 | win->SubclassWin(hWnd); | |
169 | return win; | |
170 | } | |
171 | #ifdef __cplusplus | |
172 | extern "C" { | |
173 | #endif | |
174 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
175 | PyObject * _resultobj; | |
176 | bool _result; | |
177 | char *_kwnames[] = { NULL }; | |
178 | ||
179 | self = self; | |
180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
181 | return NULL; | |
182 | { | |
183 | wxPy_BEGIN_ALLOW_THREADS; | |
184 | _result = (bool )wxValidator_IsSilent(); | |
185 | ||
186 | wxPy_END_ALLOW_THREADS; | |
187 | } _resultobj = Py_BuildValue("i",_result); | |
188 | return _resultobj; | |
189 | } | |
190 | ||
191 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
192 | PyObject * _resultobj; | |
193 | int _arg0 = (int ) TRUE; | |
194 | char *_kwnames[] = { "doIt", NULL }; | |
195 | ||
196 | self = self; | |
197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
198 | return NULL; | |
199 | { | |
200 | wxPy_BEGIN_ALLOW_THREADS; | |
201 | wxValidator_SetBellOnError(_arg0); | |
202 | ||
203 | wxPy_END_ALLOW_THREADS; | |
204 | } Py_INCREF(Py_None); | |
205 | _resultobj = Py_None; | |
206 | return _resultobj; | |
207 | } | |
208 | ||
209 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
210 | PyObject * _resultobj; | |
211 | wxWindow * _result; | |
212 | char *_kwnames[] = { NULL }; | |
213 | char _ptemp[128]; | |
214 | ||
215 | self = self; | |
216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
217 | return NULL; | |
218 | { | |
219 | wxPy_BEGIN_ALLOW_THREADS; | |
220 | _result = (wxWindow *)wxWindow_FindFocus(); | |
221 | ||
222 | wxPy_END_ALLOW_THREADS; | |
223 | } if (_result) { | |
224 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
225 | _resultobj = Py_BuildValue("s",_ptemp); | |
226 | } else { | |
227 | Py_INCREF(Py_None); | |
228 | _resultobj = Py_None; | |
229 | } | |
230 | return _resultobj; | |
231 | } | |
232 | ||
233 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
234 | PyObject * _resultobj; | |
235 | wxWindow * _result; | |
236 | unsigned long _arg0; | |
237 | char *_kwnames[] = { "hWnd", NULL }; | |
238 | char _ptemp[128]; | |
239 | ||
240 | self = self; | |
241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
242 | return NULL; | |
243 | { | |
244 | wxPy_BEGIN_ALLOW_THREADS; | |
245 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); | |
246 | ||
247 | wxPy_END_ALLOW_THREADS; | |
248 | } if (_result) { | |
249 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
250 | _resultobj = Py_BuildValue("s",_ptemp); | |
251 | } else { | |
252 | Py_INCREF(Py_None); | |
253 | _resultobj = Py_None; | |
254 | } | |
255 | return _resultobj; | |
256 | } | |
257 | ||
258 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) | |
259 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
260 | PyObject * _resultobj; | |
261 | bool _result; | |
262 | wxEvtHandler * _arg0; | |
263 | wxEvent * _arg1; | |
264 | PyObject * _argo0 = 0; | |
265 | PyObject * _argo1 = 0; | |
266 | char *_kwnames[] = { "self","event", NULL }; | |
267 | ||
268 | self = self; | |
269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
270 | return NULL; | |
271 | if (_argo0) { | |
272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
275 | return NULL; | |
276 | } | |
277 | } | |
278 | if (_argo1) { | |
279 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
280 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
282 | return NULL; | |
283 | } | |
284 | } | |
285 | { | |
286 | wxPy_BEGIN_ALLOW_THREADS; | |
287 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
288 | ||
289 | wxPy_END_ALLOW_THREADS; | |
290 | } _resultobj = Py_BuildValue("i",_result); | |
291 | return _resultobj; | |
292 | } | |
293 | ||
294 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) | |
295 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
296 | PyObject * _resultobj; | |
297 | bool _result; | |
298 | wxEvtHandler * _arg0; | |
299 | PyObject * _argo0 = 0; | |
300 | char *_kwnames[] = { "self", NULL }; | |
301 | ||
302 | self = self; | |
303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
304 | return NULL; | |
305 | if (_argo0) { | |
306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
309 | return NULL; | |
310 | } | |
311 | } | |
312 | { | |
313 | wxPy_BEGIN_ALLOW_THREADS; | |
314 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
315 | ||
316 | wxPy_END_ALLOW_THREADS; | |
317 | } _resultobj = Py_BuildValue("i",_result); | |
318 | return _resultobj; | |
319 | } | |
320 | ||
321 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
322 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
323 | PyObject * _resultobj; | |
324 | wxEvtHandler * _arg0; | |
325 | bool _arg1; | |
326 | PyObject * _argo0 = 0; | |
327 | int tempbool1; | |
328 | char *_kwnames[] = { "self","enabled", NULL }; | |
329 | ||
330 | self = self; | |
331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
332 | return NULL; | |
333 | if (_argo0) { | |
334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
337 | return NULL; | |
338 | } | |
339 | } | |
340 | _arg1 = (bool ) tempbool1; | |
341 | { | |
342 | wxPy_BEGIN_ALLOW_THREADS; | |
343 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
344 | ||
345 | wxPy_END_ALLOW_THREADS; | |
346 | } Py_INCREF(Py_None); | |
347 | _resultobj = Py_None; | |
348 | return _resultobj; | |
349 | } | |
350 | ||
351 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
352 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
353 | PyObject * _resultobj; | |
354 | wxEvtHandler * _result; | |
355 | wxEvtHandler * _arg0; | |
356 | PyObject * _argo0 = 0; | |
357 | char *_kwnames[] = { "self", NULL }; | |
358 | char _ptemp[128]; | |
359 | ||
360 | self = self; | |
361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
362 | return NULL; | |
363 | if (_argo0) { | |
364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
367 | return NULL; | |
368 | } | |
369 | } | |
370 | { | |
371 | wxPy_BEGIN_ALLOW_THREADS; | |
372 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
373 | ||
374 | wxPy_END_ALLOW_THREADS; | |
375 | } if (_result) { | |
376 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
377 | _resultobj = Py_BuildValue("s",_ptemp); | |
378 | } else { | |
379 | Py_INCREF(Py_None); | |
380 | _resultobj = Py_None; | |
381 | } | |
382 | return _resultobj; | |
383 | } | |
384 | ||
385 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
386 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
387 | PyObject * _resultobj; | |
388 | wxEvtHandler * _result; | |
389 | wxEvtHandler * _arg0; | |
390 | PyObject * _argo0 = 0; | |
391 | char *_kwnames[] = { "self", NULL }; | |
392 | char _ptemp[128]; | |
393 | ||
394 | self = self; | |
395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
396 | return NULL; | |
397 | if (_argo0) { | |
398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
401 | return NULL; | |
402 | } | |
403 | } | |
404 | { | |
405 | wxPy_BEGIN_ALLOW_THREADS; | |
406 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
407 | ||
408 | wxPy_END_ALLOW_THREADS; | |
409 | } if (_result) { | |
410 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
411 | _resultobj = Py_BuildValue("s",_ptemp); | |
412 | } else { | |
413 | Py_INCREF(Py_None); | |
414 | _resultobj = Py_None; | |
415 | } | |
416 | return _resultobj; | |
417 | } | |
418 | ||
419 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
420 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
421 | PyObject * _resultobj; | |
422 | wxEvtHandler * _arg0; | |
423 | wxEvtHandler * _arg1; | |
424 | PyObject * _argo0 = 0; | |
425 | PyObject * _argo1 = 0; | |
426 | char *_kwnames[] = { "self","handler", NULL }; | |
427 | ||
428 | self = self; | |
429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
430 | return NULL; | |
431 | if (_argo0) { | |
432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
435 | return NULL; | |
436 | } | |
437 | } | |
438 | if (_argo1) { | |
439 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
440 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
442 | return NULL; | |
443 | } | |
444 | } | |
445 | { | |
446 | wxPy_BEGIN_ALLOW_THREADS; | |
447 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
448 | ||
449 | wxPy_END_ALLOW_THREADS; | |
450 | } Py_INCREF(Py_None); | |
451 | _resultobj = Py_None; | |
452 | return _resultobj; | |
453 | } | |
454 | ||
455 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
456 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
457 | PyObject * _resultobj; | |
458 | wxEvtHandler * _arg0; | |
459 | wxEvtHandler * _arg1; | |
460 | PyObject * _argo0 = 0; | |
461 | PyObject * _argo1 = 0; | |
462 | char *_kwnames[] = { "self","handler", NULL }; | |
463 | ||
464 | self = self; | |
465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
466 | return NULL; | |
467 | if (_argo0) { | |
468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
471 | return NULL; | |
472 | } | |
473 | } | |
474 | if (_argo1) { | |
475 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
476 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
478 | return NULL; | |
479 | } | |
480 | } | |
481 | { | |
482 | wxPy_BEGIN_ALLOW_THREADS; | |
483 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
484 | ||
485 | wxPy_END_ALLOW_THREADS; | |
486 | } Py_INCREF(Py_None); | |
487 | _resultobj = Py_None; | |
488 | return _resultobj; | |
489 | } | |
490 | ||
491 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
492 | if (PyCallable_Check(func)) { | |
493 | self->Connect(id, lastId, eventType, | |
494 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
495 | new wxPyCallback(func)); | |
496 | } | |
497 | } | |
498 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
499 | PyObject * _resultobj; | |
500 | wxEvtHandler * _arg0; | |
501 | int _arg1; | |
502 | int _arg2; | |
503 | int _arg3; | |
504 | PyObject * _arg4; | |
505 | PyObject * _argo0 = 0; | |
506 | PyObject * _obj4 = 0; | |
507 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
508 | ||
509 | self = self; | |
510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
511 | return NULL; | |
512 | if (_argo0) { | |
513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
516 | return NULL; | |
517 | } | |
518 | } | |
519 | { | |
520 | _arg4 = _obj4; | |
521 | } | |
522 | { | |
523 | wxPy_BEGIN_ALLOW_THREADS; | |
524 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
525 | ||
526 | wxPy_END_ALLOW_THREADS; | |
527 | } Py_INCREF(Py_None); | |
528 | _resultobj = Py_None; | |
529 | return _resultobj; | |
530 | } | |
531 | ||
6999b0d8 RD |
532 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
533 | return self->Disconnect(id, lastId, eventType, | |
534 | (wxObjectEventFunction) | |
535 | &wxPyCallback::EventThunker); | |
536 | } | |
537 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
538 | PyObject * _resultobj; | |
539 | bool _result; | |
540 | wxEvtHandler * _arg0; | |
541 | int _arg1; | |
542 | int _arg2 = (int ) -1; | |
543 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
544 | PyObject * _argo0 = 0; | |
545 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
546 | ||
547 | self = self; | |
548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
549 | return NULL; | |
550 | if (_argo0) { | |
551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
554 | return NULL; | |
555 | } | |
556 | } | |
557 | { | |
558 | wxPy_BEGIN_ALLOW_THREADS; | |
559 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
560 | ||
561 | wxPy_END_ALLOW_THREADS; | |
562 | } _resultobj = Py_BuildValue("i",_result); | |
563 | return _resultobj; | |
564 | } | |
565 | ||
2f90df85 RD |
566 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
567 | wxValidator *src; | |
568 | wxEvtHandler *dest; | |
569 | src = (wxValidator *) ptr; | |
570 | dest = (wxEvtHandler *) src; | |
571 | return (void *) dest; | |
572 | } | |
573 | ||
574 | #define new_wxValidator() (new wxValidator()) | |
575 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
576 | PyObject * _resultobj; | |
577 | wxValidator * _result; | |
578 | char *_kwnames[] = { NULL }; | |
579 | char _ptemp[128]; | |
580 | ||
581 | self = self; | |
582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
583 | return NULL; | |
584 | { | |
585 | wxPy_BEGIN_ALLOW_THREADS; | |
586 | _result = (wxValidator *)new_wxValidator(); | |
587 | ||
588 | wxPy_END_ALLOW_THREADS; | |
589 | } if (_result) { | |
590 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
591 | _resultobj = Py_BuildValue("s",_ptemp); | |
592 | } else { | |
593 | Py_INCREF(Py_None); | |
594 | _resultobj = Py_None; | |
595 | } | |
596 | return _resultobj; | |
af309447 | 597 | } |
2f90df85 RD |
598 | |
599 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
600 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 601 | PyObject * _resultobj; |
2f90df85 RD |
602 | wxValidator * _result; |
603 | wxValidator * _arg0; | |
604 | PyObject * _argo0 = 0; | |
605 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
606 | char _ptemp[128]; |
607 | ||
608 | self = self; | |
2f90df85 RD |
609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
610 | return NULL; | |
611 | if (_argo0) { | |
612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 615 | return NULL; |
2f90df85 RD |
616 | } |
617 | } | |
cf694132 RD |
618 | { |
619 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 620 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 RD |
621 | |
622 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 623 | } if (_result) { |
2f90df85 | 624 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); |
1d99702e RD |
625 | _resultobj = Py_BuildValue("s",_ptemp); |
626 | } else { | |
627 | Py_INCREF(Py_None); | |
628 | _resultobj = Py_None; | |
629 | } | |
8ab979d7 RD |
630 | return _resultobj; |
631 | } | |
632 | ||
2f90df85 RD |
633 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
634 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
635 | PyObject * _resultobj; |
636 | wxWindow * _result; | |
2f90df85 RD |
637 | wxValidator * _arg0; |
638 | PyObject * _argo0 = 0; | |
639 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
640 | char _ptemp[128]; |
641 | ||
642 | self = self; | |
2f90df85 RD |
643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
644 | return NULL; | |
645 | if (_argo0) { | |
646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 649 | return NULL; |
2f90df85 RD |
650 | } |
651 | } | |
cf694132 RD |
652 | { |
653 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 654 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 RD |
655 | |
656 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
657 | } if (_result) { |
658 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
659 | _resultobj = Py_BuildValue("s",_ptemp); | |
660 | } else { | |
661 | Py_INCREF(Py_None); | |
662 | _resultobj = Py_None; | |
663 | } | |
af309447 RD |
664 | return _resultobj; |
665 | } | |
666 | ||
2f90df85 RD |
667 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
668 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 669 | PyObject * _resultobj; |
2f90df85 RD |
670 | wxValidator * _arg0; |
671 | wxWindow * _arg1; | |
1d99702e RD |
672 | PyObject * _argo0 = 0; |
673 | PyObject * _argo1 = 0; | |
2f90df85 | 674 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
675 | |
676 | self = self; | |
2f90df85 | 677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 678 | return NULL; |
1d99702e RD |
679 | if (_argo0) { |
680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
683 | return NULL; |
684 | } | |
685 | } | |
1d99702e RD |
686 | if (_argo1) { |
687 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
688 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
690 | return NULL; |
691 | } | |
692 | } | |
693 | { | |
694 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 695 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 RD |
696 | |
697 | wxPy_END_ALLOW_THREADS; | |
2f90df85 RD |
698 | } Py_INCREF(Py_None); |
699 | _resultobj = Py_None; | |
cf694132 RD |
700 | return _resultobj; |
701 | } | |
702 | ||
2f90df85 RD |
703 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
704 | wxPyValidator *src; | |
705 | wxValidator *dest; | |
706 | src = (wxPyValidator *) ptr; | |
707 | dest = (wxValidator *) src; | |
708 | return (void *) dest; | |
709 | } | |
710 | ||
711 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
712 | wxPyValidator *src; | |
713 | wxEvtHandler *dest; | |
714 | src = (wxPyValidator *) ptr; | |
715 | dest = (wxEvtHandler *) src; | |
716 | return (void *) dest; | |
717 | } | |
718 | ||
719 | #define new_wxPyValidator() (new wxPyValidator()) | |
720 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
721 | PyObject * _resultobj; | |
722 | wxPyValidator * _result; | |
723 | char *_kwnames[] = { NULL }; | |
724 | char _ptemp[128]; | |
725 | ||
726 | self = self; | |
727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
728 | return NULL; | |
729 | { | |
730 | wxPy_BEGIN_ALLOW_THREADS; | |
731 | _result = (wxPyValidator *)new_wxPyValidator(); | |
732 | ||
733 | wxPy_END_ALLOW_THREADS; | |
734 | } if (_result) { | |
735 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
736 | _resultobj = Py_BuildValue("s",_ptemp); | |
737 | } else { | |
738 | Py_INCREF(Py_None); | |
739 | _resultobj = Py_None; | |
740 | } | |
741 | return _resultobj; | |
742 | } | |
743 | ||
744 | static void wxPyValidator_Destroy(wxPyValidator *self) { delete self; } | |
745 | static PyObject *_wrap_wxPyValidator_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
746 | PyObject * _resultobj; | |
747 | wxPyValidator * _arg0; | |
748 | PyObject * _argo0 = 0; | |
749 | char *_kwnames[] = { "self", NULL }; | |
750 | ||
751 | self = self; | |
752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyValidator_Destroy",_kwnames,&_argo0)) | |
753 | return NULL; | |
754 | if (_argo0) { | |
755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator_Destroy. Expected _wxPyValidator_p."); | |
758 | return NULL; | |
8ab979d7 | 759 | } |
2f90df85 RD |
760 | } |
761 | { | |
762 | wxPy_BEGIN_ALLOW_THREADS; | |
763 | wxPyValidator_Destroy(_arg0); | |
764 | ||
765 | wxPy_END_ALLOW_THREADS; | |
766 | } Py_INCREF(Py_None); | |
767 | _resultobj = Py_None; | |
768 | return _resultobj; | |
769 | } | |
770 | ||
771 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) | |
772 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 773 | PyObject * _resultobj; |
2f90df85 RD |
774 | wxPyValidator * _arg0; |
775 | PyObject * _arg1; | |
776 | int _arg2 = (int ) TRUE; | |
1d99702e | 777 | PyObject * _argo0 = 0; |
2f90df85 RD |
778 | PyObject * _obj1 = 0; |
779 | char *_kwnames[] = { "self","self","incref", NULL }; | |
8ab979d7 RD |
780 | |
781 | self = self; | |
2f90df85 | 782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 783 | return NULL; |
1d99702e RD |
784 | if (_argo0) { |
785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
8ab979d7 RD |
788 | return NULL; |
789 | } | |
790 | } | |
791 | { | |
2f90df85 | 792 | _arg1 = _obj1; |
8ab979d7 | 793 | } |
cf694132 RD |
794 | { |
795 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 796 | wxPyValidator__setSelf(_arg0,_arg1,_arg2); |
cf694132 RD |
797 | |
798 | wxPy_END_ALLOW_THREADS; | |
799 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
800 | _resultobj = Py_None; |
801 | return _resultobj; | |
802 | } | |
803 | ||
804 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
805 | wxWindow *src; | |
806 | wxEvtHandler *dest; | |
807 | src = (wxWindow *) ptr; | |
808 | dest = (wxEvtHandler *) src; | |
809 | return (void *) dest; | |
810 | } | |
811 | ||
812 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 813 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
814 | PyObject * _resultobj; |
815 | wxWindow * _result; | |
816 | wxWindow * _arg0; | |
817 | wxWindowID _arg1; | |
1d99702e RD |
818 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; |
819 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
820 | long _arg4 = (long ) 0; | |
821 | char * _arg5 = (char *) "panel"; | |
822 | PyObject * _argo0 = 0; | |
2f90df85 RD |
823 | wxPoint temp; |
824 | PyObject * _obj2 = 0; | |
825 | wxSize temp0; | |
826 | PyObject * _obj3 = 0; | |
efc5f224 | 827 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
828 | char _ptemp[128]; |
829 | ||
830 | self = self; | |
2f90df85 | 831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 832 | return NULL; |
1d99702e RD |
833 | if (_argo0) { |
834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
837 | return NULL; | |
838 | } | |
839 | } | |
2f90df85 RD |
840 | if (_obj2) |
841 | { | |
842 | _arg2 = &temp; | |
843 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 844 | return NULL; |
2f90df85 RD |
845 | } |
846 | if (_obj3) | |
847 | { | |
848 | _arg3 = &temp0; | |
849 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 850 | return NULL; |
2f90df85 | 851 | } |
cf694132 RD |
852 | { |
853 | wxPy_BEGIN_ALLOW_THREADS; | |
854 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
855 | ||
856 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
857 | } if (_result) { |
858 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
859 | _resultobj = Py_BuildValue("s",_ptemp); | |
860 | } else { | |
861 | Py_INCREF(Py_None); | |
862 | _resultobj = Py_None; | |
863 | } | |
8ab979d7 RD |
864 | return _resultobj; |
865 | } | |
866 | ||
867 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
efc5f224 | 868 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
869 | PyObject * _resultobj; |
870 | wxWindow * _arg0; | |
1d99702e | 871 | PyObject * _argo0 = 0; |
efc5f224 | 872 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
873 | |
874 | self = self; | |
efc5f224 | 875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
8ab979d7 | 876 | return NULL; |
1d99702e RD |
877 | if (_argo0) { |
878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
881 | return NULL; | |
882 | } | |
883 | } | |
cf694132 RD |
884 | { |
885 | wxPy_BEGIN_ALLOW_THREADS; | |
886 | wxWindow_CaptureMouse(_arg0); | |
887 | ||
888 | wxPy_END_ALLOW_THREADS; | |
889 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
890 | _resultobj = Py_None; |
891 | return _resultobj; | |
892 | } | |
893 | ||
894 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 895 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
896 | PyObject * _resultobj; |
897 | wxWindow * _arg0; | |
1d99702e RD |
898 | int _arg1 = (int ) wxBOTH; |
899 | PyObject * _argo0 = 0; | |
efc5f224 | 900 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
901 | |
902 | self = self; | |
efc5f224 | 903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 904 | return NULL; |
1d99702e RD |
905 | if (_argo0) { |
906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
909 | return NULL; | |
910 | } | |
911 | } | |
cf694132 RD |
912 | { |
913 | wxPy_BEGIN_ALLOW_THREADS; | |
914 | wxWindow_Center(_arg0,_arg1); | |
915 | ||
916 | wxPy_END_ALLOW_THREADS; | |
917 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
918 | _resultobj = Py_None; |
919 | return _resultobj; | |
920 | } | |
921 | ||
922 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 923 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
924 | PyObject * _resultobj; |
925 | wxWindow * _arg0; | |
1d99702e RD |
926 | int _arg1 = (int ) wxBOTH; |
927 | PyObject * _argo0 = 0; | |
efc5f224 | 928 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
929 | |
930 | self = self; | |
efc5f224 | 931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 932 | return NULL; |
1d99702e RD |
933 | if (_argo0) { |
934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
937 | return NULL; | |
938 | } | |
939 | } | |
cf694132 RD |
940 | { |
941 | wxPy_BEGIN_ALLOW_THREADS; | |
942 | wxWindow_Centre(_arg0,_arg1); | |
943 | ||
944 | wxPy_END_ALLOW_THREADS; | |
945 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
946 | _resultobj = Py_None; |
947 | return _resultobj; | |
948 | } | |
949 | ||
bb0054cd | 950 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 951 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
952 | PyObject * _resultobj; |
953 | wxWindow * _arg0; | |
1d99702e RD |
954 | int _arg1 = (int ) wxBOTH; |
955 | PyObject * _argo0 = 0; | |
efc5f224 | 956 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
957 | |
958 | self = self; | |
efc5f224 | 959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 960 | return NULL; |
1d99702e RD |
961 | if (_argo0) { |
962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
965 | return NULL; | |
966 | } | |
967 | } | |
968 | { | |
969 | wxPy_BEGIN_ALLOW_THREADS; | |
970 | wxWindow_CentreOnParent(_arg0,_arg1); | |
971 | ||
972 | wxPy_END_ALLOW_THREADS; | |
973 | } Py_INCREF(Py_None); | |
974 | _resultobj = Py_None; | |
975 | return _resultobj; | |
976 | } | |
977 | ||
978 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 979 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
980 | PyObject * _resultobj; |
981 | wxWindow * _arg0; | |
1d99702e RD |
982 | int _arg1 = (int ) wxBOTH; |
983 | PyObject * _argo0 = 0; | |
efc5f224 | 984 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
985 | |
986 | self = self; | |
efc5f224 | 987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 988 | return NULL; |
1d99702e RD |
989 | if (_argo0) { |
990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
993 | return NULL; | |
994 | } | |
995 | } | |
996 | { | |
997 | wxPy_BEGIN_ALLOW_THREADS; | |
998 | wxWindow_CenterOnParent(_arg0,_arg1); | |
999 | ||
1000 | wxPy_END_ALLOW_THREADS; | |
1001 | } Py_INCREF(Py_None); | |
1002 | _resultobj = Py_None; | |
1003 | return _resultobj; | |
1004 | } | |
1005 | ||
af309447 | 1006 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1007 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1008 | PyObject * _resultobj; |
1009 | wxWindow * _arg0; | |
1010 | int * _arg1; | |
1011 | int * _arg2; | |
1d99702e | 1012 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1013 | int temp; |
1014 | PyObject * _obj1 = 0; | |
1015 | int temp0; | |
1016 | PyObject * _obj2 = 0; | |
efc5f224 | 1017 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1018 | |
1019 | self = self; | |
efc5f224 | 1020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1021 | return NULL; |
1d99702e RD |
1022 | if (_argo0) { |
1023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1026 | return NULL; |
1027 | } | |
1028 | } | |
1029 | { | |
1030 | temp = (int) PyInt_AsLong(_obj1); | |
1031 | _arg1 = &temp; | |
1032 | } | |
1033 | { | |
1034 | temp0 = (int) PyInt_AsLong(_obj2); | |
1035 | _arg2 = &temp0; | |
1036 | } | |
cf694132 RD |
1037 | { |
1038 | wxPy_BEGIN_ALLOW_THREADS; | |
1039 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1040 | ||
1041 | wxPy_END_ALLOW_THREADS; | |
1042 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1043 | _resultobj = Py_None; |
1044 | { | |
1045 | PyObject *o; | |
1046 | o = PyInt_FromLong((long) (*_arg1)); | |
1047 | _resultobj = t_output_helper(_resultobj, o); | |
1048 | } | |
1049 | { | |
1050 | PyObject *o; | |
1051 | o = PyInt_FromLong((long) (*_arg2)); | |
1052 | _resultobj = t_output_helper(_resultobj, o); | |
1053 | } | |
1054 | return _resultobj; | |
1055 | } | |
1056 | ||
af309447 | 1057 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1058 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1059 | PyObject * _resultobj; |
1060 | wxPoint * _result; | |
1061 | wxWindow * _arg0; | |
1062 | wxPoint * _arg1; | |
1d99702e | 1063 | PyObject * _argo0 = 0; |
2f90df85 RD |
1064 | wxPoint temp; |
1065 | PyObject * _obj1 = 0; | |
efc5f224 | 1066 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1067 | char _ptemp[128]; |
1068 | ||
1069 | self = self; | |
2f90df85 | 1070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1071 | return NULL; |
1d99702e RD |
1072 | if (_argo0) { |
1073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1076 | return NULL; | |
1077 | } | |
1078 | } | |
2f90df85 RD |
1079 | { |
1080 | _arg1 = &temp; | |
1081 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1082 | return NULL; |
2f90df85 | 1083 | } |
cf694132 RD |
1084 | { |
1085 | wxPy_BEGIN_ALLOW_THREADS; | |
1086 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1087 | ||
1088 | wxPy_END_ALLOW_THREADS; | |
1089 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
af309447 RD |
1090 | _resultobj = Py_BuildValue("s",_ptemp); |
1091 | return _resultobj; | |
1092 | } | |
1093 | ||
8ab979d7 | 1094 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1095 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1096 | PyObject * _resultobj; |
1097 | bool _result; | |
1098 | wxWindow * _arg0; | |
1d99702e RD |
1099 | int _arg1 = (int ) FALSE; |
1100 | PyObject * _argo0 = 0; | |
efc5f224 | 1101 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1102 | |
1103 | self = self; | |
efc5f224 | 1104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1105 | return NULL; |
1d99702e RD |
1106 | if (_argo0) { |
1107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1110 | return NULL; | |
1111 | } | |
1112 | } | |
cf694132 RD |
1113 | { |
1114 | wxPy_BEGIN_ALLOW_THREADS; | |
1115 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1116 | ||
1117 | wxPy_END_ALLOW_THREADS; | |
1118 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1119 | return _resultobj; |
1120 | } | |
1121 | ||
1122 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1123 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1124 | PyObject * _resultobj; |
1125 | bool _result; | |
1126 | wxWindow * _arg0; | |
1d99702e | 1127 | PyObject * _argo0 = 0; |
efc5f224 | 1128 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1129 | |
1130 | self = self; | |
efc5f224 | 1131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1132 | return NULL; |
1d99702e RD |
1133 | if (_argo0) { |
1134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1137 | return NULL; | |
1138 | } | |
1139 | } | |
cf694132 RD |
1140 | { |
1141 | wxPy_BEGIN_ALLOW_THREADS; | |
1142 | _result = (bool )wxWindow_Destroy(_arg0); | |
1143 | ||
1144 | wxPy_END_ALLOW_THREADS; | |
1145 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1146 | return _resultobj; |
1147 | } | |
1148 | ||
1149 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1150 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1151 | PyObject * _resultobj; |
1152 | wxWindow * _arg0; | |
1d99702e | 1153 | PyObject * _argo0 = 0; |
efc5f224 | 1154 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1155 | |
1156 | self = self; | |
efc5f224 | 1157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1158 | return NULL; |
1d99702e RD |
1159 | if (_argo0) { |
1160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1163 | return NULL; | |
1164 | } | |
1165 | } | |
cf694132 RD |
1166 | { |
1167 | wxPy_BEGIN_ALLOW_THREADS; | |
1168 | wxWindow_DestroyChildren(_arg0); | |
1169 | ||
1170 | wxPy_END_ALLOW_THREADS; | |
1171 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1172 | _resultobj = Py_None; |
1173 | return _resultobj; | |
1174 | } | |
1175 | ||
1176 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) | |
efc5f224 | 1177 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1178 | PyObject * _resultobj; |
1179 | wxWindow * _arg0; | |
1180 | bool _arg1; | |
1d99702e | 1181 | PyObject * _argo0 = 0; |
8ab979d7 | 1182 | int tempbool1; |
efc5f224 | 1183 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1184 | |
1185 | self = self; | |
efc5f224 | 1186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1187 | return NULL; |
1d99702e RD |
1188 | if (_argo0) { |
1189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1192 | return NULL; | |
1193 | } | |
1194 | } | |
1195 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1196 | { |
1197 | wxPy_BEGIN_ALLOW_THREADS; | |
1198 | wxWindow_DragAcceptFiles(_arg0,_arg1); | |
1199 | ||
1200 | wxPy_END_ALLOW_THREADS; | |
1201 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1202 | _resultobj = Py_None; |
1203 | return _resultobj; | |
1204 | } | |
1205 | ||
1206 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1207 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1208 | PyObject * _resultobj; |
1209 | wxWindow * _arg0; | |
1210 | bool _arg1; | |
1d99702e | 1211 | PyObject * _argo0 = 0; |
8ab979d7 | 1212 | int tempbool1; |
efc5f224 | 1213 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1214 | |
1215 | self = self; | |
efc5f224 | 1216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1217 | return NULL; |
1d99702e RD |
1218 | if (_argo0) { |
1219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1222 | return NULL; | |
1223 | } | |
1224 | } | |
1225 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1226 | { |
1227 | wxPy_BEGIN_ALLOW_THREADS; | |
1228 | wxWindow_Enable(_arg0,_arg1); | |
1229 | ||
1230 | wxPy_END_ALLOW_THREADS; | |
1231 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1232 | _resultobj = Py_None; |
1233 | return _resultobj; | |
1234 | } | |
1235 | ||
af309447 | 1236 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1237 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1238 | PyObject * _resultobj; |
1239 | wxWindow * _result; | |
1240 | wxWindow * _arg0; | |
1241 | long _arg1; | |
1d99702e | 1242 | PyObject * _argo0 = 0; |
efc5f224 | 1243 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1244 | char _ptemp[128]; |
1245 | ||
1246 | self = self; | |
efc5f224 | 1247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1248 | return NULL; |
1d99702e RD |
1249 | if (_argo0) { |
1250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1253 | return NULL; |
1254 | } | |
1255 | } | |
cf694132 RD |
1256 | { |
1257 | wxPy_BEGIN_ALLOW_THREADS; | |
1258 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1259 | ||
1260 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1261 | } if (_result) { |
1262 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1263 | _resultobj = Py_BuildValue("s",_ptemp); | |
1264 | } else { | |
1265 | Py_INCREF(Py_None); | |
1266 | _resultobj = Py_None; | |
1267 | } | |
8ab979d7 RD |
1268 | return _resultobj; |
1269 | } | |
1270 | ||
1271 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1272 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1273 | PyObject * _resultobj; |
1274 | wxWindow * _result; | |
1275 | wxWindow * _arg0; | |
1276 | wxString * _arg1; | |
1d99702e | 1277 | PyObject * _argo0 = 0; |
8ab979d7 | 1278 | PyObject * _obj1 = 0; |
efc5f224 | 1279 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1280 | char _ptemp[128]; |
1281 | ||
1282 | self = self; | |
efc5f224 | 1283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1284 | return NULL; |
1d99702e RD |
1285 | if (_argo0) { |
1286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1289 | return NULL; | |
1290 | } | |
1291 | } | |
1292 | { | |
1293 | if (!PyString_Check(_obj1)) { | |
1294 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1295 | return NULL; | |
1296 | } | |
cf694132 | 1297 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 1298 | } |
cf694132 RD |
1299 | { |
1300 | wxPy_BEGIN_ALLOW_THREADS; | |
1301 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1302 | ||
1303 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1304 | } if (_result) { |
1305 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1306 | _resultobj = Py_BuildValue("s",_ptemp); | |
1307 | } else { | |
1308 | Py_INCREF(Py_None); | |
1309 | _resultobj = Py_None; | |
1310 | } | |
8ab979d7 RD |
1311 | { |
1312 | if (_obj1) | |
1313 | delete _arg1; | |
1314 | } | |
1315 | return _resultobj; | |
1316 | } | |
1317 | ||
1318 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1319 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1320 | PyObject * _resultobj; |
1321 | wxWindow * _arg0; | |
1d99702e | 1322 | PyObject * _argo0 = 0; |
efc5f224 | 1323 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1324 | |
1325 | self = self; | |
efc5f224 | 1326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1327 | return NULL; |
1d99702e RD |
1328 | if (_argo0) { |
1329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1332 | return NULL; | |
1333 | } | |
1334 | } | |
cf694132 RD |
1335 | { |
1336 | wxPy_BEGIN_ALLOW_THREADS; | |
1337 | wxWindow_Fit(_arg0); | |
1338 | ||
1339 | wxPy_END_ALLOW_THREADS; | |
1340 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1341 | _resultobj = Py_None; |
1342 | return _resultobj; | |
1343 | } | |
1344 | ||
1345 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1346 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1347 | PyObject * _resultobj; |
1348 | wxColour * _result; | |
1349 | wxWindow * _arg0; | |
1d99702e | 1350 | PyObject * _argo0 = 0; |
efc5f224 | 1351 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1352 | char _ptemp[128]; |
1353 | ||
1354 | self = self; | |
efc5f224 | 1355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1356 | return NULL; |
1d99702e RD |
1357 | if (_argo0) { |
1358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1361 | return NULL; | |
1362 | } | |
1363 | } | |
cf694132 RD |
1364 | { |
1365 | wxPy_BEGIN_ALLOW_THREADS; | |
1366 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1367 | ||
1368 | wxPy_END_ALLOW_THREADS; | |
1369 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
1370 | _resultobj = Py_BuildValue("s",_ptemp); |
1371 | return _resultobj; | |
1372 | } | |
1373 | ||
d426c97e RD |
1374 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1375 | wxWindowList& list = self->GetChildren(); | |
1376 | return wxPy_ConvertList(&list, "wxWindow"); | |
1377 | } | |
1378 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1379 | PyObject * _resultobj; | |
1380 | PyObject * _result; | |
1381 | wxWindow * _arg0; | |
1382 | PyObject * _argo0 = 0; | |
1383 | char *_kwnames[] = { "self", NULL }; | |
1384 | ||
1385 | self = self; | |
1386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1387 | return NULL; | |
1388 | if (_argo0) { | |
1389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1392 | return NULL; | |
1393 | } | |
1394 | } | |
1395 | { | |
1396 | wxPy_BEGIN_ALLOW_THREADS; | |
1397 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1398 | ||
1399 | wxPy_END_ALLOW_THREADS; | |
1400 | }{ | |
1401 | _resultobj = _result; | |
1402 | } | |
1403 | return _resultobj; | |
1404 | } | |
1405 | ||
8ab979d7 | 1406 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1407 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1408 | PyObject * _resultobj; |
1409 | int _result; | |
1410 | wxWindow * _arg0; | |
1d99702e | 1411 | PyObject * _argo0 = 0; |
efc5f224 | 1412 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1413 | |
1414 | self = self; | |
efc5f224 | 1415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1416 | return NULL; |
1d99702e RD |
1417 | if (_argo0) { |
1418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1421 | return NULL; | |
1422 | } | |
1423 | } | |
cf694132 RD |
1424 | { |
1425 | wxPy_BEGIN_ALLOW_THREADS; | |
1426 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1427 | ||
1428 | wxPy_END_ALLOW_THREADS; | |
1429 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1430 | return _resultobj; |
1431 | } | |
1432 | ||
1433 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1434 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1435 | PyObject * _resultobj; |
1436 | int _result; | |
1437 | wxWindow * _arg0; | |
1d99702e | 1438 | PyObject * _argo0 = 0; |
efc5f224 | 1439 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1440 | |
1441 | self = self; | |
efc5f224 | 1442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1443 | return NULL; |
1d99702e RD |
1444 | if (_argo0) { |
1445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1448 | return NULL; | |
1449 | } | |
1450 | } | |
cf694132 RD |
1451 | { |
1452 | wxPy_BEGIN_ALLOW_THREADS; | |
1453 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1454 | ||
1455 | wxPy_END_ALLOW_THREADS; | |
1456 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1457 | return _resultobj; |
1458 | } | |
1459 | ||
b8b8dda7 | 1460 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1461 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1462 | PyObject * _resultobj; |
1463 | wxWindow * _arg0; | |
1464 | int * _arg1; | |
1465 | int temp; | |
1466 | int * _arg2; | |
1467 | int temp0; | |
1d99702e | 1468 | PyObject * _argo0 = 0; |
efc5f224 | 1469 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1470 | |
1471 | self = self; | |
1472 | { | |
1473 | _arg1 = &temp; | |
1474 | } | |
1475 | { | |
1476 | _arg2 = &temp0; | |
1477 | } | |
efc5f224 | 1478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1479 | return NULL; |
1d99702e RD |
1480 | if (_argo0) { |
1481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1484 | return NULL; |
1485 | } | |
1486 | } | |
cf694132 RD |
1487 | { |
1488 | wxPy_BEGIN_ALLOW_THREADS; | |
1489 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1490 | ||
1491 | wxPy_END_ALLOW_THREADS; | |
1492 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1493 | _resultobj = Py_None; |
1494 | { | |
1495 | PyObject *o; | |
1496 | o = PyInt_FromLong((long) (*_arg1)); | |
1497 | _resultobj = t_output_helper(_resultobj, o); | |
1498 | } | |
1499 | { | |
1500 | PyObject *o; | |
1501 | o = PyInt_FromLong((long) (*_arg2)); | |
1502 | _resultobj = t_output_helper(_resultobj, o); | |
1503 | } | |
1504 | return _resultobj; | |
1505 | } | |
1506 | ||
b8b8dda7 | 1507 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1508 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1509 | PyObject * _resultobj; |
1510 | wxSize * _result; | |
1511 | wxWindow * _arg0; | |
1d99702e | 1512 | PyObject * _argo0 = 0; |
efc5f224 | 1513 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1514 | char _ptemp[128]; |
1515 | ||
1516 | self = self; | |
efc5f224 | 1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1518 | return NULL; |
1d99702e RD |
1519 | if (_argo0) { |
1520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1523 | return NULL; | |
1524 | } | |
1525 | } | |
cf694132 RD |
1526 | { |
1527 | wxPy_BEGIN_ALLOW_THREADS; | |
1528 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1529 | ||
1530 | wxPy_END_ALLOW_THREADS; | |
1531 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
1532 | _resultobj = Py_BuildValue("s",_ptemp); |
1533 | return _resultobj; | |
1534 | } | |
1535 | ||
8ab979d7 | 1536 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1537 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1538 | PyObject * _resultobj; |
1539 | wxLayoutConstraints * _result; | |
1540 | wxWindow * _arg0; | |
1d99702e | 1541 | PyObject * _argo0 = 0; |
efc5f224 | 1542 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1543 | char _ptemp[128]; |
1544 | ||
1545 | self = self; | |
efc5f224 | 1546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1547 | return NULL; |
1d99702e RD |
1548 | if (_argo0) { |
1549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1552 | return NULL; | |
1553 | } | |
1554 | } | |
cf694132 RD |
1555 | { |
1556 | wxPy_BEGIN_ALLOW_THREADS; | |
1557 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1558 | ||
1559 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1560 | } if (_result) { |
1561 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1562 | _resultobj = Py_BuildValue("s",_ptemp); | |
1563 | } else { | |
1564 | Py_INCREF(Py_None); | |
1565 | _resultobj = Py_None; | |
1566 | } | |
8ab979d7 RD |
1567 | return _resultobj; |
1568 | } | |
1569 | ||
1afc06c2 RD |
1570 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1571 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1572 | PyObject * _resultobj; | |
1573 | wxEvtHandler * _result; | |
1574 | wxWindow * _arg0; | |
1575 | PyObject * _argo0 = 0; | |
1576 | char *_kwnames[] = { "self", NULL }; | |
1577 | char _ptemp[128]; | |
1578 | ||
1579 | self = self; | |
1580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1581 | return NULL; | |
1582 | if (_argo0) { | |
1583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1586 | return NULL; | |
1587 | } | |
1588 | } | |
1589 | { | |
1590 | wxPy_BEGIN_ALLOW_THREADS; | |
1591 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1592 | ||
1593 | wxPy_END_ALLOW_THREADS; | |
1594 | } if (_result) { | |
1595 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
1596 | _resultobj = Py_BuildValue("s",_ptemp); | |
1597 | } else { | |
1598 | Py_INCREF(Py_None); | |
1599 | _resultobj = Py_None; | |
1600 | } | |
1601 | return _resultobj; | |
1602 | } | |
1603 | ||
8ab979d7 | 1604 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1605 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1606 | PyObject * _resultobj; |
1607 | wxFont * _result; | |
1608 | wxWindow * _arg0; | |
1d99702e | 1609 | PyObject * _argo0 = 0; |
efc5f224 | 1610 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1611 | char _ptemp[128]; |
1612 | ||
1613 | self = self; | |
efc5f224 | 1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1615 | return NULL; |
1d99702e RD |
1616 | if (_argo0) { |
1617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1620 | return NULL; | |
1621 | } | |
1622 | } | |
cf694132 RD |
1623 | { |
1624 | wxPy_BEGIN_ALLOW_THREADS; | |
1625 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
b8b8dda7 | 1626 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
1627 | |
1628 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1629 | } if (_result) { |
1630 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1631 | _resultobj = Py_BuildValue("s",_ptemp); | |
1632 | } else { | |
1633 | Py_INCREF(Py_None); | |
1634 | _resultobj = Py_None; | |
1635 | } | |
8ab979d7 RD |
1636 | return _resultobj; |
1637 | } | |
1638 | ||
1639 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1640 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1641 | PyObject * _resultobj; |
1642 | wxColour * _result; | |
1643 | wxWindow * _arg0; | |
1d99702e | 1644 | PyObject * _argo0 = 0; |
efc5f224 | 1645 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1646 | char _ptemp[128]; |
1647 | ||
1648 | self = self; | |
efc5f224 | 1649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1650 | return NULL; |
1d99702e RD |
1651 | if (_argo0) { |
1652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1655 | return NULL; | |
1656 | } | |
1657 | } | |
cf694132 RD |
1658 | { |
1659 | wxPy_BEGIN_ALLOW_THREADS; | |
1660 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1661 | ||
1662 | wxPy_END_ALLOW_THREADS; | |
1663 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
1664 | _resultobj = Py_BuildValue("s",_ptemp); |
1665 | return _resultobj; | |
1666 | } | |
1667 | ||
1668 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1669 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1670 | PyObject * _resultobj; |
1671 | wxWindow * _result; | |
1672 | wxWindow * _arg0; | |
1d99702e | 1673 | PyObject * _argo0 = 0; |
efc5f224 | 1674 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1675 | char _ptemp[128]; |
1676 | ||
1677 | self = self; | |
efc5f224 | 1678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1679 | return NULL; |
1d99702e RD |
1680 | if (_argo0) { |
1681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1684 | return NULL; | |
1685 | } | |
1686 | } | |
cf694132 RD |
1687 | { |
1688 | wxPy_BEGIN_ALLOW_THREADS; | |
1689 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1690 | ||
1691 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1692 | } if (_result) { |
1693 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1694 | _resultobj = Py_BuildValue("s",_ptemp); | |
1695 | } else { | |
1696 | Py_INCREF(Py_None); | |
1697 | _resultobj = Py_None; | |
1698 | } | |
8ab979d7 RD |
1699 | return _resultobj; |
1700 | } | |
1701 | ||
2abc0a0f | 1702 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1703 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1704 | } |
1705 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1706 | PyObject * _resultobj; | |
1707 | long _result; | |
1708 | wxWindow * _arg0; | |
1709 | PyObject * _argo0 = 0; | |
1710 | char *_kwnames[] = { "self", NULL }; | |
1711 | ||
1712 | self = self; | |
1713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1714 | return NULL; | |
1715 | if (_argo0) { | |
1716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1719 | return NULL; | |
1720 | } | |
1721 | } | |
1722 | { | |
1723 | wxPy_BEGIN_ALLOW_THREADS; | |
1724 | _result = (long )wxWindow_GetHandle(_arg0); | |
1725 | ||
1726 | wxPy_END_ALLOW_THREADS; | |
1727 | } _resultobj = Py_BuildValue("l",_result); | |
1728 | return _resultobj; | |
1729 | } | |
1730 | ||
8ab979d7 | 1731 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 1732 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1733 | PyObject * _resultobj; |
1734 | int _result; | |
1735 | wxWindow * _arg0; | |
1d99702e | 1736 | PyObject * _argo0 = 0; |
efc5f224 | 1737 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1738 | |
1739 | self = self; | |
efc5f224 | 1740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 1741 | return NULL; |
1d99702e RD |
1742 | if (_argo0) { |
1743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
1746 | return NULL; | |
1747 | } | |
1748 | } | |
cf694132 RD |
1749 | { |
1750 | wxPy_BEGIN_ALLOW_THREADS; | |
1751 | _result = (int )wxWindow_GetId(_arg0); | |
1752 | ||
1753 | wxPy_END_ALLOW_THREADS; | |
1754 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1755 | return _resultobj; |
1756 | } | |
1757 | ||
8ab979d7 | 1758 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 1759 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1760 | PyObject * _resultobj; |
1761 | wxString * _result; | |
1762 | wxWindow * _arg0; | |
1d99702e | 1763 | PyObject * _argo0 = 0; |
efc5f224 | 1764 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1765 | |
1766 | self = self; | |
efc5f224 | 1767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 1768 | return NULL; |
1d99702e RD |
1769 | if (_argo0) { |
1770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
1773 | return NULL; | |
1774 | } | |
1775 | } | |
8ab979d7 | 1776 | { |
cf694132 RD |
1777 | wxPy_BEGIN_ALLOW_THREADS; |
1778 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
1779 | ||
1780 | wxPy_END_ALLOW_THREADS; | |
1781 | }{ | |
8ab979d7 RD |
1782 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
1783 | } | |
1784 | { | |
1785 | delete _result; | |
1786 | } | |
1787 | return _resultobj; | |
1788 | } | |
1789 | ||
bb0054cd | 1790 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 1791 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1792 | PyObject * _resultobj; |
1793 | wxWindow * _arg0; | |
1794 | wxString * _arg1; | |
1d99702e | 1795 | PyObject * _argo0 = 0; |
bb0054cd | 1796 | PyObject * _obj1 = 0; |
efc5f224 | 1797 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
1798 | |
1799 | self = self; | |
efc5f224 | 1800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 1801 | return NULL; |
1d99702e RD |
1802 | if (_argo0) { |
1803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
1806 | return NULL; | |
1807 | } | |
1808 | } | |
1809 | { | |
1810 | if (!PyString_Check(_obj1)) { | |
1811 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1812 | return NULL; | |
1813 | } | |
1814 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1815 | } | |
1816 | { | |
1817 | wxPy_BEGIN_ALLOW_THREADS; | |
1818 | wxWindow_SetLabel(_arg0,*_arg1); | |
1819 | ||
1820 | wxPy_END_ALLOW_THREADS; | |
1821 | } Py_INCREF(Py_None); | |
1822 | _resultobj = Py_None; | |
1823 | { | |
1824 | if (_obj1) | |
1825 | delete _arg1; | |
1826 | } | |
1827 | return _resultobj; | |
1828 | } | |
1829 | ||
8ab979d7 | 1830 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 1831 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1832 | PyObject * _resultobj; |
1833 | wxString * _result; | |
1834 | wxWindow * _arg0; | |
1d99702e | 1835 | PyObject * _argo0 = 0; |
efc5f224 | 1836 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1837 | |
1838 | self = self; | |
efc5f224 | 1839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 1840 | return NULL; |
1d99702e RD |
1841 | if (_argo0) { |
1842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
1845 | return NULL; | |
1846 | } | |
1847 | } | |
8ab979d7 | 1848 | { |
cf694132 RD |
1849 | wxPy_BEGIN_ALLOW_THREADS; |
1850 | _result = new wxString (wxWindow_GetName(_arg0)); | |
1851 | ||
1852 | wxPy_END_ALLOW_THREADS; | |
1853 | }{ | |
8ab979d7 RD |
1854 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
1855 | } | |
1856 | { | |
1857 | delete _result; | |
1858 | } | |
1859 | return _resultobj; | |
1860 | } | |
1861 | ||
1862 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 1863 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1864 | PyObject * _resultobj; |
1865 | wxWindow * _result; | |
1866 | wxWindow * _arg0; | |
1d99702e | 1867 | PyObject * _argo0 = 0; |
efc5f224 | 1868 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1869 | char _ptemp[128]; |
1870 | ||
1871 | self = self; | |
efc5f224 | 1872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 1873 | return NULL; |
1d99702e RD |
1874 | if (_argo0) { |
1875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
1878 | return NULL; | |
1879 | } | |
1880 | } | |
cf694132 RD |
1881 | { |
1882 | wxPy_BEGIN_ALLOW_THREADS; | |
1883 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
1884 | ||
1885 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1886 | } if (_result) { |
1887 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1888 | _resultobj = Py_BuildValue("s",_ptemp); | |
1889 | } else { | |
1890 | Py_INCREF(Py_None); | |
1891 | _resultobj = Py_None; | |
1892 | } | |
8ab979d7 RD |
1893 | return _resultobj; |
1894 | } | |
1895 | ||
b8b8dda7 | 1896 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 1897 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1898 | PyObject * _resultobj; |
1899 | wxWindow * _arg0; | |
1900 | int * _arg1; | |
1901 | int temp; | |
1902 | int * _arg2; | |
1903 | int temp0; | |
1d99702e | 1904 | PyObject * _argo0 = 0; |
efc5f224 | 1905 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1906 | |
1907 | self = self; | |
1908 | { | |
1909 | _arg1 = &temp; | |
1910 | } | |
1911 | { | |
1912 | _arg2 = &temp0; | |
1913 | } | |
efc5f224 | 1914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 1915 | return NULL; |
1d99702e RD |
1916 | if (_argo0) { |
1917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
1920 | return NULL; | |
1921 | } | |
1922 | } | |
cf694132 RD |
1923 | { |
1924 | wxPy_BEGIN_ALLOW_THREADS; | |
1925 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
1926 | ||
1927 | wxPy_END_ALLOW_THREADS; | |
1928 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
1929 | _resultobj = Py_None; |
1930 | { | |
1931 | PyObject *o; | |
1932 | o = PyInt_FromLong((long) (*_arg1)); | |
1933 | _resultobj = t_output_helper(_resultobj, o); | |
1934 | } | |
1935 | { | |
1936 | PyObject *o; | |
1937 | o = PyInt_FromLong((long) (*_arg2)); | |
1938 | _resultobj = t_output_helper(_resultobj, o); | |
1939 | } | |
1940 | return _resultobj; | |
1941 | } | |
1942 | ||
1943 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 1944 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1945 | PyObject * _resultobj; |
1946 | wxPoint * _result; | |
1947 | wxWindow * _arg0; | |
1d99702e | 1948 | PyObject * _argo0 = 0; |
efc5f224 | 1949 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1950 | char _ptemp[128]; |
1951 | ||
1952 | self = self; | |
efc5f224 | 1953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 1954 | return NULL; |
1d99702e RD |
1955 | if (_argo0) { |
1956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
1959 | return NULL; | |
1960 | } | |
1961 | } | |
cf694132 RD |
1962 | { |
1963 | wxPy_BEGIN_ALLOW_THREADS; | |
1964 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
1965 | ||
1966 | wxPy_END_ALLOW_THREADS; | |
1967 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
1968 | _resultobj = Py_BuildValue("s",_ptemp); |
1969 | return _resultobj; | |
1970 | } | |
1971 | ||
1972 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 1973 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1974 | PyObject * _resultobj; |
1975 | wxRect * _result; | |
1976 | wxWindow * _arg0; | |
1d99702e | 1977 | PyObject * _argo0 = 0; |
efc5f224 | 1978 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1979 | char _ptemp[128]; |
1980 | ||
1981 | self = self; | |
efc5f224 | 1982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 1983 | return NULL; |
1d99702e RD |
1984 | if (_argo0) { |
1985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
1988 | return NULL; | |
1989 | } | |
1990 | } | |
cf694132 RD |
1991 | { |
1992 | wxPy_BEGIN_ALLOW_THREADS; | |
1993 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
1994 | ||
1995 | wxPy_END_ALLOW_THREADS; | |
1996 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
b8b8dda7 RD |
1997 | _resultobj = Py_BuildValue("s",_ptemp); |
1998 | return _resultobj; | |
1999 | } | |
2000 | ||
8ab979d7 | 2001 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2002 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2003 | PyObject * _resultobj; |
2004 | int _result; | |
2005 | wxWindow * _arg0; | |
2006 | int _arg1; | |
1d99702e | 2007 | PyObject * _argo0 = 0; |
efc5f224 | 2008 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2009 | |
2010 | self = self; | |
efc5f224 | 2011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2012 | return NULL; |
1d99702e RD |
2013 | if (_argo0) { |
2014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2017 | return NULL; | |
2018 | } | |
2019 | } | |
cf694132 RD |
2020 | { |
2021 | wxPy_BEGIN_ALLOW_THREADS; | |
2022 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2023 | ||
2024 | wxPy_END_ALLOW_THREADS; | |
2025 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2026 | return _resultobj; |
2027 | } | |
2028 | ||
2029 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2030 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2031 | PyObject * _resultobj; |
2032 | int _result; | |
2033 | wxWindow * _arg0; | |
2034 | int _arg1; | |
1d99702e | 2035 | PyObject * _argo0 = 0; |
efc5f224 | 2036 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2037 | |
2038 | self = self; | |
efc5f224 | 2039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2040 | return NULL; |
1d99702e RD |
2041 | if (_argo0) { |
2042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2045 | return NULL; | |
2046 | } | |
2047 | } | |
cf694132 RD |
2048 | { |
2049 | wxPy_BEGIN_ALLOW_THREADS; | |
2050 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2051 | ||
2052 | wxPy_END_ALLOW_THREADS; | |
2053 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2054 | return _resultobj; |
2055 | } | |
2056 | ||
2057 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2058 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2059 | PyObject * _resultobj; |
2060 | int _result; | |
2061 | wxWindow * _arg0; | |
2062 | int _arg1; | |
1d99702e | 2063 | PyObject * _argo0 = 0; |
efc5f224 | 2064 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2065 | |
2066 | self = self; | |
efc5f224 | 2067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2068 | return NULL; |
1d99702e RD |
2069 | if (_argo0) { |
2070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2073 | return NULL; | |
2074 | } | |
2075 | } | |
cf694132 RD |
2076 | { |
2077 | wxPy_BEGIN_ALLOW_THREADS; | |
2078 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2079 | ||
2080 | wxPy_END_ALLOW_THREADS; | |
2081 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2082 | return _resultobj; |
2083 | } | |
2084 | ||
b8b8dda7 | 2085 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2086 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2087 | PyObject * _resultobj; |
2088 | wxWindow * _arg0; | |
2089 | int * _arg1; | |
2090 | int temp; | |
2091 | int * _arg2; | |
2092 | int temp0; | |
1d99702e | 2093 | PyObject * _argo0 = 0; |
efc5f224 | 2094 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2095 | |
2096 | self = self; | |
2097 | { | |
2098 | _arg1 = &temp; | |
2099 | } | |
2100 | { | |
2101 | _arg2 = &temp0; | |
2102 | } | |
efc5f224 | 2103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2104 | return NULL; |
1d99702e RD |
2105 | if (_argo0) { |
2106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2109 | return NULL; |
2110 | } | |
2111 | } | |
cf694132 RD |
2112 | { |
2113 | wxPy_BEGIN_ALLOW_THREADS; | |
2114 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2115 | ||
2116 | wxPy_END_ALLOW_THREADS; | |
2117 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2118 | _resultobj = Py_None; |
2119 | { | |
2120 | PyObject *o; | |
2121 | o = PyInt_FromLong((long) (*_arg1)); | |
2122 | _resultobj = t_output_helper(_resultobj, o); | |
2123 | } | |
2124 | { | |
2125 | PyObject *o; | |
2126 | o = PyInt_FromLong((long) (*_arg2)); | |
2127 | _resultobj = t_output_helper(_resultobj, o); | |
2128 | } | |
2129 | return _resultobj; | |
2130 | } | |
2131 | ||
b8b8dda7 | 2132 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2133 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2134 | PyObject * _resultobj; |
2135 | wxSize * _result; | |
2136 | wxWindow * _arg0; | |
1d99702e | 2137 | PyObject * _argo0 = 0; |
efc5f224 | 2138 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2139 | char _ptemp[128]; |
2140 | ||
2141 | self = self; | |
efc5f224 | 2142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2143 | return NULL; |
1d99702e RD |
2144 | if (_argo0) { |
2145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2148 | return NULL; | |
2149 | } | |
2150 | } | |
cf694132 RD |
2151 | { |
2152 | wxPy_BEGIN_ALLOW_THREADS; | |
2153 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2154 | ||
2155 | wxPy_END_ALLOW_THREADS; | |
2156 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
2157 | _resultobj = Py_BuildValue("s",_ptemp); |
2158 | return _resultobj; | |
2159 | } | |
2160 | ||
8ab979d7 | 2161 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2162 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2163 | PyObject * _resultobj; |
2164 | wxWindow * _arg0; | |
2165 | wxString * _arg1; | |
2166 | int * _arg2; | |
2167 | int temp; | |
2168 | int * _arg3; | |
2169 | int temp0; | |
1d99702e | 2170 | PyObject * _argo0 = 0; |
8ab979d7 | 2171 | PyObject * _obj1 = 0; |
efc5f224 | 2172 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2173 | |
2174 | self = self; | |
2175 | { | |
2176 | _arg2 = &temp; | |
2177 | } | |
2178 | { | |
2179 | _arg3 = &temp0; | |
2180 | } | |
efc5f224 | 2181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2182 | return NULL; |
1d99702e RD |
2183 | if (_argo0) { |
2184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2187 | return NULL; | |
2188 | } | |
2189 | } | |
2190 | { | |
2191 | if (!PyString_Check(_obj1)) { | |
2192 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2193 | return NULL; | |
2194 | } | |
cf694132 | 2195 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 2196 | } |
cf694132 RD |
2197 | { |
2198 | wxPy_BEGIN_ALLOW_THREADS; | |
2199 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2200 | ||
2201 | wxPy_END_ALLOW_THREADS; | |
2202 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2203 | _resultobj = Py_None; |
2204 | { | |
2205 | PyObject *o; | |
2206 | o = PyInt_FromLong((long) (*_arg2)); | |
2207 | _resultobj = t_output_helper(_resultobj, o); | |
2208 | } | |
2209 | { | |
2210 | PyObject *o; | |
2211 | o = PyInt_FromLong((long) (*_arg3)); | |
2212 | _resultobj = t_output_helper(_resultobj, o); | |
2213 | } | |
2214 | { | |
2215 | if (_obj1) | |
2216 | delete _arg1; | |
2217 | } | |
2218 | return _resultobj; | |
2219 | } | |
2220 | ||
af309447 | 2221 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2222 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2223 | PyObject * _resultobj; |
2224 | wxWindow * _arg0; | |
2225 | wxString * _arg1; | |
2226 | int * _arg2; | |
2227 | int temp; | |
2228 | int * _arg3; | |
2229 | int temp0; | |
2230 | int * _arg4; | |
2231 | int temp1; | |
2232 | int * _arg5; | |
2233 | int temp2; | |
1d99702e RD |
2234 | wxFont * _arg6 = (wxFont *) NULL; |
2235 | PyObject * _argo0 = 0; | |
af309447 | 2236 | PyObject * _obj1 = 0; |
1d99702e | 2237 | PyObject * _argo6 = 0; |
efc5f224 | 2238 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2239 | |
2240 | self = self; | |
2241 | { | |
2242 | _arg2 = &temp; | |
2243 | } | |
2244 | { | |
2245 | _arg3 = &temp0; | |
2246 | } | |
2247 | { | |
2248 | _arg4 = &temp1; | |
2249 | } | |
2250 | { | |
2251 | _arg5 = &temp2; | |
2252 | } | |
efc5f224 | 2253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2254 | return NULL; |
1d99702e RD |
2255 | if (_argo0) { |
2256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2259 | return NULL; | |
2260 | } | |
2261 | } | |
2262 | { | |
2263 | if (!PyString_Check(_obj1)) { | |
2264 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2265 | return NULL; | |
2266 | } | |
cf694132 | 2267 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
af309447 | 2268 | } |
1d99702e RD |
2269 | if (_argo6) { |
2270 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2271 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2273 | return NULL; | |
2274 | } | |
2275 | } | |
cf694132 RD |
2276 | { |
2277 | wxPy_BEGIN_ALLOW_THREADS; | |
2278 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2279 | ||
2280 | wxPy_END_ALLOW_THREADS; | |
2281 | } Py_INCREF(Py_None); | |
af309447 RD |
2282 | _resultobj = Py_None; |
2283 | { | |
2284 | PyObject *o; | |
2285 | o = PyInt_FromLong((long) (*_arg2)); | |
2286 | _resultobj = t_output_helper(_resultobj, o); | |
2287 | } | |
2288 | { | |
2289 | PyObject *o; | |
2290 | o = PyInt_FromLong((long) (*_arg3)); | |
2291 | _resultobj = t_output_helper(_resultobj, o); | |
2292 | } | |
2293 | { | |
2294 | PyObject *o; | |
2295 | o = PyInt_FromLong((long) (*_arg4)); | |
2296 | _resultobj = t_output_helper(_resultobj, o); | |
2297 | } | |
2298 | { | |
2299 | PyObject *o; | |
2300 | o = PyInt_FromLong((long) (*_arg5)); | |
2301 | _resultobj = t_output_helper(_resultobj, o); | |
2302 | } | |
2303 | { | |
2304 | if (_obj1) | |
2305 | delete _arg1; | |
2306 | } | |
2307 | return _resultobj; | |
2308 | } | |
2309 | ||
8ab979d7 | 2310 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2311 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2312 | PyObject * _resultobj; |
2313 | wxString * _result; | |
2314 | wxWindow * _arg0; | |
1d99702e | 2315 | PyObject * _argo0 = 0; |
efc5f224 | 2316 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2317 | |
2318 | self = self; | |
efc5f224 | 2319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2320 | return NULL; |
1d99702e RD |
2321 | if (_argo0) { |
2322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2325 | return NULL; | |
2326 | } | |
2327 | } | |
8ab979d7 | 2328 | { |
cf694132 RD |
2329 | wxPy_BEGIN_ALLOW_THREADS; |
2330 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2331 | ||
2332 | wxPy_END_ALLOW_THREADS; | |
2333 | }{ | |
8ab979d7 RD |
2334 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
2335 | } | |
2336 | { | |
2337 | delete _result; | |
2338 | } | |
2339 | return _resultobj; | |
2340 | } | |
2341 | ||
8bf5d46e | 2342 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2343 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2344 | PyObject * _resultobj; |
2345 | wxRegion * _result; | |
2346 | wxWindow * _arg0; | |
1d99702e | 2347 | PyObject * _argo0 = 0; |
efc5f224 | 2348 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2349 | char _ptemp[128]; |
2350 | ||
2351 | self = self; | |
efc5f224 | 2352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2353 | return NULL; |
1d99702e RD |
2354 | if (_argo0) { |
2355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2358 | return NULL; | |
2359 | } | |
2360 | } | |
2361 | { | |
2362 | wxPy_BEGIN_ALLOW_THREADS; | |
2363 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2364 | ||
2365 | wxPy_END_ALLOW_THREADS; | |
2366 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); | |
2367 | _resultobj = Py_BuildValue("s",_ptemp); | |
2368 | return _resultobj; | |
2369 | } | |
2370 | ||
8ab979d7 | 2371 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2372 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2373 | PyObject * _resultobj; |
2374 | long _result; | |
2375 | wxWindow * _arg0; | |
1d99702e | 2376 | PyObject * _argo0 = 0; |
efc5f224 | 2377 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2378 | |
2379 | self = self; | |
efc5f224 | 2380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2381 | return NULL; |
1d99702e RD |
2382 | if (_argo0) { |
2383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2386 | return NULL; | |
2387 | } | |
2388 | } | |
cf694132 RD |
2389 | { |
2390 | wxPy_BEGIN_ALLOW_THREADS; | |
2391 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2392 | ||
2393 | wxPy_END_ALLOW_THREADS; | |
2394 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2395 | return _resultobj; |
2396 | } | |
2397 | ||
bb0054cd | 2398 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2399 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2400 | PyObject * _resultobj; |
2401 | bool _result; | |
2402 | wxWindow * _arg0; | |
1d99702e | 2403 | PyObject * _argo0 = 0; |
efc5f224 | 2404 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2405 | |
2406 | self = self; | |
efc5f224 | 2407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2408 | return NULL; |
1d99702e RD |
2409 | if (_argo0) { |
2410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2413 | return NULL; | |
2414 | } | |
2415 | } | |
2416 | { | |
2417 | wxPy_BEGIN_ALLOW_THREADS; | |
2418 | _result = (bool )wxWindow_Hide(_arg0); | |
2419 | ||
2420 | wxPy_END_ALLOW_THREADS; | |
2421 | } _resultobj = Py_BuildValue("i",_result); | |
2422 | return _resultobj; | |
2423 | } | |
2424 | ||
8ab979d7 | 2425 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2426 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2427 | PyObject * _resultobj; |
2428 | wxWindow * _arg0; | |
1d99702e | 2429 | PyObject * _argo0 = 0; |
efc5f224 | 2430 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2431 | |
2432 | self = self; | |
efc5f224 | 2433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2434 | return NULL; |
1d99702e RD |
2435 | if (_argo0) { |
2436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2439 | return NULL; | |
2440 | } | |
2441 | } | |
cf694132 RD |
2442 | { |
2443 | wxPy_BEGIN_ALLOW_THREADS; | |
2444 | wxWindow_InitDialog(_arg0); | |
2445 | ||
2446 | wxPy_END_ALLOW_THREADS; | |
2447 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2448 | _resultobj = Py_None; |
2449 | return _resultobj; | |
2450 | } | |
2451 | ||
2452 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2453 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2454 | PyObject * _resultobj; |
2455 | bool _result; | |
2456 | wxWindow * _arg0; | |
1d99702e | 2457 | PyObject * _argo0 = 0; |
efc5f224 | 2458 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2459 | |
2460 | self = self; | |
efc5f224 | 2461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2462 | return NULL; |
1d99702e RD |
2463 | if (_argo0) { |
2464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2467 | return NULL; | |
2468 | } | |
2469 | } | |
cf694132 RD |
2470 | { |
2471 | wxPy_BEGIN_ALLOW_THREADS; | |
2472 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2473 | ||
2474 | wxPy_END_ALLOW_THREADS; | |
2475 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2476 | return _resultobj; |
2477 | } | |
2478 | ||
1b55cabf RD |
2479 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2480 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2481 | PyObject * _resultobj; | |
2482 | bool _result; | |
2483 | wxWindow * _arg0; | |
2484 | int _arg1; | |
2485 | int _arg2; | |
2486 | int _arg3 = (int ) 0; | |
2487 | int _arg4 = (int ) 0; | |
2488 | PyObject * _argo0 = 0; | |
2489 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2490 | ||
2491 | self = self; | |
2492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2493 | return NULL; | |
2494 | if (_argo0) { | |
2495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2498 | return NULL; | |
2499 | } | |
2500 | } | |
2501 | { | |
2502 | wxPy_BEGIN_ALLOW_THREADS; | |
2503 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2504 | ||
2505 | wxPy_END_ALLOW_THREADS; | |
2506 | } _resultobj = Py_BuildValue("i",_result); | |
2507 | return _resultobj; | |
2508 | } | |
2509 | ||
2510 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2511 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2512 | PyObject * _resultobj; | |
2513 | bool _result; | |
2514 | wxWindow * _arg0; | |
2515 | wxPoint * _arg1; | |
2516 | PyObject * _argo0 = 0; | |
2517 | wxPoint temp; | |
2518 | PyObject * _obj1 = 0; | |
2519 | char *_kwnames[] = { "self","pt", NULL }; | |
2520 | ||
2521 | self = self; | |
2522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2523 | return NULL; | |
2524 | if (_argo0) { | |
2525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2528 | return NULL; | |
2529 | } | |
2530 | } | |
2531 | { | |
2532 | _arg1 = &temp; | |
2533 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2534 | return NULL; | |
2535 | } | |
2536 | { | |
2537 | wxPy_BEGIN_ALLOW_THREADS; | |
2538 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2539 | ||
2540 | wxPy_END_ALLOW_THREADS; | |
2541 | } _resultobj = Py_BuildValue("i",_result); | |
2542 | return _resultobj; | |
2543 | } | |
2544 | ||
2545 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2546 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2547 | PyObject * _resultobj; | |
2548 | bool _result; | |
2549 | wxWindow * _arg0; | |
2550 | wxRect * _arg1; | |
2551 | PyObject * _argo0 = 0; | |
2552 | wxRect temp; | |
2553 | PyObject * _obj1 = 0; | |
2554 | char *_kwnames[] = { "self","rect", NULL }; | |
2555 | ||
2556 | self = self; | |
2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2558 | return NULL; | |
2559 | if (_argo0) { | |
2560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2563 | return NULL; | |
2564 | } | |
2565 | } | |
2566 | { | |
2567 | _arg1 = &temp; | |
2568 | if (! wxRect_helper(_obj1, &_arg1)) | |
2569 | return NULL; | |
2570 | } | |
2571 | { | |
2572 | wxPy_BEGIN_ALLOW_THREADS; | |
2573 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2574 | ||
2575 | wxPy_END_ALLOW_THREADS; | |
2576 | } _resultobj = Py_BuildValue("i",_result); | |
2577 | return _resultobj; | |
2578 | } | |
2579 | ||
8ab979d7 | 2580 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 2581 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2582 | PyObject * _resultobj; |
2583 | bool _result; | |
2584 | wxWindow * _arg0; | |
1d99702e | 2585 | PyObject * _argo0 = 0; |
efc5f224 | 2586 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2587 | |
2588 | self = self; | |
efc5f224 | 2589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 2590 | return NULL; |
1d99702e RD |
2591 | if (_argo0) { |
2592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
2595 | return NULL; | |
2596 | } | |
2597 | } | |
cf694132 RD |
2598 | { |
2599 | wxPy_BEGIN_ALLOW_THREADS; | |
2600 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2601 | ||
2602 | wxPy_END_ALLOW_THREADS; | |
2603 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2604 | return _resultobj; |
2605 | } | |
2606 | ||
2607 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 2608 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2609 | PyObject * _resultobj; |
2610 | bool _result; | |
2611 | wxWindow * _arg0; | |
1d99702e | 2612 | PyObject * _argo0 = 0; |
efc5f224 | 2613 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2614 | |
2615 | self = self; | |
efc5f224 | 2616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 2617 | return NULL; |
1d99702e RD |
2618 | if (_argo0) { |
2619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
2622 | return NULL; | |
2623 | } | |
2624 | } | |
cf694132 RD |
2625 | { |
2626 | wxPy_BEGIN_ALLOW_THREADS; | |
2627 | _result = (bool )wxWindow_IsShown(_arg0); | |
2628 | ||
2629 | wxPy_END_ALLOW_THREADS; | |
2630 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2631 | return _resultobj; |
2632 | } | |
2633 | ||
bb0054cd | 2634 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 2635 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2636 | PyObject * _resultobj; |
2637 | bool _result; | |
2638 | wxWindow * _arg0; | |
1d99702e | 2639 | PyObject * _argo0 = 0; |
efc5f224 | 2640 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2641 | |
2642 | self = self; | |
efc5f224 | 2643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 2644 | return NULL; |
1d99702e RD |
2645 | if (_argo0) { |
2646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
2649 | return NULL; | |
2650 | } | |
2651 | } | |
2652 | { | |
2653 | wxPy_BEGIN_ALLOW_THREADS; | |
2654 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2655 | ||
2656 | wxPy_END_ALLOW_THREADS; | |
2657 | } _resultobj = Py_BuildValue("i",_result); | |
2658 | return _resultobj; | |
2659 | } | |
2660 | ||
8ab979d7 | 2661 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 2662 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2663 | PyObject * _resultobj; |
2664 | wxWindow * _arg0; | |
1d99702e | 2665 | PyObject * _argo0 = 0; |
efc5f224 | 2666 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2667 | |
2668 | self = self; | |
efc5f224 | 2669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 2670 | return NULL; |
1d99702e RD |
2671 | if (_argo0) { |
2672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
2675 | return NULL; | |
2676 | } | |
2677 | } | |
cf694132 RD |
2678 | { |
2679 | wxPy_BEGIN_ALLOW_THREADS; | |
2680 | wxWindow_Layout(_arg0); | |
2681 | ||
2682 | wxPy_END_ALLOW_THREADS; | |
2683 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2684 | _resultobj = Py_None; |
2685 | return _resultobj; | |
2686 | } | |
2687 | ||
2688 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2689 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2690 | PyObject * _resultobj; |
2691 | bool _result; | |
2692 | wxWindow * _arg0; | |
2693 | wxWindow * _arg1; | |
2694 | wxString * _arg2; | |
1d99702e RD |
2695 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
2696 | PyObject * _argo0 = 0; | |
2697 | PyObject * _argo1 = 0; | |
8ab979d7 | 2698 | PyObject * _obj2 = 0; |
1d99702e | 2699 | PyObject * _argo3 = 0; |
efc5f224 | 2700 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
2701 | |
2702 | self = self; | |
efc5f224 | 2703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 2704 | return NULL; |
1d99702e RD |
2705 | if (_argo0) { |
2706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
2709 | return NULL; | |
2710 | } | |
2711 | } | |
1d99702e RD |
2712 | if (_argo1) { |
2713 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2714 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
2715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
2716 | return NULL; | |
2717 | } | |
2718 | } | |
2719 | { | |
2720 | if (!PyString_Check(_obj2)) { | |
2721 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2722 | return NULL; | |
2723 | } | |
cf694132 | 2724 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 2725 | } |
1d99702e RD |
2726 | if (_argo3) { |
2727 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
2728 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
2729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
2730 | return NULL; | |
2731 | } | |
2732 | } | |
cf694132 RD |
2733 | { |
2734 | wxPy_BEGIN_ALLOW_THREADS; | |
2735 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
2736 | ||
2737 | wxPy_END_ALLOW_THREADS; | |
2738 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2739 | { |
2740 | if (_obj2) | |
2741 | delete _arg2; | |
2742 | } | |
2743 | return _resultobj; | |
2744 | } | |
2745 | ||
2746 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 2747 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2748 | PyObject * _resultobj; |
2749 | wxWindow * _arg0; | |
1d99702e | 2750 | PyObject * _argo0 = 0; |
efc5f224 | 2751 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2752 | |
2753 | self = self; | |
efc5f224 | 2754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 2755 | return NULL; |
1d99702e RD |
2756 | if (_argo0) { |
2757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
2760 | return NULL; | |
2761 | } | |
2762 | } | |
cf694132 RD |
2763 | { |
2764 | wxPy_BEGIN_ALLOW_THREADS; | |
2765 | wxWindow_Lower(_arg0); | |
2766 | ||
2767 | wxPy_END_ALLOW_THREADS; | |
2768 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2769 | _resultobj = Py_None; |
2770 | return _resultobj; | |
2771 | } | |
2772 | ||
2773 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 2774 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2775 | PyObject * _resultobj; |
2776 | wxWindow * _arg0; | |
2777 | bool _arg1; | |
1d99702e | 2778 | PyObject * _argo0 = 0; |
8ab979d7 | 2779 | int tempbool1; |
efc5f224 | 2780 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
2781 | |
2782 | self = self; | |
efc5f224 | 2783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2784 | return NULL; |
1d99702e RD |
2785 | if (_argo0) { |
2786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
2789 | return NULL; | |
2790 | } | |
2791 | } | |
2792 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
2793 | { |
2794 | wxPy_BEGIN_ALLOW_THREADS; | |
2795 | wxWindow_MakeModal(_arg0,_arg1); | |
2796 | ||
2797 | wxPy_END_ALLOW_THREADS; | |
2798 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2799 | _resultobj = Py_None; |
2800 | return _resultobj; | |
2801 | } | |
2802 | ||
af309447 | 2803 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 2804 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2805 | PyObject * _resultobj; |
2806 | wxWindow * _arg0; | |
2807 | int _arg1; | |
2808 | int _arg2; | |
1d99702e | 2809 | PyObject * _argo0 = 0; |
efc5f224 | 2810 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
2811 | |
2812 | self = self; | |
efc5f224 | 2813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 2814 | return NULL; |
1d99702e RD |
2815 | if (_argo0) { |
2816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
2819 | return NULL; | |
2820 | } | |
2821 | } | |
cf694132 RD |
2822 | { |
2823 | wxPy_BEGIN_ALLOW_THREADS; | |
2824 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
2825 | ||
2826 | wxPy_END_ALLOW_THREADS; | |
2827 | } Py_INCREF(Py_None); | |
af309447 RD |
2828 | _resultobj = Py_None; |
2829 | return _resultobj; | |
2830 | } | |
2831 | ||
2832 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
efc5f224 | 2833 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2834 | PyObject * _resultobj; |
2835 | wxWindow * _arg0; | |
2836 | wxPoint * _arg1; | |
1d99702e | 2837 | PyObject * _argo0 = 0; |
2f90df85 RD |
2838 | wxPoint temp; |
2839 | PyObject * _obj1 = 0; | |
efc5f224 | 2840 | char *_kwnames[] = { "self","point", NULL }; |
af309447 RD |
2841 | |
2842 | self = self; | |
2f90df85 | 2843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2844 | return NULL; |
1d99702e RD |
2845 | if (_argo0) { |
2846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
2849 | return NULL; | |
2850 | } | |
2851 | } | |
2f90df85 RD |
2852 | { |
2853 | _arg1 = &temp; | |
2854 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 2855 | return NULL; |
2f90df85 | 2856 | } |
cf694132 RD |
2857 | { |
2858 | wxPy_BEGIN_ALLOW_THREADS; | |
2859 | wxWindow_Move(_arg0,*_arg1); | |
2860 | ||
2861 | wxPy_END_ALLOW_THREADS; | |
2862 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2863 | _resultobj = Py_None; |
2864 | return _resultobj; | |
2865 | } | |
2866 | ||
1afc06c2 RD |
2867 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
2868 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2869 | PyObject * _resultobj; | |
2870 | wxEvtHandler * _result; | |
2871 | wxWindow * _arg0; | |
2872 | bool _arg1 = (bool ) FALSE; | |
2873 | PyObject * _argo0 = 0; | |
2874 | int tempbool1 = (int) FALSE; | |
2875 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
2876 | char _ptemp[128]; | |
2877 | ||
2878 | self = self; | |
2879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
2880 | return NULL; | |
2881 | if (_argo0) { | |
2882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
2885 | return NULL; | |
2886 | } | |
2887 | } | |
2888 | _arg1 = (bool ) tempbool1; | |
2889 | { | |
2890 | wxPy_BEGIN_ALLOW_THREADS; | |
2891 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
2892 | ||
2893 | wxPy_END_ALLOW_THREADS; | |
2894 | } if (_result) { | |
2895 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
2896 | _resultobj = Py_BuildValue("s",_ptemp); | |
2897 | } else { | |
2898 | Py_INCREF(Py_None); | |
2899 | _resultobj = Py_None; | |
2900 | } | |
2901 | return _resultobj; | |
2902 | } | |
2903 | ||
2904 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
2905 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2906 | PyObject * _resultobj; | |
2907 | wxWindow * _arg0; | |
2908 | wxEvtHandler * _arg1; | |
2909 | PyObject * _argo0 = 0; | |
2910 | PyObject * _argo1 = 0; | |
2911 | char *_kwnames[] = { "self","handler", NULL }; | |
2912 | ||
2913 | self = self; | |
2914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
2915 | return NULL; | |
2916 | if (_argo0) { | |
2917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
2920 | return NULL; | |
2921 | } | |
2922 | } | |
2923 | if (_argo1) { | |
2924 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2925 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
2926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
2927 | return NULL; | |
2928 | } | |
2929 | } | |
2930 | { | |
2931 | wxPy_BEGIN_ALLOW_THREADS; | |
2932 | wxWindow_PushEventHandler(_arg0,_arg1); | |
2933 | ||
2934 | wxPy_END_ALLOW_THREADS; | |
2935 | } Py_INCREF(Py_None); | |
2936 | _resultobj = Py_None; | |
2937 | return _resultobj; | |
2938 | } | |
2939 | ||
8bf5d46e | 2940 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2941 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2942 | PyObject * _resultobj; |
2943 | bool _result; | |
2944 | wxWindow * _arg0; | |
2945 | wxMenu * _arg1; | |
2946 | int _arg2; | |
2947 | int _arg3; | |
1d99702e RD |
2948 | PyObject * _argo0 = 0; |
2949 | PyObject * _argo1 = 0; | |
efc5f224 | 2950 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
2951 | |
2952 | self = self; | |
efc5f224 | 2953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 2954 | return NULL; |
1d99702e RD |
2955 | if (_argo0) { |
2956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
2959 | return NULL; | |
2960 | } | |
2961 | } | |
1d99702e RD |
2962 | if (_argo1) { |
2963 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2964 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
2965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
2966 | return NULL; | |
2967 | } | |
2968 | } | |
2969 | { | |
2970 | wxPy_BEGIN_ALLOW_THREADS; | |
2971 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
2972 | ||
2973 | wxPy_END_ALLOW_THREADS; | |
2974 | } _resultobj = Py_BuildValue("i",_result); | |
2975 | return _resultobj; | |
2976 | } | |
2977 | ||
2978 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 2979 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2980 | PyObject * _resultobj; |
2981 | bool _result; | |
2982 | wxWindow * _arg0; | |
2983 | wxMenu * _arg1; | |
2984 | wxPoint * _arg2; | |
1d99702e RD |
2985 | PyObject * _argo0 = 0; |
2986 | PyObject * _argo1 = 0; | |
2f90df85 RD |
2987 | wxPoint temp; |
2988 | PyObject * _obj2 = 0; | |
efc5f224 | 2989 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
2990 | |
2991 | self = self; | |
2f90df85 | 2992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 2993 | return NULL; |
1d99702e RD |
2994 | if (_argo0) { |
2995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
2998 | return NULL; | |
2999 | } | |
3000 | } | |
1d99702e RD |
3001 | if (_argo1) { |
3002 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3003 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3005 | return NULL; | |
3006 | } | |
3007 | } | |
2f90df85 RD |
3008 | { |
3009 | _arg2 = &temp; | |
3010 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3011 | return NULL; |
2f90df85 | 3012 | } |
cf694132 RD |
3013 | { |
3014 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 3015 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 RD |
3016 | |
3017 | wxPy_END_ALLOW_THREADS; | |
3018 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3019 | return _resultobj; |
3020 | } | |
3021 | ||
3022 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3023 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3024 | PyObject * _resultobj; |
3025 | wxWindow * _arg0; | |
1d99702e | 3026 | PyObject * _argo0 = 0; |
efc5f224 | 3027 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3028 | |
3029 | self = self; | |
efc5f224 | 3030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3031 | return NULL; |
1d99702e RD |
3032 | if (_argo0) { |
3033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3036 | return NULL; | |
3037 | } | |
3038 | } | |
cf694132 RD |
3039 | { |
3040 | wxPy_BEGIN_ALLOW_THREADS; | |
3041 | wxWindow_Raise(_arg0); | |
3042 | ||
3043 | wxPy_END_ALLOW_THREADS; | |
3044 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3045 | _resultobj = Py_None; |
3046 | return _resultobj; | |
3047 | } | |
3048 | ||
3049 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3050 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3051 | PyObject * _resultobj; |
3052 | wxWindow * _arg0; | |
1d99702e RD |
3053 | bool _arg1 = (bool ) TRUE; |
3054 | wxRect * _arg2 = (wxRect *) NULL; | |
3055 | PyObject * _argo0 = 0; | |
3056 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3057 | wxRect temp; |
3058 | PyObject * _obj2 = 0; | |
efc5f224 | 3059 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3060 | |
3061 | self = self; | |
2f90df85 | 3062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3063 | return NULL; |
1d99702e RD |
3064 | if (_argo0) { |
3065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3068 | return NULL; | |
3069 | } | |
3070 | } | |
3071 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3072 | if (_obj2) |
3073 | { | |
3074 | _arg2 = &temp; | |
3075 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3076 | return NULL; |
2f90df85 | 3077 | } |
cf694132 RD |
3078 | { |
3079 | wxPy_BEGIN_ALLOW_THREADS; | |
3080 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3081 | ||
3082 | wxPy_END_ALLOW_THREADS; | |
3083 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3084 | _resultobj = Py_None; |
3085 | return _resultobj; | |
3086 | } | |
3087 | ||
3088 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
efc5f224 | 3089 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3090 | PyObject * _resultobj; |
3091 | wxWindow * _arg0; | |
1d99702e | 3092 | PyObject * _argo0 = 0; |
efc5f224 | 3093 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3094 | |
3095 | self = self; | |
efc5f224 | 3096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3097 | return NULL; |
1d99702e RD |
3098 | if (_argo0) { |
3099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3102 | return NULL; | |
3103 | } | |
3104 | } | |
cf694132 RD |
3105 | { |
3106 | wxPy_BEGIN_ALLOW_THREADS; | |
3107 | wxWindow_ReleaseMouse(_arg0); | |
3108 | ||
3109 | wxPy_END_ALLOW_THREADS; | |
3110 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3111 | _resultobj = Py_None; |
3112 | return _resultobj; | |
3113 | } | |
3114 | ||
bb0054cd | 3115 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3116 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3117 | PyObject * _resultobj; |
3118 | bool _result; | |
3119 | wxWindow * _arg0; | |
3120 | wxWindow * _arg1; | |
1d99702e RD |
3121 | PyObject * _argo0 = 0; |
3122 | PyObject * _argo1 = 0; | |
efc5f224 | 3123 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3124 | |
3125 | self = self; | |
efc5f224 | 3126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3127 | return NULL; |
1d99702e RD |
3128 | if (_argo0) { |
3129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3132 | return NULL; | |
3133 | } | |
3134 | } | |
1d99702e RD |
3135 | if (_argo1) { |
3136 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3137 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3139 | return NULL; | |
3140 | } | |
3141 | } | |
3142 | { | |
3143 | wxPy_BEGIN_ALLOW_THREADS; | |
3144 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3145 | ||
3146 | wxPy_END_ALLOW_THREADS; | |
3147 | } _resultobj = Py_BuildValue("i",_result); | |
3148 | return _resultobj; | |
3149 | } | |
3150 | ||
af309447 | 3151 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3152 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3153 | PyObject * _resultobj; |
3154 | wxWindow * _arg0; | |
3155 | int * _arg1; | |
3156 | int * _arg2; | |
1d99702e | 3157 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3158 | int temp; |
3159 | PyObject * _obj1 = 0; | |
3160 | int temp0; | |
3161 | PyObject * _obj2 = 0; | |
efc5f224 | 3162 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3163 | |
3164 | self = self; | |
efc5f224 | 3165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3166 | return NULL; |
1d99702e RD |
3167 | if (_argo0) { |
3168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3171 | return NULL; |
3172 | } | |
3173 | } | |
3174 | { | |
3175 | temp = (int) PyInt_AsLong(_obj1); | |
3176 | _arg1 = &temp; | |
3177 | } | |
3178 | { | |
3179 | temp0 = (int) PyInt_AsLong(_obj2); | |
3180 | _arg2 = &temp0; | |
3181 | } | |
cf694132 RD |
3182 | { |
3183 | wxPy_BEGIN_ALLOW_THREADS; | |
3184 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3185 | ||
3186 | wxPy_END_ALLOW_THREADS; | |
3187 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3188 | _resultobj = Py_None; |
3189 | { | |
3190 | PyObject *o; | |
3191 | o = PyInt_FromLong((long) (*_arg1)); | |
3192 | _resultobj = t_output_helper(_resultobj, o); | |
3193 | } | |
3194 | { | |
3195 | PyObject *o; | |
3196 | o = PyInt_FromLong((long) (*_arg2)); | |
3197 | _resultobj = t_output_helper(_resultobj, o); | |
3198 | } | |
3199 | return _resultobj; | |
3200 | } | |
3201 | ||
af309447 | 3202 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3203 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3204 | PyObject * _resultobj; |
3205 | wxPoint * _result; | |
3206 | wxWindow * _arg0; | |
3207 | wxPoint * _arg1; | |
1d99702e | 3208 | PyObject * _argo0 = 0; |
2f90df85 RD |
3209 | wxPoint temp; |
3210 | PyObject * _obj1 = 0; | |
efc5f224 | 3211 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3212 | char _ptemp[128]; |
3213 | ||
3214 | self = self; | |
2f90df85 | 3215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3216 | return NULL; |
1d99702e RD |
3217 | if (_argo0) { |
3218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3221 | return NULL; | |
3222 | } | |
3223 | } | |
2f90df85 RD |
3224 | { |
3225 | _arg1 = &temp; | |
3226 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3227 | return NULL; |
2f90df85 | 3228 | } |
cf694132 RD |
3229 | { |
3230 | wxPy_BEGIN_ALLOW_THREADS; | |
3231 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3232 | ||
3233 | wxPy_END_ALLOW_THREADS; | |
3234 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
af309447 RD |
3235 | _resultobj = Py_BuildValue("s",_ptemp); |
3236 | return _resultobj; | |
3237 | } | |
3238 | ||
8ab979d7 | 3239 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3240 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3241 | PyObject * _resultobj; |
3242 | wxWindow * _arg0; | |
3243 | int _arg1; | |
3244 | int _arg2; | |
1d99702e RD |
3245 | wxRect * _arg3 = (wxRect *) NULL; |
3246 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3247 | wxRect temp; |
3248 | PyObject * _obj3 = 0; | |
efc5f224 | 3249 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3250 | |
3251 | self = self; | |
2f90df85 | 3252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3253 | return NULL; |
1d99702e RD |
3254 | if (_argo0) { |
3255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3258 | return NULL; | |
3259 | } | |
3260 | } | |
2f90df85 RD |
3261 | if (_obj3) |
3262 | { | |
3263 | _arg3 = &temp; | |
3264 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3265 | return NULL; |
2f90df85 | 3266 | } |
cf694132 RD |
3267 | { |
3268 | wxPy_BEGIN_ALLOW_THREADS; | |
3269 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3270 | ||
3271 | wxPy_END_ALLOW_THREADS; | |
3272 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3273 | _resultobj = Py_None; |
3274 | return _resultobj; | |
3275 | } | |
3276 | ||
b8b8dda7 | 3277 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
efc5f224 | 3278 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
3279 | PyObject * _resultobj; |
3280 | wxWindow * _arg0; | |
3281 | wxAcceleratorTable * _arg1; | |
1d99702e RD |
3282 | PyObject * _argo0 = 0; |
3283 | PyObject * _argo1 = 0; | |
efc5f224 | 3284 | char *_kwnames[] = { "self","accel", NULL }; |
b8b8dda7 RD |
3285 | |
3286 | self = self; | |
efc5f224 | 3287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 3288 | return NULL; |
1d99702e RD |
3289 | if (_argo0) { |
3290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
3292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); |
3293 | return NULL; | |
3294 | } | |
3295 | } | |
1d99702e RD |
3296 | if (_argo1) { |
3297 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3298 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
b8b8dda7 RD |
3299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
3300 | return NULL; | |
3301 | } | |
3302 | } | |
cf694132 RD |
3303 | { |
3304 | wxPy_BEGIN_ALLOW_THREADS; | |
3305 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
3306 | ||
3307 | wxPy_END_ALLOW_THREADS; | |
3308 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
3309 | _resultobj = Py_None; |
3310 | return _resultobj; | |
3311 | } | |
3312 | ||
8ab979d7 | 3313 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) |
efc5f224 | 3314 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3315 | PyObject * _resultobj; |
3316 | wxWindow * _arg0; | |
3317 | bool _arg1; | |
1d99702e | 3318 | PyObject * _argo0 = 0; |
8ab979d7 | 3319 | int tempbool1; |
efc5f224 | 3320 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3321 | |
3322 | self = self; | |
efc5f224 | 3323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3324 | return NULL; |
1d99702e RD |
3325 | if (_argo0) { |
3326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3329 | return NULL; | |
3330 | } | |
3331 | } | |
3332 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3333 | { |
3334 | wxPy_BEGIN_ALLOW_THREADS; | |
3335 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3336 | ||
3337 | wxPy_END_ALLOW_THREADS; | |
3338 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3339 | _resultobj = Py_None; |
3340 | return _resultobj; | |
3341 | } | |
3342 | ||
9d8bd15f RD |
3343 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3344 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3345 | PyObject * _resultobj; | |
3346 | bool _result; | |
3347 | wxWindow * _arg0; | |
3348 | PyObject * _argo0 = 0; | |
3349 | char *_kwnames[] = { "self", NULL }; | |
3350 | ||
3351 | self = self; | |
3352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3353 | return NULL; | |
3354 | if (_argo0) { | |
3355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3358 | return NULL; | |
3359 | } | |
3360 | } | |
3361 | { | |
3362 | wxPy_BEGIN_ALLOW_THREADS; | |
3363 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3364 | ||
3365 | wxPy_END_ALLOW_THREADS; | |
3366 | } _resultobj = Py_BuildValue("i",_result); | |
3367 | return _resultobj; | |
3368 | } | |
3369 | ||
8ab979d7 | 3370 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3371 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3372 | PyObject * _resultobj; |
3373 | wxWindow * _arg0; | |
3374 | wxColour * _arg1; | |
1d99702e RD |
3375 | PyObject * _argo0 = 0; |
3376 | PyObject * _argo1 = 0; | |
efc5f224 | 3377 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3378 | |
3379 | self = self; | |
efc5f224 | 3380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3381 | return NULL; |
1d99702e RD |
3382 | if (_argo0) { |
3383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3386 | return NULL; | |
3387 | } | |
3388 | } | |
1d99702e RD |
3389 | if (_argo1) { |
3390 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3391 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | |
8ab979d7 RD |
3392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetBackgroundColour. Expected _wxColour_p."); |
3393 | return NULL; | |
3394 | } | |
3395 | } | |
cf694132 RD |
3396 | { |
3397 | wxPy_BEGIN_ALLOW_THREADS; | |
3398 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3399 | ||
3400 | wxPy_END_ALLOW_THREADS; | |
3401 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3402 | _resultobj = Py_None; |
3403 | return _resultobj; | |
3404 | } | |
3405 | ||
3406 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3407 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3408 | PyObject * _resultobj; |
3409 | wxWindow * _arg0; | |
3410 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3411 | PyObject * _argo0 = 0; |
3412 | PyObject * _argo1 = 0; | |
efc5f224 | 3413 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3414 | |
3415 | self = self; | |
efc5f224 | 3416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3417 | return NULL; |
1d99702e RD |
3418 | if (_argo0) { |
3419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3422 | return NULL; | |
3423 | } | |
3424 | } | |
1d99702e RD |
3425 | if (_argo1) { |
3426 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3427 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3429 | return NULL; | |
3430 | } | |
3431 | } | |
cf694132 RD |
3432 | { |
3433 | wxPy_BEGIN_ALLOW_THREADS; | |
3434 | wxWindow_SetConstraints(_arg0,_arg1); | |
3435 | ||
3436 | wxPy_END_ALLOW_THREADS; | |
3437 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3438 | _resultobj = Py_None; |
3439 | return _resultobj; | |
3440 | } | |
3441 | ||
2f90df85 RD |
3442 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3443 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3444 | PyObject * _resultobj; | |
3445 | wxWindow * _arg0; | |
3446 | wxLayoutConstraints * _arg1; | |
3447 | PyObject * _argo0 = 0; | |
3448 | PyObject * _argo1 = 0; | |
3449 | char *_kwnames[] = { "self","constraints", NULL }; | |
3450 | ||
3451 | self = self; | |
3452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3453 | return NULL; | |
3454 | if (_argo0) { | |
3455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3458 | return NULL; | |
3459 | } | |
3460 | } | |
3461 | if (_argo1) { | |
3462 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3463 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3465 | return NULL; | |
3466 | } | |
3467 | } | |
3468 | { | |
3469 | wxPy_BEGIN_ALLOW_THREADS; | |
3470 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3471 | ||
3472 | wxPy_END_ALLOW_THREADS; | |
3473 | } Py_INCREF(Py_None); | |
3474 | _resultobj = Py_None; | |
3475 | return _resultobj; | |
3476 | } | |
3477 | ||
8ab979d7 | 3478 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3479 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3480 | PyObject * _resultobj; |
3481 | wxWindow * _arg0; | |
1d99702e | 3482 | PyObject * _argo0 = 0; |
efc5f224 | 3483 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3484 | |
3485 | self = self; | |
efc5f224 | 3486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3487 | return NULL; |
1d99702e RD |
3488 | if (_argo0) { |
3489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3492 | return NULL; | |
3493 | } | |
3494 | } | |
cf694132 RD |
3495 | { |
3496 | wxPy_BEGIN_ALLOW_THREADS; | |
3497 | wxWindow_SetFocus(_arg0); | |
3498 | ||
3499 | wxPy_END_ALLOW_THREADS; | |
3500 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3501 | _resultobj = Py_None; |
3502 | return _resultobj; | |
3503 | } | |
3504 | ||
2f90df85 RD |
3505 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3506 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3507 | PyObject * _resultobj; | |
3508 | bool _result; | |
3509 | wxWindow * _arg0; | |
3510 | PyObject * _argo0 = 0; | |
3511 | char *_kwnames[] = { "self", NULL }; | |
3512 | ||
3513 | self = self; | |
3514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3515 | return NULL; | |
3516 | if (_argo0) { | |
3517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3520 | return NULL; | |
3521 | } | |
3522 | } | |
3523 | { | |
3524 | wxPy_BEGIN_ALLOW_THREADS; | |
3525 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3526 | ||
3527 | wxPy_END_ALLOW_THREADS; | |
3528 | } _resultobj = Py_BuildValue("i",_result); | |
3529 | return _resultobj; | |
3530 | } | |
3531 | ||
8ab979d7 | 3532 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 3533 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3534 | PyObject * _resultobj; |
3535 | wxWindow * _arg0; | |
3536 | wxFont * _arg1; | |
1d99702e RD |
3537 | PyObject * _argo0 = 0; |
3538 | PyObject * _argo1 = 0; | |
efc5f224 | 3539 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
3540 | |
3541 | self = self; | |
efc5f224 | 3542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3543 | return NULL; |
1d99702e RD |
3544 | if (_argo0) { |
3545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3548 | return NULL; | |
3549 | } | |
3550 | } | |
1d99702e RD |
3551 | if (_argo1) { |
3552 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3553 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
3554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3555 | return NULL; | |
3556 | } | |
3557 | } | |
cf694132 RD |
3558 | { |
3559 | wxPy_BEGIN_ALLOW_THREADS; | |
3560 | wxWindow_SetFont(_arg0,*_arg1); | |
3561 | ||
3562 | wxPy_END_ALLOW_THREADS; | |
3563 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3564 | _resultobj = Py_None; |
3565 | return _resultobj; | |
3566 | } | |
3567 | ||
3568 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 3569 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3570 | PyObject * _resultobj; |
3571 | wxWindow * _arg0; | |
3572 | wxColour * _arg1; | |
1d99702e RD |
3573 | PyObject * _argo0 = 0; |
3574 | PyObject * _argo1 = 0; | |
efc5f224 | 3575 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3576 | |
3577 | self = self; | |
efc5f224 | 3578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3579 | return NULL; |
1d99702e RD |
3580 | if (_argo0) { |
3581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
3584 | return NULL; | |
3585 | } | |
3586 | } | |
1d99702e RD |
3587 | if (_argo1) { |
3588 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3589 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | |
8ab979d7 RD |
3590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetForegroundColour. Expected _wxColour_p."); |
3591 | return NULL; | |
3592 | } | |
3593 | } | |
cf694132 RD |
3594 | { |
3595 | wxPy_BEGIN_ALLOW_THREADS; | |
3596 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3597 | ||
3598 | wxPy_END_ALLOW_THREADS; | |
3599 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3600 | _resultobj = Py_None; |
3601 | return _resultobj; | |
3602 | } | |
3603 | ||
3604 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 3605 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3606 | PyObject * _resultobj; |
3607 | wxWindow * _arg0; | |
3608 | int _arg1; | |
1d99702e | 3609 | PyObject * _argo0 = 0; |
efc5f224 | 3610 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
3611 | |
3612 | self = self; | |
efc5f224 | 3613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3614 | return NULL; |
1d99702e RD |
3615 | if (_argo0) { |
3616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
3619 | return NULL; | |
3620 | } | |
3621 | } | |
cf694132 RD |
3622 | { |
3623 | wxPy_BEGIN_ALLOW_THREADS; | |
3624 | wxWindow_SetId(_arg0,_arg1); | |
3625 | ||
3626 | wxPy_END_ALLOW_THREADS; | |
3627 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3628 | _resultobj = Py_None; |
3629 | return _resultobj; | |
3630 | } | |
3631 | ||
3632 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 3633 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3634 | PyObject * _resultobj; |
3635 | wxWindow * _arg0; | |
3636 | wxString * _arg1; | |
1d99702e | 3637 | PyObject * _argo0 = 0; |
8ab979d7 | 3638 | PyObject * _obj1 = 0; |
efc5f224 | 3639 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
3640 | |
3641 | self = self; | |
efc5f224 | 3642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3643 | return NULL; |
1d99702e RD |
3644 | if (_argo0) { |
3645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
3648 | return NULL; | |
3649 | } | |
3650 | } | |
3651 | { | |
3652 | if (!PyString_Check(_obj1)) { | |
3653 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3654 | return NULL; | |
3655 | } | |
cf694132 | 3656 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 3657 | } |
cf694132 RD |
3658 | { |
3659 | wxPy_BEGIN_ALLOW_THREADS; | |
3660 | wxWindow_SetName(_arg0,*_arg1); | |
3661 | ||
3662 | wxPy_END_ALLOW_THREADS; | |
3663 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3664 | _resultobj = Py_None; |
3665 | { | |
3666 | if (_obj1) | |
3667 | delete _arg1; | |
3668 | } | |
3669 | return _resultobj; | |
3670 | } | |
3671 | ||
8ab979d7 | 3672 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 3673 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3674 | PyObject * _resultobj; |
3675 | wxWindow * _arg0; | |
3676 | int _arg1; | |
3677 | int _arg2; | |
3678 | int _arg3; | |
3679 | int _arg4; | |
eb715945 | 3680 | int _arg5 = (int ) TRUE; |
1d99702e | 3681 | PyObject * _argo0 = 0; |
efc5f224 | 3682 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
3683 | |
3684 | self = self; | |
eb715945 | 3685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 3686 | return NULL; |
1d99702e RD |
3687 | if (_argo0) { |
3688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
3691 | return NULL; | |
3692 | } | |
3693 | } | |
cf694132 RD |
3694 | { |
3695 | wxPy_BEGIN_ALLOW_THREADS; | |
3696 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
3697 | ||
3698 | wxPy_END_ALLOW_THREADS; | |
3699 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3700 | _resultobj = Py_None; |
3701 | return _resultobj; | |
3702 | } | |
3703 | ||
3704 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3705 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3706 | PyObject * _resultobj; |
3707 | wxWindow * _arg0; | |
3708 | int _arg1; | |
3709 | int _arg2; | |
1d99702e RD |
3710 | bool _arg3 = (bool ) TRUE; |
3711 | PyObject * _argo0 = 0; | |
3712 | int tempbool3 = (int) TRUE; | |
efc5f224 | 3713 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
3714 | |
3715 | self = self; | |
efc5f224 | 3716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 3717 | return NULL; |
1d99702e RD |
3718 | if (_argo0) { |
3719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
3722 | return NULL; | |
3723 | } | |
3724 | } | |
3725 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
3726 | { |
3727 | wxPy_BEGIN_ALLOW_THREADS; | |
3728 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
3729 | ||
3730 | wxPy_END_ALLOW_THREADS; | |
3731 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3732 | _resultobj = Py_None; |
3733 | return _resultobj; | |
3734 | } | |
3735 | ||
3736 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 3737 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3738 | PyObject * _resultobj; |
3739 | wxWindow * _arg0; | |
3740 | int _arg1; | |
3741 | int _arg2; | |
3742 | int _arg3; | |
3743 | int _arg4; | |
1d99702e RD |
3744 | int _arg5 = (int ) wxSIZE_AUTO; |
3745 | PyObject * _argo0 = 0; | |
efc5f224 | 3746 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
3747 | |
3748 | self = self; | |
efc5f224 | 3749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 3750 | return NULL; |
1d99702e RD |
3751 | if (_argo0) { |
3752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
3755 | return NULL; | |
3756 | } | |
3757 | } | |
cf694132 RD |
3758 | { |
3759 | wxPy_BEGIN_ALLOW_THREADS; | |
3760 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
3761 | ||
3762 | wxPy_END_ALLOW_THREADS; | |
3763 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3764 | _resultobj = Py_None; |
3765 | return _resultobj; | |
3766 | } | |
3767 | ||
3768 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
3769 | self->SetSize(size.x, size.y); | |
3770 | } | |
efc5f224 | 3771 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3772 | PyObject * _resultobj; |
3773 | wxWindow * _arg0; | |
3774 | wxSize * _arg1; | |
1d99702e | 3775 | PyObject * _argo0 = 0; |
2f90df85 RD |
3776 | wxSize temp; |
3777 | PyObject * _obj1 = 0; | |
efc5f224 | 3778 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
3779 | |
3780 | self = self; | |
2f90df85 | 3781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3782 | return NULL; |
1d99702e RD |
3783 | if (_argo0) { |
3784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
3787 | return NULL; | |
3788 | } | |
3789 | } | |
2f90df85 RD |
3790 | { |
3791 | _arg1 = &temp; | |
3792 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 3793 | return NULL; |
2f90df85 | 3794 | } |
cf694132 RD |
3795 | { |
3796 | wxPy_BEGIN_ALLOW_THREADS; | |
3797 | wxWindow_SetSize(_arg0,*_arg1); | |
3798 | ||
3799 | wxPy_END_ALLOW_THREADS; | |
3800 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3801 | _resultobj = Py_None; |
3802 | return _resultobj; | |
3803 | } | |
3804 | ||
3805 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
3806 | self->SetSize(pos.x, pos.y, -1, -1); | |
3807 | } | |
efc5f224 | 3808 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3809 | PyObject * _resultobj; |
3810 | wxWindow * _arg0; | |
3811 | wxPoint * _arg1; | |
1d99702e | 3812 | PyObject * _argo0 = 0; |
2f90df85 RD |
3813 | wxPoint temp; |
3814 | PyObject * _obj1 = 0; | |
efc5f224 | 3815 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
3816 | |
3817 | self = self; | |
2f90df85 | 3818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3819 | return NULL; |
1d99702e RD |
3820 | if (_argo0) { |
3821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
3824 | return NULL; | |
3825 | } | |
3826 | } | |
2f90df85 RD |
3827 | { |
3828 | _arg1 = &temp; | |
3829 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 3830 | return NULL; |
2f90df85 | 3831 | } |
cf694132 RD |
3832 | { |
3833 | wxPy_BEGIN_ALLOW_THREADS; | |
3834 | wxWindow_SetPosition(_arg0,*_arg1); | |
3835 | ||
3836 | wxPy_END_ALLOW_THREADS; | |
3837 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3838 | _resultobj = Py_None; |
3839 | return _resultobj; | |
3840 | } | |
3841 | ||
3842 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 3843 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3844 | PyObject * _resultobj; |
3845 | wxWindow * _arg0; | |
1d99702e RD |
3846 | int _arg1 = (int ) -1; |
3847 | int _arg2 = (int ) -1; | |
3848 | int _arg3 = (int ) -1; | |
3849 | int _arg4 = (int ) -1; | |
3850 | int _arg5 = (int ) -1; | |
3851 | int _arg6 = (int ) -1; | |
3852 | PyObject * _argo0 = 0; | |
efc5f224 | 3853 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
3854 | |
3855 | self = self; | |
efc5f224 | 3856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 3857 | return NULL; |
1d99702e RD |
3858 | if (_argo0) { |
3859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
3862 | return NULL; | |
3863 | } | |
3864 | } | |
cf694132 RD |
3865 | { |
3866 | wxPy_BEGIN_ALLOW_THREADS; | |
3867 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
3868 | ||
3869 | wxPy_END_ALLOW_THREADS; | |
3870 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3871 | _resultobj = Py_None; |
3872 | return _resultobj; | |
3873 | } | |
3874 | ||
af309447 | 3875 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 3876 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3877 | PyObject * _resultobj; |
3878 | wxWindow * _arg0; | |
3879 | int _arg1; | |
3880 | int _arg2; | |
1d99702e | 3881 | PyObject * _argo0 = 0; |
efc5f224 | 3882 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
3883 | |
3884 | self = self; | |
efc5f224 | 3885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 3886 | return NULL; |
1d99702e RD |
3887 | if (_argo0) { |
3888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
3891 | return NULL; | |
3892 | } | |
3893 | } | |
cf694132 RD |
3894 | { |
3895 | wxPy_BEGIN_ALLOW_THREADS; | |
3896 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
3897 | ||
3898 | wxPy_END_ALLOW_THREADS; | |
3899 | } Py_INCREF(Py_None); | |
af309447 RD |
3900 | _resultobj = Py_None; |
3901 | return _resultobj; | |
3902 | } | |
3903 | ||
3904 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 3905 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3906 | PyObject * _resultobj; |
3907 | wxWindow * _arg0; | |
3908 | wxSize * _arg1; | |
1d99702e | 3909 | PyObject * _argo0 = 0; |
2f90df85 RD |
3910 | wxSize temp; |
3911 | PyObject * _obj1 = 0; | |
efc5f224 | 3912 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
3913 | |
3914 | self = self; | |
2f90df85 | 3915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3916 | return NULL; |
1d99702e RD |
3917 | if (_argo0) { |
3918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
3921 | return NULL; | |
3922 | } | |
3923 | } | |
2f90df85 RD |
3924 | { |
3925 | _arg1 = &temp; | |
3926 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 3927 | return NULL; |
2f90df85 | 3928 | } |
cf694132 RD |
3929 | { |
3930 | wxPy_BEGIN_ALLOW_THREADS; | |
3931 | wxWindow_SetClientSize(_arg0,*_arg1); | |
3932 | ||
3933 | wxPy_END_ALLOW_THREADS; | |
3934 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3935 | _resultobj = Py_None; |
3936 | return _resultobj; | |
3937 | } | |
3938 | ||
3939 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 3940 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3941 | PyObject * _resultobj; |
3942 | wxWindow * _arg0; | |
3943 | wxCursor * _arg1; | |
1d99702e RD |
3944 | PyObject * _argo0 = 0; |
3945 | PyObject * _argo1 = 0; | |
efc5f224 | 3946 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
3947 | |
3948 | self = self; | |
efc5f224 | 3949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
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_SetCursor. Expected _wxWindow_p."); |
3955 | return NULL; | |
3956 | } | |
3957 | } | |
1d99702e RD |
3958 | if (_argo1) { |
3959 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3960 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
3961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
3962 | return NULL; | |
3963 | } | |
3964 | } | |
cf694132 RD |
3965 | { |
3966 | wxPy_BEGIN_ALLOW_THREADS; | |
3967 | wxWindow_SetCursor(_arg0,*_arg1); | |
3968 | ||
3969 | wxPy_END_ALLOW_THREADS; | |
3970 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3971 | _resultobj = Py_None; |
3972 | return _resultobj; | |
3973 | } | |
3974 | ||
1afc06c2 RD |
3975 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
3976 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3977 | PyObject * _resultobj; | |
3978 | wxWindow * _arg0; | |
3979 | wxEvtHandler * _arg1; | |
3980 | PyObject * _argo0 = 0; | |
3981 | PyObject * _argo1 = 0; | |
3982 | char *_kwnames[] = { "self","handler", NULL }; | |
3983 | ||
3984 | self = self; | |
3985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
3986 | return NULL; | |
3987 | if (_argo0) { | |
3988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
3991 | return NULL; | |
3992 | } | |
3993 | } | |
3994 | if (_argo1) { | |
3995 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3996 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
3998 | return NULL; | |
3999 | } | |
4000 | } | |
4001 | { | |
4002 | wxPy_BEGIN_ALLOW_THREADS; | |
4003 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4004 | ||
4005 | wxPy_END_ALLOW_THREADS; | |
4006 | } Py_INCREF(Py_None); | |
4007 | _resultobj = Py_None; | |
4008 | return _resultobj; | |
4009 | } | |
4010 | ||
8ab979d7 | 4011 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4012 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4013 | PyObject * _resultobj; |
4014 | wxWindow * _arg0; | |
4015 | wxString * _arg1; | |
1d99702e | 4016 | PyObject * _argo0 = 0; |
8ab979d7 | 4017 | PyObject * _obj1 = 0; |
efc5f224 | 4018 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4019 | |
4020 | self = self; | |
efc5f224 | 4021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4022 | return NULL; |
1d99702e RD |
4023 | if (_argo0) { |
4024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4027 | return NULL; | |
4028 | } | |
4029 | } | |
4030 | { | |
4031 | if (!PyString_Check(_obj1)) { | |
4032 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4033 | return NULL; | |
4034 | } | |
cf694132 | 4035 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 4036 | } |
cf694132 RD |
4037 | { |
4038 | wxPy_BEGIN_ALLOW_THREADS; | |
4039 | wxWindow_SetTitle(_arg0,*_arg1); | |
4040 | ||
4041 | wxPy_END_ALLOW_THREADS; | |
4042 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4043 | _resultobj = Py_None; |
4044 | { | |
4045 | if (_obj1) | |
4046 | delete _arg1; | |
4047 | } | |
4048 | return _resultobj; | |
4049 | } | |
4050 | ||
4051 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4052 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4053 | PyObject * _resultobj; |
4054 | bool _result; | |
4055 | wxWindow * _arg0; | |
4056 | bool _arg1; | |
1d99702e | 4057 | PyObject * _argo0 = 0; |
8ab979d7 | 4058 | int tempbool1; |
efc5f224 | 4059 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4060 | |
4061 | self = self; | |
efc5f224 | 4062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4063 | return NULL; |
1d99702e RD |
4064 | if (_argo0) { |
4065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4068 | return NULL; | |
4069 | } | |
4070 | } | |
4071 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4072 | { |
4073 | wxPy_BEGIN_ALLOW_THREADS; | |
4074 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4075 | ||
4076 | wxPy_END_ALLOW_THREADS; | |
4077 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4078 | return _resultobj; |
4079 | } | |
4080 | ||
4081 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4082 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4083 | PyObject * _resultobj; |
4084 | bool _result; | |
4085 | wxWindow * _arg0; | |
1d99702e | 4086 | PyObject * _argo0 = 0; |
efc5f224 | 4087 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4088 | |
4089 | self = self; | |
efc5f224 | 4090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4091 | return NULL; |
1d99702e RD |
4092 | if (_argo0) { |
4093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4096 | return NULL; | |
4097 | } | |
4098 | } | |
cf694132 RD |
4099 | { |
4100 | wxPy_BEGIN_ALLOW_THREADS; | |
4101 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4102 | ||
4103 | wxPy_END_ALLOW_THREADS; | |
4104 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4105 | return _resultobj; |
4106 | } | |
4107 | ||
4108 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4109 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4110 | PyObject * _resultobj; |
4111 | bool _result; | |
4112 | wxWindow * _arg0; | |
1d99702e | 4113 | PyObject * _argo0 = 0; |
efc5f224 | 4114 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4115 | |
4116 | self = self; | |
efc5f224 | 4117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4118 | return NULL; |
1d99702e RD |
4119 | if (_argo0) { |
4120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4123 | return NULL; | |
4124 | } | |
4125 | } | |
cf694132 RD |
4126 | { |
4127 | wxPy_BEGIN_ALLOW_THREADS; | |
4128 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4129 | ||
4130 | wxPy_END_ALLOW_THREADS; | |
4131 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4132 | return _resultobj; |
4133 | } | |
4134 | ||
4135 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4136 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4137 | PyObject * _resultobj; |
4138 | bool _result; | |
4139 | wxWindow * _arg0; | |
1d99702e | 4140 | PyObject * _argo0 = 0; |
efc5f224 | 4141 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4142 | |
4143 | self = self; | |
efc5f224 | 4144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4145 | return NULL; |
1d99702e RD |
4146 | if (_argo0) { |
4147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4150 | return NULL; | |
4151 | } | |
4152 | } | |
cf694132 RD |
4153 | { |
4154 | wxPy_BEGIN_ALLOW_THREADS; | |
4155 | _result = (bool )wxWindow_Validate(_arg0); | |
4156 | ||
4157 | wxPy_END_ALLOW_THREADS; | |
4158 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4159 | return _resultobj; |
4160 | } | |
4161 | ||
4162 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4163 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4164 | PyObject * _resultobj; |
4165 | wxWindow * _arg0; | |
4166 | int _arg1; | |
4167 | int _arg2; | |
1d99702e | 4168 | PyObject * _argo0 = 0; |
efc5f224 | 4169 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4170 | |
4171 | self = self; | |
efc5f224 | 4172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4173 | return NULL; |
1d99702e RD |
4174 | if (_argo0) { |
4175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4178 | return NULL; | |
4179 | } | |
4180 | } | |
cf694132 RD |
4181 | { |
4182 | wxPy_BEGIN_ALLOW_THREADS; | |
4183 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4184 | ||
4185 | wxPy_END_ALLOW_THREADS; | |
4186 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4187 | _resultobj = Py_None; |
4188 | return _resultobj; | |
4189 | } | |
4190 | ||
b8b8dda7 | 4191 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4192 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4193 | PyObject * _resultobj; |
4194 | wxPoint * _result; | |
4195 | wxWindow * _arg0; | |
4196 | wxPoint * _arg1; | |
1d99702e | 4197 | PyObject * _argo0 = 0; |
2f90df85 RD |
4198 | wxPoint temp; |
4199 | PyObject * _obj1 = 0; | |
efc5f224 | 4200 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4201 | char _ptemp[128]; |
4202 | ||
4203 | self = self; | |
2f90df85 | 4204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4205 | return NULL; |
1d99702e RD |
4206 | if (_argo0) { |
4207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4210 | return NULL; | |
4211 | } | |
4212 | } | |
2f90df85 RD |
4213 | { |
4214 | _arg1 = &temp; | |
4215 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4216 | return NULL; |
2f90df85 | 4217 | } |
cf694132 RD |
4218 | { |
4219 | wxPy_BEGIN_ALLOW_THREADS; | |
4220 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4221 | ||
4222 | wxPy_END_ALLOW_THREADS; | |
4223 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
4224 | _resultobj = Py_BuildValue("s",_ptemp); |
4225 | return _resultobj; | |
4226 | } | |
4227 | ||
4228 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4229 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4230 | PyObject * _resultobj; |
4231 | wxSize * _result; | |
4232 | wxWindow * _arg0; | |
4233 | wxSize * _arg1; | |
1d99702e | 4234 | PyObject * _argo0 = 0; |
2f90df85 RD |
4235 | wxSize temp; |
4236 | PyObject * _obj1 = 0; | |
efc5f224 | 4237 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4238 | char _ptemp[128]; |
4239 | ||
4240 | self = self; | |
2f90df85 | 4241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 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")) { | |
b8b8dda7 RD |
4246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4247 | return NULL; | |
4248 | } | |
4249 | } | |
2f90df85 RD |
4250 | { |
4251 | _arg1 = &temp; | |
4252 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4253 | return NULL; |
2f90df85 | 4254 | } |
cf694132 RD |
4255 | { |
4256 | wxPy_BEGIN_ALLOW_THREADS; | |
4257 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4258 | ||
4259 | wxPy_END_ALLOW_THREADS; | |
4260 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
4261 | _resultobj = Py_BuildValue("s",_ptemp); |
4262 | return _resultobj; | |
4263 | } | |
4264 | ||
4265 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4266 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4267 | PyObject * _resultobj; |
4268 | wxPoint * _result; | |
4269 | wxWindow * _arg0; | |
4270 | wxPoint * _arg1; | |
1d99702e | 4271 | PyObject * _argo0 = 0; |
2f90df85 RD |
4272 | wxPoint temp; |
4273 | PyObject * _obj1 = 0; | |
efc5f224 | 4274 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4275 | char _ptemp[128]; |
4276 | ||
4277 | self = self; | |
2f90df85 | 4278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4279 | return NULL; |
1d99702e RD |
4280 | if (_argo0) { |
4281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4284 | return NULL; | |
4285 | } | |
4286 | } | |
2f90df85 RD |
4287 | { |
4288 | _arg1 = &temp; | |
4289 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4290 | return NULL; |
2f90df85 | 4291 | } |
cf694132 RD |
4292 | { |
4293 | wxPy_BEGIN_ALLOW_THREADS; | |
4294 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4295 | ||
4296 | wxPy_END_ALLOW_THREADS; | |
4297 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
b8b8dda7 RD |
4298 | _resultobj = Py_BuildValue("s",_ptemp); |
4299 | return _resultobj; | |
4300 | } | |
4301 | ||
4302 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4303 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4304 | PyObject * _resultobj; |
4305 | wxSize * _result; | |
4306 | wxWindow * _arg0; | |
4307 | wxSize * _arg1; | |
1d99702e | 4308 | PyObject * _argo0 = 0; |
2f90df85 RD |
4309 | wxSize temp; |
4310 | PyObject * _obj1 = 0; | |
efc5f224 | 4311 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4312 | char _ptemp[128]; |
4313 | ||
4314 | self = self; | |
2f90df85 | 4315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4316 | return NULL; |
1d99702e RD |
4317 | if (_argo0) { |
4318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4321 | return NULL; | |
4322 | } | |
4323 | } | |
2f90df85 RD |
4324 | { |
4325 | _arg1 = &temp; | |
4326 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4327 | return NULL; |
2f90df85 | 4328 | } |
cf694132 RD |
4329 | { |
4330 | wxPy_BEGIN_ALLOW_THREADS; | |
4331 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4332 | ||
4333 | wxPy_END_ALLOW_THREADS; | |
4334 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
b8b8dda7 RD |
4335 | _resultobj = Py_BuildValue("s",_ptemp); |
4336 | return _resultobj; | |
4337 | } | |
4338 | ||
af309447 | 4339 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4340 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4341 | PyObject * _resultobj; |
4342 | wxWindow * _arg0; | |
4343 | wxString * _arg1; | |
1d99702e | 4344 | PyObject * _argo0 = 0; |
af309447 | 4345 | PyObject * _obj1 = 0; |
efc5f224 | 4346 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4347 | |
4348 | self = self; | |
efc5f224 | 4349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4350 | return NULL; |
1d99702e RD |
4351 | if (_argo0) { |
4352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4355 | return NULL; | |
4356 | } | |
4357 | } | |
4358 | { | |
4359 | if (!PyString_Check(_obj1)) { | |
4360 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4361 | return NULL; | |
4362 | } | |
cf694132 | 4363 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
af309447 | 4364 | } |
cf694132 RD |
4365 | { |
4366 | wxPy_BEGIN_ALLOW_THREADS; | |
4367 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4368 | ||
4369 | wxPy_END_ALLOW_THREADS; | |
4370 | } Py_INCREF(Py_None); | |
af309447 RD |
4371 | _resultobj = Py_None; |
4372 | { | |
4373 | if (_obj1) | |
4374 | delete _arg1; | |
4375 | } | |
4376 | return _resultobj; | |
4377 | } | |
4378 | ||
4379 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4380 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4381 | PyObject * _resultobj; |
4382 | wxWindow * _arg0; | |
4383 | wxToolTip * _arg1; | |
1d99702e RD |
4384 | PyObject * _argo0 = 0; |
4385 | PyObject * _argo1 = 0; | |
efc5f224 | 4386 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4387 | |
4388 | self = self; | |
efc5f224 | 4389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4390 | return NULL; |
1d99702e RD |
4391 | if (_argo0) { |
4392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4395 | return NULL; | |
4396 | } | |
4397 | } | |
1d99702e RD |
4398 | if (_argo1) { |
4399 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4400 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4402 | return NULL; | |
4403 | } | |
4404 | } | |
cf694132 RD |
4405 | { |
4406 | wxPy_BEGIN_ALLOW_THREADS; | |
4407 | wxWindow_SetToolTip(_arg0,_arg1); | |
4408 | ||
4409 | wxPy_END_ALLOW_THREADS; | |
4410 | } Py_INCREF(Py_None); | |
af309447 RD |
4411 | _resultobj = Py_None; |
4412 | return _resultobj; | |
4413 | } | |
4414 | ||
4415 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 4416 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4417 | PyObject * _resultobj; |
4418 | wxToolTip * _result; | |
4419 | wxWindow * _arg0; | |
1d99702e | 4420 | PyObject * _argo0 = 0; |
efc5f224 | 4421 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
4422 | char _ptemp[128]; |
4423 | ||
4424 | self = self; | |
efc5f224 | 4425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 4426 | return NULL; |
1d99702e RD |
4427 | if (_argo0) { |
4428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4431 | return NULL; | |
4432 | } | |
4433 | } | |
cf694132 RD |
4434 | { |
4435 | wxPy_BEGIN_ALLOW_THREADS; | |
4436 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4437 | ||
4438 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4439 | } if (_result) { |
4440 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
4441 | _resultobj = Py_BuildValue("s",_ptemp); | |
4442 | } else { | |
4443 | Py_INCREF(Py_None); | |
4444 | _resultobj = Py_None; | |
4445 | } | |
af309447 RD |
4446 | return _resultobj; |
4447 | } | |
4448 | ||
2f90df85 RD |
4449 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
4450 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4451 | PyObject * _resultobj; | |
4452 | wxWindow * _arg0; | |
4453 | wxSizer * _arg1; | |
4454 | PyObject * _argo0 = 0; | |
4455 | PyObject * _argo1 = 0; | |
4456 | char *_kwnames[] = { "self","sizer", NULL }; | |
4457 | ||
4458 | self = self; | |
4459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4460 | return NULL; | |
4461 | if (_argo0) { | |
4462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4465 | return NULL; | |
4466 | } | |
4467 | } | |
4468 | if (_argo1) { | |
4469 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4470 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4472 | return NULL; | |
4473 | } | |
4474 | } | |
4475 | { | |
4476 | wxPy_BEGIN_ALLOW_THREADS; | |
4477 | wxWindow_SetSizer(_arg0,_arg1); | |
4478 | ||
4479 | wxPy_END_ALLOW_THREADS; | |
4480 | } Py_INCREF(Py_None); | |
4481 | _resultobj = Py_None; | |
4482 | return _resultobj; | |
4483 | } | |
4484 | ||
4485 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) | |
4486 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4487 | PyObject * _resultobj; | |
4488 | wxValidator * _result; | |
4489 | wxWindow * _arg0; | |
4490 | PyObject * _argo0 = 0; | |
4491 | char *_kwnames[] = { "self", NULL }; | |
4492 | char _ptemp[128]; | |
4493 | ||
4494 | self = self; | |
4495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
4496 | return NULL; | |
4497 | if (_argo0) { | |
4498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
4501 | return NULL; | |
4502 | } | |
4503 | } | |
4504 | { | |
4505 | wxPy_BEGIN_ALLOW_THREADS; | |
4506 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
4507 | ||
4508 | wxPy_END_ALLOW_THREADS; | |
4509 | } if (_result) { | |
4510 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
4511 | _resultobj = Py_BuildValue("s",_ptemp); | |
4512 | } else { | |
4513 | Py_INCREF(Py_None); | |
4514 | _resultobj = Py_None; | |
4515 | } | |
4516 | return _resultobj; | |
4517 | } | |
4518 | ||
4519 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
4520 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4521 | PyObject * _resultobj; | |
4522 | wxWindow * _arg0; | |
4523 | wxValidator * _arg1; | |
4524 | PyObject * _argo0 = 0; | |
4525 | PyObject * _argo1 = 0; | |
4526 | char *_kwnames[] = { "self","validator", NULL }; | |
4527 | ||
4528 | self = self; | |
4529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
4530 | return NULL; | |
4531 | if (_argo0) { | |
4532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
4535 | return NULL; | |
4536 | } | |
4537 | } | |
4538 | if (_argo1) { | |
4539 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4540 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
4541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
4542 | return NULL; | |
4543 | } | |
4544 | } | |
4545 | { | |
4546 | wxPy_BEGIN_ALLOW_THREADS; | |
4547 | wxWindow_SetValidator(_arg0,*_arg1); | |
4548 | ||
4549 | wxPy_END_ALLOW_THREADS; | |
4550 | } Py_INCREF(Py_None); | |
4551 | _resultobj = Py_None; | |
4552 | return _resultobj; | |
4553 | } | |
4554 | ||
b1462dfa RD |
4555 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
4556 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4557 | PyObject * _resultobj; | |
4558 | wxWindow * _arg0; | |
4559 | wxDropTarget * _arg1; | |
4560 | PyObject * _argo0 = 0; | |
4561 | PyObject * _argo1 = 0; | |
4562 | char *_kwnames[] = { "self","target", NULL }; | |
4563 | ||
4564 | self = self; | |
4565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
4566 | return NULL; | |
4567 | if (_argo0) { | |
4568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
4571 | return NULL; | |
4572 | } | |
4573 | } | |
4574 | if (_argo1) { | |
4575 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4576 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
4577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
4578 | return NULL; | |
4579 | } | |
4580 | } | |
4581 | { | |
4582 | wxPy_BEGIN_ALLOW_THREADS; | |
4583 | wxWindow_SetDropTarget(_arg0,_arg1); | |
4584 | ||
4585 | wxPy_END_ALLOW_THREADS; | |
4586 | } Py_INCREF(Py_None); | |
4587 | _resultobj = Py_None; | |
4588 | return _resultobj; | |
4589 | } | |
4590 | ||
4591 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
4592 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4593 | PyObject * _resultobj; | |
4594 | wxDropTarget * _result; | |
4595 | wxWindow * _arg0; | |
4596 | PyObject * _argo0 = 0; | |
4597 | char *_kwnames[] = { "self", NULL }; | |
4598 | char _ptemp[128]; | |
4599 | ||
4600 | self = self; | |
4601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
4602 | return NULL; | |
4603 | if (_argo0) { | |
4604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
4607 | return NULL; | |
4608 | } | |
4609 | } | |
4610 | { | |
4611 | wxPy_BEGIN_ALLOW_THREADS; | |
4612 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
4613 | ||
4614 | wxPy_END_ALLOW_THREADS; | |
4615 | } if (_result) { | |
4616 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
4617 | _resultobj = Py_BuildValue("s",_ptemp); | |
4618 | } else { | |
4619 | Py_INCREF(Py_None); | |
4620 | _resultobj = Py_None; | |
4621 | } | |
4622 | return _resultobj; | |
4623 | } | |
4624 | ||
694759cf RD |
4625 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
4626 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4627 | PyObject * _resultobj; | |
4628 | wxSize * _result; | |
4629 | wxWindow * _arg0; | |
4630 | PyObject * _argo0 = 0; | |
4631 | char *_kwnames[] = { "self", NULL }; | |
4632 | char _ptemp[128]; | |
4633 | ||
4634 | self = self; | |
4635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
4636 | return NULL; | |
4637 | if (_argo0) { | |
4638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
4641 | return NULL; | |
4642 | } | |
4643 | } | |
4644 | { | |
4645 | wxPy_BEGIN_ALLOW_THREADS; | |
4646 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
4647 | ||
4648 | wxPy_END_ALLOW_THREADS; | |
4649 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4650 | _resultobj = Py_BuildValue("s",_ptemp); | |
4651 | return _resultobj; | |
4652 | } | |
4653 | ||
8ab979d7 RD |
4654 | static void *SwigwxPanelTowxWindow(void *ptr) { |
4655 | wxPanel *src; | |
4656 | wxWindow *dest; | |
4657 | src = (wxPanel *) ptr; | |
4658 | dest = (wxWindow *) src; | |
4659 | return (void *) dest; | |
4660 | } | |
4661 | ||
4662 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
4663 | wxPanel *src; | |
4664 | wxEvtHandler *dest; | |
4665 | src = (wxPanel *) ptr; | |
4666 | dest = (wxEvtHandler *) src; | |
4667 | return (void *) dest; | |
4668 | } | |
4669 | ||
4670 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 4671 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4672 | PyObject * _resultobj; |
4673 | wxPanel * _result; | |
4674 | wxWindow * _arg0; | |
4675 | wxWindowID _arg1; | |
1d99702e RD |
4676 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; |
4677 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
4678 | long _arg4 = (long ) wxTAB_TRAVERSAL; | |
4679 | char * _arg5 = (char *) "panel"; | |
4680 | PyObject * _argo0 = 0; | |
2f90df85 RD |
4681 | wxPoint temp; |
4682 | PyObject * _obj2 = 0; | |
4683 | wxSize temp0; | |
4684 | PyObject * _obj3 = 0; | |
efc5f224 | 4685 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
4686 | char _ptemp[128]; |
4687 | ||
4688 | self = self; | |
2f90df85 | 4689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 4690 | return NULL; |
1d99702e RD |
4691 | if (_argo0) { |
4692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
4695 | return NULL; | |
4696 | } | |
4697 | } | |
2f90df85 RD |
4698 | if (_obj2) |
4699 | { | |
4700 | _arg2 = &temp; | |
4701 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4702 | return NULL; |
2f90df85 RD |
4703 | } |
4704 | if (_obj3) | |
4705 | { | |
4706 | _arg3 = &temp0; | |
4707 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 4708 | return NULL; |
2f90df85 | 4709 | } |
cf694132 RD |
4710 | { |
4711 | wxPy_BEGIN_ALLOW_THREADS; | |
4712 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
4713 | ||
4714 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4715 | } if (_result) { |
4716 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
4717 | _resultobj = Py_BuildValue("s",_ptemp); | |
4718 | } else { | |
4719 | Py_INCREF(Py_None); | |
4720 | _resultobj = Py_None; | |
4721 | } | |
8ab979d7 RD |
4722 | return _resultobj; |
4723 | } | |
4724 | ||
4725 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
efc5f224 | 4726 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4727 | PyObject * _resultobj; |
4728 | wxPanel * _arg0; | |
1d99702e | 4729 | PyObject * _argo0 = 0; |
efc5f224 | 4730 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4731 | |
4732 | self = self; | |
efc5f224 | 4733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 4734 | return NULL; |
1d99702e RD |
4735 | if (_argo0) { |
4736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
4738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
4739 | return NULL; | |
4740 | } | |
4741 | } | |
cf694132 RD |
4742 | { |
4743 | wxPy_BEGIN_ALLOW_THREADS; | |
4744 | wxPanel_InitDialog(_arg0); | |
4745 | ||
4746 | wxPy_END_ALLOW_THREADS; | |
4747 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4748 | _resultobj = Py_None; |
4749 | return _resultobj; | |
4750 | } | |
4751 | ||
bb0054cd | 4752 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
efc5f224 | 4753 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
4754 | PyObject * _resultobj; |
4755 | wxButton * _result; | |
4756 | wxPanel * _arg0; | |
1d99702e | 4757 | PyObject * _argo0 = 0; |
efc5f224 | 4758 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
4759 | char _ptemp[128]; |
4760 | ||
4761 | self = self; | |
efc5f224 | 4762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
bb0054cd | 4763 | return NULL; |
1d99702e RD |
4764 | if (_argo0) { |
4765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
4767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
4768 | return NULL; | |
4769 | } | |
4770 | } | |
4771 | { | |
4772 | wxPy_BEGIN_ALLOW_THREADS; | |
4773 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
4774 | ||
4775 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4776 | } if (_result) { |
4777 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
4778 | _resultobj = Py_BuildValue("s",_ptemp); | |
4779 | } else { | |
4780 | Py_INCREF(Py_None); | |
4781 | _resultobj = Py_None; | |
4782 | } | |
bb0054cd RD |
4783 | return _resultobj; |
4784 | } | |
4785 | ||
4786 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
efc5f224 | 4787 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
4788 | PyObject * _resultobj; |
4789 | wxPanel * _arg0; | |
4790 | wxButton * _arg1; | |
1d99702e RD |
4791 | PyObject * _argo0 = 0; |
4792 | PyObject * _argo1 = 0; | |
efc5f224 | 4793 | char *_kwnames[] = { "self","btn", NULL }; |
bb0054cd RD |
4794 | |
4795 | self = self; | |
efc5f224 | 4796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 4797 | return NULL; |
1d99702e RD |
4798 | if (_argo0) { |
4799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
4801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
4802 | return NULL; | |
4803 | } | |
4804 | } | |
1d99702e RD |
4805 | if (_argo1) { |
4806 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4807 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
bb0054cd RD |
4808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
4809 | return NULL; | |
4810 | } | |
4811 | } | |
4812 | { | |
4813 | wxPy_BEGIN_ALLOW_THREADS; | |
4814 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
4815 | ||
4816 | wxPy_END_ALLOW_THREADS; | |
4817 | } Py_INCREF(Py_None); | |
4818 | _resultobj = Py_None; | |
4819 | return _resultobj; | |
4820 | } | |
4821 | ||
8ab979d7 RD |
4822 | static void *SwigwxDialogTowxPanel(void *ptr) { |
4823 | wxDialog *src; | |
4824 | wxPanel *dest; | |
4825 | src = (wxDialog *) ptr; | |
4826 | dest = (wxPanel *) src; | |
4827 | return (void *) dest; | |
4828 | } | |
4829 | ||
4830 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
4831 | wxDialog *src; | |
4832 | wxWindow *dest; | |
4833 | src = (wxDialog *) ptr; | |
4834 | dest = (wxWindow *) src; | |
4835 | return (void *) dest; | |
4836 | } | |
4837 | ||
4838 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
4839 | wxDialog *src; | |
4840 | wxEvtHandler *dest; | |
4841 | src = (wxDialog *) ptr; | |
4842 | dest = (wxEvtHandler *) src; | |
4843 | return (void *) dest; | |
4844 | } | |
4845 | ||
4846 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 4847 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4848 | PyObject * _resultobj; |
4849 | wxDialog * _result; | |
4850 | wxWindow * _arg0; | |
4851 | wxWindowID _arg1; | |
4852 | wxString * _arg2; | |
1d99702e RD |
4853 | wxPoint * _arg3 = (wxPoint *) &wxPyDefaultPosition; |
4854 | wxSize * _arg4 = (wxSize *) &wxPyDefaultSize; | |
4855 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; | |
4856 | char * _arg6 = (char *) "dialogBox"; | |
4857 | PyObject * _argo0 = 0; | |
8ab979d7 | 4858 | PyObject * _obj2 = 0; |
2f90df85 RD |
4859 | wxPoint temp; |
4860 | PyObject * _obj3 = 0; | |
4861 | wxSize temp0; | |
4862 | PyObject * _obj4 = 0; | |
efc5f224 | 4863 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
8ab979d7 RD |
4864 | char _ptemp[128]; |
4865 | ||
4866 | self = self; | |
2f90df85 | 4867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 4868 | return NULL; |
1d99702e RD |
4869 | if (_argo0) { |
4870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); |
4873 | return NULL; | |
4874 | } | |
4875 | } | |
4876 | { | |
4877 | if (!PyString_Check(_obj2)) { | |
4878 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4879 | return NULL; | |
4880 | } | |
cf694132 | 4881 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 4882 | } |
2f90df85 RD |
4883 | if (_obj3) |
4884 | { | |
4885 | _arg3 = &temp; | |
4886 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 4887 | return NULL; |
2f90df85 RD |
4888 | } |
4889 | if (_obj4) | |
4890 | { | |
4891 | _arg4 = &temp0; | |
4892 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 4893 | return NULL; |
2f90df85 | 4894 | } |
cf694132 RD |
4895 | { |
4896 | wxPy_BEGIN_ALLOW_THREADS; | |
4897 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
4898 | ||
4899 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4900 | } if (_result) { |
4901 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
4902 | _resultobj = Py_BuildValue("s",_ptemp); | |
4903 | } else { | |
4904 | Py_INCREF(Py_None); | |
4905 | _resultobj = Py_None; | |
4906 | } | |
8ab979d7 RD |
4907 | { |
4908 | if (_obj2) | |
4909 | delete _arg2; | |
4910 | } | |
4911 | return _resultobj; | |
4912 | } | |
4913 | ||
4914 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 4915 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4916 | PyObject * _resultobj; |
4917 | wxDialog * _arg0; | |
1d99702e RD |
4918 | int _arg1 = (int ) wxBOTH; |
4919 | PyObject * _argo0 = 0; | |
efc5f224 | 4920 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
4921 | |
4922 | self = self; | |
efc5f224 | 4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4924 | return NULL; |
1d99702e RD |
4925 | if (_argo0) { |
4926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
4928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); |
4929 | return NULL; | |
4930 | } | |
4931 | } | |
cf694132 RD |
4932 | { |
4933 | wxPy_BEGIN_ALLOW_THREADS; | |
4934 | wxDialog_Centre(_arg0,_arg1); | |
4935 | ||
4936 | wxPy_END_ALLOW_THREADS; | |
4937 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4938 | _resultobj = Py_None; |
4939 | return _resultobj; | |
4940 | } | |
4941 | ||
4942 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
efc5f224 | 4943 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4944 | PyObject * _resultobj; |
4945 | wxDialog * _arg0; | |
4946 | int _arg1; | |
1d99702e | 4947 | PyObject * _argo0 = 0; |
efc5f224 | 4948 | char *_kwnames[] = { "self","retCode", NULL }; |
8ab979d7 RD |
4949 | |
4950 | self = self; | |
efc5f224 | 4951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4952 | return NULL; |
1d99702e RD |
4953 | if (_argo0) { |
4954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
4956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); |
4957 | return NULL; | |
4958 | } | |
4959 | } | |
cf694132 RD |
4960 | { |
4961 | wxPy_BEGIN_ALLOW_THREADS; | |
4962 | wxDialog_EndModal(_arg0,_arg1); | |
4963 | ||
4964 | wxPy_END_ALLOW_THREADS; | |
4965 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4966 | _resultobj = Py_None; |
4967 | return _resultobj; | |
4968 | } | |
4969 | ||
4970 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
efc5f224 | 4971 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4972 | PyObject * _resultobj; |
4973 | wxString * _result; | |
4974 | wxDialog * _arg0; | |
1d99702e | 4975 | PyObject * _argo0 = 0; |
efc5f224 | 4976 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4977 | |
4978 | self = self; | |
efc5f224 | 4979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 4980 | return NULL; |
1d99702e RD |
4981 | if (_argo0) { |
4982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
4984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); |
4985 | return NULL; | |
4986 | } | |
4987 | } | |
8ab979d7 | 4988 | { |
cf694132 RD |
4989 | wxPy_BEGIN_ALLOW_THREADS; |
4990 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
4991 | ||
4992 | wxPy_END_ALLOW_THREADS; | |
4993 | }{ | |
8ab979d7 RD |
4994 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
4995 | } | |
4996 | { | |
4997 | delete _result; | |
4998 | } | |
4999 | return _resultobj; | |
5000 | } | |
5001 | ||
5002 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
efc5f224 | 5003 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5004 | PyObject * _resultobj; |
5005 | wxDialog * _arg0; | |
5006 | bool _arg1; | |
1d99702e | 5007 | PyObject * _argo0 = 0; |
8ab979d7 | 5008 | int tempbool1; |
efc5f224 | 5009 | char *_kwnames[] = { "self","iconize", NULL }; |
8ab979d7 RD |
5010 | |
5011 | self = self; | |
efc5f224 | 5012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5013 | return NULL; |
1d99702e RD |
5014 | if (_argo0) { |
5015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p."); |
5018 | return NULL; | |
5019 | } | |
5020 | } | |
5021 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5022 | { |
5023 | wxPy_BEGIN_ALLOW_THREADS; | |
5024 | wxDialog_Iconize(_arg0,_arg1); | |
5025 | ||
5026 | wxPy_END_ALLOW_THREADS; | |
5027 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5028 | _resultobj = Py_None; |
5029 | return _resultobj; | |
5030 | } | |
5031 | ||
5032 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
efc5f224 | 5033 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5034 | PyObject * _resultobj; |
5035 | bool _result; | |
5036 | wxDialog * _arg0; | |
1d99702e | 5037 | PyObject * _argo0 = 0; |
efc5f224 | 5038 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5039 | |
5040 | self = self; | |
efc5f224 | 5041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) |
8ab979d7 | 5042 | return NULL; |
1d99702e RD |
5043 | if (_argo0) { |
5044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); |
5047 | return NULL; | |
5048 | } | |
5049 | } | |
cf694132 RD |
5050 | { |
5051 | wxPy_BEGIN_ALLOW_THREADS; | |
5052 | _result = (bool )wxDialog_IsIconized(_arg0); | |
5053 | ||
5054 | wxPy_END_ALLOW_THREADS; | |
5055 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5056 | return _resultobj; |
5057 | } | |
5058 | ||
5059 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
efc5f224 | 5060 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5061 | PyObject * _resultobj; |
5062 | wxDialog * _arg0; | |
5063 | bool _arg1; | |
1d99702e | 5064 | PyObject * _argo0 = 0; |
8ab979d7 | 5065 | int tempbool1; |
efc5f224 | 5066 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
5067 | |
5068 | self = self; | |
efc5f224 | 5069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5070 | return NULL; |
1d99702e RD |
5071 | if (_argo0) { |
5072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); |
5075 | return NULL; | |
5076 | } | |
5077 | } | |
5078 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5079 | { |
5080 | wxPy_BEGIN_ALLOW_THREADS; | |
5081 | wxDialog_SetModal(_arg0,_arg1); | |
5082 | ||
5083 | wxPy_END_ALLOW_THREADS; | |
5084 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5085 | _resultobj = Py_None; |
5086 | return _resultobj; | |
5087 | } | |
5088 | ||
5089 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
efc5f224 | 5090 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5091 | PyObject * _resultobj; |
5092 | bool _result; | |
5093 | wxDialog * _arg0; | |
1d99702e | 5094 | PyObject * _argo0 = 0; |
efc5f224 | 5095 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5096 | |
5097 | self = self; | |
efc5f224 | 5098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) |
8ab979d7 | 5099 | return NULL; |
1d99702e RD |
5100 | if (_argo0) { |
5101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); |
5104 | return NULL; | |
5105 | } | |
5106 | } | |
cf694132 RD |
5107 | { |
5108 | wxPy_BEGIN_ALLOW_THREADS; | |
5109 | _result = (bool )wxDialog_IsModal(_arg0); | |
5110 | ||
5111 | wxPy_END_ALLOW_THREADS; | |
5112 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5113 | return _resultobj; |
5114 | } | |
5115 | ||
5116 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 5117 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5118 | PyObject * _resultobj; |
5119 | wxDialog * _arg0; | |
5120 | wxString * _arg1; | |
1d99702e | 5121 | PyObject * _argo0 = 0; |
8ab979d7 | 5122 | PyObject * _obj1 = 0; |
efc5f224 | 5123 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
5124 | |
5125 | self = self; | |
efc5f224 | 5126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5127 | return NULL; |
1d99702e RD |
5128 | if (_argo0) { |
5129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); |
5132 | return NULL; | |
5133 | } | |
5134 | } | |
5135 | { | |
5136 | if (!PyString_Check(_obj1)) { | |
5137 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5138 | return NULL; | |
5139 | } | |
cf694132 | 5140 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 5141 | } |
cf694132 RD |
5142 | { |
5143 | wxPy_BEGIN_ALLOW_THREADS; | |
5144 | wxDialog_SetTitle(_arg0,*_arg1); | |
5145 | ||
5146 | wxPy_END_ALLOW_THREADS; | |
5147 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5148 | _resultobj = Py_None; |
5149 | { | |
5150 | if (_obj1) | |
5151 | delete _arg1; | |
5152 | } | |
5153 | return _resultobj; | |
5154 | } | |
5155 | ||
5156 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 5157 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5158 | PyObject * _resultobj; |
5159 | bool _result; | |
5160 | wxDialog * _arg0; | |
5161 | bool _arg1; | |
1d99702e | 5162 | PyObject * _argo0 = 0; |
8ab979d7 | 5163 | int tempbool1; |
efc5f224 | 5164 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
5165 | |
5166 | self = self; | |
efc5f224 | 5167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5168 | return NULL; |
1d99702e RD |
5169 | if (_argo0) { |
5170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); |
5173 | return NULL; | |
5174 | } | |
5175 | } | |
5176 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5177 | { |
5178 | wxPy_BEGIN_ALLOW_THREADS; | |
5179 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
5180 | ||
5181 | wxPy_END_ALLOW_THREADS; | |
5182 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5183 | return _resultobj; |
5184 | } | |
5185 | ||
5186 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 5187 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5188 | PyObject * _resultobj; |
5189 | int _result; | |
5190 | wxDialog * _arg0; | |
1d99702e | 5191 | PyObject * _argo0 = 0; |
efc5f224 | 5192 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5193 | |
5194 | self = self; | |
efc5f224 | 5195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 5196 | return NULL; |
1d99702e RD |
5197 | if (_argo0) { |
5198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); |
5201 | return NULL; | |
5202 | } | |
5203 | } | |
cf694132 RD |
5204 | { |
5205 | wxPy_BEGIN_ALLOW_THREADS; | |
5206 | _result = (int )wxDialog_ShowModal(_arg0); | |
5207 | ||
5208 | wxPy_END_ALLOW_THREADS; | |
5209 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5210 | return _resultobj; |
5211 | } | |
5212 | ||
bb0054cd | 5213 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) |
efc5f224 | 5214 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5215 | PyObject * _resultobj; |
5216 | int _result; | |
5217 | wxDialog * _arg0; | |
1d99702e | 5218 | PyObject * _argo0 = 0; |
efc5f224 | 5219 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5220 | |
5221 | self = self; | |
efc5f224 | 5222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) |
bb0054cd | 5223 | return NULL; |
1d99702e RD |
5224 | if (_argo0) { |
5225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); |
5228 | return NULL; | |
5229 | } | |
5230 | } | |
5231 | { | |
5232 | wxPy_BEGIN_ALLOW_THREADS; | |
5233 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
5234 | ||
5235 | wxPy_END_ALLOW_THREADS; | |
5236 | } _resultobj = Py_BuildValue("i",_result); | |
5237 | return _resultobj; | |
5238 | } | |
5239 | ||
5240 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
efc5f224 | 5241 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5242 | PyObject * _resultobj; |
5243 | wxDialog * _arg0; | |
5244 | int _arg1; | |
1d99702e | 5245 | PyObject * _argo0 = 0; |
efc5f224 | 5246 | char *_kwnames[] = { "self","retCode", NULL }; |
bb0054cd RD |
5247 | |
5248 | self = self; | |
efc5f224 | 5249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 5250 | return NULL; |
1d99702e RD |
5251 | if (_argo0) { |
5252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); |
5255 | return NULL; | |
5256 | } | |
5257 | } | |
5258 | { | |
5259 | wxPy_BEGIN_ALLOW_THREADS; | |
5260 | wxDialog_SetReturnCode(_arg0,_arg1); | |
5261 | ||
5262 | wxPy_END_ALLOW_THREADS; | |
5263 | } Py_INCREF(Py_None); | |
5264 | _resultobj = Py_None; | |
5265 | return _resultobj; | |
5266 | } | |
5267 | ||
5268 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { | |
5269 | wxScrolledWindow *src; | |
5270 | wxPanel *dest; | |
5271 | src = (wxScrolledWindow *) ptr; | |
5272 | dest = (wxPanel *) src; | |
5273 | return (void *) dest; | |
5274 | } | |
5275 | ||
8ab979d7 RD |
5276 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
5277 | wxScrolledWindow *src; | |
5278 | wxWindow *dest; | |
5279 | src = (wxScrolledWindow *) ptr; | |
5280 | dest = (wxWindow *) src; | |
5281 | return (void *) dest; | |
5282 | } | |
5283 | ||
5284 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
5285 | wxScrolledWindow *src; | |
5286 | wxEvtHandler *dest; | |
5287 | src = (wxScrolledWindow *) ptr; | |
5288 | dest = (wxEvtHandler *) src; | |
5289 | return (void *) dest; | |
5290 | } | |
5291 | ||
5292 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 5293 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5294 | PyObject * _resultobj; |
5295 | wxScrolledWindow * _result; | |
5296 | wxWindow * _arg0; | |
1d99702e RD |
5297 | wxWindowID _arg1 = (wxWindowID ) -1; |
5298 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; | |
5299 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
5300 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; | |
5301 | char * _arg5 = (char *) "scrolledWindow"; | |
5302 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5303 | wxPoint temp; |
5304 | PyObject * _obj2 = 0; | |
5305 | wxSize temp0; | |
5306 | PyObject * _obj3 = 0; | |
efc5f224 | 5307 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5308 | char _ptemp[128]; |
5309 | ||
5310 | self = self; | |
2f90df85 | 5311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5312 | return NULL; |
1d99702e RD |
5313 | if (_argo0) { |
5314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
5317 | return NULL; | |
5318 | } | |
5319 | } | |
2f90df85 RD |
5320 | if (_obj2) |
5321 | { | |
5322 | _arg2 = &temp; | |
5323 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5324 | return NULL; |
2f90df85 RD |
5325 | } |
5326 | if (_obj3) | |
5327 | { | |
5328 | _arg3 = &temp0; | |
5329 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5330 | return NULL; |
2f90df85 | 5331 | } |
cf694132 RD |
5332 | { |
5333 | wxPy_BEGIN_ALLOW_THREADS; | |
5334 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5335 | ||
5336 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5337 | } if (_result) { |
5338 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
5339 | _resultobj = Py_BuildValue("s",_ptemp); | |
5340 | } else { | |
5341 | Py_INCREF(Py_None); | |
5342 | _resultobj = Py_None; | |
5343 | } | |
8ab979d7 RD |
5344 | return _resultobj; |
5345 | } | |
5346 | ||
5347 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
efc5f224 | 5348 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5349 | PyObject * _resultobj; |
5350 | wxScrolledWindow * _arg0; | |
5351 | bool _arg1; | |
5352 | bool _arg2; | |
1d99702e | 5353 | PyObject * _argo0 = 0; |
8ab979d7 RD |
5354 | int tempbool1; |
5355 | int tempbool2; | |
efc5f224 | 5356 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
5357 | |
5358 | self = self; | |
efc5f224 | 5359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 5360 | return NULL; |
1d99702e RD |
5361 | if (_argo0) { |
5362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
5365 | return NULL; | |
5366 | } | |
5367 | } | |
5368 | _arg1 = (bool ) tempbool1; | |
5369 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
5370 | { |
5371 | wxPy_BEGIN_ALLOW_THREADS; | |
5372 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
5373 | ||
5374 | wxPy_END_ALLOW_THREADS; | |
5375 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5376 | _resultobj = Py_None; |
5377 | return _resultobj; | |
5378 | } | |
5379 | ||
5380 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) | |
efc5f224 | 5381 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5382 | PyObject * _resultobj; |
5383 | wxScrolledWindow * _arg0; | |
5384 | int * _arg1; | |
5385 | int temp; | |
5386 | int * _arg2; | |
5387 | int temp0; | |
1d99702e | 5388 | PyObject * _argo0 = 0; |
efc5f224 | 5389 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5390 | |
5391 | self = self; | |
5392 | { | |
5393 | _arg1 = &temp; | |
5394 | } | |
5395 | { | |
5396 | _arg2 = &temp0; | |
5397 | } | |
efc5f224 | 5398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 5399 | return NULL; |
1d99702e RD |
5400 | if (_argo0) { |
5401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
5404 | return NULL; | |
5405 | } | |
5406 | } | |
cf694132 RD |
5407 | { |
5408 | wxPy_BEGIN_ALLOW_THREADS; | |
5409 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
5410 | ||
5411 | wxPy_END_ALLOW_THREADS; | |
5412 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5413 | _resultobj = Py_None; |
5414 | { | |
5415 | PyObject *o; | |
5416 | o = PyInt_FromLong((long) (*_arg1)); | |
5417 | _resultobj = t_output_helper(_resultobj, o); | |
5418 | } | |
5419 | { | |
5420 | PyObject *o; | |
5421 | o = PyInt_FromLong((long) (*_arg2)); | |
5422 | _resultobj = t_output_helper(_resultobj, o); | |
5423 | } | |
5424 | return _resultobj; | |
5425 | } | |
5426 | ||
5427 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) | |
efc5f224 | 5428 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5429 | PyObject * _resultobj; |
5430 | wxScrolledWindow * _arg0; | |
5431 | int * _arg1; | |
5432 | int temp; | |
5433 | int * _arg2; | |
5434 | int temp0; | |
1d99702e | 5435 | PyObject * _argo0 = 0; |
efc5f224 | 5436 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5437 | |
5438 | self = self; | |
5439 | { | |
5440 | _arg1 = &temp; | |
5441 | } | |
5442 | { | |
5443 | _arg2 = &temp0; | |
5444 | } | |
efc5f224 | 5445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 5446 | return NULL; |
1d99702e RD |
5447 | if (_argo0) { |
5448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
5451 | return NULL; | |
5452 | } | |
5453 | } | |
cf694132 RD |
5454 | { |
5455 | wxPy_BEGIN_ALLOW_THREADS; | |
5456 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
5457 | ||
5458 | wxPy_END_ALLOW_THREADS; | |
5459 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5460 | _resultobj = Py_None; |
5461 | { | |
5462 | PyObject *o; | |
5463 | o = PyInt_FromLong((long) (*_arg1)); | |
5464 | _resultobj = t_output_helper(_resultobj, o); | |
5465 | } | |
5466 | { | |
5467 | PyObject *o; | |
5468 | o = PyInt_FromLong((long) (*_arg2)); | |
5469 | _resultobj = t_output_helper(_resultobj, o); | |
5470 | } | |
5471 | return _resultobj; | |
5472 | } | |
5473 | ||
5474 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 5475 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5476 | PyObject * _resultobj; |
5477 | bool _result; | |
5478 | wxScrolledWindow * _arg0; | |
1d99702e | 5479 | PyObject * _argo0 = 0; |
efc5f224 | 5480 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5481 | |
5482 | self = self; | |
efc5f224 | 5483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 5484 | return NULL; |
1d99702e RD |
5485 | if (_argo0) { |
5486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
5489 | return NULL; | |
5490 | } | |
5491 | } | |
cf694132 RD |
5492 | { |
5493 | wxPy_BEGIN_ALLOW_THREADS; | |
5494 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
5495 | ||
5496 | wxPy_END_ALLOW_THREADS; | |
5497 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5498 | return _resultobj; |
5499 | } | |
5500 | ||
5501 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 5502 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5503 | PyObject * _resultobj; |
5504 | wxScrolledWindow * _arg0; | |
5505 | wxDC * _arg1; | |
1d99702e RD |
5506 | PyObject * _argo0 = 0; |
5507 | PyObject * _argo1 = 0; | |
efc5f224 | 5508 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
5509 | |
5510 | self = self; | |
efc5f224 | 5511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5512 | return NULL; |
1d99702e RD |
5513 | if (_argo0) { |
5514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
5517 | return NULL; | |
5518 | } | |
5519 | } | |
1d99702e RD |
5520 | if (_argo1) { |
5521 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5522 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
5523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
5524 | return NULL; | |
5525 | } | |
5526 | } | |
cf694132 RD |
5527 | { |
5528 | wxPy_BEGIN_ALLOW_THREADS; | |
5529 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
5530 | ||
5531 | wxPy_END_ALLOW_THREADS; | |
5532 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5533 | _resultobj = Py_None; |
5534 | return _resultobj; | |
5535 | } | |
5536 | ||
5537 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 5538 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5539 | PyObject * _resultobj; |
5540 | wxScrolledWindow * _arg0; | |
5541 | int _arg1; | |
5542 | int _arg2; | |
1d99702e | 5543 | PyObject * _argo0 = 0; |
efc5f224 | 5544 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
5545 | |
5546 | self = self; | |
efc5f224 | 5547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5548 | return NULL; |
1d99702e RD |
5549 | if (_argo0) { |
5550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
5553 | return NULL; | |
5554 | } | |
5555 | } | |
cf694132 RD |
5556 | { |
5557 | wxPy_BEGIN_ALLOW_THREADS; | |
5558 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
5559 | ||
5560 | wxPy_END_ALLOW_THREADS; | |
5561 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5562 | _resultobj = Py_None; |
5563 | return _resultobj; | |
5564 | } | |
5565 | ||
5566 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 5567 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5568 | PyObject * _resultobj; |
5569 | wxScrolledWindow * _arg0; | |
5570 | int _arg1; | |
5571 | int _arg2; | |
5572 | int _arg3; | |
5573 | int _arg4; | |
1d99702e RD |
5574 | int _arg5 = (int ) 0; |
5575 | int _arg6 = (int ) 0; | |
5576 | PyObject * _argo0 = 0; | |
efc5f224 | 5577 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos", NULL }; |
8ab979d7 RD |
5578 | |
5579 | self = self; | |
efc5f224 | 5580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|ii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 5581 | return NULL; |
1d99702e RD |
5582 | if (_argo0) { |
5583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
5586 | return NULL; | |
5587 | } | |
5588 | } | |
cf694132 RD |
5589 | { |
5590 | wxPy_BEGIN_ALLOW_THREADS; | |
5591 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5592 | ||
5593 | wxPy_END_ALLOW_THREADS; | |
5594 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5595 | _resultobj = Py_None; |
5596 | return _resultobj; | |
5597 | } | |
5598 | ||
eb715945 RD |
5599 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
5600 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5601 | PyObject * _resultobj; | |
5602 | wxScrolledWindow * _arg0; | |
5603 | wxWindow * _arg1; | |
5604 | PyObject * _argo0 = 0; | |
5605 | PyObject * _argo1 = 0; | |
5606 | char *_kwnames[] = { "self","window", NULL }; | |
5607 | ||
5608 | self = self; | |
5609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
5610 | return NULL; | |
5611 | if (_argo0) { | |
5612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
5615 | return NULL; | |
5616 | } | |
5617 | } | |
5618 | if (_argo1) { | |
5619 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5620 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
5622 | return NULL; | |
5623 | } | |
5624 | } | |
5625 | { | |
5626 | wxPy_BEGIN_ALLOW_THREADS; | |
5627 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
5628 | ||
5629 | wxPy_END_ALLOW_THREADS; | |
5630 | } Py_INCREF(Py_None); | |
5631 | _resultobj = Py_None; | |
5632 | return _resultobj; | |
5633 | } | |
5634 | ||
8ab979d7 | 5635 | #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1)) |
efc5f224 | 5636 | static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5637 | PyObject * _resultobj; |
5638 | wxScrolledWindow * _arg0; | |
5639 | int * _arg1; | |
5640 | int temp; | |
5641 | int * _arg2; | |
5642 | int temp0; | |
1d99702e | 5643 | PyObject * _argo0 = 0; |
efc5f224 | 5644 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5645 | |
5646 | self = self; | |
5647 | { | |
5648 | _arg1 = &temp; | |
5649 | } | |
5650 | { | |
5651 | _arg2 = &temp0; | |
5652 | } | |
efc5f224 | 5653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0)) |
8ab979d7 | 5654 | return NULL; |
1d99702e RD |
5655 | if (_argo0) { |
5656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
5658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p."); |
5659 | return NULL; | |
5660 | } | |
5661 | } | |
cf694132 RD |
5662 | { |
5663 | wxPy_BEGIN_ALLOW_THREADS; | |
5664 | wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2); | |
5665 | ||
5666 | wxPy_END_ALLOW_THREADS; | |
5667 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5668 | _resultobj = Py_None; |
5669 | { | |
5670 | PyObject *o; | |
5671 | o = PyInt_FromLong((long) (*_arg1)); | |
5672 | _resultobj = t_output_helper(_resultobj, o); | |
5673 | } | |
5674 | { | |
5675 | PyObject *o; | |
5676 | o = PyInt_FromLong((long) (*_arg2)); | |
5677 | _resultobj = t_output_helper(_resultobj, o); | |
5678 | } | |
5679 | return _resultobj; | |
5680 | } | |
5681 | ||
9d8bd15f RD |
5682 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
5683 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5684 | PyObject * _resultobj; | |
5685 | wxScrolledWindow * _arg0; | |
5686 | int _arg1; | |
5687 | int _arg2; | |
5688 | int * _arg3; | |
5689 | int temp; | |
5690 | int * _arg4; | |
5691 | int temp0; | |
5692 | PyObject * _argo0 = 0; | |
5693 | char *_kwnames[] = { "self","x","y", NULL }; | |
5694 | ||
5695 | self = self; | |
5696 | { | |
5697 | _arg3 = &temp; | |
5698 | } | |
5699 | { | |
5700 | _arg4 = &temp0; | |
5701 | } | |
5702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5703 | return NULL; | |
5704 | if (_argo0) { | |
5705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
5708 | return NULL; | |
5709 | } | |
5710 | } | |
5711 | { | |
5712 | wxPy_BEGIN_ALLOW_THREADS; | |
5713 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5714 | ||
5715 | wxPy_END_ALLOW_THREADS; | |
5716 | } Py_INCREF(Py_None); | |
5717 | _resultobj = Py_None; | |
5718 | { | |
5719 | PyObject *o; | |
5720 | o = PyInt_FromLong((long) (*_arg3)); | |
5721 | _resultobj = t_output_helper(_resultobj, o); | |
5722 | } | |
5723 | { | |
5724 | PyObject *o; | |
5725 | o = PyInt_FromLong((long) (*_arg4)); | |
5726 | _resultobj = t_output_helper(_resultobj, o); | |
5727 | } | |
5728 | return _resultobj; | |
5729 | } | |
5730 | ||
5731 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5732 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5733 | PyObject * _resultobj; | |
5734 | wxScrolledWindow * _arg0; | |
5735 | int _arg1; | |
5736 | int _arg2; | |
5737 | int * _arg3; | |
5738 | int temp; | |
5739 | int * _arg4; | |
5740 | int temp0; | |
5741 | PyObject * _argo0 = 0; | |
5742 | char *_kwnames[] = { "self","x","y", NULL }; | |
5743 | ||
5744 | self = self; | |
5745 | { | |
5746 | _arg3 = &temp; | |
5747 | } | |
5748 | { | |
5749 | _arg4 = &temp0; | |
5750 | } | |
5751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5752 | return NULL; | |
5753 | if (_argo0) { | |
5754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
5757 | return NULL; | |
5758 | } | |
5759 | } | |
5760 | { | |
5761 | wxPy_BEGIN_ALLOW_THREADS; | |
5762 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5763 | ||
5764 | wxPy_END_ALLOW_THREADS; | |
5765 | } Py_INCREF(Py_None); | |
5766 | _resultobj = Py_None; | |
5767 | { | |
5768 | PyObject *o; | |
5769 | o = PyInt_FromLong((long) (*_arg3)); | |
5770 | _resultobj = t_output_helper(_resultobj, o); | |
5771 | } | |
5772 | { | |
5773 | PyObject *o; | |
5774 | o = PyInt_FromLong((long) (*_arg4)); | |
5775 | _resultobj = t_output_helper(_resultobj, o); | |
5776 | } | |
5777 | return _resultobj; | |
5778 | } | |
5779 | ||
8ab979d7 RD |
5780 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
5781 | wxMenu *src; | |
5782 | wxEvtHandler *dest; | |
5783 | src = (wxMenu *) ptr; | |
5784 | dest = (wxEvtHandler *) src; | |
5785 | return (void *) dest; | |
5786 | } | |
5787 | ||
8bf5d46e | 5788 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 5789 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5790 | PyObject * _resultobj; |
5791 | wxMenu * _result; | |
1d99702e RD |
5792 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
5793 | long _arg1 = (long ) 0; | |
8ab979d7 | 5794 | PyObject * _obj0 = 0; |
efc5f224 | 5795 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
5796 | char _ptemp[128]; |
5797 | ||
5798 | self = self; | |
efc5f224 | 5799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
5800 | return NULL; |
5801 | if (_obj0) | |
5802 | { | |
5803 | if (!PyString_Check(_obj0)) { | |
5804 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5805 | return NULL; | |
5806 | } | |
cf694132 | 5807 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); |
8ab979d7 | 5808 | } |
cf694132 RD |
5809 | { |
5810 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 5811 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 RD |
5812 | |
5813 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5814 | } if (_result) { |
5815 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
5816 | _resultobj = Py_BuildValue("s",_ptemp); | |
5817 | } else { | |
5818 | Py_INCREF(Py_None); | |
5819 | _resultobj = Py_None; | |
5820 | } | |
8ab979d7 RD |
5821 | { |
5822 | if (_obj0) | |
5823 | delete _arg0; | |
5824 | } | |
5825 | return _resultobj; | |
5826 | } | |
5827 | ||
5828 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 5829 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5830 | PyObject * _resultobj; |
5831 | wxMenu * _arg0; | |
5832 | int _arg1; | |
5833 | wxString * _arg2; | |
1d99702e RD |
5834 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
5835 | int _arg4 = (int ) FALSE; | |
5836 | PyObject * _argo0 = 0; | |
8ab979d7 RD |
5837 | PyObject * _obj2 = 0; |
5838 | PyObject * _obj3 = 0; | |
efc5f224 | 5839 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
5840 | |
5841 | self = self; | |
efc5f224 | 5842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 5843 | return NULL; |
1d99702e RD |
5844 | if (_argo0) { |
5845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
5847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
5848 | return NULL; | |
5849 | } | |
5850 | } | |
5851 | { | |
5852 | if (!PyString_Check(_obj2)) { | |
5853 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5854 | return NULL; | |
5855 | } | |
cf694132 | 5856 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 RD |
5857 | } |
5858 | if (_obj3) | |
5859 | { | |
5860 | if (!PyString_Check(_obj3)) { | |
5861 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5862 | return NULL; | |
5863 | } | |
cf694132 | 5864 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); |
8ab979d7 | 5865 | } |
cf694132 RD |
5866 | { |
5867 | wxPy_BEGIN_ALLOW_THREADS; | |
5868 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
5869 | ||
5870 | wxPy_END_ALLOW_THREADS; | |
5871 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5872 | _resultobj = Py_None; |
5873 | { | |
5874 | if (_obj2) | |
5875 | delete _arg2; | |
5876 | } | |
5877 | { | |
5878 | if (_obj3) | |
5879 | delete _arg3; | |
5880 | } | |
5881 | return _resultobj; | |
5882 | } | |
5883 | ||
5884 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 5885 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5886 | PyObject * _resultobj; |
5887 | wxMenu * _arg0; | |
5888 | int _arg1; | |
5889 | wxString * _arg2; | |
5890 | wxMenu * _arg3; | |
1d99702e RD |
5891 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
5892 | PyObject * _argo0 = 0; | |
8ab979d7 | 5893 | PyObject * _obj2 = 0; |
1d99702e | 5894 | PyObject * _argo3 = 0; |
8ab979d7 | 5895 | PyObject * _obj4 = 0; |
efc5f224 | 5896 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
5897 | |
5898 | self = self; | |
efc5f224 | 5899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 5900 | return NULL; |
1d99702e RD |
5901 | if (_argo0) { |
5902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
5904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
5905 | return NULL; | |
5906 | } | |
5907 | } | |
5908 | { | |
5909 | if (!PyString_Check(_obj2)) { | |
5910 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5911 | return NULL; | |
5912 | } | |
cf694132 | 5913 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 5914 | } |
1d99702e RD |
5915 | if (_argo3) { |
5916 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
5917 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
5918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
5919 | return NULL; | |
5920 | } | |
5921 | } | |
5922 | if (_obj4) | |
5923 | { | |
5924 | if (!PyString_Check(_obj4)) { | |
5925 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5926 | return NULL; | |
5927 | } | |
cf694132 | 5928 | _arg4 = new wxString(PyString_AsString(_obj4), PyString_Size(_obj4)); |
8ab979d7 | 5929 | } |
cf694132 RD |
5930 | { |
5931 | wxPy_BEGIN_ALLOW_THREADS; | |
5932 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
5933 | ||
5934 | wxPy_END_ALLOW_THREADS; | |
5935 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5936 | _resultobj = Py_None; |
5937 | { | |
5938 | if (_obj2) | |
5939 | delete _arg2; | |
5940 | } | |
5941 | { | |
5942 | if (_obj4) | |
5943 | delete _arg4; | |
5944 | } | |
5945 | return _resultobj; | |
5946 | } | |
5947 | ||
af309447 | 5948 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 5949 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5950 | PyObject * _resultobj; |
5951 | wxMenu * _arg0; | |
5952 | wxMenuItem * _arg1; | |
1d99702e RD |
5953 | PyObject * _argo0 = 0; |
5954 | PyObject * _argo1 = 0; | |
efc5f224 | 5955 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
5956 | |
5957 | self = self; | |
efc5f224 | 5958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 5959 | return NULL; |
1d99702e RD |
5960 | if (_argo0) { |
5961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
5963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
5964 | return NULL; | |
5965 | } | |
5966 | } | |
1d99702e RD |
5967 | if (_argo1) { |
5968 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5969 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
5970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
5971 | return NULL; | |
5972 | } | |
5973 | } | |
cf694132 RD |
5974 | { |
5975 | wxPy_BEGIN_ALLOW_THREADS; | |
5976 | wxMenu_AppendItem(_arg0,_arg1); | |
5977 | ||
5978 | wxPy_END_ALLOW_THREADS; | |
5979 | } Py_INCREF(Py_None); | |
af309447 RD |
5980 | _resultobj = Py_None; |
5981 | return _resultobj; | |
5982 | } | |
5983 | ||
8ab979d7 | 5984 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 5985 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5986 | PyObject * _resultobj; |
5987 | wxMenu * _arg0; | |
1d99702e | 5988 | PyObject * _argo0 = 0; |
efc5f224 | 5989 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5990 | |
5991 | self = self; | |
efc5f224 | 5992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 5993 | return NULL; |
1d99702e RD |
5994 | if (_argo0) { |
5995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
5997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
5998 | return NULL; | |
5999 | } | |
6000 | } | |
cf694132 RD |
6001 | { |
6002 | wxPy_BEGIN_ALLOW_THREADS; | |
6003 | wxMenu_AppendSeparator(_arg0); | |
6004 | ||
6005 | wxPy_END_ALLOW_THREADS; | |
6006 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6007 | _resultobj = Py_None; |
6008 | return _resultobj; | |
6009 | } | |
6010 | ||
6011 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 6012 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6013 | PyObject * _resultobj; |
6014 | wxMenu * _arg0; | |
1d99702e | 6015 | PyObject * _argo0 = 0; |
efc5f224 | 6016 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6017 | |
6018 | self = self; | |
efc5f224 | 6019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 6020 | return NULL; |
1d99702e RD |
6021 | if (_argo0) { |
6022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
6025 | return NULL; | |
6026 | } | |
6027 | } | |
cf694132 RD |
6028 | { |
6029 | wxPy_BEGIN_ALLOW_THREADS; | |
6030 | wxMenu_Break(_arg0); | |
6031 | ||
6032 | wxPy_END_ALLOW_THREADS; | |
6033 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6034 | _resultobj = Py_None; |
6035 | return _resultobj; | |
6036 | } | |
6037 | ||
6038 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 6039 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6040 | PyObject * _resultobj; |
6041 | wxMenu * _arg0; | |
6042 | int _arg1; | |
6043 | bool _arg2; | |
1d99702e | 6044 | PyObject * _argo0 = 0; |
8ab979d7 | 6045 | int tempbool2; |
efc5f224 | 6046 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
6047 | |
6048 | self = self; | |
efc5f224 | 6049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 6050 | return NULL; |
1d99702e RD |
6051 | if (_argo0) { |
6052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
6055 | return NULL; | |
6056 | } | |
6057 | } | |
6058 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6059 | { |
6060 | wxPy_BEGIN_ALLOW_THREADS; | |
6061 | wxMenu_Check(_arg0,_arg1,_arg2); | |
6062 | ||
6063 | wxPy_END_ALLOW_THREADS; | |
6064 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6065 | _resultobj = Py_None; |
6066 | return _resultobj; | |
6067 | } | |
6068 | ||
b1462dfa RD |
6069 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
6070 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6071 | PyObject * _resultobj; | |
6072 | bool _result; | |
6073 | wxMenu * _arg0; | |
6074 | int _arg1; | |
6075 | PyObject * _argo0 = 0; | |
6076 | char *_kwnames[] = { "self","id", NULL }; | |
6077 | ||
6078 | self = self; | |
6079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
6080 | return NULL; | |
6081 | if (_argo0) { | |
6082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
6085 | return NULL; | |
6086 | } | |
6087 | } | |
6088 | { | |
6089 | wxPy_BEGIN_ALLOW_THREADS; | |
6090 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
6091 | ||
6092 | wxPy_END_ALLOW_THREADS; | |
6093 | } _resultobj = Py_BuildValue("i",_result); | |
6094 | return _resultobj; | |
6095 | } | |
6096 | ||
8ab979d7 | 6097 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 6098 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6099 | PyObject * _resultobj; |
6100 | wxMenu * _arg0; | |
6101 | int _arg1; | |
6102 | bool _arg2; | |
1d99702e | 6103 | PyObject * _argo0 = 0; |
8ab979d7 | 6104 | int tempbool2; |
efc5f224 | 6105 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
6106 | |
6107 | self = self; | |
efc5f224 | 6108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 6109 | return NULL; |
1d99702e RD |
6110 | if (_argo0) { |
6111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
6114 | return NULL; | |
6115 | } | |
6116 | } | |
6117 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6118 | { |
6119 | wxPy_BEGIN_ALLOW_THREADS; | |
6120 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
6121 | ||
6122 | wxPy_END_ALLOW_THREADS; | |
6123 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6124 | _resultobj = Py_None; |
6125 | return _resultobj; | |
6126 | } | |
6127 | ||
b1462dfa RD |
6128 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
6129 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6130 | PyObject * _resultobj; | |
6131 | bool _result; | |
6132 | wxMenu * _arg0; | |
6133 | int _arg1; | |
6134 | PyObject * _argo0 = 0; | |
6135 | char *_kwnames[] = { "self","id", NULL }; | |
6136 | ||
6137 | self = self; | |
6138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
6139 | return NULL; | |
6140 | if (_argo0) { | |
6141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
6144 | return NULL; | |
6145 | } | |
6146 | } | |
6147 | { | |
6148 | wxPy_BEGIN_ALLOW_THREADS; | |
6149 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
6150 | ||
6151 | wxPy_END_ALLOW_THREADS; | |
6152 | } _resultobj = Py_BuildValue("i",_result); | |
6153 | return _resultobj; | |
6154 | } | |
6155 | ||
8ab979d7 | 6156 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 6157 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6158 | PyObject * _resultobj; |
6159 | int _result; | |
6160 | wxMenu * _arg0; | |
6161 | wxString * _arg1; | |
1d99702e | 6162 | PyObject * _argo0 = 0; |
8ab979d7 | 6163 | PyObject * _obj1 = 0; |
efc5f224 | 6164 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
6165 | |
6166 | self = self; | |
efc5f224 | 6167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6168 | return NULL; |
1d99702e RD |
6169 | if (_argo0) { |
6170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
6173 | return NULL; | |
6174 | } | |
6175 | } | |
6176 | { | |
6177 | if (!PyString_Check(_obj1)) { | |
6178 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6179 | return NULL; | |
6180 | } | |
cf694132 | 6181 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 6182 | } |
cf694132 RD |
6183 | { |
6184 | wxPy_BEGIN_ALLOW_THREADS; | |
6185 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
6186 | ||
6187 | wxPy_END_ALLOW_THREADS; | |
6188 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6189 | { |
6190 | if (_obj1) | |
6191 | delete _arg1; | |
6192 | } | |
6193 | return _resultobj; | |
6194 | } | |
6195 | ||
b1462dfa RD |
6196 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
6197 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6198 | PyObject * _resultobj; | |
6199 | wxMenuItem * _result; | |
6200 | wxMenu * _arg0; | |
6201 | int _arg1; | |
6202 | PyObject * _argo0 = 0; | |
6203 | char *_kwnames[] = { "self","id", NULL }; | |
6204 | char _ptemp[128]; | |
6205 | ||
6206 | self = self; | |
6207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
6208 | return NULL; | |
6209 | if (_argo0) { | |
6210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
6213 | return NULL; | |
6214 | } | |
6215 | } | |
6216 | { | |
6217 | wxPy_BEGIN_ALLOW_THREADS; | |
6218 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
6219 | ||
6220 | wxPy_END_ALLOW_THREADS; | |
6221 | } if (_result) { | |
6222 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
6223 | _resultobj = Py_BuildValue("s",_ptemp); | |
6224 | } else { | |
6225 | Py_INCREF(Py_None); | |
6226 | _resultobj = Py_None; | |
6227 | } | |
6228 | return _resultobj; | |
6229 | } | |
6230 | ||
8ab979d7 | 6231 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 6232 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6233 | PyObject * _resultobj; |
6234 | wxString * _result; | |
6235 | wxMenu * _arg0; | |
1d99702e | 6236 | PyObject * _argo0 = 0; |
efc5f224 | 6237 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6238 | |
6239 | self = self; | |
efc5f224 | 6240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 6241 | return NULL; |
1d99702e RD |
6242 | if (_argo0) { |
6243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
6246 | return NULL; | |
6247 | } | |
6248 | } | |
8ab979d7 | 6249 | { |
cf694132 RD |
6250 | wxPy_BEGIN_ALLOW_THREADS; |
6251 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
6252 | ||
6253 | wxPy_END_ALLOW_THREADS; | |
6254 | }{ | |
8ab979d7 RD |
6255 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
6256 | } | |
6257 | { | |
6258 | delete _result; | |
6259 | } | |
6260 | return _resultobj; | |
6261 | } | |
6262 | ||
6263 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 6264 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6265 | PyObject * _resultobj; |
6266 | wxMenu * _arg0; | |
6267 | wxString * _arg1; | |
1d99702e | 6268 | PyObject * _argo0 = 0; |
8ab979d7 | 6269 | PyObject * _obj1 = 0; |
efc5f224 | 6270 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
6271 | |
6272 | self = self; | |
efc5f224 | 6273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6274 | return NULL; |
1d99702e RD |
6275 | if (_argo0) { |
6276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
6279 | return NULL; | |
6280 | } | |
6281 | } | |
6282 | { | |
6283 | if (!PyString_Check(_obj1)) { | |
6284 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6285 | return NULL; | |
6286 | } | |
cf694132 | 6287 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 6288 | } |
cf694132 RD |
6289 | { |
6290 | wxPy_BEGIN_ALLOW_THREADS; | |
6291 | wxMenu_SetTitle(_arg0,*_arg1); | |
6292 | ||
6293 | wxPy_END_ALLOW_THREADS; | |
6294 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6295 | _resultobj = Py_None; |
6296 | { | |
6297 | if (_obj1) | |
6298 | delete _arg1; | |
6299 | } | |
6300 | return _resultobj; | |
6301 | } | |
6302 | ||
b1462dfa RD |
6303 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
6304 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6305 | PyObject * _resultobj; |
b1462dfa | 6306 | wxString * _result; |
8ab979d7 RD |
6307 | wxMenu * _arg0; |
6308 | int _arg1; | |
1d99702e | 6309 | PyObject * _argo0 = 0; |
efc5f224 | 6310 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
6311 | |
6312 | self = self; | |
b1462dfa | 6313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6314 | return NULL; |
1d99702e RD |
6315 | if (_argo0) { |
6316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 6318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
6319 | return NULL; |
6320 | } | |
6321 | } | |
cf694132 RD |
6322 | { |
6323 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6324 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 RD |
6325 | |
6326 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
6327 | }{ |
6328 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
6329 | } | |
6330 | { | |
6331 | delete _result; | |
6332 | } | |
8ab979d7 RD |
6333 | return _resultobj; |
6334 | } | |
6335 | ||
b1462dfa RD |
6336 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
6337 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6338 | PyObject * _resultobj; |
8ab979d7 RD |
6339 | wxMenu * _arg0; |
6340 | int _arg1; | |
b1462dfa | 6341 | wxString * _arg2; |
1d99702e | 6342 | PyObject * _argo0 = 0; |
b1462dfa RD |
6343 | PyObject * _obj2 = 0; |
6344 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
6345 | |
6346 | self = self; | |
b1462dfa | 6347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 6348 | return NULL; |
1d99702e RD |
6349 | if (_argo0) { |
6350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 6352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
6353 | return NULL; |
6354 | } | |
6355 | } | |
b1462dfa RD |
6356 | { |
6357 | if (!PyString_Check(_obj2)) { | |
6358 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6359 | return NULL; | |
6360 | } | |
6361 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
6362 | } | |
8ab979d7 | 6363 | { |
cf694132 | 6364 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 6365 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
6366 | |
6367 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
6368 | } Py_INCREF(Py_None); |
6369 | _resultobj = Py_None; | |
8ab979d7 | 6370 | { |
b1462dfa RD |
6371 | if (_obj2) |
6372 | delete _arg2; | |
8ab979d7 RD |
6373 | } |
6374 | return _resultobj; | |
6375 | } | |
6376 | ||
b1462dfa RD |
6377 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
6378 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6379 | PyObject * _resultobj; |
6380 | wxString * _result; | |
6381 | wxMenu * _arg0; | |
6382 | int _arg1; | |
1d99702e | 6383 | PyObject * _argo0 = 0; |
efc5f224 | 6384 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
6385 | |
6386 | self = self; | |
b1462dfa | 6387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6388 | return NULL; |
1d99702e RD |
6389 | if (_argo0) { |
6390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 6392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
6393 | return NULL; |
6394 | } | |
6395 | } | |
8ab979d7 | 6396 | { |
cf694132 | 6397 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 6398 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
6399 | |
6400 | wxPy_END_ALLOW_THREADS; | |
6401 | }{ | |
8ab979d7 RD |
6402 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
6403 | } | |
6404 | { | |
6405 | delete _result; | |
6406 | } | |
6407 | return _resultobj; | |
6408 | } | |
6409 | ||
6410 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 6411 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6412 | PyObject * _resultobj; |
6413 | wxMenu * _arg0; | |
6414 | int _arg1; | |
6415 | wxString * _arg2; | |
1d99702e | 6416 | PyObject * _argo0 = 0; |
8ab979d7 | 6417 | PyObject * _obj2 = 0; |
efc5f224 | 6418 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
6419 | |
6420 | self = self; | |
efc5f224 | 6421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 6422 | return NULL; |
1d99702e RD |
6423 | if (_argo0) { |
6424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
6427 | return NULL; | |
6428 | } | |
6429 | } | |
6430 | { | |
6431 | if (!PyString_Check(_obj2)) { | |
6432 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6433 | return NULL; | |
6434 | } | |
cf694132 | 6435 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 6436 | } |
cf694132 RD |
6437 | { |
6438 | wxPy_BEGIN_ALLOW_THREADS; | |
6439 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
6440 | ||
6441 | wxPy_END_ALLOW_THREADS; | |
6442 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6443 | _resultobj = Py_None; |
6444 | { | |
6445 | if (_obj2) | |
6446 | delete _arg2; | |
6447 | } | |
6448 | return _resultobj; | |
6449 | } | |
6450 | ||
b1462dfa RD |
6451 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
6452 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6453 | PyObject * _resultobj; |
8ab979d7 | 6454 | wxMenu * _arg0; |
b1462dfa | 6455 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 6456 | PyObject * _argo0 = 0; |
b1462dfa RD |
6457 | PyObject * _argo1 = 0; |
6458 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
6459 | |
6460 | self = self; | |
b1462dfa | 6461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6462 | return NULL; |
1d99702e RD |
6463 | if (_argo0) { |
6464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
6466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
6467 | return NULL; | |
6468 | } | |
6469 | } | |
6470 | if (_argo1) { | |
6471 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6472 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
6473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
6474 | return NULL; |
6475 | } | |
6476 | } | |
cf694132 RD |
6477 | { |
6478 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6479 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 RD |
6480 | |
6481 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
6482 | } Py_INCREF(Py_None); |
6483 | _resultobj = Py_None; | |
8ab979d7 RD |
6484 | return _resultobj; |
6485 | } | |
6486 | ||
b1462dfa RD |
6487 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
6488 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6489 | PyObject * _resultobj; |
6490 | bool _result; | |
6491 | wxMenu * _arg0; | |
6492 | int _arg1; | |
1d99702e | 6493 | PyObject * _argo0 = 0; |
efc5f224 | 6494 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
6495 | |
6496 | self = self; | |
b1462dfa | 6497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6498 | return NULL; |
1d99702e RD |
6499 | if (_argo0) { |
6500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 6502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
6503 | return NULL; |
6504 | } | |
6505 | } | |
cf694132 RD |
6506 | { |
6507 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6508 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 RD |
6509 | |
6510 | wxPy_END_ALLOW_THREADS; | |
6511 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6512 | return _resultobj; |
6513 | } | |
6514 | ||
b1462dfa RD |
6515 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
6516 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6517 | PyObject * _resultobj; |
b1462dfa | 6518 | bool _result; |
8ab979d7 | 6519 | wxMenu * _arg0; |
b1462dfa | 6520 | wxMenuItem * _arg1; |
1d99702e | 6521 | PyObject * _argo0 = 0; |
b1462dfa RD |
6522 | PyObject * _argo1 = 0; |
6523 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
6524 | |
6525 | self = self; | |
b1462dfa | 6526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6527 | return NULL; |
1d99702e RD |
6528 | if (_argo0) { |
6529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 6531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
6532 | return NULL; |
6533 | } | |
6534 | } | |
b1462dfa RD |
6535 | if (_argo1) { |
6536 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6537 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
6538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 6539 | return NULL; |
b1462dfa | 6540 | } |
8ab979d7 | 6541 | } |
cf694132 RD |
6542 | { |
6543 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6544 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 RD |
6545 | |
6546 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 6547 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6548 | return _resultobj; |
6549 | } | |
6550 | ||
b1462dfa RD |
6551 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
6552 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6553 | PyObject * _resultobj; |
b1462dfa | 6554 | bool _result; |
8bf5d46e | 6555 | wxMenu * _arg0; |
b1462dfa RD |
6556 | size_t _arg1; |
6557 | wxMenuItem * _arg2; | |
1d99702e | 6558 | PyObject * _argo0 = 0; |
b1462dfa RD |
6559 | PyObject * _argo2 = 0; |
6560 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
6561 | |
6562 | self = self; | |
b1462dfa | 6563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 6564 | return NULL; |
1d99702e RD |
6565 | if (_argo0) { |
6566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 6568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
6569 | return NULL; |
6570 | } | |
6571 | } | |
b1462dfa RD |
6572 | if (_argo2) { |
6573 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6574 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
6575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
6576 | return NULL; |
6577 | } | |
6578 | } | |
cf694132 RD |
6579 | { |
6580 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6581 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 RD |
6582 | |
6583 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 6584 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6585 | return _resultobj; |
6586 | } | |
6587 | ||
b1462dfa RD |
6588 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
6589 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 6590 | PyObject * _resultobj; |
b1462dfa | 6591 | wxMenuItem * _result; |
efc5f224 | 6592 | wxMenu * _arg0; |
b1462dfa | 6593 | int _arg1; |
efc5f224 | 6594 | PyObject * _argo0 = 0; |
b1462dfa RD |
6595 | char *_kwnames[] = { "self","id", NULL }; |
6596 | char _ptemp[128]; | |
efc5f224 RD |
6597 | |
6598 | self = self; | |
b1462dfa | 6599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
6600 | return NULL; |
6601 | if (_argo0) { | |
6602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 6604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
6605 | return NULL; |
6606 | } | |
6607 | } | |
6608 | { | |
6609 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6610 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 RD |
6611 | |
6612 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
6613 | } if (_result) { |
6614 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
6615 | _resultobj = Py_BuildValue("s",_ptemp); | |
6616 | } else { | |
6617 | Py_INCREF(Py_None); | |
6618 | _resultobj = Py_None; | |
6619 | } | |
efc5f224 RD |
6620 | return _resultobj; |
6621 | } | |
6622 | ||
b1462dfa RD |
6623 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
6624 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6625 | PyObject * _resultobj; |
b1462dfa RD |
6626 | wxMenuItem * _result; |
6627 | wxMenu * _arg0; | |
6628 | wxMenuItem * _arg1; | |
6629 | PyObject * _argo0 = 0; | |
6630 | PyObject * _argo1 = 0; | |
6631 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
6632 | char _ptemp[128]; |
6633 | ||
6634 | self = self; | |
b1462dfa RD |
6635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
6636 | return NULL; | |
6637 | if (_argo0) { | |
6638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
6641 | return NULL; | |
6642 | } | |
6643 | } | |
6644 | if (_argo1) { | |
6645 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6646 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
6647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 6648 | return NULL; |
b1462dfa RD |
6649 | } |
6650 | } | |
cf694132 RD |
6651 | { |
6652 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6653 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 RD |
6654 | |
6655 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 6656 | } if (_result) { |
b1462dfa | 6657 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); |
1d99702e RD |
6658 | _resultobj = Py_BuildValue("s",_ptemp); |
6659 | } else { | |
6660 | Py_INCREF(Py_None); | |
6661 | _resultobj = Py_None; | |
6662 | } | |
8ab979d7 RD |
6663 | return _resultobj; |
6664 | } | |
6665 | ||
eb715945 | 6666 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 6667 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6668 | PyObject * _resultobj; |
b1462dfa | 6669 | wxMenu * _arg0; |
1d99702e | 6670 | PyObject * _argo0 = 0; |
b1462dfa | 6671 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6672 | |
6673 | self = self; | |
b1462dfa | 6674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 6675 | return NULL; |
1d99702e RD |
6676 | if (_argo0) { |
6677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
6678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
6679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
6680 | return NULL; |
6681 | } | |
6682 | } | |
cf694132 RD |
6683 | { |
6684 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6685 | wxMenu_Destroy(_arg0); |
cf694132 RD |
6686 | |
6687 | wxPy_END_ALLOW_THREADS; | |
6688 | } Py_INCREF(Py_None); | |
8ab979d7 | 6689 | _resultobj = Py_None; |
8ab979d7 RD |
6690 | return _resultobj; |
6691 | } | |
6692 | ||
b1462dfa RD |
6693 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
6694 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6695 | PyObject * _resultobj; |
b1462dfa RD |
6696 | bool _result; |
6697 | wxMenu * _arg0; | |
8ab979d7 | 6698 | int _arg1; |
1d99702e | 6699 | PyObject * _argo0 = 0; |
b1462dfa | 6700 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
6701 | |
6702 | self = self; | |
b1462dfa | 6703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6704 | return NULL; |
1d99702e RD |
6705 | if (_argo0) { |
6706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
6707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
6708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
6709 | return NULL; |
6710 | } | |
6711 | } | |
cf694132 RD |
6712 | { |
6713 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6714 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 RD |
6715 | |
6716 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 6717 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6718 | return _resultobj; |
6719 | } | |
6720 | ||
b1462dfa RD |
6721 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
6722 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6723 | PyObject * _resultobj; |
b1462dfa RD |
6724 | bool _result; |
6725 | wxMenu * _arg0; | |
6726 | wxMenuItem * _arg1; | |
1d99702e | 6727 | PyObject * _argo0 = 0; |
b1462dfa RD |
6728 | PyObject * _argo1 = 0; |
6729 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
6730 | |
6731 | self = self; | |
b1462dfa | 6732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6733 | return NULL; |
1d99702e RD |
6734 | if (_argo0) { |
6735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
6736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
6737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
6738 | return NULL; | |
6739 | } | |
6740 | } | |
6741 | if (_argo1) { | |
6742 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6743 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
6744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
6745 | return NULL; |
6746 | } | |
6747 | } | |
cf694132 RD |
6748 | { |
6749 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6750 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 RD |
6751 | |
6752 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 6753 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6754 | return _resultobj; |
6755 | } | |
6756 | ||
b1462dfa RD |
6757 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
6758 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6759 | PyObject * _resultobj; |
b1462dfa RD |
6760 | size_t _result; |
6761 | wxMenu * _arg0; | |
1d99702e | 6762 | PyObject * _argo0 = 0; |
b1462dfa | 6763 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6764 | |
6765 | self = self; | |
b1462dfa | 6766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 6767 | return NULL; |
1d99702e RD |
6768 | if (_argo0) { |
6769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
6770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
6771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
6772 | return NULL; |
6773 | } | |
6774 | } | |
cf694132 RD |
6775 | { |
6776 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6777 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 RD |
6778 | |
6779 | wxPy_END_ALLOW_THREADS; | |
2abc0a0f | 6780 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6781 | return _resultobj; |
6782 | } | |
6783 | ||
b1462dfa RD |
6784 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
6785 | wxMenuItemList& list = self->GetMenuItems(); | |
6786 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
6787 | } | |
6788 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6789 | PyObject * _resultobj; |
b1462dfa RD |
6790 | PyObject * _result; |
6791 | wxMenu * _arg0; | |
1d99702e | 6792 | PyObject * _argo0 = 0; |
b1462dfa | 6793 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6794 | |
6795 | self = self; | |
b1462dfa | 6796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 6797 | return NULL; |
1d99702e RD |
6798 | if (_argo0) { |
6799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
6800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
6801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
6802 | return NULL; |
6803 | } | |
6804 | } | |
cf694132 RD |
6805 | { |
6806 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6807 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 RD |
6808 | |
6809 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
6810 | }{ |
6811 | _resultobj = _result; | |
6812 | } | |
8ab979d7 RD |
6813 | return _resultobj; |
6814 | } | |
6815 | ||
b1462dfa RD |
6816 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
6817 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6818 | PyObject * _resultobj; |
b1462dfa RD |
6819 | wxMenu * _arg0; |
6820 | wxEvtHandler * _arg1; | |
1d99702e | 6821 | PyObject * _argo0 = 0; |
b1462dfa RD |
6822 | PyObject * _argo1 = 0; |
6823 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
6824 | |
6825 | self = self; | |
b1462dfa | 6826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6827 | return NULL; |
1d99702e RD |
6828 | if (_argo0) { |
6829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
6830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
6831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
6832 | return NULL; |
6833 | } | |
6834 | } | |
b1462dfa RD |
6835 | if (_argo1) { |
6836 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6837 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
6838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 6839 | return NULL; |
b1462dfa | 6840 | } |
8ab979d7 | 6841 | } |
cf694132 RD |
6842 | { |
6843 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6844 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 RD |
6845 | |
6846 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
6847 | } Py_INCREF(Py_None); |
6848 | _resultobj = Py_None; | |
8ab979d7 RD |
6849 | return _resultobj; |
6850 | } | |
6851 | ||
b1462dfa RD |
6852 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
6853 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6854 | PyObject * _resultobj; |
b1462dfa RD |
6855 | wxEvtHandler * _result; |
6856 | wxMenu * _arg0; | |
1d99702e | 6857 | PyObject * _argo0 = 0; |
b1462dfa | 6858 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6859 | char _ptemp[128]; |
6860 | ||
6861 | self = self; | |
b1462dfa | 6862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 6863 | return NULL; |
1d99702e RD |
6864 | if (_argo0) { |
6865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
6866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
6867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
6868 | return NULL; |
6869 | } | |
6870 | } | |
cf694132 RD |
6871 | { |
6872 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6873 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 RD |
6874 | |
6875 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 6876 | } if (_result) { |
b1462dfa | 6877 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); |
1d99702e RD |
6878 | _resultobj = Py_BuildValue("s",_ptemp); |
6879 | } else { | |
6880 | Py_INCREF(Py_None); | |
6881 | _resultobj = Py_None; | |
6882 | } | |
8ab979d7 RD |
6883 | return _resultobj; |
6884 | } | |
6885 | ||
b1462dfa RD |
6886 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
6887 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 6888 | PyObject * _resultobj; |
b1462dfa RD |
6889 | wxMenu * _arg0; |
6890 | wxWindow * _arg1; | |
2f90df85 | 6891 | PyObject * _argo0 = 0; |
b1462dfa RD |
6892 | PyObject * _argo1 = 0; |
6893 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
6894 | |
6895 | self = self; | |
b1462dfa | 6896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
6897 | return NULL; |
6898 | if (_argo0) { | |
6899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
6900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
6901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
6902 | return NULL; |
6903 | } | |
6904 | } | |
b1462dfa RD |
6905 | if (_argo1) { |
6906 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6907 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 6909 | return NULL; |
b1462dfa | 6910 | } |
2f90df85 | 6911 | } |
2f90df85 RD |
6912 | { |
6913 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6914 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 RD |
6915 | |
6916 | wxPy_END_ALLOW_THREADS; | |
6917 | } Py_INCREF(Py_None); | |
6918 | _resultobj = Py_None; | |
2f90df85 RD |
6919 | return _resultobj; |
6920 | } | |
6921 | ||
b1462dfa RD |
6922 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
6923 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6924 | PyObject * _resultobj; |
b1462dfa RD |
6925 | wxWindow * _result; |
6926 | wxMenu * _arg0; | |
1d99702e | 6927 | PyObject * _argo0 = 0; |
b1462dfa RD |
6928 | char *_kwnames[] = { "self", NULL }; |
6929 | char _ptemp[128]; | |
8ab979d7 RD |
6930 | |
6931 | self = self; | |
b1462dfa | 6932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 6933 | return NULL; |
1d99702e RD |
6934 | if (_argo0) { |
6935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
6936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
6937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
6938 | return NULL; |
6939 | } | |
6940 | } | |
cf694132 RD |
6941 | { |
6942 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 6943 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 RD |
6944 | |
6945 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
6946 | } if (_result) { |
6947 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
6948 | _resultobj = Py_BuildValue("s",_ptemp); | |
6949 | } else { | |
6950 | Py_INCREF(Py_None); | |
6951 | _resultobj = Py_None; | |
6952 | } | |
8ab979d7 RD |
6953 | return _resultobj; |
6954 | } | |
6955 | ||
b1462dfa RD |
6956 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
6957 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6958 | PyObject * _resultobj; |
b1462dfa RD |
6959 | long _result; |
6960 | wxMenu * _arg0; | |
1d99702e | 6961 | PyObject * _argo0 = 0; |
b1462dfa | 6962 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6963 | |
6964 | self = self; | |
b1462dfa | 6965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 6966 | return NULL; |
1d99702e RD |
6967 | if (_argo0) { |
6968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
6969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
6970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
6971 | return NULL; |
6972 | } | |
6973 | } | |
8ab979d7 | 6974 | { |
cf694132 | 6975 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 6976 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 RD |
6977 | |
6978 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 6979 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
6980 | return _resultobj; |
6981 | } | |
6982 | ||
b1462dfa RD |
6983 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
6984 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6985 | PyObject * _resultobj; |
b1462dfa RD |
6986 | bool _result; |
6987 | wxMenu * _arg0; | |
1d99702e | 6988 | PyObject * _argo0 = 0; |
b1462dfa | 6989 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6990 | |
6991 | self = self; | |
b1462dfa | 6992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 6993 | return NULL; |
1d99702e RD |
6994 | if (_argo0) { |
6995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
6996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
6997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
6998 | return NULL; |
6999 | } | |
7000 | } | |
8ab979d7 | 7001 | { |
cf694132 | 7002 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7003 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 RD |
7004 | |
7005 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7006 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7007 | return _resultobj; |
7008 | } | |
7009 | ||
b1462dfa RD |
7010 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
7011 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7012 | PyObject * _resultobj; |
b1462dfa RD |
7013 | wxMenu * _arg0; |
7014 | wxMenu * _arg1; | |
1d99702e | 7015 | PyObject * _argo0 = 0; |
b1462dfa RD |
7016 | PyObject * _argo1 = 0; |
7017 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
7018 | |
7019 | self = self; | |
b1462dfa | 7020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7021 | return NULL; |
1d99702e RD |
7022 | if (_argo0) { |
7023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
7026 | return NULL; |
7027 | } | |
7028 | } | |
b1462dfa RD |
7029 | if (_argo1) { |
7030 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7031 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
7032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 7033 | return NULL; |
b1462dfa | 7034 | } |
8ab979d7 | 7035 | } |
cf694132 RD |
7036 | { |
7037 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7038 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 RD |
7039 | |
7040 | wxPy_END_ALLOW_THREADS; | |
7041 | } Py_INCREF(Py_None); | |
8ab979d7 | 7042 | _resultobj = Py_None; |
8ab979d7 RD |
7043 | return _resultobj; |
7044 | } | |
7045 | ||
b1462dfa RD |
7046 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
7047 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7048 | PyObject * _resultobj; |
b1462dfa RD |
7049 | wxMenu * _result; |
7050 | wxMenu * _arg0; | |
1d99702e | 7051 | PyObject * _argo0 = 0; |
b1462dfa RD |
7052 | char *_kwnames[] = { "self", NULL }; |
7053 | char _ptemp[128]; | |
8ab979d7 RD |
7054 | |
7055 | self = self; | |
b1462dfa | 7056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 7057 | return NULL; |
1d99702e RD |
7058 | if (_argo0) { |
7059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
7062 | return NULL; |
7063 | } | |
7064 | } | |
8ab979d7 | 7065 | { |
cf694132 | 7066 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7067 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 RD |
7068 | |
7069 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7070 | } if (_result) { |
7071 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7072 | _resultobj = Py_BuildValue("s",_ptemp); | |
7073 | } else { | |
7074 | Py_INCREF(Py_None); | |
7075 | _resultobj = Py_None; | |
7076 | } | |
7077 | return _resultobj; | |
8ab979d7 | 7078 | } |
b1462dfa RD |
7079 | |
7080 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
7081 | wxMenuBar *src; | |
7082 | wxWindow *dest; | |
7083 | src = (wxMenuBar *) ptr; | |
7084 | dest = (wxWindow *) src; | |
7085 | return (void *) dest; | |
7086 | } | |
7087 | ||
7088 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
7089 | wxMenuBar *src; | |
7090 | wxEvtHandler *dest; | |
7091 | src = (wxMenuBar *) ptr; | |
7092 | dest = (wxEvtHandler *) src; | |
7093 | return (void *) dest; | |
8ab979d7 | 7094 | } |
b1462dfa RD |
7095 | |
7096 | #define new_wxMenuBar() (new wxMenuBar()) | |
7097 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7098 | PyObject * _resultobj; | |
7099 | wxMenuBar * _result; | |
7100 | char *_kwnames[] = { NULL }; | |
7101 | char _ptemp[128]; | |
7102 | ||
7103 | self = self; | |
7104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMenuBar",_kwnames)) | |
7105 | return NULL; | |
7106 | { | |
7107 | wxPy_BEGIN_ALLOW_THREADS; | |
7108 | _result = (wxMenuBar *)new_wxMenuBar(); | |
7109 | ||
7110 | wxPy_END_ALLOW_THREADS; | |
7111 | } if (_result) { | |
7112 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
7113 | _resultobj = Py_BuildValue("s",_ptemp); | |
7114 | } else { | |
7115 | Py_INCREF(Py_None); | |
7116 | _resultobj = Py_None; | |
7117 | } | |
8ab979d7 RD |
7118 | return _resultobj; |
7119 | } | |
7120 | ||
b1462dfa RD |
7121 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
7122 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7123 | PyObject * _resultobj; |
b1462dfa | 7124 | bool _result; |
8ab979d7 | 7125 | wxMenuBar * _arg0; |
b1462dfa | 7126 | wxMenu * _arg1; |
8ab979d7 | 7127 | wxString * _arg2; |
1d99702e | 7128 | PyObject * _argo0 = 0; |
b1462dfa | 7129 | PyObject * _argo1 = 0; |
8ab979d7 | 7130 | PyObject * _obj2 = 0; |
b1462dfa | 7131 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
7132 | |
7133 | self = self; | |
b1462dfa | 7134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7135 | return NULL; |
1d99702e RD |
7136 | if (_argo0) { |
7137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
7139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
7140 | return NULL; | |
7141 | } | |
7142 | } | |
7143 | if (_argo1) { | |
7144 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7145 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
7146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
7147 | return NULL; |
7148 | } | |
7149 | } | |
7150 | { | |
7151 | if (!PyString_Check(_obj2)) { | |
7152 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7153 | return NULL; | |
7154 | } | |
cf694132 | 7155 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 7156 | } |
cf694132 RD |
7157 | { |
7158 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7159 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 RD |
7160 | |
7161 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7162 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7163 | { |
7164 | if (_obj2) | |
7165 | delete _arg2; | |
7166 | } | |
7167 | return _resultobj; | |
7168 | } | |
7169 | ||
b1462dfa RD |
7170 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
7171 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7172 | PyObject * _resultobj; |
b1462dfa | 7173 | bool _result; |
8ab979d7 | 7174 | wxMenuBar * _arg0; |
b1462dfa RD |
7175 | size_t _arg1; |
7176 | wxMenu * _arg2; | |
7177 | wxString * _arg3; | |
1d99702e | 7178 | PyObject * _argo0 = 0; |
b1462dfa RD |
7179 | PyObject * _argo2 = 0; |
7180 | PyObject * _obj3 = 0; | |
7181 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
7182 | |
7183 | self = self; | |
b1462dfa | 7184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 7185 | return NULL; |
1d99702e RD |
7186 | if (_argo0) { |
7187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
7189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
7190 | return NULL; | |
7191 | } | |
7192 | } | |
7193 | if (_argo2) { | |
7194 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7195 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
7196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
7197 | return NULL; |
7198 | } | |
7199 | } | |
b1462dfa RD |
7200 | { |
7201 | if (!PyString_Check(_obj3)) { | |
7202 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7203 | return NULL; | |
7204 | } | |
7205 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
7206 | } | |
cf694132 RD |
7207 | { |
7208 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7209 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
7210 | |
7211 | wxPy_END_ALLOW_THREADS; | |
7212 | } _resultobj = Py_BuildValue("i",_result); | |
b1462dfa RD |
7213 | { |
7214 | if (_obj3) | |
7215 | delete _arg3; | |
7216 | } | |
8ab979d7 RD |
7217 | return _resultobj; |
7218 | } | |
7219 | ||
b1462dfa RD |
7220 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
7221 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7222 | PyObject * _resultobj; |
b1462dfa | 7223 | size_t _result; |
8ab979d7 | 7224 | wxMenuBar * _arg0; |
1d99702e | 7225 | PyObject * _argo0 = 0; |
b1462dfa | 7226 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7227 | |
7228 | self = self; | |
b1462dfa | 7229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 7230 | return NULL; |
1d99702e RD |
7231 | if (_argo0) { |
7232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 7234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
7235 | return NULL; |
7236 | } | |
7237 | } | |
cf694132 RD |
7238 | { |
7239 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7240 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 RD |
7241 | |
7242 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7243 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7244 | return _resultobj; |
7245 | } | |
7246 | ||
b1462dfa RD |
7247 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
7248 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 7249 | PyObject * _resultobj; |
b1462dfa | 7250 | wxMenu * _result; |
06c0fba4 | 7251 | wxMenuBar * _arg0; |
b1462dfa | 7252 | size_t _arg1; |
06c0fba4 | 7253 | PyObject * _argo0 = 0; |
b1462dfa RD |
7254 | char *_kwnames[] = { "self","pos", NULL }; |
7255 | char _ptemp[128]; | |
06c0fba4 RD |
7256 | |
7257 | self = self; | |
b1462dfa | 7258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
7259 | return NULL; |
7260 | if (_argo0) { | |
7261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 7263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
7264 | return NULL; |
7265 | } | |
7266 | } | |
7267 | { | |
7268 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7269 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 RD |
7270 | |
7271 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7272 | } if (_result) { |
7273 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7274 | _resultobj = Py_BuildValue("s",_ptemp); | |
7275 | } else { | |
7276 | Py_INCREF(Py_None); | |
7277 | _resultobj = Py_None; | |
7278 | } | |
06c0fba4 RD |
7279 | return _resultobj; |
7280 | } | |
7281 | ||
2abc0a0f RD |
7282 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
7283 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7284 | PyObject * _resultobj; | |
7285 | wxMenu * _result; | |
7286 | wxMenuBar * _arg0; | |
7287 | size_t _arg1; | |
7288 | wxMenu * _arg2; | |
7289 | wxString * _arg3; | |
7290 | PyObject * _argo0 = 0; | |
7291 | PyObject * _argo2 = 0; | |
7292 | PyObject * _obj3 = 0; | |
7293 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
7294 | char _ptemp[128]; | |
7295 | ||
7296 | self = self; | |
7297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
7298 | return NULL; | |
7299 | if (_argo0) { | |
7300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
7303 | return NULL; | |
7304 | } | |
7305 | } | |
7306 | if (_argo2) { | |
7307 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7308 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
7309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
7310 | return NULL; | |
7311 | } | |
7312 | } | |
7313 | { | |
7314 | if (!PyString_Check(_obj3)) { | |
7315 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7316 | return NULL; | |
7317 | } | |
7318 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
7319 | } | |
7320 | { | |
7321 | wxPy_BEGIN_ALLOW_THREADS; | |
7322 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
7323 | ||
7324 | wxPy_END_ALLOW_THREADS; | |
7325 | } if (_result) { | |
7326 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7327 | _resultobj = Py_BuildValue("s",_ptemp); | |
7328 | } else { | |
7329 | Py_INCREF(Py_None); | |
7330 | _resultobj = Py_None; | |
7331 | } | |
7332 | { | |
7333 | if (_obj3) | |
7334 | delete _arg3; | |
7335 | } | |
7336 | return _resultobj; | |
7337 | } | |
7338 | ||
7339 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
7340 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7341 | PyObject * _resultobj; | |
7342 | wxMenu * _result; | |
7343 | wxMenuBar * _arg0; | |
7344 | size_t _arg1; | |
7345 | PyObject * _argo0 = 0; | |
7346 | char *_kwnames[] = { "self","pos", NULL }; | |
7347 | char _ptemp[128]; | |
7348 | ||
7349 | self = self; | |
7350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
7351 | return NULL; | |
7352 | if (_argo0) { | |
7353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
7356 | return NULL; | |
7357 | } | |
7358 | } | |
7359 | { | |
7360 | wxPy_BEGIN_ALLOW_THREADS; | |
7361 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
7362 | ||
7363 | wxPy_END_ALLOW_THREADS; | |
7364 | } if (_result) { | |
7365 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7366 | _resultobj = Py_BuildValue("s",_ptemp); | |
7367 | } else { | |
7368 | Py_INCREF(Py_None); | |
7369 | _resultobj = Py_None; | |
7370 | } | |
7371 | return _resultobj; | |
7372 | } | |
7373 | ||
b1462dfa RD |
7374 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
7375 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 7376 | PyObject * _resultobj; |
b1462dfa RD |
7377 | wxMenuBar * _arg0; |
7378 | size_t _arg1; | |
7379 | bool _arg2; | |
7380 | PyObject * _argo0 = 0; | |
7381 | int tempbool2; | |
7382 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
7383 | ||
7384 | self = self; | |
7385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
7386 | return NULL; | |
7387 | if (_argo0) { | |
7388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
7391 | return NULL; | |
7392 | } | |
7393 | } | |
7394 | _arg2 = (bool ) tempbool2; | |
7395 | { | |
7396 | wxPy_BEGIN_ALLOW_THREADS; | |
7397 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
7398 | ||
7399 | wxPy_END_ALLOW_THREADS; | |
7400 | } Py_INCREF(Py_None); | |
7401 | _resultobj = Py_None; | |
7402 | return _resultobj; | |
7403 | } | |
7404 | ||
7405 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
7406 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7407 | PyObject * _resultobj; | |
7408 | wxMenuBar * _arg0; | |
7409 | size_t _arg1; | |
7410 | wxString * _arg2; | |
1d99702e | 7411 | PyObject * _argo0 = 0; |
cf694132 | 7412 | PyObject * _obj2 = 0; |
b1462dfa | 7413 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
7414 | |
7415 | self = self; | |
b1462dfa | 7416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 7417 | return NULL; |
1d99702e RD |
7418 | if (_argo0) { |
7419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
7421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
7422 | return NULL; |
7423 | } | |
7424 | } | |
cf694132 RD |
7425 | { |
7426 | if (!PyString_Check(_obj2)) { | |
7427 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7428 | return NULL; | |
7429 | } | |
7430 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7431 | } | |
cf694132 | 7432 | { |
b1462dfa RD |
7433 | wxPy_BEGIN_ALLOW_THREADS; |
7434 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
7435 | ||
7436 | wxPy_END_ALLOW_THREADS; | |
7437 | } Py_INCREF(Py_None); | |
7438 | _resultobj = Py_None; | |
7439 | { | |
7440 | if (_obj2) | |
7441 | delete _arg2; | |
7442 | } | |
7443 | return _resultobj; | |
7444 | } | |
7445 | ||
7446 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
7447 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7448 | PyObject * _resultobj; | |
7449 | wxString * _result; | |
7450 | wxMenuBar * _arg0; | |
7451 | size_t _arg1; | |
7452 | PyObject * _argo0 = 0; | |
7453 | char *_kwnames[] = { "self","pos", NULL }; | |
7454 | ||
7455 | self = self; | |
7456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
7457 | return NULL; | |
7458 | if (_argo0) { | |
7459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
7462 | return NULL; | |
7463 | } | |
7464 | } | |
7465 | { | |
7466 | wxPy_BEGIN_ALLOW_THREADS; | |
7467 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
7468 | ||
7469 | wxPy_END_ALLOW_THREADS; | |
7470 | }{ | |
7471 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
7472 | } | |
7473 | { | |
7474 | delete _result; | |
7475 | } | |
7476 | return _resultobj; | |
7477 | } | |
7478 | ||
7479 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
7480 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7481 | PyObject * _resultobj; | |
7482 | int _result; | |
7483 | wxMenuBar * _arg0; | |
7484 | wxString * _arg1; | |
7485 | wxString * _arg2; | |
7486 | PyObject * _argo0 = 0; | |
7487 | PyObject * _obj1 = 0; | |
7488 | PyObject * _obj2 = 0; | |
7489 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
7490 | ||
7491 | self = self; | |
7492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
7493 | return NULL; | |
7494 | if (_argo0) { | |
7495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
7498 | return NULL; | |
7499 | } | |
7500 | } | |
7501 | { | |
7502 | if (!PyString_Check(_obj1)) { | |
cf694132 RD |
7503 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
7504 | return NULL; | |
7505 | } | |
b1462dfa | 7506 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
cf694132 | 7507 | } |
b1462dfa RD |
7508 | { |
7509 | if (!PyString_Check(_obj2)) { | |
7510 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7511 | return NULL; | |
7512 | } | |
7513 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7514 | } | |
7515 | { | |
7516 | wxPy_BEGIN_ALLOW_THREADS; | |
7517 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
7518 | ||
7519 | wxPy_END_ALLOW_THREADS; | |
7520 | } _resultobj = Py_BuildValue("i",_result); | |
7521 | { | |
7522 | if (_obj1) | |
7523 | delete _arg1; | |
7524 | } | |
7525 | { | |
7526 | if (_obj2) | |
7527 | delete _arg2; | |
7528 | } | |
7529 | return _resultobj; | |
7530 | } | |
7531 | ||
7532 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
7533 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7534 | PyObject * _resultobj; | |
7535 | wxMenuItem * _result; | |
7536 | wxMenuBar * _arg0; | |
7537 | int _arg1; | |
7538 | PyObject * _argo0 = 0; | |
7539 | char *_kwnames[] = { "self","id", NULL }; | |
7540 | char _ptemp[128]; | |
7541 | ||
7542 | self = self; | |
7543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7544 | return NULL; | |
7545 | if (_argo0) { | |
7546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
7549 | return NULL; |
7550 | } | |
7551 | } | |
7552 | { | |
7553 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7554 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 RD |
7555 | |
7556 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
7557 | } if (_result) { |
7558 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7559 | _resultobj = Py_BuildValue("s",_ptemp); | |
7560 | } else { | |
7561 | Py_INCREF(Py_None); | |
7562 | _resultobj = Py_None; | |
7563 | } | |
b1462dfa | 7564 | return _resultobj; |
cf694132 | 7565 | } |
b1462dfa RD |
7566 | |
7567 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
7568 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7569 | PyObject * _resultobj; | |
7570 | wxMenuBar * _arg0; | |
7571 | int _arg1; | |
7572 | bool _arg2; | |
7573 | PyObject * _argo0 = 0; | |
7574 | int tempbool2; | |
7575 | char *_kwnames[] = { "self","id","enable", NULL }; | |
7576 | ||
7577 | self = self; | |
7578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
7579 | return NULL; | |
7580 | if (_argo0) { | |
7581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
7584 | return NULL; | |
7585 | } | |
7586 | } | |
7587 | _arg2 = (bool ) tempbool2; | |
cf694132 | 7588 | { |
b1462dfa RD |
7589 | wxPy_BEGIN_ALLOW_THREADS; |
7590 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
7591 | ||
7592 | wxPy_END_ALLOW_THREADS; | |
7593 | } Py_INCREF(Py_None); | |
7594 | _resultobj = Py_None; | |
7595 | return _resultobj; | |
cf694132 | 7596 | } |
b1462dfa RD |
7597 | |
7598 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
7599 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7600 | PyObject * _resultobj; | |
7601 | wxMenuBar * _arg0; | |
7602 | int _arg1; | |
7603 | bool _arg2; | |
7604 | PyObject * _argo0 = 0; | |
7605 | int tempbool2; | |
7606 | char *_kwnames[] = { "self","id","check", NULL }; | |
7607 | ||
7608 | self = self; | |
7609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
7610 | return NULL; | |
7611 | if (_argo0) { | |
7612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
7615 | return NULL; | |
7616 | } | |
7617 | } | |
7618 | _arg2 = (bool ) tempbool2; | |
7619 | { | |
7620 | wxPy_BEGIN_ALLOW_THREADS; | |
7621 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
7622 | ||
7623 | wxPy_END_ALLOW_THREADS; | |
7624 | } Py_INCREF(Py_None); | |
7625 | _resultobj = Py_None; | |
cf694132 RD |
7626 | return _resultobj; |
7627 | } | |
7628 | ||
b1462dfa RD |
7629 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
7630 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7631 | PyObject * _resultobj; |
7632 | bool _result; | |
b1462dfa RD |
7633 | wxMenuBar * _arg0; |
7634 | int _arg1; | |
1d99702e | 7635 | PyObject * _argo0 = 0; |
b1462dfa | 7636 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7637 | |
7638 | self = self; | |
b1462dfa | 7639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7640 | return NULL; |
1d99702e RD |
7641 | if (_argo0) { |
7642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
7644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
7645 | return NULL; |
7646 | } | |
7647 | } | |
cf694132 RD |
7648 | { |
7649 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7650 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 RD |
7651 | |
7652 | wxPy_END_ALLOW_THREADS; | |
7653 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7654 | return _resultobj; |
7655 | } | |
7656 | ||
b1462dfa RD |
7657 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
7658 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7659 | PyObject * _resultobj; |
7660 | bool _result; | |
b1462dfa RD |
7661 | wxMenuBar * _arg0; |
7662 | int _arg1; | |
1d99702e | 7663 | PyObject * _argo0 = 0; |
b1462dfa | 7664 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7665 | |
7666 | self = self; | |
b1462dfa | 7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7668 | return NULL; |
1d99702e RD |
7669 | if (_argo0) { |
7670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
7672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
7673 | return NULL; |
7674 | } | |
7675 | } | |
cf694132 RD |
7676 | { |
7677 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7678 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 RD |
7679 | |
7680 | wxPy_END_ALLOW_THREADS; | |
7681 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7682 | return _resultobj; |
7683 | } | |
7684 | ||
b1462dfa RD |
7685 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7686 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7687 | PyObject * _resultobj; |
b1462dfa RD |
7688 | wxMenuBar * _arg0; |
7689 | int _arg1; | |
7690 | wxString * _arg2; | |
1d99702e | 7691 | PyObject * _argo0 = 0; |
b1462dfa RD |
7692 | PyObject * _obj2 = 0; |
7693 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7694 | |
7695 | self = self; | |
b1462dfa | 7696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7697 | return NULL; |
1d99702e RD |
7698 | if (_argo0) { |
7699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
7701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
7702 | return NULL; |
7703 | } | |
7704 | } | |
b1462dfa RD |
7705 | { |
7706 | if (!PyString_Check(_obj2)) { | |
7707 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7708 | return NULL; | |
7709 | } | |
7710 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7711 | } | |
cf694132 RD |
7712 | { |
7713 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7714 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
7715 | |
7716 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7717 | } Py_INCREF(Py_None); |
7718 | _resultobj = Py_None; | |
7719 | { | |
7720 | if (_obj2) | |
7721 | delete _arg2; | |
7722 | } | |
8ab979d7 RD |
7723 | return _resultobj; |
7724 | } | |
7725 | ||
b1462dfa RD |
7726 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7727 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7728 | PyObject * _resultobj; |
b1462dfa RD |
7729 | wxString * _result; |
7730 | wxMenuBar * _arg0; | |
7731 | int _arg1; | |
1d99702e | 7732 | PyObject * _argo0 = 0; |
b1462dfa | 7733 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7734 | |
7735 | self = self; | |
b1462dfa | 7736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7737 | return NULL; |
1d99702e RD |
7738 | if (_argo0) { |
7739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
7741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
7742 | return NULL; | |
7743 | } | |
7744 | } | |
7745 | { | |
7746 | wxPy_BEGIN_ALLOW_THREADS; | |
7747 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
7748 | ||
7749 | wxPy_END_ALLOW_THREADS; | |
7750 | }{ | |
7751 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
7752 | } | |
7753 | { | |
7754 | delete _result; | |
7755 | } | |
7756 | return _resultobj; | |
7757 | } | |
7758 | ||
7759 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
7760 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7761 | PyObject * _resultobj; | |
7762 | wxMenuBar * _arg0; | |
7763 | int _arg1; | |
7764 | wxString * _arg2; | |
7765 | PyObject * _argo0 = 0; | |
7766 | PyObject * _obj2 = 0; | |
7767 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
7768 | ||
7769 | self = self; | |
7770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
7771 | return NULL; | |
7772 | if (_argo0) { | |
7773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
7776 | return NULL; | |
7777 | } | |
7778 | } | |
7779 | { | |
7780 | if (!PyString_Check(_obj2)) { | |
7781 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7782 | return NULL; | |
7783 | } | |
7784 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7785 | } | |
7786 | { | |
7787 | wxPy_BEGIN_ALLOW_THREADS; | |
7788 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
7789 | ||
7790 | wxPy_END_ALLOW_THREADS; | |
7791 | } Py_INCREF(Py_None); | |
7792 | _resultobj = Py_None; | |
7793 | { | |
7794 | if (_obj2) | |
7795 | delete _arg2; | |
7796 | } | |
7797 | return _resultobj; | |
7798 | } | |
7799 | ||
7800 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
7801 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7802 | PyObject * _resultobj; | |
7803 | wxString * _result; | |
7804 | wxMenuBar * _arg0; | |
7805 | int _arg1; | |
7806 | PyObject * _argo0 = 0; | |
7807 | char *_kwnames[] = { "self","id", NULL }; | |
7808 | ||
7809 | self = self; | |
7810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
7811 | return NULL; | |
7812 | if (_argo0) { | |
7813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
7816 | return NULL; |
7817 | } | |
7818 | } | |
cf694132 RD |
7819 | { |
7820 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7821 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
7822 | |
7823 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7824 | }{ |
7825 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
7826 | } | |
7827 | { | |
7828 | delete _result; | |
7829 | } | |
8ab979d7 RD |
7830 | return _resultobj; |
7831 | } | |
7832 | ||
b1462dfa RD |
7833 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
7834 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7835 | PyObject * _resultobj; |
b1462dfa RD |
7836 | wxMenuItem * _result; |
7837 | wxMenu * _arg0 = (wxMenu *) NULL; | |
7838 | int _arg1 = (int ) ID_SEPARATOR; | |
7839 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
7840 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
7841 | bool _arg4 = (bool ) FALSE; | |
7842 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 7843 | PyObject * _argo0 = 0; |
b1462dfa RD |
7844 | PyObject * _obj2 = 0; |
7845 | PyObject * _obj3 = 0; | |
7846 | int tempbool4 = (int) FALSE; | |
7847 | PyObject * _argo5 = 0; | |
7848 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
7849 | char _ptemp[128]; | |
8ab979d7 RD |
7850 | |
7851 | self = self; | |
b1462dfa | 7852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 7853 | return NULL; |
1d99702e RD |
7854 | if (_argo0) { |
7855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
7858 | return NULL; | |
7859 | } | |
7860 | } | |
7861 | if (_obj2) | |
7862 | { | |
7863 | if (!PyString_Check(_obj2)) { | |
7864 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7865 | return NULL; | |
7866 | } | |
7867 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7868 | } | |
7869 | if (_obj3) | |
7870 | { | |
7871 | if (!PyString_Check(_obj3)) { | |
7872 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7873 | return NULL; | |
7874 | } | |
7875 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
7876 | } | |
7877 | _arg4 = (bool ) tempbool4; | |
7878 | if (_argo5) { | |
7879 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7880 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
7881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
7882 | return NULL; |
7883 | } | |
7884 | } | |
cf694132 RD |
7885 | { |
7886 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7887 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 RD |
7888 | |
7889 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7890 | } if (_result) { |
7891 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7892 | _resultobj = Py_BuildValue("s",_ptemp); | |
7893 | } else { | |
7894 | Py_INCREF(Py_None); | |
7895 | _resultobj = Py_None; | |
7896 | } | |
7897 | { | |
7898 | if (_obj2) | |
7899 | delete _arg2; | |
7900 | } | |
7901 | { | |
7902 | if (_obj3) | |
7903 | delete _arg3; | |
7904 | } | |
8ab979d7 RD |
7905 | return _resultobj; |
7906 | } | |
7907 | ||
b1462dfa RD |
7908 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
7909 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7910 | PyObject * _resultobj; |
b1462dfa | 7911 | wxMenu * _result; |
8ab979d7 | 7912 | wxMenuItem * _arg0; |
1d99702e | 7913 | PyObject * _argo0 = 0; |
efc5f224 | 7914 | char *_kwnames[] = { "self", NULL }; |
b1462dfa | 7915 | char _ptemp[128]; |
8ab979d7 RD |
7916 | |
7917 | self = self; | |
b1462dfa | 7918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 7919 | return NULL; |
1d99702e RD |
7920 | if (_argo0) { |
7921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 7923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
7924 | return NULL; |
7925 | } | |
7926 | } | |
cf694132 RD |
7927 | { |
7928 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7929 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 RD |
7930 | |
7931 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
7932 | } if (_result) { |
7933 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7934 | _resultobj = Py_BuildValue("s",_ptemp); | |
7935 | } else { | |
7936 | Py_INCREF(Py_None); | |
7937 | _resultobj = Py_None; | |
7938 | } | |
8ab979d7 RD |
7939 | return _resultobj; |
7940 | } | |
7941 | ||
2abc0a0f RD |
7942 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
7943 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7944 | PyObject * _resultobj; |
7945 | wxMenuItem * _arg0; | |
2abc0a0f | 7946 | int _arg1; |
1d99702e | 7947 | PyObject * _argo0 = 0; |
2abc0a0f | 7948 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7949 | |
7950 | self = self; | |
2abc0a0f | 7951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7952 | return NULL; |
1d99702e RD |
7953 | if (_argo0) { |
7954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 7956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
7957 | return NULL; |
7958 | } | |
7959 | } | |
cf694132 RD |
7960 | { |
7961 | wxPy_BEGIN_ALLOW_THREADS; | |
2abc0a0f | 7962 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 RD |
7963 | |
7964 | wxPy_END_ALLOW_THREADS; | |
7965 | } Py_INCREF(Py_None); | |
8ab979d7 | 7966 | _resultobj = Py_None; |
8ab979d7 RD |
7967 | return _resultobj; |
7968 | } | |
7969 | ||
b1462dfa RD |
7970 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
7971 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7972 | PyObject * _resultobj; |
b1462dfa | 7973 | int _result; |
8ab979d7 | 7974 | wxMenuItem * _arg0; |
1d99702e | 7975 | PyObject * _argo0 = 0; |
efc5f224 | 7976 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7977 | |
7978 | self = self; | |
b1462dfa | 7979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 7980 | return NULL; |
1d99702e RD |
7981 | if (_argo0) { |
7982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 7984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
7985 | return NULL; |
7986 | } | |
7987 | } | |
8ab979d7 | 7988 | { |
cf694132 | 7989 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7990 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 RD |
7991 | |
7992 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 7993 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7994 | return _resultobj; |
7995 | } | |
7996 | ||
b1462dfa RD |
7997 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
7998 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7999 | PyObject * _resultobj; |
b1462dfa | 8000 | bool _result; |
8ab979d7 | 8001 | wxMenuItem * _arg0; |
1d99702e | 8002 | PyObject * _argo0 = 0; |
efc5f224 | 8003 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8004 | |
8005 | self = self; | |
b1462dfa | 8006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 8007 | return NULL; |
1d99702e RD |
8008 | if (_argo0) { |
8009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8012 | return NULL; |
8013 | } | |
8014 | } | |
8ab979d7 | 8015 | { |
cf694132 | 8016 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8017 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 RD |
8018 | |
8019 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8020 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8021 | return _resultobj; |
8022 | } | |
8023 | ||
b1462dfa RD |
8024 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
8025 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8026 | PyObject * _resultobj; |
8027 | wxMenuItem * _arg0; | |
8028 | wxString * _arg1; | |
1d99702e | 8029 | PyObject * _argo0 = 0; |
8ab979d7 | 8030 | PyObject * _obj1 = 0; |
b1462dfa | 8031 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
8032 | |
8033 | self = self; | |
b1462dfa | 8034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8035 | return NULL; |
1d99702e RD |
8036 | if (_argo0) { |
8037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8040 | return NULL; |
8041 | } | |
8042 | } | |
8043 | { | |
8044 | if (!PyString_Check(_obj1)) { | |
8045 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8046 | return NULL; | |
8047 | } | |
cf694132 | 8048 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8ab979d7 | 8049 | } |
cf694132 RD |
8050 | { |
8051 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8052 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 RD |
8053 | |
8054 | wxPy_END_ALLOW_THREADS; | |
8055 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
8056 | _resultobj = Py_None; |
8057 | { | |
8058 | if (_obj1) | |
8059 | delete _arg1; | |
8060 | } | |
8061 | return _resultobj; | |
8062 | } | |
8063 | ||
b1462dfa RD |
8064 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
8065 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8066 | PyObject * _resultobj; |
b1462dfa | 8067 | wxString * _result; |
8ab979d7 | 8068 | wxMenuItem * _arg0; |
1d99702e | 8069 | PyObject * _argo0 = 0; |
b1462dfa | 8070 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8071 | |
8072 | self = self; | |
b1462dfa | 8073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 8074 | return NULL; |
1d99702e RD |
8075 | if (_argo0) { |
8076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8079 | return NULL; |
8080 | } | |
8081 | } | |
cf694132 RD |
8082 | { |
8083 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8084 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 RD |
8085 | |
8086 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8087 | }{ |
8088 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
8ab979d7 | 8089 | } |
cf694132 | 8090 | { |
b1462dfa RD |
8091 | delete _result; |
8092 | } | |
cf694132 RD |
8093 | return _resultobj; |
8094 | } | |
8095 | ||
b1462dfa RD |
8096 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
8097 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8098 | PyObject * _resultobj; |
b1462dfa | 8099 | wxString * _result; |
cf694132 | 8100 | wxMenuItem * _arg0; |
1d99702e | 8101 | PyObject * _argo0 = 0; |
efc5f224 | 8102 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
8103 | |
8104 | self = self; | |
b1462dfa | 8105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 8106 | return NULL; |
1d99702e RD |
8107 | if (_argo0) { |
8108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
8111 | return NULL; |
8112 | } | |
8113 | } | |
8114 | { | |
8115 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
8116 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
8117 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
8118 | |
8119 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8120 | }{ |
8121 | _resultobj = PyString_FromString(WXSTRINGCAST (*_result)); | |
cf694132 | 8122 | } |
cf694132 RD |
8123 | return _resultobj; |
8124 | } | |
8125 | ||
b1462dfa RD |
8126 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
8127 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8128 | PyObject * _resultobj; |
cf694132 | 8129 | wxMenuItem * _arg0; |
b1462dfa | 8130 | bool _arg1; |
1d99702e | 8131 | PyObject * _argo0 = 0; |
b1462dfa RD |
8132 | int tempbool1; |
8133 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
8134 | |
8135 | self = self; | |
b1462dfa | 8136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 8137 | return NULL; |
1d99702e RD |
8138 | if (_argo0) { |
8139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
8142 | return NULL; |
8143 | } | |
8144 | } | |
b1462dfa | 8145 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
8146 | { |
8147 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8148 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 RD |
8149 | |
8150 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8151 | } Py_INCREF(Py_None); |
8152 | _resultobj = Py_None; | |
cf694132 RD |
8153 | return _resultobj; |
8154 | } | |
8155 | ||
b1462dfa RD |
8156 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
8157 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8158 | PyObject * _resultobj; |
b1462dfa | 8159 | bool _result; |
cf694132 | 8160 | wxMenuItem * _arg0; |
1d99702e | 8161 | PyObject * _argo0 = 0; |
efc5f224 | 8162 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
8163 | |
8164 | self = self; | |
b1462dfa | 8165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 8166 | return NULL; |
1d99702e RD |
8167 | if (_argo0) { |
8168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
8171 | return NULL; |
8172 | } | |
8173 | } | |
8174 | { | |
8175 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8176 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 RD |
8177 | |
8178 | wxPy_END_ALLOW_THREADS; | |
8179 | } _resultobj = Py_BuildValue("i",_result); | |
8180 | return _resultobj; | |
8181 | } | |
8182 | ||
b1462dfa RD |
8183 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
8184 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8185 | PyObject * _resultobj; |
b1462dfa | 8186 | bool _result; |
cf694132 | 8187 | wxMenuItem * _arg0; |
1d99702e | 8188 | PyObject * _argo0 = 0; |
efc5f224 | 8189 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
8190 | |
8191 | self = self; | |
b1462dfa | 8192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 8193 | return NULL; |
1d99702e RD |
8194 | if (_argo0) { |
8195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
8198 | return NULL; |
8199 | } | |
8200 | } | |
8201 | { | |
8202 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8203 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 RD |
8204 | |
8205 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8206 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
8207 | return _resultobj; |
8208 | } | |
8209 | ||
b1462dfa RD |
8210 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
8211 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
8212 | PyObject * _resultobj; |
8213 | wxMenuItem * _arg0; | |
b1462dfa | 8214 | wxMenu * _arg1; |
1d99702e RD |
8215 | PyObject * _argo0 = 0; |
8216 | PyObject * _argo1 = 0; | |
b1462dfa | 8217 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
8218 | |
8219 | self = self; | |
b1462dfa | 8220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 8221 | return NULL; |
1d99702e RD |
8222 | if (_argo0) { |
8223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
8226 | return NULL; |
8227 | } | |
8228 | } | |
1d99702e RD |
8229 | if (_argo1) { |
8230 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
8231 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
8232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
8233 | return NULL; |
8234 | } | |
8235 | } | |
8236 | { | |
8237 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8238 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 RD |
8239 | |
8240 | wxPy_END_ALLOW_THREADS; | |
8241 | } Py_INCREF(Py_None); | |
8242 | _resultobj = Py_None; | |
8243 | return _resultobj; | |
8244 | } | |
8245 | ||
b1462dfa RD |
8246 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
8247 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8248 | PyObject * _resultobj; |
b1462dfa | 8249 | wxMenu * _result; |
cf694132 | 8250 | wxMenuItem * _arg0; |
1d99702e | 8251 | PyObject * _argo0 = 0; |
b1462dfa RD |
8252 | char *_kwnames[] = { "self", NULL }; |
8253 | char _ptemp[128]; | |
cf694132 RD |
8254 | |
8255 | self = self; | |
b1462dfa | 8256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 8257 | return NULL; |
1d99702e RD |
8258 | if (_argo0) { |
8259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
8262 | return NULL; |
8263 | } | |
8264 | } | |
b1462dfa RD |
8265 | { |
8266 | wxPy_BEGIN_ALLOW_THREADS; | |
8267 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
8268 | ||
8269 | wxPy_END_ALLOW_THREADS; | |
8270 | } if (_result) { | |
8271 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8272 | _resultobj = Py_BuildValue("s",_ptemp); | |
8273 | } else { | |
8274 | Py_INCREF(Py_None); | |
8275 | _resultobj = Py_None; | |
cf694132 | 8276 | } |
b1462dfa RD |
8277 | return _resultobj; |
8278 | } | |
8279 | ||
8280 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
8281 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8282 | PyObject * _resultobj; | |
8283 | wxMenuItem * _arg0; | |
8284 | bool _arg1 = (bool ) TRUE; | |
8285 | PyObject * _argo0 = 0; | |
8286 | int tempbool1 = (int) TRUE; | |
8287 | char *_kwnames[] = { "self","enable", NULL }; | |
8288 | ||
8289 | self = self; | |
8290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
8291 | return NULL; | |
8292 | if (_argo0) { | |
8293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
8296 | return NULL; |
8297 | } | |
8298 | } | |
b1462dfa | 8299 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
8300 | { |
8301 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8302 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 RD |
8303 | |
8304 | wxPy_END_ALLOW_THREADS; | |
8305 | } Py_INCREF(Py_None); | |
8306 | _resultobj = Py_None; | |
8307 | return _resultobj; | |
8308 | } | |
8309 | ||
b1462dfa RD |
8310 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
8311 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8312 | PyObject * _resultobj; |
b1462dfa | 8313 | bool _result; |
cf694132 | 8314 | wxMenuItem * _arg0; |
1d99702e | 8315 | PyObject * _argo0 = 0; |
b1462dfa | 8316 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
8317 | |
8318 | self = self; | |
b1462dfa | 8319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 8320 | return NULL; |
1d99702e RD |
8321 | if (_argo0) { |
8322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
8325 | return NULL; |
8326 | } | |
8327 | } | |
8328 | { | |
8329 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8330 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 RD |
8331 | |
8332 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8333 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
8334 | return _resultobj; |
8335 | } | |
8336 | ||
b1462dfa RD |
8337 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
8338 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
8339 | PyObject * _resultobj; |
8340 | wxMenuItem * _arg0; | |
b1462dfa | 8341 | bool _arg1 = (bool ) TRUE; |
1d99702e | 8342 | PyObject * _argo0 = 0; |
b1462dfa RD |
8343 | int tempbool1 = (int) TRUE; |
8344 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
8345 | |
8346 | self = self; | |
b1462dfa | 8347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 8348 | return NULL; |
1d99702e RD |
8349 | if (_argo0) { |
8350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
8353 | return NULL; |
8354 | } | |
8355 | } | |
b1462dfa | 8356 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
8357 | { |
8358 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8359 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 RD |
8360 | |
8361 | wxPy_END_ALLOW_THREADS; | |
8362 | } Py_INCREF(Py_None); | |
8363 | _resultobj = Py_None; | |
8364 | return _resultobj; | |
8365 | } | |
8366 | ||
b1462dfa RD |
8367 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
8368 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 8369 | PyObject * _resultobj; |
b1462dfa | 8370 | bool _result; |
2abc0a0f | 8371 | wxMenuItem * _arg0; |
2abc0a0f | 8372 | PyObject * _argo0 = 0; |
b1462dfa | 8373 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
8374 | |
8375 | self = self; | |
b1462dfa | 8376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
8377 | return NULL; |
8378 | if (_argo0) { | |
8379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
8382 | return NULL; |
8383 | } | |
8384 | } | |
2abc0a0f RD |
8385 | { |
8386 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8387 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f RD |
8388 | |
8389 | wxPy_END_ALLOW_THREADS; | |
b1462dfa | 8390 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
8391 | return _resultobj; |
8392 | } | |
8393 | ||
b1462dfa RD |
8394 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
8395 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 8396 | PyObject * _resultobj; |
2abc0a0f RD |
8397 | wxMenuItem * _arg0; |
8398 | PyObject * _argo0 = 0; | |
8399 | char *_kwnames[] = { "self", NULL }; | |
8400 | ||
8401 | self = self; | |
b1462dfa | 8402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
8403 | return NULL; |
8404 | if (_argo0) { | |
8405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
8408 | return NULL; |
8409 | } | |
8410 | } | |
8411 | { | |
8412 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8413 | wxMenuItem_Toggle(_arg0); |
2abc0a0f RD |
8414 | |
8415 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8416 | } Py_INCREF(Py_None); |
8417 | _resultobj = Py_None; | |
2abc0a0f RD |
8418 | return _resultobj; |
8419 | } | |
8420 | ||
b1462dfa RD |
8421 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
8422 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
8423 | PyObject * _resultobj; |
8424 | wxMenuItem * _arg0; | |
b1462dfa | 8425 | wxString * _arg1; |
1d99702e | 8426 | PyObject * _argo0 = 0; |
b1462dfa RD |
8427 | PyObject * _obj1 = 0; |
8428 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
8429 | |
8430 | self = self; | |
b1462dfa | 8431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 8432 | return NULL; |
1d99702e RD |
8433 | if (_argo0) { |
8434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
8437 | return NULL; |
8438 | } | |
8439 | } | |
b1462dfa RD |
8440 | { |
8441 | if (!PyString_Check(_obj1)) { | |
8442 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 8443 | return NULL; |
cf694132 | 8444 | } |
b1462dfa RD |
8445 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
8446 | } | |
cf694132 RD |
8447 | { |
8448 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8449 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 RD |
8450 | |
8451 | wxPy_END_ALLOW_THREADS; | |
8452 | } Py_INCREF(Py_None); | |
8ab979d7 | 8453 | _resultobj = Py_None; |
b1462dfa RD |
8454 | { |
8455 | if (_obj1) | |
8456 | delete _arg1; | |
8457 | } | |
8ab979d7 RD |
8458 | return _resultobj; |
8459 | } | |
8460 | ||
b1462dfa RD |
8461 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
8462 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 8463 | PyObject * _resultobj; |
b1462dfa | 8464 | wxString * _result; |
be4d9c1f | 8465 | wxMenuItem * _arg0; |
1d99702e | 8466 | PyObject * _argo0 = 0; |
efc5f224 | 8467 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
8468 | |
8469 | self = self; | |
b1462dfa | 8470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 8471 | return NULL; |
1d99702e RD |
8472 | if (_argo0) { |
8473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
8476 | return NULL; |
8477 | } | |
8478 | } | |
cf694132 RD |
8479 | { |
8480 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
8481 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
8482 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
8483 | |
8484 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8485 | }{ |
8486 | _resultobj = PyString_FromString(WXSTRINGCAST (*_result)); | |
8487 | } | |
be4d9c1f RD |
8488 | return _resultobj; |
8489 | } | |
8490 | ||
b1462dfa RD |
8491 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
8492 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 8493 | PyObject * _resultobj; |
b1462dfa | 8494 | wxAcceleratorEntry * _result; |
2abc0a0f | 8495 | wxMenuItem * _arg0; |
2abc0a0f | 8496 | PyObject * _argo0 = 0; |
b1462dfa RD |
8497 | char *_kwnames[] = { "self", NULL }; |
8498 | char _ptemp[128]; | |
2abc0a0f RD |
8499 | |
8500 | self = self; | |
b1462dfa | 8501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
8502 | return NULL; |
8503 | if (_argo0) { | |
8504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
8507 | return NULL; |
8508 | } | |
8509 | } | |
2abc0a0f RD |
8510 | { |
8511 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8512 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f RD |
8513 | |
8514 | wxPy_END_ALLOW_THREADS; | |
b1462dfa RD |
8515 | } if (_result) { |
8516 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
8517 | _resultobj = Py_BuildValue("s",_ptemp); | |
8518 | } else { | |
8519 | Py_INCREF(Py_None); | |
8520 | _resultobj = Py_None; | |
8521 | } | |
2abc0a0f RD |
8522 | return _resultobj; |
8523 | } | |
8524 | ||
b1462dfa RD |
8525 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
8526 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
8527 | PyObject * _resultobj; |
8528 | wxMenuItem * _arg0; | |
b1462dfa | 8529 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
8530 | PyObject * _argo0 = 0; |
8531 | PyObject * _argo1 = 0; | |
b1462dfa | 8532 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
8533 | |
8534 | self = self; | |
b1462dfa | 8535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
8536 | return NULL; |
8537 | if (_argo0) { | |
8538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 8540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
8541 | return NULL; |
8542 | } | |
8543 | } | |
8544 | if (_argo1) { | |
8545 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
8546 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
8547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
8548 | return NULL; |
8549 | } | |
8550 | } | |
8551 | { | |
8552 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8553 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f RD |
8554 | |
8555 | wxPy_END_ALLOW_THREADS; | |
8556 | } Py_INCREF(Py_None); | |
8557 | _resultobj = Py_None; | |
8558 | return _resultobj; | |
8559 | } | |
8560 | ||
8ab979d7 | 8561 | static PyMethodDef windowscMethods[] = { |
b1462dfa RD |
8562 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
8563 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
8564 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
8565 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
8566 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
8567 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 8568 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 8569 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 8570 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 8571 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 8572 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 8573 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 8574 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
8575 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
8576 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
8577 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8578 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 8579 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
8580 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
8581 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8582 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 8583 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 8584 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8585 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
8586 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 8587 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
8588 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
8589 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 8590 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
8591 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
8592 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
8593 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
8594 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
8595 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
8596 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
8597 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
8598 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
8599 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
8600 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
8601 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8602 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
8603 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
8604 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
8605 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
8606 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
8607 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
8608 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
8609 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
8610 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
8611 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
8612 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
8613 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
8614 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
8615 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 8616 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
8617 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
8618 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
8619 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
8620 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
8621 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 8622 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 8623 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 8624 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
8625 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
8626 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8627 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
8628 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 8629 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 8630 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 8631 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 8632 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 8633 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8634 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
8635 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
8636 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
8637 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
8638 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
8639 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
8640 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
8641 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
8642 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 8643 | { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 8644 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8645 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
8646 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
8647 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
8648 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
8649 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
8650 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
8651 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
8652 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
8653 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
8654 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
8655 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
8656 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
8657 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
8658 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
8659 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
8660 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
8661 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
8662 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
8663 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
8664 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
8665 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
8666 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
8667 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
8668 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
8669 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 8670 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
8671 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
8672 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
8673 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
8674 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
8675 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8676 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
8677 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
8678 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
8679 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
8680 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
8681 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
8682 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
8683 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
8684 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
8685 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
8686 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
8687 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
8688 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
8689 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
8690 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 8691 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8692 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
8693 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
8694 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
8695 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
8696 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
8697 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
8698 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
8699 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
8700 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
8701 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
8702 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8703 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8704 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 8705 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 8706 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 8707 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8708 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
8709 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 8710 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8711 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
8712 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
8713 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
8714 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
8715 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
8716 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
8717 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
8718 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
8719 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
8720 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
8721 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
8722 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
8723 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8724 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
8725 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
8726 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
8727 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
8728 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
8729 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
8730 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
8731 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
8732 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
8733 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
8734 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
8735 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8736 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
8737 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
8738 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
8739 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
8740 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
8741 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
8742 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
8743 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
8744 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
8745 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
8746 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
8747 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
8748 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
8749 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
8750 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
8751 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
8752 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
8753 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
8754 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8755 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8756 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 8757 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8758 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
8759 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8760 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 8761 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8762 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
8763 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
8764 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
8765 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
8766 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8767 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8768 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
8769 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
8770 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
8771 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
8772 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
8773 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
8774 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
8775 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
8776 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
8777 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
8778 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
8779 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
8780 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
8781 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
8782 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
8783 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
8784 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
8785 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, |
8786 | { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
8787 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, | |
8788 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
8789 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
8790 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
8791 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 8792 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 8793 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
8794 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
8795 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
8796 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
8797 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
8798 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
8799 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8800 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
8801 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
8802 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
8803 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
8804 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
8805 | { NULL, NULL } |
8806 | }; | |
1d99702e RD |
8807 | #ifdef __cplusplus |
8808 | } | |
8809 | #endif | |
8810 | /* | |
8811 | * This table is used by the pointer type-checker | |
8812 | */ | |
8813 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
8814 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
8815 | { "_signed_long","_long",0}, | |
65dd82cb | 8816 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
b1462dfa RD |
8817 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, |
8818 | { "_wxPrintQuality","_wxCoord",0}, | |
1d99702e RD |
8819 | { "_wxPrintQuality","_int",0}, |
8820 | { "_wxPrintQuality","_signed_int",0}, | |
8821 | { "_wxPrintQuality","_unsigned_int",0}, | |
8822 | { "_wxPrintQuality","_wxWindowID",0}, | |
8823 | { "_wxPrintQuality","_uint",0}, | |
8824 | { "_wxPrintQuality","_EBool",0}, | |
8825 | { "_wxPrintQuality","_size_t",0}, | |
b1462dfa | 8826 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
1d99702e | 8827 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 8828 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e RD |
8829 | { "_class_wxMenuBar","_wxMenuBar",0}, |
8830 | { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
8831 | { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
8832 | { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
8833 | { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
8834 | { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
8835 | { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
8836 | { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
8837 | { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
8838 | { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
8839 | { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
8840 | { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
8841 | { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
8842 | { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
8843 | { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
8844 | { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
8845 | { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e RD |
8846 | { "_class_wxEvtHandler","_wxEvtHandler",0}, |
8847 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
8848 | { "_wxCursor","_class_wxCursor",0}, | |
8849 | { "_wxMask","_class_wxMask",0}, | |
8850 | { "_wxPen","_class_wxPen",0}, | |
8851 | { "_byte","_unsigned_char",0}, | |
b1462dfa | 8852 | { "_wxDataObject","_class_wxDataObject",0}, |
65dd82cb RD |
8853 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
8854 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
8855 | { "_long","_wxDash",0}, |
8856 | { "_long","_unsigned_long",0}, | |
8857 | { "_long","_signed_long",0}, | |
8858 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa | 8859 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
1d99702e | 8860 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, |
b1462dfa | 8861 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e | 8862 | { "_wxDC","_class_wxDC",0}, |
b1462dfa RD |
8863 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
8864 | { "_size_t","_wxCoord",0}, | |
1d99702e RD |
8865 | { "_size_t","_wxPrintQuality",0}, |
8866 | { "_size_t","_unsigned_int",0}, | |
8867 | { "_size_t","_int",0}, | |
8868 | { "_size_t","_wxWindowID",0}, | |
8869 | { "_size_t","_uint",0}, | |
8870 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
8871 | { "_wxPrinterDC","_class_wxPrinterDC",0}, | |
8872 | { "_class_wxMenuItem","_wxMenuItem",0}, | |
8873 | { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
8874 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
8875 | { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
8876 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
8877 | { "_wxPanel","_class_wxPanel",0}, | |
8878 | { "_class_wxMask","_wxMask",0}, | |
b1462dfa | 8879 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
1d99702e RD |
8880 | { "_wxColour","_class_wxColour",0}, |
8881 | { "_class_wxDialog","_wxDialog",0}, | |
b1462dfa RD |
8882 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
8883 | { "_class_wxDataObject","_wxDataObject",0}, | |
1d99702e | 8884 | { "_wxBrush","_class_wxBrush",0}, |
b1462dfa RD |
8885 | { "_wxDataFormat","_class_wxDataFormat",0}, |
8886 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
8887 | { "_uint","_wxCoord",0}, | |
1d99702e RD |
8888 | { "_uint","_wxPrintQuality",0}, |
8889 | { "_uint","_size_t",0}, | |
8890 | { "_uint","_unsigned_int",0}, | |
8891 | { "_uint","_int",0}, | |
8892 | { "_uint","_wxWindowID",0}, | |
2f90df85 | 8893 | { "_wxPyValidator","_class_wxPyValidator",0}, |
1d99702e RD |
8894 | { "_wxRect","_class_wxRect",0}, |
8895 | { "_wxPoint","_class_wxPoint",0}, | |
8896 | { "_wxBitmap","_class_wxBitmap",0}, | |
8897 | { "_wxPyTimer","_class_wxPyTimer",0}, | |
8898 | { "_wxWindowDC","_class_wxWindowDC",0}, | |
8899 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
2f90df85 RD |
8900 | { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
8901 | { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
8902 | { "_class_wxValidator","_wxValidator",0}, | |
b1462dfa RD |
8903 | { "_wxDropTarget","_class_wxDropTarget",0}, |
8904 | { "_EBool","_wxCoord",0}, | |
1d99702e RD |
8905 | { "_EBool","_wxPrintQuality",0}, |
8906 | { "_EBool","_signed_int",0}, | |
8907 | { "_EBool","_int",0}, | |
8908 | { "_EBool","_wxWindowID",0}, | |
8909 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa | 8910 | { "_class_wxDataFormat","_wxDataFormat",0}, |
1d99702e | 8911 | { "_wxFont","_class_wxFont",0}, |
b1462dfa | 8912 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
1d99702e RD |
8913 | { "_unsigned_long","_wxDash",0}, |
8914 | { "_unsigned_long","_long",0}, | |
8915 | { "_class_wxRect","_wxRect",0}, | |
8916 | { "_class_wxDC","_wxDC",0}, | |
8917 | { "_class_wxPyTimer","_wxPyTimer",0}, | |
8918 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
8919 | { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
8920 | { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
8921 | { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
8922 | { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
8923 | { "_class_wxPanel","_wxPanel",0}, | |
b1462dfa | 8924 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
8925 | { "_signed_int","_wxPrintQuality",0}, |
8926 | { "_signed_int","_EBool",0}, | |
8927 | { "_signed_int","_wxWindowID",0}, | |
8928 | { "_signed_int","_int",0}, | |
8929 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
8930 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
b1462dfa | 8931 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e RD |
8932 | { "_wxMenu","_class_wxMenu",0}, |
8933 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
8934 | { "_WXTYPE","_short",0}, | |
8935 | { "_WXTYPE","_signed_short",0}, | |
8936 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 8937 | { "_class_wxDropTarget","_wxDropTarget",0}, |
1d99702e RD |
8938 | { "_class_wxBrush","_wxBrush",0}, |
8939 | { "_unsigned_short","_WXTYPE",0}, | |
8940 | { "_unsigned_short","_short",0}, | |
b1462dfa RD |
8941 | { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, |
8942 | { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
8943 | { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
8944 | { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
8945 | { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
8946 | { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
8947 | { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
8948 | { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
8949 | { "_class_wxWindow","_wxWindow",0}, | |
8950 | { "_class_wxFont","_wxFont",0}, | |
b1462dfa | 8951 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 8952 | { "_class_wxPyValidator","_wxPyValidator",0}, |
2abc0a0f | 8953 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
65dd82cb | 8954 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, |
1d99702e RD |
8955 | { "_wxClientDC","_class_wxClientDC",0}, |
8956 | { "_class_wxPoint","_wxPoint",0}, | |
8957 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
8958 | { "_signed_short","_WXTYPE",0}, | |
8959 | { "_signed_short","_short",0}, | |
8960 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
65dd82cb | 8961 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
8962 | { "_wxPaintDC","_class_wxPaintDC",0}, |
8963 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
8964 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
8965 | { "_class_wxCursor","_wxCursor",0}, | |
b1462dfa | 8966 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
1d99702e RD |
8967 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
8968 | { "_unsigned_char","_byte",0}, | |
8969 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
8970 | { "_class_wxMenu","_wxMenu",0}, | |
b1462dfa | 8971 | { "_unsigned_int","_wxCoord",0}, |
1d99702e RD |
8972 | { "_unsigned_int","_wxPrintQuality",0}, |
8973 | { "_unsigned_int","_size_t",0}, | |
8974 | { "_unsigned_int","_uint",0}, | |
8975 | { "_unsigned_int","_wxWindowID",0}, | |
8976 | { "_unsigned_int","_int",0}, | |
8977 | { "_wxIcon","_class_wxIcon",0}, | |
8978 | { "_wxDialog","_class_wxDialog",0}, | |
8979 | { "_class_wxPen","_wxPen",0}, | |
8980 | { "_short","_WXTYPE",0}, | |
8981 | { "_short","_unsigned_short",0}, | |
8982 | { "_short","_signed_short",0}, | |
65dd82cb RD |
8983 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
8984 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
1d99702e | 8985 | { "_class_wxImageList","_wxImageList",0}, |
b1462dfa | 8986 | { "_wxWindowID","_wxCoord",0}, |
1d99702e RD |
8987 | { "_wxWindowID","_wxPrintQuality",0}, |
8988 | { "_wxWindowID","_size_t",0}, | |
8989 | { "_wxWindowID","_EBool",0}, | |
8990 | { "_wxWindowID","_uint",0}, | |
8991 | { "_wxWindowID","_int",0}, | |
8992 | { "_wxWindowID","_signed_int",0}, | |
8993 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 8994 | { "_int","_wxCoord",0}, |
1d99702e RD |
8995 | { "_int","_wxPrintQuality",0}, |
8996 | { "_int","_size_t",0}, | |
8997 | { "_int","_EBool",0}, | |
8998 | { "_int","_uint",0}, | |
8999 | { "_int","_wxWindowID",0}, | |
9000 | { "_int","_unsigned_int",0}, | |
9001 | { "_int","_signed_int",0}, | |
9002 | { "_wxSize","_class_wxSize",0}, | |
9003 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
9004 | { "_class_wxPrinterDC","_wxPrinterDC",0}, | |
65dd82cb | 9005 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
1d99702e | 9006 | { "_class_wxPaintDC","_wxPaintDC",0}, |
b1462dfa | 9007 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, |
2f90df85 RD |
9008 | { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
9009 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
9010 | { "_wxValidator","_class_wxValidator",0}, | |
1d99702e RD |
9011 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
9012 | { "_class_wxIcon","_wxIcon",0}, | |
9013 | { "_class_wxColour","_wxColour",0}, | |
9014 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
9015 | { "_wxPalette","_class_wxPalette",0}, | |
b1462dfa RD |
9016 | { "_wxCoord","_int",0}, |
9017 | { "_wxCoord","_signed_int",0}, | |
9018 | { "_wxCoord","_unsigned_int",0}, | |
9019 | { "_wxCoord","_wxWindowID",0}, | |
9020 | { "_wxCoord","_uint",0}, | |
9021 | { "_wxCoord","_EBool",0}, | |
9022 | { "_wxCoord","_size_t",0}, | |
9023 | { "_wxCoord","_wxPrintQuality",0}, | |
9024 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, | |
1d99702e | 9025 | { "_wxRegion","_class_wxRegion",0}, |
b1462dfa | 9026 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
2abc0a0f | 9027 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
1d99702e | 9028 | { "_class_wxClientDC","_wxClientDC",0}, |
b1462dfa | 9029 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
1d99702e RD |
9030 | { "_class_wxSize","_wxSize",0}, |
9031 | { "_class_wxBitmap","_wxBitmap",0}, | |
9032 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 9033 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e RD |
9034 | { "_wxMenuBar","_class_wxMenuBar",0}, |
9035 | { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9036 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9037 | { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9038 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9039 | { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9040 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9041 | { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9042 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9043 | { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9044 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9045 | { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
9046 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
9047 | { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
9048 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
9049 | { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
9050 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e RD |
9051 | { "_wxEvtHandler","_class_wxEvtHandler",0}, |
9052 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
9053 | { "_wxDash","_unsigned_long",0}, | |
9054 | { "_wxDash","_long",0}, | |
9055 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, | |
9056 | { "_class_wxPalette","_wxPalette",0}, | |
b1462dfa RD |
9057 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
9058 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, | |
9059 | { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
9060 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
9061 | { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
9062 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
9063 | { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
9064 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
9065 | { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
9066 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
9067 | { "_wxWindow","_class_wxWindow",0}, | |
9068 | {0,0,0}}; | |
9069 | ||
8ab979d7 RD |
9070 | static PyObject *SWIG_globals; |
9071 | #ifdef __cplusplus | |
9072 | extern "C" | |
9073 | #endif | |
1d99702e | 9074 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
9075 | PyObject *m, *d; |
9076 | SWIG_globals = SWIG_newvarlink(); | |
9077 | m = Py_InitModule("windowsc", windowscMethods); | |
9078 | d = PyModule_GetDict(m); | |
1d99702e RD |
9079 | { |
9080 | int i; | |
9081 | for (i = 0; _swig_mapping[i].n1; i++) | |
9082 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
9083 | } | |
8ab979d7 | 9084 | } |