]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/windows.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
5e40f9dd | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
5e40f9dd | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
5e40f9dd | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
5e40f9dd RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
5e40f9dd | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initwindowsc |
55 | ||
56 | #define SWIG_name "windowsc" | |
57 | ||
58 | #include "helpers.h" | |
8ab979d7 | 59 | #include <wx/menuitem.h> |
9df61a29 | 60 | #include <wx/tooltip.h> |
8ab979d7 | 61 | |
8ab979d7 RD |
62 | |
63 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
65 | PyObject* o3; | |
66 | ||
5e40f9dd | 67 | if (!target) { |
8ab979d7 | 68 | target = o; |
5e40f9dd | 69 | } else if (target == Py_None) { |
8ab979d7 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
5e40f9dd | 72 | } else { |
8ab979d7 RD |
73 | if (!PyTuple_Check(target)) { |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
5e40f9dd RD |
78 | o3 = PyTuple_New(1); |
79 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
80 | |
81 | o2 = target; | |
5e40f9dd RD |
82 | target = PySequence_Concat(o2, o3); |
83 | Py_DECREF(o2); | |
8ab979d7 RD |
84 | Py_DECREF(o3); |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
7a446686 RD |
89 | #if PYTHON_API_VERSION >= 1009 |
90 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
91 | #else | |
92 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
93 | #endif | |
2f90df85 | 94 | |
b68dc582 RD |
95 | static wxString wxPyEmptyStr(""); |
96 | ||
2f90df85 RD |
97 | class wxPyValidator : public wxValidator { |
98 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
99 | public: | |
100 | wxPyValidator() { | |
101 | } | |
2f90df85 RD |
102 | |
103 | ~wxPyValidator() { | |
104 | } | |
105 | ||
059a841c | 106 | wxObject* Clone() const { |
694759cf RD |
107 | wxPyValidator* ptr = NULL; |
108 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 109 | |
059a841c | 110 | wxPyTState* state = wxPyBeginBlockThreads(); |
694759cf RD |
111 | if (self->m_myInst.findCallback("Clone")) { |
112 | PyObject* ro; | |
113 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
114 | if (ro) { |
115 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
116 | Py_DECREF(ro); | |
117 | } | |
694759cf | 118 | } |
059a841c RD |
119 | wxPyEndBlockThreads(state); |
120 | ||
694759cf RD |
121 | // This is very dangerous!!! But is the only way I could find |
122 | // to squash a memory leak. Currently it is okay, but if the | |
123 | // validator architecture in wxWindows ever changes, problems | |
124 | // could arise. | |
125 | delete self; | |
694759cf RD |
126 | return ptr; |
127 | } | |
2f90df85 | 128 | |
9df61a29 | 129 | |
2f90df85 RD |
130 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); |
131 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
132 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
133 | ||
134 | PYPRIVATE; | |
2f90df85 RD |
135 | }; |
136 | ||
137 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
138 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
139 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
140 | ||
141 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 142 | |
2f90df85 RD |
143 | #ifdef __cplusplus |
144 | extern "C" { | |
145 | #endif | |
9df61a29 RD |
146 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
147 | wxEvtHandler *src; | |
148 | wxObject *dest; | |
149 | src = (wxEvtHandler *) ptr; | |
150 | dest = (wxObject *) src; | |
151 | return (void *) dest; | |
152 | } | |
153 | ||
c368d904 RD |
154 | #define new_wxEvtHandler() (new wxEvtHandler()) |
155 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
156 | PyObject * _resultobj; | |
157 | wxEvtHandler * _result; | |
158 | char *_kwnames[] = { NULL }; | |
159 | char _ptemp[128]; | |
160 | ||
161 | self = self; | |
162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
163 | return NULL; | |
164 | { | |
165 | wxPy_BEGIN_ALLOW_THREADS; | |
166 | _result = (wxEvtHandler *)new_wxEvtHandler(); | |
167 | ||
168 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 169 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
170 | } if (_result) { |
171 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
172 | _resultobj = Py_BuildValue("s",_ptemp); | |
173 | } else { | |
174 | Py_INCREF(Py_None); | |
175 | _resultobj = Py_None; | |
176 | } | |
177 | return _resultobj; | |
178 | } | |
179 | ||
2f90df85 RD |
180 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
181 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
182 | PyObject * _resultobj; | |
183 | bool _result; | |
184 | wxEvtHandler * _arg0; | |
185 | wxEvent * _arg1; | |
186 | PyObject * _argo0 = 0; | |
187 | PyObject * _argo1 = 0; | |
188 | char *_kwnames[] = { "self","event", NULL }; | |
189 | ||
190 | self = self; | |
191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
192 | return NULL; | |
193 | if (_argo0) { | |
194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
197 | return NULL; | |
198 | } | |
199 | } | |
200 | if (_argo1) { | |
201 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
202 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
204 | return NULL; | |
205 | } | |
206 | } | |
207 | { | |
208 | wxPy_BEGIN_ALLOW_THREADS; | |
209 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
210 | ||
211 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 212 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
213 | } _resultobj = Py_BuildValue("i",_result); |
214 | return _resultobj; | |
215 | } | |
216 | ||
f6bcfd97 BP |
217 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
218 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
219 | PyObject * _resultobj; | |
220 | wxEvtHandler * _arg0; | |
221 | wxEvent * _arg1; | |
222 | PyObject * _argo0 = 0; | |
223 | PyObject * _argo1 = 0; | |
224 | char *_kwnames[] = { "self","event", NULL }; | |
225 | ||
226 | self = self; | |
227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
228 | return NULL; | |
229 | if (_argo0) { | |
230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
233 | return NULL; | |
234 | } | |
235 | } | |
236 | if (_argo1) { | |
237 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
238 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
240 | return NULL; | |
241 | } | |
242 | } | |
243 | { | |
244 | wxPy_BEGIN_ALLOW_THREADS; | |
245 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); | |
246 | ||
247 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 248 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
249 | } Py_INCREF(Py_None); |
250 | _resultobj = Py_None; | |
251 | return _resultobj; | |
252 | } | |
253 | ||
2f90df85 RD |
254 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
255 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
256 | PyObject * _resultobj; | |
257 | bool _result; | |
258 | wxEvtHandler * _arg0; | |
259 | PyObject * _argo0 = 0; | |
260 | char *_kwnames[] = { "self", NULL }; | |
261 | ||
262 | self = self; | |
263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
264 | return NULL; | |
265 | if (_argo0) { | |
266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
269 | return NULL; | |
270 | } | |
271 | } | |
272 | { | |
273 | wxPy_BEGIN_ALLOW_THREADS; | |
274 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
275 | ||
276 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 277 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
278 | } _resultobj = Py_BuildValue("i",_result); |
279 | return _resultobj; | |
280 | } | |
281 | ||
282 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
283 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
284 | PyObject * _resultobj; | |
285 | wxEvtHandler * _arg0; | |
286 | bool _arg1; | |
287 | PyObject * _argo0 = 0; | |
288 | int tempbool1; | |
289 | char *_kwnames[] = { "self","enabled", NULL }; | |
290 | ||
291 | self = self; | |
292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
293 | return NULL; | |
294 | if (_argo0) { | |
295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
298 | return NULL; | |
299 | } | |
300 | } | |
301 | _arg1 = (bool ) tempbool1; | |
302 | { | |
303 | wxPy_BEGIN_ALLOW_THREADS; | |
304 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
305 | ||
306 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 307 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
308 | } Py_INCREF(Py_None); |
309 | _resultobj = Py_None; | |
310 | return _resultobj; | |
311 | } | |
312 | ||
313 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
314 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
315 | PyObject * _resultobj; | |
316 | wxEvtHandler * _result; | |
317 | wxEvtHandler * _arg0; | |
318 | PyObject * _argo0 = 0; | |
319 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
320 | |
321 | self = self; | |
322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
323 | return NULL; | |
324 | if (_argo0) { | |
325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
328 | return NULL; | |
329 | } | |
330 | } | |
331 | { | |
332 | wxPy_BEGIN_ALLOW_THREADS; | |
333 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
334 | ||
335 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 336 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 337 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
338 | return _resultobj; |
339 | } | |
340 | ||
341 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
342 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
343 | PyObject * _resultobj; | |
344 | wxEvtHandler * _result; | |
345 | wxEvtHandler * _arg0; | |
346 | PyObject * _argo0 = 0; | |
347 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
348 | |
349 | self = self; | |
350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
351 | return NULL; | |
352 | if (_argo0) { | |
353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
356 | return NULL; | |
357 | } | |
358 | } | |
359 | { | |
360 | wxPy_BEGIN_ALLOW_THREADS; | |
361 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
362 | ||
363 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 364 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 365 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
366 | return _resultobj; |
367 | } | |
368 | ||
369 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
370 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
371 | PyObject * _resultobj; | |
372 | wxEvtHandler * _arg0; | |
373 | wxEvtHandler * _arg1; | |
374 | PyObject * _argo0 = 0; | |
375 | PyObject * _argo1 = 0; | |
376 | char *_kwnames[] = { "self","handler", NULL }; | |
377 | ||
378 | self = self; | |
379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
380 | return NULL; | |
381 | if (_argo0) { | |
382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
385 | return NULL; | |
386 | } | |
387 | } | |
388 | if (_argo1) { | |
389 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
390 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
392 | return NULL; | |
393 | } | |
394 | } | |
395 | { | |
396 | wxPy_BEGIN_ALLOW_THREADS; | |
397 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
398 | ||
399 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 400 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
401 | } Py_INCREF(Py_None); |
402 | _resultobj = Py_None; | |
403 | return _resultobj; | |
404 | } | |
405 | ||
406 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
407 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
408 | PyObject * _resultobj; | |
409 | wxEvtHandler * _arg0; | |
410 | wxEvtHandler * _arg1; | |
411 | PyObject * _argo0 = 0; | |
412 | PyObject * _argo1 = 0; | |
413 | char *_kwnames[] = { "self","handler", NULL }; | |
414 | ||
415 | self = self; | |
416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
417 | return NULL; | |
418 | if (_argo0) { | |
419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
422 | return NULL; | |
423 | } | |
424 | } | |
425 | if (_argo1) { | |
426 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
427 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
429 | return NULL; | |
430 | } | |
431 | } | |
432 | { | |
433 | wxPy_BEGIN_ALLOW_THREADS; | |
434 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
435 | ||
436 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 437 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
438 | } Py_INCREF(Py_None); |
439 | _resultobj = Py_None; | |
440 | return _resultobj; | |
441 | } | |
442 | ||
443 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
444 | if (PyCallable_Check(func)) { | |
445 | self->Connect(id, lastId, eventType, | |
446 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
447 | new wxPyCallback(func)); | |
448 | } | |
449 | } | |
450 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
451 | PyObject * _resultobj; | |
452 | wxEvtHandler * _arg0; | |
453 | int _arg1; | |
454 | int _arg2; | |
455 | int _arg3; | |
456 | PyObject * _arg4; | |
457 | PyObject * _argo0 = 0; | |
458 | PyObject * _obj4 = 0; | |
459 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
460 | ||
461 | self = self; | |
462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
463 | return NULL; | |
464 | if (_argo0) { | |
465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
468 | return NULL; | |
469 | } | |
470 | } | |
471 | { | |
472 | _arg4 = _obj4; | |
473 | } | |
474 | { | |
475 | wxPy_BEGIN_ALLOW_THREADS; | |
476 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
477 | ||
478 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 479 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
480 | } Py_INCREF(Py_None); |
481 | _resultobj = Py_None; | |
482 | return _resultobj; | |
483 | } | |
484 | ||
6999b0d8 RD |
485 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
486 | return self->Disconnect(id, lastId, eventType, | |
487 | (wxObjectEventFunction) | |
488 | &wxPyCallback::EventThunker); | |
489 | } | |
490 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
491 | PyObject * _resultobj; | |
492 | bool _result; | |
493 | wxEvtHandler * _arg0; | |
494 | int _arg1; | |
495 | int _arg2 = (int ) -1; | |
496 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
497 | PyObject * _argo0 = 0; | |
498 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
499 | ||
500 | self = self; | |
501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
502 | return NULL; | |
503 | if (_argo0) { | |
504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
507 | return NULL; | |
508 | } | |
509 | } | |
510 | { | |
511 | wxPy_BEGIN_ALLOW_THREADS; | |
512 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
513 | ||
514 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 515 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
516 | } _resultobj = Py_BuildValue("i",_result); |
517 | return _resultobj; | |
518 | } | |
519 | ||
2f90df85 RD |
520 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
521 | wxValidator *src; | |
522 | wxEvtHandler *dest; | |
523 | src = (wxValidator *) ptr; | |
524 | dest = (wxEvtHandler *) src; | |
525 | return (void *) dest; | |
526 | } | |
527 | ||
9df61a29 RD |
528 | static void *SwigwxValidatorTowxObject(void *ptr) { |
529 | wxValidator *src; | |
530 | wxObject *dest; | |
531 | src = (wxValidator *) ptr; | |
532 | dest = (wxObject *) src; | |
533 | return (void *) dest; | |
534 | } | |
535 | ||
2f90df85 RD |
536 | #define new_wxValidator() (new wxValidator()) |
537 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
538 | PyObject * _resultobj; | |
539 | wxValidator * _result; | |
540 | char *_kwnames[] = { NULL }; | |
541 | char _ptemp[128]; | |
542 | ||
543 | self = self; | |
544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
545 | return NULL; | |
546 | { | |
547 | wxPy_BEGIN_ALLOW_THREADS; | |
548 | _result = (wxValidator *)new_wxValidator(); | |
549 | ||
550 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 551 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
552 | } if (_result) { |
553 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
554 | _resultobj = Py_BuildValue("s",_ptemp); | |
555 | } else { | |
556 | Py_INCREF(Py_None); | |
557 | _resultobj = Py_None; | |
558 | } | |
559 | return _resultobj; | |
af309447 | 560 | } |
2f90df85 RD |
561 | |
562 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
563 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 564 | PyObject * _resultobj; |
2f90df85 RD |
565 | wxValidator * _result; |
566 | wxValidator * _arg0; | |
567 | PyObject * _argo0 = 0; | |
568 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
569 | |
570 | self = self; | |
2f90df85 RD |
571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
572 | return NULL; | |
573 | if (_argo0) { | |
574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 577 | return NULL; |
2f90df85 RD |
578 | } |
579 | } | |
cf694132 RD |
580 | { |
581 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 582 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 RD |
583 | |
584 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 585 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 586 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
587 | return _resultobj; |
588 | } | |
589 | ||
2f90df85 RD |
590 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
591 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
592 | PyObject * _resultobj; |
593 | wxWindow * _result; | |
2f90df85 RD |
594 | wxValidator * _arg0; |
595 | PyObject * _argo0 = 0; | |
596 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
597 | |
598 | self = self; | |
2f90df85 RD |
599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
600 | return NULL; | |
601 | if (_argo0) { | |
602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 605 | return NULL; |
2f90df85 RD |
606 | } |
607 | } | |
cf694132 RD |
608 | { |
609 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 610 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 RD |
611 | |
612 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 613 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 614 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
615 | return _resultobj; |
616 | } | |
617 | ||
2f90df85 RD |
618 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
619 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 620 | PyObject * _resultobj; |
2f90df85 RD |
621 | wxValidator * _arg0; |
622 | wxWindow * _arg1; | |
1d99702e RD |
623 | PyObject * _argo0 = 0; |
624 | PyObject * _argo1 = 0; | |
2f90df85 | 625 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
626 | |
627 | self = self; | |
2f90df85 | 628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 629 | return NULL; |
1d99702e RD |
630 | if (_argo0) { |
631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
634 | return NULL; |
635 | } | |
636 | } | |
1d99702e RD |
637 | if (_argo1) { |
638 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
639 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
641 | return NULL; |
642 | } | |
643 | } | |
644 | { | |
645 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 646 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 RD |
647 | |
648 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 649 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
650 | } Py_INCREF(Py_None); |
651 | _resultobj = Py_None; | |
cf694132 RD |
652 | return _resultobj; |
653 | } | |
654 | ||
9df61a29 RD |
655 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
656 | PyObject * _resultobj; | |
657 | bool _result; | |
658 | char *_kwnames[] = { NULL }; | |
659 | ||
660 | self = self; | |
661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
662 | return NULL; | |
663 | { | |
664 | wxPy_BEGIN_ALLOW_THREADS; | |
665 | _result = (bool )wxValidator::IsSilent(); | |
666 | ||
667 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 668 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
669 | } _resultobj = Py_BuildValue("i",_result); |
670 | return _resultobj; | |
671 | } | |
672 | ||
673 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
674 | PyObject * _resultobj; | |
675 | int _arg0 = (int ) TRUE; | |
676 | char *_kwnames[] = { "doIt", NULL }; | |
677 | ||
678 | self = self; | |
679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
680 | return NULL; | |
681 | { | |
682 | wxPy_BEGIN_ALLOW_THREADS; | |
683 | wxValidator::SetBellOnError(_arg0); | |
684 | ||
685 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 686 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
687 | } Py_INCREF(Py_None); |
688 | _resultobj = Py_None; | |
689 | return _resultobj; | |
690 | } | |
691 | ||
2f90df85 RD |
692 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
693 | wxPyValidator *src; | |
694 | wxValidator *dest; | |
695 | src = (wxPyValidator *) ptr; | |
696 | dest = (wxValidator *) src; | |
697 | return (void *) dest; | |
698 | } | |
699 | ||
700 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
701 | wxPyValidator *src; | |
702 | wxEvtHandler *dest; | |
703 | src = (wxPyValidator *) ptr; | |
704 | dest = (wxEvtHandler *) src; | |
705 | return (void *) dest; | |
706 | } | |
707 | ||
9df61a29 RD |
708 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
709 | wxPyValidator *src; | |
710 | wxObject *dest; | |
711 | src = (wxPyValidator *) ptr; | |
712 | dest = (wxObject *) src; | |
713 | return (void *) dest; | |
714 | } | |
715 | ||
2f90df85 RD |
716 | #define new_wxPyValidator() (new wxPyValidator()) |
717 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
718 | PyObject * _resultobj; | |
719 | wxPyValidator * _result; | |
720 | char *_kwnames[] = { NULL }; | |
721 | char _ptemp[128]; | |
722 | ||
723 | self = self; | |
724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
725 | return NULL; | |
726 | { | |
727 | wxPy_BEGIN_ALLOW_THREADS; | |
728 | _result = (wxPyValidator *)new_wxPyValidator(); | |
729 | ||
730 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 731 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
732 | } if (_result) { |
733 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
734 | _resultobj = Py_BuildValue("s",_ptemp); | |
735 | } else { | |
736 | Py_INCREF(Py_None); | |
737 | _resultobj = Py_None; | |
738 | } | |
739 | return _resultobj; | |
740 | } | |
741 | ||
f6bcfd97 | 742 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2)) |
2f90df85 | 743 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 744 | PyObject * _resultobj; |
2f90df85 RD |
745 | wxPyValidator * _arg0; |
746 | PyObject * _arg1; | |
f6bcfd97 BP |
747 | PyObject * _arg2; |
748 | int _arg3 = (int ) TRUE; | |
1d99702e | 749 | PyObject * _argo0 = 0; |
2f90df85 | 750 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
751 | PyObject * _obj2 = 0; |
752 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
753 | |
754 | self = self; | |
f6bcfd97 | 755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 756 | return NULL; |
1d99702e RD |
757 | if (_argo0) { |
758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
8ab979d7 RD |
761 | return NULL; |
762 | } | |
763 | } | |
764 | { | |
2f90df85 | 765 | _arg1 = _obj1; |
8ab979d7 | 766 | } |
f6bcfd97 BP |
767 | { |
768 | _arg2 = _obj2; | |
769 | } | |
cf694132 RD |
770 | { |
771 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 772 | wxPyValidator__setSelf(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
773 | |
774 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 775 | if (PyErr_Occurred()) return NULL; |
cf694132 | 776 | } Py_INCREF(Py_None); |
8ab979d7 RD |
777 | _resultobj = Py_None; |
778 | return _resultobj; | |
779 | } | |
780 | ||
781 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
782 | wxWindow *src; | |
783 | wxEvtHandler *dest; | |
784 | src = (wxWindow *) ptr; | |
785 | dest = (wxEvtHandler *) src; | |
786 | return (void *) dest; | |
787 | } | |
788 | ||
9df61a29 RD |
789 | static void *SwigwxWindowTowxObject(void *ptr) { |
790 | wxWindow *src; | |
791 | wxObject *dest; | |
792 | src = (wxWindow *) ptr; | |
793 | dest = (wxObject *) src; | |
794 | return (void *) dest; | |
795 | } | |
796 | ||
8ab979d7 | 797 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 798 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
799 | PyObject * _resultobj; |
800 | wxWindow * _result; | |
801 | wxWindow * _arg0; | |
802 | wxWindowID _arg1; | |
b68dc582 RD |
803 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
804 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
805 | long _arg4 = (long ) 0; |
806 | char * _arg5 = (char *) "panel"; | |
807 | PyObject * _argo0 = 0; | |
2f90df85 RD |
808 | wxPoint temp; |
809 | PyObject * _obj2 = 0; | |
810 | wxSize temp0; | |
811 | PyObject * _obj3 = 0; | |
efc5f224 | 812 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
813 | char _ptemp[128]; |
814 | ||
815 | self = self; | |
2f90df85 | 816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 817 | return NULL; |
1d99702e RD |
818 | if (_argo0) { |
819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
822 | return NULL; | |
823 | } | |
824 | } | |
2f90df85 RD |
825 | if (_obj2) |
826 | { | |
827 | _arg2 = &temp; | |
828 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 829 | return NULL; |
2f90df85 RD |
830 | } |
831 | if (_obj3) | |
832 | { | |
833 | _arg3 = &temp0; | |
834 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 835 | return NULL; |
2f90df85 | 836 | } |
cf694132 RD |
837 | { |
838 | wxPy_BEGIN_ALLOW_THREADS; | |
839 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
840 | ||
841 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 842 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
843 | } if (_result) { |
844 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
845 | _resultobj = Py_BuildValue("s",_ptemp); | |
846 | } else { | |
847 | Py_INCREF(Py_None); | |
848 | _resultobj = Py_None; | |
849 | } | |
8ab979d7 RD |
850 | return _resultobj; |
851 | } | |
852 | ||
aa2a5b86 RD |
853 | #define new_wxPreWindow() (new wxWindow()) |
854 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
855 | PyObject * _resultobj; | |
856 | wxWindow * _result; | |
857 | char *_kwnames[] = { NULL }; | |
858 | char _ptemp[128]; | |
859 | ||
860 | self = self; | |
861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
862 | return NULL; | |
863 | { | |
864 | wxPy_BEGIN_ALLOW_THREADS; | |
865 | _result = (wxWindow *)new_wxPreWindow(); | |
866 | ||
867 | wxPy_END_ALLOW_THREADS; | |
868 | if (PyErr_Occurred()) return NULL; | |
869 | } if (_result) { | |
870 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
871 | _resultobj = Py_BuildValue("s",_ptemp); | |
872 | } else { | |
873 | Py_INCREF(Py_None); | |
874 | _resultobj = Py_None; | |
875 | } | |
876 | return _resultobj; | |
877 | } | |
878 | ||
879 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
880 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
881 | PyObject * _resultobj; | |
882 | bool _result; | |
883 | wxWindow * _arg0; | |
884 | wxWindow * _arg1; | |
885 | wxWindowID _arg2; | |
886 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
887 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
888 | long _arg5 = (long ) 0; | |
889 | char * _arg6 = (char *) "panel"; | |
890 | PyObject * _argo0 = 0; | |
891 | PyObject * _argo1 = 0; | |
892 | wxPoint temp; | |
893 | PyObject * _obj3 = 0; | |
894 | wxSize temp0; | |
895 | PyObject * _obj4 = 0; | |
896 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
897 | ||
898 | self = self; | |
899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
900 | return NULL; | |
901 | if (_argo0) { | |
902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
905 | return NULL; | |
906 | } | |
907 | } | |
908 | if (_argo1) { | |
909 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
910 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
912 | return NULL; | |
913 | } | |
914 | } | |
915 | if (_obj3) | |
916 | { | |
917 | _arg3 = &temp; | |
918 | if (! wxPoint_helper(_obj3, &_arg3)) | |
919 | return NULL; | |
920 | } | |
921 | if (_obj4) | |
922 | { | |
923 | _arg4 = &temp0; | |
924 | if (! wxSize_helper(_obj4, &_arg4)) | |
925 | return NULL; | |
926 | } | |
927 | { | |
928 | wxPy_BEGIN_ALLOW_THREADS; | |
929 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
930 | ||
931 | wxPy_END_ALLOW_THREADS; | |
932 | if (PyErr_Occurred()) return NULL; | |
933 | } _resultobj = Py_BuildValue("i",_result); | |
934 | return _resultobj; | |
935 | } | |
936 | ||
8ab979d7 | 937 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) |
efc5f224 | 938 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
939 | PyObject * _resultobj; |
940 | wxWindow * _arg0; | |
1d99702e | 941 | PyObject * _argo0 = 0; |
efc5f224 | 942 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
943 | |
944 | self = self; | |
efc5f224 | 945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
8ab979d7 | 946 | return NULL; |
1d99702e RD |
947 | if (_argo0) { |
948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
951 | return NULL; | |
952 | } | |
953 | } | |
cf694132 RD |
954 | { |
955 | wxPy_BEGIN_ALLOW_THREADS; | |
956 | wxWindow_CaptureMouse(_arg0); | |
957 | ||
958 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 959 | if (PyErr_Occurred()) return NULL; |
cf694132 | 960 | } Py_INCREF(Py_None); |
8ab979d7 RD |
961 | _resultobj = Py_None; |
962 | return _resultobj; | |
963 | } | |
964 | ||
965 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 966 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
967 | PyObject * _resultobj; |
968 | wxWindow * _arg0; | |
1d99702e RD |
969 | int _arg1 = (int ) wxBOTH; |
970 | PyObject * _argo0 = 0; | |
efc5f224 | 971 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
972 | |
973 | self = self; | |
efc5f224 | 974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 975 | return NULL; |
1d99702e RD |
976 | if (_argo0) { |
977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
980 | return NULL; | |
981 | } | |
982 | } | |
cf694132 RD |
983 | { |
984 | wxPy_BEGIN_ALLOW_THREADS; | |
985 | wxWindow_Center(_arg0,_arg1); | |
986 | ||
987 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 988 | if (PyErr_Occurred()) return NULL; |
cf694132 | 989 | } Py_INCREF(Py_None); |
8ab979d7 RD |
990 | _resultobj = Py_None; |
991 | return _resultobj; | |
992 | } | |
993 | ||
994 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 995 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
996 | PyObject * _resultobj; |
997 | wxWindow * _arg0; | |
1d99702e RD |
998 | int _arg1 = (int ) wxBOTH; |
999 | PyObject * _argo0 = 0; | |
efc5f224 | 1000 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1001 | |
1002 | self = self; | |
efc5f224 | 1003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1004 | return NULL; |
1d99702e RD |
1005 | if (_argo0) { |
1006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1009 | return NULL; | |
1010 | } | |
1011 | } | |
cf694132 RD |
1012 | { |
1013 | wxPy_BEGIN_ALLOW_THREADS; | |
1014 | wxWindow_Centre(_arg0,_arg1); | |
1015 | ||
1016 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1017 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1018 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1019 | _resultobj = Py_None; |
1020 | return _resultobj; | |
1021 | } | |
1022 | ||
bb0054cd | 1023 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1024 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1025 | PyObject * _resultobj; |
1026 | wxWindow * _arg0; | |
1d99702e RD |
1027 | int _arg1 = (int ) wxBOTH; |
1028 | PyObject * _argo0 = 0; | |
efc5f224 | 1029 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1030 | |
1031 | self = self; | |
efc5f224 | 1032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1033 | return NULL; |
1d99702e RD |
1034 | if (_argo0) { |
1035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1038 | return NULL; | |
1039 | } | |
1040 | } | |
1041 | { | |
1042 | wxPy_BEGIN_ALLOW_THREADS; | |
1043 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1044 | ||
1045 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1046 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1047 | } Py_INCREF(Py_None); |
1048 | _resultobj = Py_None; | |
1049 | return _resultobj; | |
1050 | } | |
1051 | ||
1052 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1053 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1054 | PyObject * _resultobj; |
1055 | wxWindow * _arg0; | |
1d99702e RD |
1056 | int _arg1 = (int ) wxBOTH; |
1057 | PyObject * _argo0 = 0; | |
efc5f224 | 1058 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1059 | |
1060 | self = self; | |
efc5f224 | 1061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1062 | return NULL; |
1d99702e RD |
1063 | if (_argo0) { |
1064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1067 | return NULL; | |
1068 | } | |
1069 | } | |
1070 | { | |
1071 | wxPy_BEGIN_ALLOW_THREADS; | |
1072 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1073 | ||
1074 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1075 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1076 | } Py_INCREF(Py_None); |
1077 | _resultobj = Py_None; | |
1078 | return _resultobj; | |
1079 | } | |
1080 | ||
3ca6a5f0 BP |
1081 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1082 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1083 | PyObject * _resultobj; | |
1084 | wxWindow * _arg0; | |
1085 | int _arg1 = (int ) wxBOTH; | |
1086 | PyObject * _argo0 = 0; | |
1087 | char *_kwnames[] = { "self","direction", NULL }; | |
1088 | ||
1089 | self = self; | |
1090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1091 | return NULL; | |
1092 | if (_argo0) { | |
1093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1096 | return NULL; | |
1097 | } | |
1098 | } | |
1099 | { | |
1100 | wxPy_BEGIN_ALLOW_THREADS; | |
1101 | wxWindow_CentreOnScreen(_arg0,_arg1); | |
1102 | ||
1103 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1104 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1105 | } Py_INCREF(Py_None); |
1106 | _resultobj = Py_None; | |
1107 | return _resultobj; | |
1108 | } | |
1109 | ||
1110 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1111 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1112 | PyObject * _resultobj; | |
1113 | wxWindow * _arg0; | |
1114 | int _arg1 = (int ) wxBOTH; | |
1115 | PyObject * _argo0 = 0; | |
1116 | char *_kwnames[] = { "self","direction", NULL }; | |
1117 | ||
1118 | self = self; | |
1119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1120 | return NULL; | |
1121 | if (_argo0) { | |
1122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1125 | return NULL; | |
1126 | } | |
1127 | } | |
1128 | { | |
1129 | wxPy_BEGIN_ALLOW_THREADS; | |
1130 | wxWindow_CenterOnScreen(_arg0,_arg1); | |
1131 | ||
1132 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1133 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1134 | } Py_INCREF(Py_None); |
1135 | _resultobj = Py_None; | |
1136 | return _resultobj; | |
1137 | } | |
1138 | ||
9d6da64a RD |
1139 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) |
1140 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1141 | PyObject * _resultobj; | |
1142 | wxWindow * _arg0; | |
1143 | PyObject * _argo0 = 0; | |
1144 | char *_kwnames[] = { "self", NULL }; | |
1145 | ||
1146 | self = self; | |
1147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1148 | return NULL; | |
1149 | if (_argo0) { | |
1150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1153 | return NULL; | |
1154 | } | |
1155 | } | |
1156 | { | |
1157 | wxPy_BEGIN_ALLOW_THREADS; | |
1158 | wxWindow_Clear(_arg0); | |
1159 | ||
1160 | wxPy_END_ALLOW_THREADS; | |
1161 | if (PyErr_Occurred()) return NULL; | |
1162 | } Py_INCREF(Py_None); | |
1163 | _resultobj = Py_None; | |
1164 | return _resultobj; | |
1165 | } | |
1166 | ||
af309447 | 1167 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1168 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1169 | PyObject * _resultobj; |
1170 | wxWindow * _arg0; | |
1171 | int * _arg1; | |
1172 | int * _arg2; | |
1d99702e | 1173 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1174 | int temp; |
1175 | PyObject * _obj1 = 0; | |
1176 | int temp0; | |
1177 | PyObject * _obj2 = 0; | |
efc5f224 | 1178 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1179 | |
1180 | self = self; | |
efc5f224 | 1181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1182 | return NULL; |
1d99702e RD |
1183 | if (_argo0) { |
1184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1187 | return NULL; |
1188 | } | |
1189 | } | |
1190 | { | |
1191 | temp = (int) PyInt_AsLong(_obj1); | |
1192 | _arg1 = &temp; | |
1193 | } | |
1194 | { | |
1195 | temp0 = (int) PyInt_AsLong(_obj2); | |
1196 | _arg2 = &temp0; | |
1197 | } | |
cf694132 RD |
1198 | { |
1199 | wxPy_BEGIN_ALLOW_THREADS; | |
1200 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1201 | ||
1202 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1203 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1204 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1205 | _resultobj = Py_None; |
1206 | { | |
1207 | PyObject *o; | |
1208 | o = PyInt_FromLong((long) (*_arg1)); | |
1209 | _resultobj = t_output_helper(_resultobj, o); | |
1210 | } | |
1211 | { | |
1212 | PyObject *o; | |
1213 | o = PyInt_FromLong((long) (*_arg2)); | |
1214 | _resultobj = t_output_helper(_resultobj, o); | |
1215 | } | |
1216 | return _resultobj; | |
1217 | } | |
1218 | ||
af309447 | 1219 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1220 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1221 | PyObject * _resultobj; |
1222 | wxPoint * _result; | |
1223 | wxWindow * _arg0; | |
1224 | wxPoint * _arg1; | |
1d99702e | 1225 | PyObject * _argo0 = 0; |
2f90df85 RD |
1226 | wxPoint temp; |
1227 | PyObject * _obj1 = 0; | |
efc5f224 | 1228 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1229 | char _ptemp[128]; |
1230 | ||
1231 | self = self; | |
2f90df85 | 1232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1233 | return NULL; |
1d99702e RD |
1234 | if (_argo0) { |
1235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1238 | return NULL; | |
1239 | } | |
1240 | } | |
2f90df85 RD |
1241 | { |
1242 | _arg1 = &temp; | |
1243 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1244 | return NULL; |
2f90df85 | 1245 | } |
cf694132 RD |
1246 | { |
1247 | wxPy_BEGIN_ALLOW_THREADS; | |
1248 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1249 | ||
1250 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1251 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1252 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1253 | _resultobj = Py_BuildValue("s",_ptemp); |
1254 | return _resultobj; | |
1255 | } | |
1256 | ||
8ab979d7 | 1257 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1258 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1259 | PyObject * _resultobj; |
1260 | bool _result; | |
1261 | wxWindow * _arg0; | |
1d99702e RD |
1262 | int _arg1 = (int ) FALSE; |
1263 | PyObject * _argo0 = 0; | |
efc5f224 | 1264 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1265 | |
1266 | self = self; | |
efc5f224 | 1267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1268 | return NULL; |
1d99702e RD |
1269 | if (_argo0) { |
1270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1273 | return NULL; | |
1274 | } | |
1275 | } | |
cf694132 RD |
1276 | { |
1277 | wxPy_BEGIN_ALLOW_THREADS; | |
1278 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1279 | ||
1280 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1281 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1282 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1283 | return _resultobj; |
1284 | } | |
1285 | ||
1286 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1287 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1288 | PyObject * _resultobj; |
1289 | bool _result; | |
1290 | wxWindow * _arg0; | |
1d99702e | 1291 | PyObject * _argo0 = 0; |
efc5f224 | 1292 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1293 | |
1294 | self = self; | |
efc5f224 | 1295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1296 | return NULL; |
1d99702e RD |
1297 | if (_argo0) { |
1298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1301 | return NULL; | |
1302 | } | |
1303 | } | |
cf694132 RD |
1304 | { |
1305 | wxPy_BEGIN_ALLOW_THREADS; | |
1306 | _result = (bool )wxWindow_Destroy(_arg0); | |
1307 | ||
1308 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1309 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1310 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1311 | return _resultobj; |
1312 | } | |
1313 | ||
1314 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1315 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1316 | PyObject * _resultobj; |
1317 | wxWindow * _arg0; | |
1d99702e | 1318 | PyObject * _argo0 = 0; |
efc5f224 | 1319 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1320 | |
1321 | self = self; | |
efc5f224 | 1322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1323 | return NULL; |
1d99702e RD |
1324 | if (_argo0) { |
1325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1328 | return NULL; | |
1329 | } | |
1330 | } | |
cf694132 RD |
1331 | { |
1332 | wxPy_BEGIN_ALLOW_THREADS; | |
1333 | wxWindow_DestroyChildren(_arg0); | |
1334 | ||
1335 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1336 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1337 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1338 | _resultobj = Py_None; |
1339 | return _resultobj; | |
1340 | } | |
1341 | ||
4dfaa61e RD |
1342 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1343 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1344 | PyObject * _resultobj; | |
1345 | bool _result; | |
1346 | wxWindow * _arg0; | |
1347 | PyObject * _argo0 = 0; | |
1348 | char *_kwnames[] = { "self", NULL }; | |
1349 | ||
1350 | self = self; | |
1351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1352 | return NULL; | |
1353 | if (_argo0) { | |
1354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1357 | return NULL; | |
1358 | } | |
1359 | } | |
1360 | { | |
1361 | wxPy_BEGIN_ALLOW_THREADS; | |
1362 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); | |
1363 | ||
1364 | wxPy_END_ALLOW_THREADS; | |
1365 | if (PyErr_Occurred()) return NULL; | |
1366 | } _resultobj = Py_BuildValue("i",_result); | |
1367 | return _resultobj; | |
1368 | } | |
1369 | ||
8ab979d7 | 1370 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
efc5f224 | 1371 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1372 | PyObject * _resultobj; |
1373 | wxWindow * _arg0; | |
1374 | bool _arg1; | |
1d99702e | 1375 | PyObject * _argo0 = 0; |
8ab979d7 | 1376 | int tempbool1; |
efc5f224 | 1377 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1378 | |
1379 | self = self; | |
efc5f224 | 1380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1381 | return NULL; |
1d99702e RD |
1382 | if (_argo0) { |
1383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1386 | return NULL; | |
1387 | } | |
1388 | } | |
1389 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1390 | { |
1391 | wxPy_BEGIN_ALLOW_THREADS; | |
1392 | wxWindow_Enable(_arg0,_arg1); | |
1393 | ||
1394 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1395 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1396 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1397 | _resultobj = Py_None; |
1398 | return _resultobj; | |
1399 | } | |
1400 | ||
af309447 | 1401 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1402 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1403 | PyObject * _resultobj; |
1404 | wxWindow * _result; | |
1405 | wxWindow * _arg0; | |
1406 | long _arg1; | |
1d99702e | 1407 | PyObject * _argo0 = 0; |
efc5f224 | 1408 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1409 | |
1410 | self = self; | |
efc5f224 | 1411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1412 | return NULL; |
1d99702e RD |
1413 | if (_argo0) { |
1414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1417 | return NULL; |
1418 | } | |
1419 | } | |
cf694132 RD |
1420 | { |
1421 | wxPy_BEGIN_ALLOW_THREADS; | |
1422 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1423 | ||
1424 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1425 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1426 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1427 | return _resultobj; |
1428 | } | |
1429 | ||
1430 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1431 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1432 | PyObject * _resultobj; |
1433 | wxWindow * _result; | |
1434 | wxWindow * _arg0; | |
1435 | wxString * _arg1; | |
1d99702e | 1436 | PyObject * _argo0 = 0; |
8ab979d7 | 1437 | PyObject * _obj1 = 0; |
efc5f224 | 1438 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1439 | |
1440 | self = self; | |
efc5f224 | 1441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1442 | return NULL; |
1d99702e RD |
1443 | if (_argo0) { |
1444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1447 | return NULL; | |
1448 | } | |
1449 | } | |
1450 | { | |
2cd2fac8 RD |
1451 | #if PYTHON_API_VERSION >= 1009 |
1452 | char* tmpPtr; int tmpSize; | |
1453 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1454 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1455 | return NULL; |
1456 | } | |
1457 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1458 | return NULL; | |
1459 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1460 | #else | |
8ab979d7 RD |
1461 | if (!PyString_Check(_obj1)) { |
1462 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1463 | return NULL; | |
1464 | } | |
2cd2fac8 RD |
1465 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1466 | #endif | |
8ab979d7 | 1467 | } |
cf694132 RD |
1468 | { |
1469 | wxPy_BEGIN_ALLOW_THREADS; | |
1470 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1471 | ||
1472 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1473 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1474 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1475 | { |
1476 | if (_obj1) | |
1477 | delete _arg1; | |
1478 | } | |
1479 | return _resultobj; | |
1480 | } | |
1481 | ||
1482 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1483 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1484 | PyObject * _resultobj; |
1485 | wxWindow * _arg0; | |
1d99702e | 1486 | PyObject * _argo0 = 0; |
efc5f224 | 1487 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1488 | |
1489 | self = self; | |
efc5f224 | 1490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1491 | return NULL; |
1d99702e RD |
1492 | if (_argo0) { |
1493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1496 | return NULL; | |
1497 | } | |
1498 | } | |
cf694132 RD |
1499 | { |
1500 | wxPy_BEGIN_ALLOW_THREADS; | |
1501 | wxWindow_Fit(_arg0); | |
1502 | ||
1503 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1504 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1505 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1506 | _resultobj = Py_None; |
1507 | return _resultobj; | |
1508 | } | |
1509 | ||
1510 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1511 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1512 | PyObject * _resultobj; |
1513 | wxColour * _result; | |
1514 | wxWindow * _arg0; | |
1d99702e | 1515 | PyObject * _argo0 = 0; |
efc5f224 | 1516 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1517 | char _ptemp[128]; |
1518 | ||
1519 | self = self; | |
efc5f224 | 1520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1521 | return NULL; |
1d99702e RD |
1522 | if (_argo0) { |
1523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1526 | return NULL; | |
1527 | } | |
1528 | } | |
cf694132 RD |
1529 | { |
1530 | wxPy_BEGIN_ALLOW_THREADS; | |
1531 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1532 | ||
1533 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1534 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1535 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1536 | _resultobj = Py_BuildValue("s",_ptemp); |
1537 | return _resultobj; | |
1538 | } | |
1539 | ||
d426c97e RD |
1540 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1541 | wxWindowList& list = self->GetChildren(); | |
1542 | return wxPy_ConvertList(&list, "wxWindow"); | |
1543 | } | |
1544 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1545 | PyObject * _resultobj; | |
1546 | PyObject * _result; | |
1547 | wxWindow * _arg0; | |
1548 | PyObject * _argo0 = 0; | |
1549 | char *_kwnames[] = { "self", NULL }; | |
1550 | ||
1551 | self = self; | |
1552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1553 | return NULL; | |
1554 | if (_argo0) { | |
1555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1558 | return NULL; | |
1559 | } | |
1560 | } | |
1561 | { | |
1562 | wxPy_BEGIN_ALLOW_THREADS; | |
1563 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1564 | ||
1565 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1566 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1567 | }{ |
1568 | _resultobj = _result; | |
1569 | } | |
1570 | return _resultobj; | |
1571 | } | |
1572 | ||
8ab979d7 | 1573 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1574 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1575 | PyObject * _resultobj; |
1576 | int _result; | |
1577 | wxWindow * _arg0; | |
1d99702e | 1578 | PyObject * _argo0 = 0; |
efc5f224 | 1579 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1580 | |
1581 | self = self; | |
efc5f224 | 1582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1583 | return NULL; |
1d99702e RD |
1584 | if (_argo0) { |
1585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1588 | return NULL; | |
1589 | } | |
1590 | } | |
cf694132 RD |
1591 | { |
1592 | wxPy_BEGIN_ALLOW_THREADS; | |
1593 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1594 | ||
1595 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1596 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1597 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1598 | return _resultobj; |
1599 | } | |
1600 | ||
1601 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1602 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1603 | PyObject * _resultobj; |
1604 | int _result; | |
1605 | wxWindow * _arg0; | |
1d99702e | 1606 | PyObject * _argo0 = 0; |
efc5f224 | 1607 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1608 | |
1609 | self = self; | |
efc5f224 | 1610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1611 | return NULL; |
1d99702e RD |
1612 | if (_argo0) { |
1613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1616 | return NULL; | |
1617 | } | |
1618 | } | |
cf694132 RD |
1619 | { |
1620 | wxPy_BEGIN_ALLOW_THREADS; | |
1621 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1622 | ||
1623 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1624 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1625 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1626 | return _resultobj; |
1627 | } | |
1628 | ||
b8b8dda7 | 1629 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1630 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1631 | PyObject * _resultobj; |
1632 | wxWindow * _arg0; | |
1633 | int * _arg1; | |
1634 | int temp; | |
1635 | int * _arg2; | |
1636 | int temp0; | |
1d99702e | 1637 | PyObject * _argo0 = 0; |
efc5f224 | 1638 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1639 | |
1640 | self = self; | |
1641 | { | |
1642 | _arg1 = &temp; | |
1643 | } | |
1644 | { | |
1645 | _arg2 = &temp0; | |
1646 | } | |
efc5f224 | 1647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1648 | return NULL; |
1d99702e RD |
1649 | if (_argo0) { |
1650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1653 | return NULL; |
1654 | } | |
1655 | } | |
cf694132 RD |
1656 | { |
1657 | wxPy_BEGIN_ALLOW_THREADS; | |
1658 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1659 | ||
1660 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1661 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1662 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1663 | _resultobj = Py_None; |
1664 | { | |
1665 | PyObject *o; | |
1666 | o = PyInt_FromLong((long) (*_arg1)); | |
1667 | _resultobj = t_output_helper(_resultobj, o); | |
1668 | } | |
1669 | { | |
1670 | PyObject *o; | |
1671 | o = PyInt_FromLong((long) (*_arg2)); | |
1672 | _resultobj = t_output_helper(_resultobj, o); | |
1673 | } | |
1674 | return _resultobj; | |
1675 | } | |
1676 | ||
b8b8dda7 | 1677 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1678 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1679 | PyObject * _resultobj; |
1680 | wxSize * _result; | |
1681 | wxWindow * _arg0; | |
1d99702e | 1682 | PyObject * _argo0 = 0; |
efc5f224 | 1683 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1684 | char _ptemp[128]; |
1685 | ||
1686 | self = self; | |
efc5f224 | 1687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1688 | return NULL; |
1d99702e RD |
1689 | if (_argo0) { |
1690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1693 | return NULL; | |
1694 | } | |
1695 | } | |
cf694132 RD |
1696 | { |
1697 | wxPy_BEGIN_ALLOW_THREADS; | |
1698 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1699 | ||
1700 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1701 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1702 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1703 | _resultobj = Py_BuildValue("s",_ptemp); |
1704 | return _resultobj; | |
1705 | } | |
1706 | ||
8ab979d7 | 1707 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1708 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1709 | PyObject * _resultobj; |
1710 | wxLayoutConstraints * _result; | |
1711 | wxWindow * _arg0; | |
1d99702e | 1712 | PyObject * _argo0 = 0; |
efc5f224 | 1713 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1714 | char _ptemp[128]; |
1715 | ||
1716 | self = self; | |
efc5f224 | 1717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1718 | return NULL; |
1d99702e RD |
1719 | if (_argo0) { |
1720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1723 | return NULL; | |
1724 | } | |
1725 | } | |
cf694132 RD |
1726 | { |
1727 | wxPy_BEGIN_ALLOW_THREADS; | |
1728 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1729 | ||
1730 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1731 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1732 | } if (_result) { |
1733 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1734 | _resultobj = Py_BuildValue("s",_ptemp); | |
1735 | } else { | |
1736 | Py_INCREF(Py_None); | |
1737 | _resultobj = Py_None; | |
1738 | } | |
8ab979d7 RD |
1739 | return _resultobj; |
1740 | } | |
1741 | ||
1afc06c2 RD |
1742 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1743 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1744 | PyObject * _resultobj; | |
1745 | wxEvtHandler * _result; | |
1746 | wxWindow * _arg0; | |
1747 | PyObject * _argo0 = 0; | |
1748 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
1749 | |
1750 | self = self; | |
1751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1752 | return NULL; | |
1753 | if (_argo0) { | |
1754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1757 | return NULL; | |
1758 | } | |
1759 | } | |
1760 | { | |
1761 | wxPy_BEGIN_ALLOW_THREADS; | |
1762 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1763 | ||
1764 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1765 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1766 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
1767 | return _resultobj; |
1768 | } | |
1769 | ||
8ab979d7 | 1770 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1771 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1772 | PyObject * _resultobj; |
1773 | wxFont * _result; | |
1774 | wxWindow * _arg0; | |
1d99702e | 1775 | PyObject * _argo0 = 0; |
efc5f224 | 1776 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1777 | char _ptemp[128]; |
1778 | ||
1779 | self = self; | |
efc5f224 | 1780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1781 | return NULL; |
1d99702e RD |
1782 | if (_argo0) { |
1783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1786 | return NULL; | |
1787 | } | |
1788 | } | |
cf694132 RD |
1789 | { |
1790 | wxPy_BEGIN_ALLOW_THREADS; | |
1791 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
b8b8dda7 | 1792 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
1793 | |
1794 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1795 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1796 | } if (_result) { |
1797 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1798 | _resultobj = Py_BuildValue("s",_ptemp); | |
1799 | } else { | |
1800 | Py_INCREF(Py_None); | |
1801 | _resultobj = Py_None; | |
1802 | } | |
8ab979d7 RD |
1803 | return _resultobj; |
1804 | } | |
1805 | ||
1806 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1807 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1808 | PyObject * _resultobj; |
1809 | wxColour * _result; | |
1810 | wxWindow * _arg0; | |
1d99702e | 1811 | PyObject * _argo0 = 0; |
efc5f224 | 1812 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1813 | char _ptemp[128]; |
1814 | ||
1815 | self = self; | |
efc5f224 | 1816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1817 | return NULL; |
1d99702e RD |
1818 | if (_argo0) { |
1819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1822 | return NULL; | |
1823 | } | |
1824 | } | |
cf694132 RD |
1825 | { |
1826 | wxPy_BEGIN_ALLOW_THREADS; | |
1827 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1828 | ||
1829 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1830 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1831 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1832 | _resultobj = Py_BuildValue("s",_ptemp); |
1833 | return _resultobj; | |
1834 | } | |
1835 | ||
1836 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1837 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1838 | PyObject * _resultobj; |
1839 | wxWindow * _result; | |
1840 | wxWindow * _arg0; | |
1d99702e | 1841 | PyObject * _argo0 = 0; |
efc5f224 | 1842 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1843 | |
1844 | self = self; | |
efc5f224 | 1845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1846 | return NULL; |
1d99702e RD |
1847 | if (_argo0) { |
1848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1851 | return NULL; | |
1852 | } | |
1853 | } | |
cf694132 RD |
1854 | { |
1855 | wxPy_BEGIN_ALLOW_THREADS; | |
1856 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1857 | ||
1858 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1859 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1860 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1861 | return _resultobj; |
1862 | } | |
1863 | ||
2abc0a0f | 1864 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1865 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1866 | } |
1867 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1868 | PyObject * _resultobj; | |
1869 | long _result; | |
1870 | wxWindow * _arg0; | |
1871 | PyObject * _argo0 = 0; | |
1872 | char *_kwnames[] = { "self", NULL }; | |
1873 | ||
1874 | self = self; | |
1875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1876 | return NULL; | |
1877 | if (_argo0) { | |
1878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1881 | return NULL; | |
1882 | } | |
1883 | } | |
1884 | { | |
1885 | wxPy_BEGIN_ALLOW_THREADS; | |
1886 | _result = (long )wxWindow_GetHandle(_arg0); | |
1887 | ||
1888 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1889 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
1890 | } _resultobj = Py_BuildValue("l",_result); |
1891 | return _resultobj; | |
1892 | } | |
1893 | ||
8ab979d7 | 1894 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 1895 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1896 | PyObject * _resultobj; |
1897 | int _result; | |
1898 | wxWindow * _arg0; | |
1d99702e | 1899 | PyObject * _argo0 = 0; |
efc5f224 | 1900 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1901 | |
1902 | self = self; | |
efc5f224 | 1903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 1904 | return NULL; |
1d99702e RD |
1905 | if (_argo0) { |
1906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
1909 | return NULL; | |
1910 | } | |
1911 | } | |
cf694132 RD |
1912 | { |
1913 | wxPy_BEGIN_ALLOW_THREADS; | |
1914 | _result = (int )wxWindow_GetId(_arg0); | |
1915 | ||
1916 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1917 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1918 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1919 | return _resultobj; |
1920 | } | |
1921 | ||
8ab979d7 | 1922 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 1923 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1924 | PyObject * _resultobj; |
1925 | wxString * _result; | |
1926 | wxWindow * _arg0; | |
1d99702e | 1927 | PyObject * _argo0 = 0; |
efc5f224 | 1928 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1929 | |
1930 | self = self; | |
efc5f224 | 1931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 1932 | return NULL; |
1d99702e RD |
1933 | if (_argo0) { |
1934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
1937 | return NULL; | |
1938 | } | |
1939 | } | |
8ab979d7 | 1940 | { |
cf694132 RD |
1941 | wxPy_BEGIN_ALLOW_THREADS; |
1942 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
1943 | ||
1944 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1945 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1946 | }{ |
eec92d76 | 1947 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1948 | } |
1949 | { | |
1950 | delete _result; | |
1951 | } | |
1952 | return _resultobj; | |
1953 | } | |
1954 | ||
bb0054cd | 1955 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 1956 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1957 | PyObject * _resultobj; |
1958 | wxWindow * _arg0; | |
1959 | wxString * _arg1; | |
1d99702e | 1960 | PyObject * _argo0 = 0; |
bb0054cd | 1961 | PyObject * _obj1 = 0; |
efc5f224 | 1962 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
1963 | |
1964 | self = self; | |
efc5f224 | 1965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 1966 | return NULL; |
1d99702e RD |
1967 | if (_argo0) { |
1968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
1971 | return NULL; | |
1972 | } | |
1973 | } | |
1974 | { | |
2cd2fac8 RD |
1975 | #if PYTHON_API_VERSION >= 1009 |
1976 | char* tmpPtr; int tmpSize; | |
1977 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1978 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1979 | return NULL; |
1980 | } | |
1981 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1982 | return NULL; | |
1983 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1984 | #else | |
bb0054cd RD |
1985 | if (!PyString_Check(_obj1)) { |
1986 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1987 | return NULL; | |
1988 | } | |
2cd2fac8 RD |
1989 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1990 | #endif | |
bb0054cd RD |
1991 | } |
1992 | { | |
1993 | wxPy_BEGIN_ALLOW_THREADS; | |
1994 | wxWindow_SetLabel(_arg0,*_arg1); | |
1995 | ||
1996 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1997 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1998 | } Py_INCREF(Py_None); |
1999 | _resultobj = Py_None; | |
2000 | { | |
2001 | if (_obj1) | |
2002 | delete _arg1; | |
2003 | } | |
2004 | return _resultobj; | |
2005 | } | |
2006 | ||
8ab979d7 | 2007 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2008 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2009 | PyObject * _resultobj; |
2010 | wxString * _result; | |
2011 | wxWindow * _arg0; | |
1d99702e | 2012 | PyObject * _argo0 = 0; |
efc5f224 | 2013 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2014 | |
2015 | self = self; | |
efc5f224 | 2016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2017 | return NULL; |
1d99702e RD |
2018 | if (_argo0) { |
2019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2022 | return NULL; | |
2023 | } | |
2024 | } | |
8ab979d7 | 2025 | { |
cf694132 RD |
2026 | wxPy_BEGIN_ALLOW_THREADS; |
2027 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2028 | ||
2029 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2030 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2031 | }{ |
eec92d76 | 2032 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2033 | } |
2034 | { | |
2035 | delete _result; | |
2036 | } | |
2037 | return _resultobj; | |
2038 | } | |
2039 | ||
2040 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2041 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2042 | PyObject * _resultobj; |
2043 | wxWindow * _result; | |
2044 | wxWindow * _arg0; | |
1d99702e | 2045 | PyObject * _argo0 = 0; |
efc5f224 | 2046 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2047 | |
2048 | self = self; | |
efc5f224 | 2049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2050 | return NULL; |
1d99702e RD |
2051 | if (_argo0) { |
2052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2055 | return NULL; | |
2056 | } | |
2057 | } | |
cf694132 RD |
2058 | { |
2059 | wxPy_BEGIN_ALLOW_THREADS; | |
2060 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2061 | ||
2062 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2063 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2064 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2065 | return _resultobj; |
2066 | } | |
2067 | ||
b8b8dda7 | 2068 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2069 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2070 | PyObject * _resultobj; |
2071 | wxWindow * _arg0; | |
2072 | int * _arg1; | |
2073 | int temp; | |
2074 | int * _arg2; | |
2075 | int temp0; | |
1d99702e | 2076 | PyObject * _argo0 = 0; |
efc5f224 | 2077 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2078 | |
2079 | self = self; | |
2080 | { | |
2081 | _arg1 = &temp; | |
2082 | } | |
2083 | { | |
2084 | _arg2 = &temp0; | |
2085 | } | |
efc5f224 | 2086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2087 | return NULL; |
1d99702e RD |
2088 | if (_argo0) { |
2089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2092 | return NULL; | |
2093 | } | |
2094 | } | |
cf694132 RD |
2095 | { |
2096 | wxPy_BEGIN_ALLOW_THREADS; | |
2097 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2098 | ||
2099 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2100 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2101 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2102 | _resultobj = Py_None; |
2103 | { | |
2104 | PyObject *o; | |
2105 | o = PyInt_FromLong((long) (*_arg1)); | |
2106 | _resultobj = t_output_helper(_resultobj, o); | |
2107 | } | |
2108 | { | |
2109 | PyObject *o; | |
2110 | o = PyInt_FromLong((long) (*_arg2)); | |
2111 | _resultobj = t_output_helper(_resultobj, o); | |
2112 | } | |
2113 | return _resultobj; | |
2114 | } | |
2115 | ||
2116 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2117 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2118 | PyObject * _resultobj; |
2119 | wxPoint * _result; | |
2120 | wxWindow * _arg0; | |
1d99702e | 2121 | PyObject * _argo0 = 0; |
efc5f224 | 2122 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2123 | char _ptemp[128]; |
2124 | ||
2125 | self = self; | |
efc5f224 | 2126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2127 | return NULL; |
1d99702e RD |
2128 | if (_argo0) { |
2129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2132 | return NULL; | |
2133 | } | |
2134 | } | |
cf694132 RD |
2135 | { |
2136 | wxPy_BEGIN_ALLOW_THREADS; | |
2137 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2138 | ||
2139 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2140 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2141 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2142 | _resultobj = Py_BuildValue("s",_ptemp); |
2143 | return _resultobj; | |
2144 | } | |
2145 | ||
2146 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2147 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2148 | PyObject * _resultobj; |
2149 | wxRect * _result; | |
2150 | wxWindow * _arg0; | |
1d99702e | 2151 | PyObject * _argo0 = 0; |
efc5f224 | 2152 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2153 | char _ptemp[128]; |
2154 | ||
2155 | self = self; | |
efc5f224 | 2156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2157 | return NULL; |
1d99702e RD |
2158 | if (_argo0) { |
2159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2162 | return NULL; | |
2163 | } | |
2164 | } | |
cf694132 RD |
2165 | { |
2166 | wxPy_BEGIN_ALLOW_THREADS; | |
2167 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2168 | ||
2169 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2170 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2171 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2172 | _resultobj = Py_BuildValue("s",_ptemp); |
2173 | return _resultobj; | |
2174 | } | |
2175 | ||
8ab979d7 | 2176 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2177 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2178 | PyObject * _resultobj; |
2179 | int _result; | |
2180 | wxWindow * _arg0; | |
2181 | int _arg1; | |
1d99702e | 2182 | PyObject * _argo0 = 0; |
efc5f224 | 2183 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2184 | |
2185 | self = self; | |
efc5f224 | 2186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2187 | return NULL; |
1d99702e RD |
2188 | if (_argo0) { |
2189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2192 | return NULL; | |
2193 | } | |
2194 | } | |
cf694132 RD |
2195 | { |
2196 | wxPy_BEGIN_ALLOW_THREADS; | |
2197 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2198 | ||
2199 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2200 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2201 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2202 | return _resultobj; |
2203 | } | |
2204 | ||
2205 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2206 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2207 | PyObject * _resultobj; |
2208 | int _result; | |
2209 | wxWindow * _arg0; | |
2210 | int _arg1; | |
1d99702e | 2211 | PyObject * _argo0 = 0; |
efc5f224 | 2212 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2213 | |
2214 | self = self; | |
efc5f224 | 2215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2216 | return NULL; |
1d99702e RD |
2217 | if (_argo0) { |
2218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2221 | return NULL; | |
2222 | } | |
2223 | } | |
cf694132 RD |
2224 | { |
2225 | wxPy_BEGIN_ALLOW_THREADS; | |
2226 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2227 | ||
2228 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2229 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2230 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2231 | return _resultobj; |
2232 | } | |
2233 | ||
2234 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2235 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2236 | PyObject * _resultobj; |
2237 | int _result; | |
2238 | wxWindow * _arg0; | |
2239 | int _arg1; | |
1d99702e | 2240 | PyObject * _argo0 = 0; |
efc5f224 | 2241 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2242 | |
2243 | self = self; | |
efc5f224 | 2244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2245 | return NULL; |
1d99702e RD |
2246 | if (_argo0) { |
2247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2250 | return NULL; | |
2251 | } | |
2252 | } | |
cf694132 RD |
2253 | { |
2254 | wxPy_BEGIN_ALLOW_THREADS; | |
2255 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2256 | ||
2257 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2258 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2259 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2260 | return _resultobj; |
2261 | } | |
2262 | ||
b8b8dda7 | 2263 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2264 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2265 | PyObject * _resultobj; |
2266 | wxWindow * _arg0; | |
2267 | int * _arg1; | |
2268 | int temp; | |
2269 | int * _arg2; | |
2270 | int temp0; | |
1d99702e | 2271 | PyObject * _argo0 = 0; |
efc5f224 | 2272 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2273 | |
2274 | self = self; | |
2275 | { | |
2276 | _arg1 = &temp; | |
2277 | } | |
2278 | { | |
2279 | _arg2 = &temp0; | |
2280 | } | |
efc5f224 | 2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2282 | return NULL; |
1d99702e RD |
2283 | if (_argo0) { |
2284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2287 | return NULL; |
2288 | } | |
2289 | } | |
cf694132 RD |
2290 | { |
2291 | wxPy_BEGIN_ALLOW_THREADS; | |
2292 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2293 | ||
2294 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2295 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2296 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2297 | _resultobj = Py_None; |
2298 | { | |
2299 | PyObject *o; | |
2300 | o = PyInt_FromLong((long) (*_arg1)); | |
2301 | _resultobj = t_output_helper(_resultobj, o); | |
2302 | } | |
2303 | { | |
2304 | PyObject *o; | |
2305 | o = PyInt_FromLong((long) (*_arg2)); | |
2306 | _resultobj = t_output_helper(_resultobj, o); | |
2307 | } | |
2308 | return _resultobj; | |
2309 | } | |
2310 | ||
b8b8dda7 | 2311 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2312 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2313 | PyObject * _resultobj; |
2314 | wxSize * _result; | |
2315 | wxWindow * _arg0; | |
1d99702e | 2316 | PyObject * _argo0 = 0; |
efc5f224 | 2317 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2318 | char _ptemp[128]; |
2319 | ||
2320 | self = self; | |
efc5f224 | 2321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2322 | return NULL; |
1d99702e RD |
2323 | if (_argo0) { |
2324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2327 | return NULL; | |
2328 | } | |
2329 | } | |
cf694132 RD |
2330 | { |
2331 | wxPy_BEGIN_ALLOW_THREADS; | |
2332 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2333 | ||
2334 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2335 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2336 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2337 | _resultobj = Py_BuildValue("s",_ptemp); |
2338 | return _resultobj; | |
2339 | } | |
2340 | ||
8ab979d7 | 2341 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2342 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2343 | PyObject * _resultobj; |
2344 | wxWindow * _arg0; | |
2345 | wxString * _arg1; | |
2346 | int * _arg2; | |
2347 | int temp; | |
2348 | int * _arg3; | |
2349 | int temp0; | |
1d99702e | 2350 | PyObject * _argo0 = 0; |
8ab979d7 | 2351 | PyObject * _obj1 = 0; |
efc5f224 | 2352 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2353 | |
2354 | self = self; | |
2355 | { | |
2356 | _arg2 = &temp; | |
2357 | } | |
2358 | { | |
2359 | _arg3 = &temp0; | |
2360 | } | |
efc5f224 | 2361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2362 | return NULL; |
1d99702e RD |
2363 | if (_argo0) { |
2364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2367 | return NULL; | |
2368 | } | |
2369 | } | |
2370 | { | |
2cd2fac8 RD |
2371 | #if PYTHON_API_VERSION >= 1009 |
2372 | char* tmpPtr; int tmpSize; | |
2373 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2374 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2375 | return NULL; |
2376 | } | |
2377 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2378 | return NULL; | |
2379 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2380 | #else | |
8ab979d7 RD |
2381 | if (!PyString_Check(_obj1)) { |
2382 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2383 | return NULL; | |
2384 | } | |
2cd2fac8 RD |
2385 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2386 | #endif | |
8ab979d7 | 2387 | } |
cf694132 RD |
2388 | { |
2389 | wxPy_BEGIN_ALLOW_THREADS; | |
2390 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2391 | ||
2392 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2393 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2394 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2395 | _resultobj = Py_None; |
2396 | { | |
2397 | PyObject *o; | |
2398 | o = PyInt_FromLong((long) (*_arg2)); | |
2399 | _resultobj = t_output_helper(_resultobj, o); | |
2400 | } | |
2401 | { | |
2402 | PyObject *o; | |
2403 | o = PyInt_FromLong((long) (*_arg3)); | |
2404 | _resultobj = t_output_helper(_resultobj, o); | |
2405 | } | |
2406 | { | |
2407 | if (_obj1) | |
2408 | delete _arg1; | |
2409 | } | |
2410 | return _resultobj; | |
2411 | } | |
2412 | ||
af309447 | 2413 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2414 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2415 | PyObject * _resultobj; |
2416 | wxWindow * _arg0; | |
2417 | wxString * _arg1; | |
2418 | int * _arg2; | |
2419 | int temp; | |
2420 | int * _arg3; | |
2421 | int temp0; | |
2422 | int * _arg4; | |
2423 | int temp1; | |
2424 | int * _arg5; | |
2425 | int temp2; | |
1d99702e RD |
2426 | wxFont * _arg6 = (wxFont *) NULL; |
2427 | PyObject * _argo0 = 0; | |
af309447 | 2428 | PyObject * _obj1 = 0; |
1d99702e | 2429 | PyObject * _argo6 = 0; |
efc5f224 | 2430 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2431 | |
2432 | self = self; | |
2433 | { | |
2434 | _arg2 = &temp; | |
2435 | } | |
2436 | { | |
2437 | _arg3 = &temp0; | |
2438 | } | |
2439 | { | |
2440 | _arg4 = &temp1; | |
2441 | } | |
2442 | { | |
2443 | _arg5 = &temp2; | |
2444 | } | |
efc5f224 | 2445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2446 | return NULL; |
1d99702e RD |
2447 | if (_argo0) { |
2448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2451 | return NULL; | |
2452 | } | |
2453 | } | |
2454 | { | |
2cd2fac8 RD |
2455 | #if PYTHON_API_VERSION >= 1009 |
2456 | char* tmpPtr; int tmpSize; | |
2457 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2458 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2459 | return NULL; |
2460 | } | |
2461 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2462 | return NULL; | |
2463 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2464 | #else | |
af309447 RD |
2465 | if (!PyString_Check(_obj1)) { |
2466 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2467 | return NULL; | |
2468 | } | |
2cd2fac8 RD |
2469 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2470 | #endif | |
af309447 | 2471 | } |
1d99702e RD |
2472 | if (_argo6) { |
2473 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2474 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2476 | return NULL; | |
2477 | } | |
2478 | } | |
cf694132 RD |
2479 | { |
2480 | wxPy_BEGIN_ALLOW_THREADS; | |
2481 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2482 | ||
2483 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2484 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2485 | } Py_INCREF(Py_None); |
af309447 RD |
2486 | _resultobj = Py_None; |
2487 | { | |
2488 | PyObject *o; | |
2489 | o = PyInt_FromLong((long) (*_arg2)); | |
2490 | _resultobj = t_output_helper(_resultobj, o); | |
2491 | } | |
2492 | { | |
2493 | PyObject *o; | |
2494 | o = PyInt_FromLong((long) (*_arg3)); | |
2495 | _resultobj = t_output_helper(_resultobj, o); | |
2496 | } | |
2497 | { | |
2498 | PyObject *o; | |
2499 | o = PyInt_FromLong((long) (*_arg4)); | |
2500 | _resultobj = t_output_helper(_resultobj, o); | |
2501 | } | |
2502 | { | |
2503 | PyObject *o; | |
2504 | o = PyInt_FromLong((long) (*_arg5)); | |
2505 | _resultobj = t_output_helper(_resultobj, o); | |
2506 | } | |
2507 | { | |
2508 | if (_obj1) | |
2509 | delete _arg1; | |
2510 | } | |
2511 | return _resultobj; | |
2512 | } | |
2513 | ||
8ab979d7 | 2514 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2515 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2516 | PyObject * _resultobj; |
2517 | wxString * _result; | |
2518 | wxWindow * _arg0; | |
1d99702e | 2519 | PyObject * _argo0 = 0; |
efc5f224 | 2520 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2521 | |
2522 | self = self; | |
efc5f224 | 2523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2524 | return NULL; |
1d99702e RD |
2525 | if (_argo0) { |
2526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2529 | return NULL; | |
2530 | } | |
2531 | } | |
8ab979d7 | 2532 | { |
cf694132 RD |
2533 | wxPy_BEGIN_ALLOW_THREADS; |
2534 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2535 | ||
2536 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2537 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2538 | }{ |
eec92d76 | 2539 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2540 | } |
2541 | { | |
2542 | delete _result; | |
2543 | } | |
2544 | return _resultobj; | |
2545 | } | |
2546 | ||
8bf5d46e | 2547 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2548 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2549 | PyObject * _resultobj; |
2550 | wxRegion * _result; | |
2551 | wxWindow * _arg0; | |
1d99702e | 2552 | PyObject * _argo0 = 0; |
efc5f224 | 2553 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2554 | char _ptemp[128]; |
2555 | ||
2556 | self = self; | |
efc5f224 | 2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2558 | return NULL; |
1d99702e RD |
2559 | if (_argo0) { |
2560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2563 | return NULL; | |
2564 | } | |
2565 | } | |
2566 | { | |
2567 | wxPy_BEGIN_ALLOW_THREADS; | |
2568 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2569 | ||
2570 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2571 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2572 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2573 | _resultobj = Py_BuildValue("s",_ptemp); | |
2574 | return _resultobj; | |
2575 | } | |
2576 | ||
8ab979d7 | 2577 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2578 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2579 | PyObject * _resultobj; |
2580 | long _result; | |
2581 | wxWindow * _arg0; | |
1d99702e | 2582 | PyObject * _argo0 = 0; |
efc5f224 | 2583 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2584 | |
2585 | self = self; | |
efc5f224 | 2586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2587 | return NULL; |
1d99702e RD |
2588 | if (_argo0) { |
2589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2592 | return NULL; | |
2593 | } | |
2594 | } | |
cf694132 RD |
2595 | { |
2596 | wxPy_BEGIN_ALLOW_THREADS; | |
2597 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2598 | ||
2599 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2600 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2601 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2602 | return _resultobj; |
2603 | } | |
2604 | ||
f6bcfd97 BP |
2605 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2606 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2607 | PyObject * _resultobj; | |
2608 | wxWindow * _arg0; | |
2609 | long _arg1; | |
2610 | PyObject * _argo0 = 0; | |
2611 | char *_kwnames[] = { "self","style", NULL }; | |
2612 | ||
2613 | self = self; | |
2614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2615 | return NULL; | |
2616 | if (_argo0) { | |
2617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2620 | return NULL; | |
2621 | } | |
2622 | } | |
2623 | { | |
2624 | wxPy_BEGIN_ALLOW_THREADS; | |
2625 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2626 | ||
2627 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2628 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2629 | } Py_INCREF(Py_None); |
2630 | _resultobj = Py_None; | |
2631 | return _resultobj; | |
2632 | } | |
2633 | ||
2634 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2635 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2636 | PyObject * _resultobj; | |
2637 | wxWindow * _arg0; | |
2638 | long _arg1; | |
2639 | PyObject * _argo0 = 0; | |
2640 | char *_kwnames[] = { "self","style", NULL }; | |
2641 | ||
2642 | self = self; | |
2643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2644 | return NULL; | |
2645 | if (_argo0) { | |
2646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2649 | return NULL; | |
2650 | } | |
2651 | } | |
2652 | { | |
2653 | wxPy_BEGIN_ALLOW_THREADS; | |
2654 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2655 | ||
2656 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2657 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2658 | } Py_INCREF(Py_None); |
2659 | _resultobj = Py_None; | |
2660 | return _resultobj; | |
2661 | } | |
2662 | ||
bb0054cd | 2663 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2664 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2665 | PyObject * _resultobj; |
2666 | bool _result; | |
2667 | wxWindow * _arg0; | |
1d99702e | 2668 | PyObject * _argo0 = 0; |
efc5f224 | 2669 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2670 | |
2671 | self = self; | |
efc5f224 | 2672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2673 | return NULL; |
1d99702e RD |
2674 | if (_argo0) { |
2675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2678 | return NULL; | |
2679 | } | |
2680 | } | |
2681 | { | |
2682 | wxPy_BEGIN_ALLOW_THREADS; | |
2683 | _result = (bool )wxWindow_Hide(_arg0); | |
2684 | ||
2685 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2686 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2687 | } _resultobj = Py_BuildValue("i",_result); |
2688 | return _resultobj; | |
2689 | } | |
2690 | ||
8ab979d7 | 2691 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2692 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2693 | PyObject * _resultobj; |
2694 | wxWindow * _arg0; | |
1d99702e | 2695 | PyObject * _argo0 = 0; |
efc5f224 | 2696 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2697 | |
2698 | self = self; | |
efc5f224 | 2699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2700 | return NULL; |
1d99702e RD |
2701 | if (_argo0) { |
2702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2705 | return NULL; | |
2706 | } | |
2707 | } | |
cf694132 RD |
2708 | { |
2709 | wxPy_BEGIN_ALLOW_THREADS; | |
2710 | wxWindow_InitDialog(_arg0); | |
2711 | ||
2712 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2713 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2714 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2715 | _resultobj = Py_None; |
2716 | return _resultobj; | |
2717 | } | |
2718 | ||
2719 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2720 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2721 | PyObject * _resultobj; |
2722 | bool _result; | |
2723 | wxWindow * _arg0; | |
1d99702e | 2724 | PyObject * _argo0 = 0; |
efc5f224 | 2725 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2726 | |
2727 | self = self; | |
efc5f224 | 2728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2729 | return NULL; |
1d99702e RD |
2730 | if (_argo0) { |
2731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2734 | return NULL; | |
2735 | } | |
2736 | } | |
cf694132 RD |
2737 | { |
2738 | wxPy_BEGIN_ALLOW_THREADS; | |
2739 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2740 | ||
2741 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2742 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2743 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2744 | return _resultobj; |
2745 | } | |
2746 | ||
1b55cabf RD |
2747 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2748 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2749 | PyObject * _resultobj; | |
2750 | bool _result; | |
2751 | wxWindow * _arg0; | |
2752 | int _arg1; | |
2753 | int _arg2; | |
2754 | int _arg3 = (int ) 0; | |
2755 | int _arg4 = (int ) 0; | |
2756 | PyObject * _argo0 = 0; | |
2757 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2758 | ||
2759 | self = self; | |
2760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2761 | return NULL; | |
2762 | if (_argo0) { | |
2763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2766 | return NULL; | |
2767 | } | |
2768 | } | |
2769 | { | |
2770 | wxPy_BEGIN_ALLOW_THREADS; | |
2771 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2772 | ||
2773 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2774 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2775 | } _resultobj = Py_BuildValue("i",_result); |
2776 | return _resultobj; | |
2777 | } | |
2778 | ||
2779 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2780 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2781 | PyObject * _resultobj; | |
2782 | bool _result; | |
2783 | wxWindow * _arg0; | |
2784 | wxPoint * _arg1; | |
2785 | PyObject * _argo0 = 0; | |
2786 | wxPoint temp; | |
2787 | PyObject * _obj1 = 0; | |
2788 | char *_kwnames[] = { "self","pt", NULL }; | |
2789 | ||
2790 | self = self; | |
2791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2792 | return NULL; | |
2793 | if (_argo0) { | |
2794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2797 | return NULL; | |
2798 | } | |
2799 | } | |
2800 | { | |
2801 | _arg1 = &temp; | |
2802 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2803 | return NULL; | |
2804 | } | |
2805 | { | |
2806 | wxPy_BEGIN_ALLOW_THREADS; | |
2807 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2808 | ||
2809 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2810 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2811 | } _resultobj = Py_BuildValue("i",_result); |
2812 | return _resultobj; | |
2813 | } | |
2814 | ||
2815 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2816 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2817 | PyObject * _resultobj; | |
2818 | bool _result; | |
2819 | wxWindow * _arg0; | |
2820 | wxRect * _arg1; | |
2821 | PyObject * _argo0 = 0; | |
2822 | wxRect temp; | |
2823 | PyObject * _obj1 = 0; | |
2824 | char *_kwnames[] = { "self","rect", NULL }; | |
2825 | ||
2826 | self = self; | |
2827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2828 | return NULL; | |
2829 | if (_argo0) { | |
2830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2833 | return NULL; | |
2834 | } | |
2835 | } | |
2836 | { | |
2837 | _arg1 = &temp; | |
2838 | if (! wxRect_helper(_obj1, &_arg1)) | |
2839 | return NULL; | |
2840 | } | |
2841 | { | |
2842 | wxPy_BEGIN_ALLOW_THREADS; | |
2843 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2844 | ||
2845 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2846 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2847 | } _resultobj = Py_BuildValue("i",_result); |
2848 | return _resultobj; | |
2849 | } | |
2850 | ||
8ab979d7 | 2851 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 2852 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2853 | PyObject * _resultobj; |
2854 | bool _result; | |
2855 | wxWindow * _arg0; | |
1d99702e | 2856 | PyObject * _argo0 = 0; |
efc5f224 | 2857 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2858 | |
2859 | self = self; | |
efc5f224 | 2860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 2861 | return NULL; |
1d99702e RD |
2862 | if (_argo0) { |
2863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
2866 | return NULL; | |
2867 | } | |
2868 | } | |
cf694132 RD |
2869 | { |
2870 | wxPy_BEGIN_ALLOW_THREADS; | |
2871 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2872 | ||
2873 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2874 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2875 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2876 | return _resultobj; |
2877 | } | |
2878 | ||
2879 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 2880 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2881 | PyObject * _resultobj; |
2882 | bool _result; | |
2883 | wxWindow * _arg0; | |
1d99702e | 2884 | PyObject * _argo0 = 0; |
efc5f224 | 2885 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2886 | |
2887 | self = self; | |
efc5f224 | 2888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 2889 | return NULL; |
1d99702e RD |
2890 | if (_argo0) { |
2891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
2894 | return NULL; | |
2895 | } | |
2896 | } | |
cf694132 RD |
2897 | { |
2898 | wxPy_BEGIN_ALLOW_THREADS; | |
2899 | _result = (bool )wxWindow_IsShown(_arg0); | |
2900 | ||
2901 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2902 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2903 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2904 | return _resultobj; |
2905 | } | |
2906 | ||
bb0054cd | 2907 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 2908 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2909 | PyObject * _resultobj; |
2910 | bool _result; | |
2911 | wxWindow * _arg0; | |
1d99702e | 2912 | PyObject * _argo0 = 0; |
efc5f224 | 2913 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2914 | |
2915 | self = self; | |
efc5f224 | 2916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 2917 | return NULL; |
1d99702e RD |
2918 | if (_argo0) { |
2919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
2922 | return NULL; | |
2923 | } | |
2924 | } | |
2925 | { | |
2926 | wxPy_BEGIN_ALLOW_THREADS; | |
2927 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2928 | ||
2929 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2930 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2931 | } _resultobj = Py_BuildValue("i",_result); |
2932 | return _resultobj; | |
2933 | } | |
2934 | ||
8ab979d7 | 2935 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 2936 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2937 | PyObject * _resultobj; |
2938 | wxWindow * _arg0; | |
1d99702e | 2939 | PyObject * _argo0 = 0; |
efc5f224 | 2940 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2941 | |
2942 | self = self; | |
efc5f224 | 2943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 2944 | return NULL; |
1d99702e RD |
2945 | if (_argo0) { |
2946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
2949 | return NULL; | |
2950 | } | |
2951 | } | |
cf694132 RD |
2952 | { |
2953 | wxPy_BEGIN_ALLOW_THREADS; | |
2954 | wxWindow_Layout(_arg0); | |
2955 | ||
2956 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2957 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2958 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2959 | _resultobj = Py_None; |
2960 | return _resultobj; | |
2961 | } | |
2962 | ||
2963 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2964 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2965 | PyObject * _resultobj; |
2966 | bool _result; | |
2967 | wxWindow * _arg0; | |
2968 | wxWindow * _arg1; | |
2969 | wxString * _arg2; | |
1d99702e RD |
2970 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
2971 | PyObject * _argo0 = 0; | |
2972 | PyObject * _argo1 = 0; | |
8ab979d7 | 2973 | PyObject * _obj2 = 0; |
1d99702e | 2974 | PyObject * _argo3 = 0; |
efc5f224 | 2975 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
2976 | |
2977 | self = self; | |
efc5f224 | 2978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 2979 | return NULL; |
1d99702e RD |
2980 | if (_argo0) { |
2981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
2984 | return NULL; | |
2985 | } | |
2986 | } | |
1d99702e RD |
2987 | if (_argo1) { |
2988 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2989 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
2990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
2991 | return NULL; | |
2992 | } | |
2993 | } | |
2994 | { | |
2cd2fac8 RD |
2995 | #if PYTHON_API_VERSION >= 1009 |
2996 | char* tmpPtr; int tmpSize; | |
2997 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 2998 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2999 | return NULL; |
3000 | } | |
3001 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3002 | return NULL; | |
3003 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3004 | #else | |
8ab979d7 RD |
3005 | if (!PyString_Check(_obj2)) { |
3006 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3007 | return NULL; | |
3008 | } | |
2cd2fac8 RD |
3009 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3010 | #endif | |
8ab979d7 | 3011 | } |
1d99702e RD |
3012 | if (_argo3) { |
3013 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3014 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3016 | return NULL; | |
3017 | } | |
3018 | } | |
cf694132 RD |
3019 | { |
3020 | wxPy_BEGIN_ALLOW_THREADS; | |
3021 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
3022 | ||
3023 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3024 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3025 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3026 | { |
3027 | if (_obj2) | |
3028 | delete _arg2; | |
3029 | } | |
3030 | return _resultobj; | |
3031 | } | |
3032 | ||
3033 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3034 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3035 | PyObject * _resultobj; |
3036 | wxWindow * _arg0; | |
1d99702e | 3037 | PyObject * _argo0 = 0; |
efc5f224 | 3038 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3039 | |
3040 | self = self; | |
efc5f224 | 3041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3042 | return NULL; |
1d99702e RD |
3043 | if (_argo0) { |
3044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3047 | return NULL; | |
3048 | } | |
3049 | } | |
cf694132 RD |
3050 | { |
3051 | wxPy_BEGIN_ALLOW_THREADS; | |
3052 | wxWindow_Lower(_arg0); | |
3053 | ||
3054 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3055 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3056 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3057 | _resultobj = Py_None; |
3058 | return _resultobj; | |
3059 | } | |
3060 | ||
3061 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3062 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3063 | PyObject * _resultobj; |
3064 | wxWindow * _arg0; | |
65191ae8 | 3065 | bool _arg1 = (bool ) TRUE; |
1d99702e | 3066 | PyObject * _argo0 = 0; |
65191ae8 | 3067 | int tempbool1 = (int) TRUE; |
efc5f224 | 3068 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3069 | |
3070 | self = self; | |
65191ae8 | 3071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3072 | return NULL; |
1d99702e RD |
3073 | if (_argo0) { |
3074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3077 | return NULL; | |
3078 | } | |
3079 | } | |
3080 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3081 | { |
3082 | wxPy_BEGIN_ALLOW_THREADS; | |
3083 | wxWindow_MakeModal(_arg0,_arg1); | |
3084 | ||
3085 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3086 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3087 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3088 | _resultobj = Py_None; |
3089 | return _resultobj; | |
3090 | } | |
3091 | ||
af309447 | 3092 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3093 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3094 | PyObject * _resultobj; |
3095 | wxWindow * _arg0; | |
3096 | int _arg1; | |
3097 | int _arg2; | |
1d99702e | 3098 | PyObject * _argo0 = 0; |
efc5f224 | 3099 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3100 | |
3101 | self = self; | |
efc5f224 | 3102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 3103 | return NULL; |
1d99702e RD |
3104 | if (_argo0) { |
3105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3108 | return NULL; | |
3109 | } | |
3110 | } | |
cf694132 RD |
3111 | { |
3112 | wxPy_BEGIN_ALLOW_THREADS; | |
3113 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
3114 | ||
3115 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3116 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3117 | } Py_INCREF(Py_None); |
af309447 RD |
3118 | _resultobj = Py_None; |
3119 | return _resultobj; | |
3120 | } | |
3121 | ||
3122 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
efc5f224 | 3123 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3124 | PyObject * _resultobj; |
3125 | wxWindow * _arg0; | |
3126 | wxPoint * _arg1; | |
1d99702e | 3127 | PyObject * _argo0 = 0; |
2f90df85 RD |
3128 | wxPoint temp; |
3129 | PyObject * _obj1 = 0; | |
efc5f224 | 3130 | char *_kwnames[] = { "self","point", NULL }; |
af309447 RD |
3131 | |
3132 | self = self; | |
2f90df85 | 3133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3134 | return NULL; |
1d99702e RD |
3135 | if (_argo0) { |
3136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3139 | return NULL; | |
3140 | } | |
3141 | } | |
2f90df85 RD |
3142 | { |
3143 | _arg1 = &temp; | |
3144 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3145 | return NULL; |
2f90df85 | 3146 | } |
cf694132 RD |
3147 | { |
3148 | wxPy_BEGIN_ALLOW_THREADS; | |
3149 | wxWindow_Move(_arg0,*_arg1); | |
3150 | ||
3151 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3152 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3153 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3154 | _resultobj = Py_None; |
3155 | return _resultobj; | |
3156 | } | |
3157 | ||
1afc06c2 RD |
3158 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3159 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3160 | PyObject * _resultobj; | |
3161 | wxEvtHandler * _result; | |
3162 | wxWindow * _arg0; | |
3163 | bool _arg1 = (bool ) FALSE; | |
3164 | PyObject * _argo0 = 0; | |
3165 | int tempbool1 = (int) FALSE; | |
3166 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3167 | |
3168 | self = self; | |
3169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3170 | return NULL; | |
3171 | if (_argo0) { | |
3172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3175 | return NULL; | |
3176 | } | |
3177 | } | |
3178 | _arg1 = (bool ) tempbool1; | |
3179 | { | |
3180 | wxPy_BEGIN_ALLOW_THREADS; | |
3181 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3182 | ||
3183 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3184 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 3185 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3186 | return _resultobj; |
3187 | } | |
3188 | ||
3189 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3190 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3191 | PyObject * _resultobj; | |
3192 | wxWindow * _arg0; | |
3193 | wxEvtHandler * _arg1; | |
3194 | PyObject * _argo0 = 0; | |
3195 | PyObject * _argo1 = 0; | |
3196 | char *_kwnames[] = { "self","handler", NULL }; | |
3197 | ||
3198 | self = self; | |
3199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3200 | return NULL; | |
3201 | if (_argo0) { | |
3202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3205 | return NULL; | |
3206 | } | |
3207 | } | |
3208 | if (_argo1) { | |
3209 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3210 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3212 | return NULL; | |
3213 | } | |
3214 | } | |
3215 | { | |
3216 | wxPy_BEGIN_ALLOW_THREADS; | |
3217 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3218 | ||
3219 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3220 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3221 | } Py_INCREF(Py_None); |
3222 | _resultobj = Py_None; | |
3223 | return _resultobj; | |
3224 | } | |
3225 | ||
8bf5d46e | 3226 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3227 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3228 | PyObject * _resultobj; |
3229 | bool _result; | |
3230 | wxWindow * _arg0; | |
3231 | wxMenu * _arg1; | |
3232 | int _arg2; | |
3233 | int _arg3; | |
1d99702e RD |
3234 | PyObject * _argo0 = 0; |
3235 | PyObject * _argo1 = 0; | |
efc5f224 | 3236 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3237 | |
3238 | self = self; | |
efc5f224 | 3239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3240 | return NULL; |
1d99702e RD |
3241 | if (_argo0) { |
3242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3245 | return NULL; | |
3246 | } | |
3247 | } | |
1d99702e RD |
3248 | if (_argo1) { |
3249 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3250 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3252 | return NULL; | |
3253 | } | |
3254 | } | |
3255 | { | |
3256 | wxPy_BEGIN_ALLOW_THREADS; | |
3257 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3258 | ||
3259 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3260 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3261 | } _resultobj = Py_BuildValue("i",_result); |
3262 | return _resultobj; | |
3263 | } | |
3264 | ||
3265 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3266 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3267 | PyObject * _resultobj; |
3268 | bool _result; | |
3269 | wxWindow * _arg0; | |
3270 | wxMenu * _arg1; | |
3271 | wxPoint * _arg2; | |
1d99702e RD |
3272 | PyObject * _argo0 = 0; |
3273 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3274 | wxPoint temp; |
3275 | PyObject * _obj2 = 0; | |
efc5f224 | 3276 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3277 | |
3278 | self = self; | |
2f90df85 | 3279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3280 | return NULL; |
1d99702e RD |
3281 | if (_argo0) { |
3282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3285 | return NULL; | |
3286 | } | |
3287 | } | |
1d99702e RD |
3288 | if (_argo1) { |
3289 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3290 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3292 | return NULL; | |
3293 | } | |
3294 | } | |
2f90df85 RD |
3295 | { |
3296 | _arg2 = &temp; | |
3297 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3298 | return NULL; |
2f90df85 | 3299 | } |
cf694132 RD |
3300 | { |
3301 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 3302 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 RD |
3303 | |
3304 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3305 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3306 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3307 | return _resultobj; |
3308 | } | |
3309 | ||
3310 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3311 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3312 | PyObject * _resultobj; |
3313 | wxWindow * _arg0; | |
1d99702e | 3314 | PyObject * _argo0 = 0; |
efc5f224 | 3315 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3316 | |
3317 | self = self; | |
efc5f224 | 3318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3319 | return NULL; |
1d99702e RD |
3320 | if (_argo0) { |
3321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3324 | return NULL; | |
3325 | } | |
3326 | } | |
cf694132 RD |
3327 | { |
3328 | wxPy_BEGIN_ALLOW_THREADS; | |
3329 | wxWindow_Raise(_arg0); | |
3330 | ||
3331 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3332 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3333 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3334 | _resultobj = Py_None; |
3335 | return _resultobj; | |
3336 | } | |
3337 | ||
3338 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3339 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3340 | PyObject * _resultobj; |
3341 | wxWindow * _arg0; | |
1d99702e RD |
3342 | bool _arg1 = (bool ) TRUE; |
3343 | wxRect * _arg2 = (wxRect *) NULL; | |
3344 | PyObject * _argo0 = 0; | |
3345 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3346 | wxRect temp; |
3347 | PyObject * _obj2 = 0; | |
efc5f224 | 3348 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3349 | |
3350 | self = self; | |
2f90df85 | 3351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3352 | return NULL; |
1d99702e RD |
3353 | if (_argo0) { |
3354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3357 | return NULL; | |
3358 | } | |
3359 | } | |
3360 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3361 | if (_obj2) |
3362 | { | |
3363 | _arg2 = &temp; | |
3364 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3365 | return NULL; |
2f90df85 | 3366 | } |
cf694132 RD |
3367 | { |
3368 | wxPy_BEGIN_ALLOW_THREADS; | |
3369 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3370 | ||
3371 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3372 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3373 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3374 | _resultobj = Py_None; |
3375 | return _resultobj; | |
3376 | } | |
3377 | ||
aa2a5b86 RD |
3378 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
3379 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3380 | PyObject * _resultobj; | |
3381 | wxWindow * _arg0; | |
3382 | wxRect * _arg1; | |
3383 | PyObject * _argo0 = 0; | |
3384 | wxRect temp; | |
3385 | PyObject * _obj1 = 0; | |
3386 | char *_kwnames[] = { "self","rect", NULL }; | |
3387 | ||
3388 | self = self; | |
3389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3390 | return NULL; | |
3391 | if (_argo0) { | |
3392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3395 | return NULL; | |
3396 | } | |
3397 | } | |
3398 | { | |
3399 | _arg1 = &temp; | |
3400 | if (! wxRect_helper(_obj1, &_arg1)) | |
3401 | return NULL; | |
3402 | } | |
3403 | { | |
3404 | wxPy_BEGIN_ALLOW_THREADS; | |
3405 | wxWindow_RefreshRect(_arg0,*_arg1); | |
3406 | ||
3407 | wxPy_END_ALLOW_THREADS; | |
3408 | if (PyErr_Occurred()) return NULL; | |
3409 | } Py_INCREF(Py_None); | |
3410 | _resultobj = Py_None; | |
3411 | return _resultobj; | |
3412 | } | |
3413 | ||
8ab979d7 | 3414 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) |
efc5f224 | 3415 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3416 | PyObject * _resultobj; |
3417 | wxWindow * _arg0; | |
1d99702e | 3418 | PyObject * _argo0 = 0; |
efc5f224 | 3419 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3420 | |
3421 | self = self; | |
efc5f224 | 3422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3423 | return NULL; |
1d99702e RD |
3424 | if (_argo0) { |
3425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3428 | return NULL; | |
3429 | } | |
3430 | } | |
cf694132 RD |
3431 | { |
3432 | wxPy_BEGIN_ALLOW_THREADS; | |
3433 | wxWindow_ReleaseMouse(_arg0); | |
3434 | ||
3435 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3436 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3437 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3438 | _resultobj = Py_None; |
3439 | return _resultobj; | |
3440 | } | |
3441 | ||
b7e72427 RD |
3442 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3443 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3444 | PyObject * _resultobj; | |
3445 | wxWindow * _arg0; | |
3446 | wxWindow * _arg1; | |
3447 | PyObject * _argo0 = 0; | |
3448 | PyObject * _argo1 = 0; | |
3449 | char *_kwnames[] = { "self","child", NULL }; | |
3450 | ||
3451 | self = self; | |
3452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_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_RemoveChild. 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,"_wxWindow_p")) { | |
3464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3465 | return NULL; | |
3466 | } | |
3467 | } | |
3468 | { | |
3469 | wxPy_BEGIN_ALLOW_THREADS; | |
3470 | wxWindow_RemoveChild(_arg0,_arg1); | |
3471 | ||
3472 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3473 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3474 | } Py_INCREF(Py_None); |
3475 | _resultobj = Py_None; | |
3476 | return _resultobj; | |
3477 | } | |
3478 | ||
bb0054cd | 3479 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3480 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3481 | PyObject * _resultobj; |
3482 | bool _result; | |
3483 | wxWindow * _arg0; | |
3484 | wxWindow * _arg1; | |
1d99702e RD |
3485 | PyObject * _argo0 = 0; |
3486 | PyObject * _argo1 = 0; | |
efc5f224 | 3487 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3488 | |
3489 | self = self; | |
efc5f224 | 3490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3491 | return NULL; |
1d99702e RD |
3492 | if (_argo0) { |
3493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3496 | return NULL; | |
3497 | } | |
3498 | } | |
1d99702e RD |
3499 | if (_argo1) { |
3500 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3501 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3503 | return NULL; | |
3504 | } | |
3505 | } | |
3506 | { | |
3507 | wxPy_BEGIN_ALLOW_THREADS; | |
3508 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3509 | ||
3510 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3511 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3512 | } _resultobj = Py_BuildValue("i",_result); |
3513 | return _resultobj; | |
3514 | } | |
3515 | ||
af309447 | 3516 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3517 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3518 | PyObject * _resultobj; |
3519 | wxWindow * _arg0; | |
3520 | int * _arg1; | |
3521 | int * _arg2; | |
1d99702e | 3522 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3523 | int temp; |
3524 | PyObject * _obj1 = 0; | |
3525 | int temp0; | |
3526 | PyObject * _obj2 = 0; | |
efc5f224 | 3527 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3528 | |
3529 | self = self; | |
efc5f224 | 3530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3531 | return NULL; |
1d99702e RD |
3532 | if (_argo0) { |
3533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3536 | return NULL; |
3537 | } | |
3538 | } | |
3539 | { | |
3540 | temp = (int) PyInt_AsLong(_obj1); | |
3541 | _arg1 = &temp; | |
3542 | } | |
3543 | { | |
3544 | temp0 = (int) PyInt_AsLong(_obj2); | |
3545 | _arg2 = &temp0; | |
3546 | } | |
cf694132 RD |
3547 | { |
3548 | wxPy_BEGIN_ALLOW_THREADS; | |
3549 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3550 | ||
3551 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3552 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3553 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3554 | _resultobj = Py_None; |
3555 | { | |
3556 | PyObject *o; | |
3557 | o = PyInt_FromLong((long) (*_arg1)); | |
3558 | _resultobj = t_output_helper(_resultobj, o); | |
3559 | } | |
3560 | { | |
3561 | PyObject *o; | |
3562 | o = PyInt_FromLong((long) (*_arg2)); | |
3563 | _resultobj = t_output_helper(_resultobj, o); | |
3564 | } | |
3565 | return _resultobj; | |
3566 | } | |
3567 | ||
af309447 | 3568 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3569 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3570 | PyObject * _resultobj; |
3571 | wxPoint * _result; | |
3572 | wxWindow * _arg0; | |
3573 | wxPoint * _arg1; | |
1d99702e | 3574 | PyObject * _argo0 = 0; |
2f90df85 RD |
3575 | wxPoint temp; |
3576 | PyObject * _obj1 = 0; | |
efc5f224 | 3577 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3578 | char _ptemp[128]; |
3579 | ||
3580 | self = self; | |
2f90df85 | 3581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3582 | return NULL; |
1d99702e RD |
3583 | if (_argo0) { |
3584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3587 | return NULL; | |
3588 | } | |
3589 | } | |
2f90df85 RD |
3590 | { |
3591 | _arg1 = &temp; | |
3592 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3593 | return NULL; |
2f90df85 | 3594 | } |
cf694132 RD |
3595 | { |
3596 | wxPy_BEGIN_ALLOW_THREADS; | |
3597 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3598 | ||
3599 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3600 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3601 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3602 | _resultobj = Py_BuildValue("s",_ptemp); |
3603 | return _resultobj; | |
3604 | } | |
3605 | ||
8ab979d7 | 3606 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3607 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3608 | PyObject * _resultobj; |
3609 | wxWindow * _arg0; | |
3610 | int _arg1; | |
3611 | int _arg2; | |
1d99702e RD |
3612 | wxRect * _arg3 = (wxRect *) NULL; |
3613 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3614 | wxRect temp; |
3615 | PyObject * _obj3 = 0; | |
efc5f224 | 3616 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3617 | |
3618 | self = self; | |
2f90df85 | 3619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3620 | return NULL; |
1d99702e RD |
3621 | if (_argo0) { |
3622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3625 | return NULL; | |
3626 | } | |
3627 | } | |
2f90df85 RD |
3628 | if (_obj3) |
3629 | { | |
3630 | _arg3 = &temp; | |
3631 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3632 | return NULL; |
2f90df85 | 3633 | } |
cf694132 RD |
3634 | { |
3635 | wxPy_BEGIN_ALLOW_THREADS; | |
3636 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3637 | ||
3638 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3639 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3640 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3641 | _resultobj = Py_None; |
3642 | return _resultobj; | |
3643 | } | |
3644 | ||
3645 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
efc5f224 | 3646 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3647 | PyObject * _resultobj; |
3648 | wxWindow * _arg0; | |
3649 | bool _arg1; | |
1d99702e | 3650 | PyObject * _argo0 = 0; |
8ab979d7 | 3651 | int tempbool1; |
efc5f224 | 3652 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3653 | |
3654 | self = self; | |
efc5f224 | 3655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3656 | return NULL; |
1d99702e RD |
3657 | if (_argo0) { |
3658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3661 | return NULL; | |
3662 | } | |
3663 | } | |
3664 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3665 | { |
3666 | wxPy_BEGIN_ALLOW_THREADS; | |
3667 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3668 | ||
3669 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3670 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3671 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3672 | _resultobj = Py_None; |
3673 | return _resultobj; | |
3674 | } | |
3675 | ||
9d8bd15f RD |
3676 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3677 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3678 | PyObject * _resultobj; | |
3679 | bool _result; | |
3680 | wxWindow * _arg0; | |
3681 | PyObject * _argo0 = 0; | |
3682 | char *_kwnames[] = { "self", NULL }; | |
3683 | ||
3684 | self = self; | |
3685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3686 | return NULL; | |
3687 | if (_argo0) { | |
3688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3691 | return NULL; | |
3692 | } | |
3693 | } | |
3694 | { | |
3695 | wxPy_BEGIN_ALLOW_THREADS; | |
3696 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3697 | ||
3698 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3699 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3700 | } _resultobj = Py_BuildValue("i",_result); |
3701 | return _resultobj; | |
3702 | } | |
3703 | ||
8ab979d7 | 3704 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3705 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3706 | PyObject * _resultobj; |
3707 | wxWindow * _arg0; | |
3708 | wxColour * _arg1; | |
1d99702e | 3709 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3710 | wxColour temp; |
3711 | PyObject * _obj1 = 0; | |
efc5f224 | 3712 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3713 | |
3714 | self = self; | |
f6bcfd97 | 3715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3716 | return NULL; |
1d99702e RD |
3717 | if (_argo0) { |
3718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3721 | return NULL; | |
3722 | } | |
3723 | } | |
f6bcfd97 BP |
3724 | { |
3725 | _arg1 = &temp; | |
3726 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3727 | return NULL; |
f6bcfd97 | 3728 | } |
cf694132 RD |
3729 | { |
3730 | wxPy_BEGIN_ALLOW_THREADS; | |
3731 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3732 | ||
3733 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3734 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3735 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3736 | _resultobj = Py_None; |
3737 | return _resultobj; | |
3738 | } | |
3739 | ||
3740 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3741 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3742 | PyObject * _resultobj; |
3743 | wxWindow * _arg0; | |
3744 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3745 | PyObject * _argo0 = 0; |
3746 | PyObject * _argo1 = 0; | |
efc5f224 | 3747 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3748 | |
3749 | self = self; | |
efc5f224 | 3750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3751 | return NULL; |
1d99702e RD |
3752 | if (_argo0) { |
3753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3756 | return NULL; | |
3757 | } | |
3758 | } | |
1d99702e RD |
3759 | if (_argo1) { |
3760 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3761 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3763 | return NULL; | |
3764 | } | |
3765 | } | |
cf694132 RD |
3766 | { |
3767 | wxPy_BEGIN_ALLOW_THREADS; | |
3768 | wxWindow_SetConstraints(_arg0,_arg1); | |
3769 | ||
3770 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3771 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3772 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3773 | _resultobj = Py_None; |
3774 | return _resultobj; | |
3775 | } | |
3776 | ||
2f90df85 RD |
3777 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3778 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3779 | PyObject * _resultobj; | |
3780 | wxWindow * _arg0; | |
3781 | wxLayoutConstraints * _arg1; | |
3782 | PyObject * _argo0 = 0; | |
3783 | PyObject * _argo1 = 0; | |
3784 | char *_kwnames[] = { "self","constraints", NULL }; | |
3785 | ||
3786 | self = self; | |
3787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3788 | return NULL; | |
3789 | if (_argo0) { | |
3790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3793 | return NULL; | |
3794 | } | |
3795 | } | |
3796 | if (_argo1) { | |
3797 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3798 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3800 | return NULL; | |
3801 | } | |
3802 | } | |
3803 | { | |
3804 | wxPy_BEGIN_ALLOW_THREADS; | |
3805 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3806 | ||
3807 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3808 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3809 | } Py_INCREF(Py_None); |
3810 | _resultobj = Py_None; | |
3811 | return _resultobj; | |
3812 | } | |
3813 | ||
8ab979d7 | 3814 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3815 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3816 | PyObject * _resultobj; |
3817 | wxWindow * _arg0; | |
1d99702e | 3818 | PyObject * _argo0 = 0; |
efc5f224 | 3819 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3820 | |
3821 | self = self; | |
efc5f224 | 3822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3823 | return NULL; |
1d99702e RD |
3824 | if (_argo0) { |
3825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3828 | return NULL; | |
3829 | } | |
3830 | } | |
cf694132 RD |
3831 | { |
3832 | wxPy_BEGIN_ALLOW_THREADS; | |
3833 | wxWindow_SetFocus(_arg0); | |
3834 | ||
3835 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3836 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3837 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3838 | _resultobj = Py_None; |
3839 | return _resultobj; | |
3840 | } | |
3841 | ||
2f90df85 RD |
3842 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3843 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3844 | PyObject * _resultobj; | |
3845 | bool _result; | |
3846 | wxWindow * _arg0; | |
3847 | PyObject * _argo0 = 0; | |
3848 | char *_kwnames[] = { "self", NULL }; | |
3849 | ||
3850 | self = self; | |
3851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3852 | return NULL; | |
3853 | if (_argo0) { | |
3854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3857 | return NULL; | |
3858 | } | |
3859 | } | |
3860 | { | |
3861 | wxPy_BEGIN_ALLOW_THREADS; | |
3862 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3863 | ||
3864 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3865 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3866 | } _resultobj = Py_BuildValue("i",_result); |
3867 | return _resultobj; | |
3868 | } | |
3869 | ||
8ab979d7 | 3870 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 3871 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3872 | PyObject * _resultobj; |
3873 | wxWindow * _arg0; | |
3874 | wxFont * _arg1; | |
1d99702e RD |
3875 | PyObject * _argo0 = 0; |
3876 | PyObject * _argo1 = 0; | |
efc5f224 | 3877 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
3878 | |
3879 | self = self; | |
efc5f224 | 3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3881 | return NULL; |
1d99702e RD |
3882 | if (_argo0) { |
3883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3886 | return NULL; | |
3887 | } | |
3888 | } | |
1d99702e RD |
3889 | if (_argo1) { |
3890 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3891 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
3892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3893 | return NULL; | |
3894 | } | |
3895 | } | |
cf694132 RD |
3896 | { |
3897 | wxPy_BEGIN_ALLOW_THREADS; | |
3898 | wxWindow_SetFont(_arg0,*_arg1); | |
3899 | ||
3900 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3901 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3902 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3903 | _resultobj = Py_None; |
3904 | return _resultobj; | |
3905 | } | |
3906 | ||
3907 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 3908 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3909 | PyObject * _resultobj; |
3910 | wxWindow * _arg0; | |
3911 | wxColour * _arg1; | |
1d99702e | 3912 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3913 | wxColour temp; |
3914 | PyObject * _obj1 = 0; | |
efc5f224 | 3915 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3916 | |
3917 | self = self; | |
f6bcfd97 | 3918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3919 | return NULL; |
1d99702e RD |
3920 | if (_argo0) { |
3921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
3924 | return NULL; | |
3925 | } | |
3926 | } | |
f6bcfd97 BP |
3927 | { |
3928 | _arg1 = &temp; | |
3929 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3930 | return NULL; |
f6bcfd97 | 3931 | } |
cf694132 RD |
3932 | { |
3933 | wxPy_BEGIN_ALLOW_THREADS; | |
3934 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3935 | ||
3936 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3937 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3938 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3939 | _resultobj = Py_None; |
3940 | return _resultobj; | |
3941 | } | |
3942 | ||
3943 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 3944 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3945 | PyObject * _resultobj; |
3946 | wxWindow * _arg0; | |
3947 | int _arg1; | |
1d99702e | 3948 | PyObject * _argo0 = 0; |
efc5f224 | 3949 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
3950 | |
3951 | self = self; | |
efc5f224 | 3952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3953 | return NULL; |
1d99702e RD |
3954 | if (_argo0) { |
3955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
3958 | return NULL; | |
3959 | } | |
3960 | } | |
cf694132 RD |
3961 | { |
3962 | wxPy_BEGIN_ALLOW_THREADS; | |
3963 | wxWindow_SetId(_arg0,_arg1); | |
3964 | ||
3965 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3966 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3967 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3968 | _resultobj = Py_None; |
3969 | return _resultobj; | |
3970 | } | |
3971 | ||
3972 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 3973 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3974 | PyObject * _resultobj; |
3975 | wxWindow * _arg0; | |
3976 | wxString * _arg1; | |
1d99702e | 3977 | PyObject * _argo0 = 0; |
8ab979d7 | 3978 | PyObject * _obj1 = 0; |
efc5f224 | 3979 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
3980 | |
3981 | self = self; | |
efc5f224 | 3982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3983 | return NULL; |
1d99702e RD |
3984 | if (_argo0) { |
3985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
3988 | return NULL; | |
3989 | } | |
3990 | } | |
3991 | { | |
2cd2fac8 RD |
3992 | #if PYTHON_API_VERSION >= 1009 |
3993 | char* tmpPtr; int tmpSize; | |
3994 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 3995 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3996 | return NULL; |
3997 | } | |
3998 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3999 | return NULL; | |
4000 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4001 | #else | |
8ab979d7 RD |
4002 | if (!PyString_Check(_obj1)) { |
4003 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4004 | return NULL; | |
4005 | } | |
2cd2fac8 RD |
4006 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4007 | #endif | |
8ab979d7 | 4008 | } |
cf694132 RD |
4009 | { |
4010 | wxPy_BEGIN_ALLOW_THREADS; | |
4011 | wxWindow_SetName(_arg0,*_arg1); | |
4012 | ||
4013 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4014 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4015 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4016 | _resultobj = Py_None; |
4017 | { | |
4018 | if (_obj1) | |
4019 | delete _arg1; | |
4020 | } | |
4021 | return _resultobj; | |
4022 | } | |
4023 | ||
8ab979d7 | 4024 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4025 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4026 | PyObject * _resultobj; |
4027 | wxWindow * _arg0; | |
4028 | int _arg1; | |
4029 | int _arg2; | |
4030 | int _arg3; | |
4031 | int _arg4; | |
eb715945 | 4032 | int _arg5 = (int ) TRUE; |
1d99702e | 4033 | PyObject * _argo0 = 0; |
efc5f224 | 4034 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4035 | |
4036 | self = self; | |
eb715945 | 4037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4038 | return NULL; |
1d99702e RD |
4039 | if (_argo0) { |
4040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4043 | return NULL; | |
4044 | } | |
4045 | } | |
cf694132 RD |
4046 | { |
4047 | wxPy_BEGIN_ALLOW_THREADS; | |
4048 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4049 | ||
4050 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4051 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4052 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4053 | _resultobj = Py_None; |
4054 | return _resultobj; | |
4055 | } | |
4056 | ||
4057 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4058 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4059 | PyObject * _resultobj; |
4060 | wxWindow * _arg0; | |
4061 | int _arg1; | |
4062 | int _arg2; | |
1d99702e RD |
4063 | bool _arg3 = (bool ) TRUE; |
4064 | PyObject * _argo0 = 0; | |
4065 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4066 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4067 | |
4068 | self = self; | |
efc5f224 | 4069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4070 | return NULL; |
1d99702e RD |
4071 | if (_argo0) { |
4072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4075 | return NULL; | |
4076 | } | |
4077 | } | |
4078 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
4079 | { |
4080 | wxPy_BEGIN_ALLOW_THREADS; | |
4081 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4082 | ||
4083 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4084 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4085 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4086 | _resultobj = Py_None; |
4087 | return _resultobj; | |
4088 | } | |
4089 | ||
4090 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4091 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4092 | PyObject * _resultobj; |
4093 | wxWindow * _arg0; | |
4094 | int _arg1; | |
4095 | int _arg2; | |
4096 | int _arg3; | |
4097 | int _arg4; | |
1d99702e RD |
4098 | int _arg5 = (int ) wxSIZE_AUTO; |
4099 | PyObject * _argo0 = 0; | |
efc5f224 | 4100 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4101 | |
4102 | self = self; | |
efc5f224 | 4103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4104 | return NULL; |
1d99702e RD |
4105 | if (_argo0) { |
4106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4109 | return NULL; | |
4110 | } | |
4111 | } | |
cf694132 RD |
4112 | { |
4113 | wxPy_BEGIN_ALLOW_THREADS; | |
4114 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4115 | ||
4116 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4117 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4118 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4119 | _resultobj = Py_None; |
4120 | return _resultobj; | |
4121 | } | |
4122 | ||
4123 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4124 | self->SetSize(size); |
8ab979d7 | 4125 | } |
efc5f224 | 4126 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4127 | PyObject * _resultobj; |
4128 | wxWindow * _arg0; | |
4129 | wxSize * _arg1; | |
1d99702e | 4130 | PyObject * _argo0 = 0; |
2f90df85 RD |
4131 | wxSize temp; |
4132 | PyObject * _obj1 = 0; | |
efc5f224 | 4133 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4134 | |
4135 | self = self; | |
2f90df85 | 4136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4137 | return NULL; |
1d99702e RD |
4138 | if (_argo0) { |
4139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4142 | return NULL; | |
4143 | } | |
4144 | } | |
2f90df85 RD |
4145 | { |
4146 | _arg1 = &temp; | |
4147 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4148 | return NULL; |
2f90df85 | 4149 | } |
cf694132 RD |
4150 | { |
4151 | wxPy_BEGIN_ALLOW_THREADS; | |
4152 | wxWindow_SetSize(_arg0,*_arg1); | |
4153 | ||
4154 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4155 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4156 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4157 | _resultobj = Py_None; |
4158 | return _resultobj; | |
4159 | } | |
4160 | ||
4161 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
b7e72427 | 4162 | self->Move(pos); |
8ab979d7 | 4163 | } |
efc5f224 | 4164 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4165 | PyObject * _resultobj; |
4166 | wxWindow * _arg0; | |
4167 | wxPoint * _arg1; | |
1d99702e | 4168 | PyObject * _argo0 = 0; |
2f90df85 RD |
4169 | wxPoint temp; |
4170 | PyObject * _obj1 = 0; | |
efc5f224 | 4171 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4172 | |
4173 | self = self; | |
2f90df85 | 4174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4175 | return NULL; |
1d99702e RD |
4176 | if (_argo0) { |
4177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4180 | return NULL; | |
4181 | } | |
4182 | } | |
2f90df85 RD |
4183 | { |
4184 | _arg1 = &temp; | |
4185 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4186 | return NULL; |
2f90df85 | 4187 | } |
cf694132 RD |
4188 | { |
4189 | wxPy_BEGIN_ALLOW_THREADS; | |
4190 | wxWindow_SetPosition(_arg0,*_arg1); | |
4191 | ||
4192 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4193 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4194 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4195 | _resultobj = Py_None; |
4196 | return _resultobj; | |
4197 | } | |
4198 | ||
2cd2fac8 RD |
4199 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4200 | self->SetSize(rect, sizeFlags); | |
4201 | } | |
4202 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4203 | PyObject * _resultobj; | |
4204 | wxWindow * _arg0; | |
4205 | wxRect * _arg1; | |
4206 | int _arg2 = (int ) wxSIZE_AUTO; | |
4207 | PyObject * _argo0 = 0; | |
4208 | wxRect temp; | |
4209 | PyObject * _obj1 = 0; | |
4210 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4211 | ||
4212 | self = self; | |
4213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4214 | return NULL; | |
4215 | if (_argo0) { | |
4216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4219 | return NULL; | |
4220 | } | |
4221 | } | |
4222 | { | |
4223 | _arg1 = &temp; | |
4224 | if (! wxRect_helper(_obj1, &_arg1)) | |
4225 | return NULL; | |
4226 | } | |
4227 | { | |
4228 | wxPy_BEGIN_ALLOW_THREADS; | |
4229 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4230 | ||
4231 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4232 | if (PyErr_Occurred()) return NULL; |
2cd2fac8 RD |
4233 | } Py_INCREF(Py_None); |
4234 | _resultobj = Py_None; | |
4235 | return _resultobj; | |
4236 | } | |
4237 | ||
8ab979d7 | 4238 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4239 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4240 | PyObject * _resultobj; |
4241 | wxWindow * _arg0; | |
1d99702e RD |
4242 | int _arg1 = (int ) -1; |
4243 | int _arg2 = (int ) -1; | |
4244 | int _arg3 = (int ) -1; | |
4245 | int _arg4 = (int ) -1; | |
4246 | int _arg5 = (int ) -1; | |
4247 | int _arg6 = (int ) -1; | |
4248 | PyObject * _argo0 = 0; | |
efc5f224 | 4249 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4250 | |
4251 | self = self; | |
efc5f224 | 4252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4253 | return NULL; |
1d99702e RD |
4254 | if (_argo0) { |
4255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4258 | return NULL; | |
4259 | } | |
4260 | } | |
cf694132 RD |
4261 | { |
4262 | wxPy_BEGIN_ALLOW_THREADS; | |
4263 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4264 | ||
4265 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4266 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4267 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4268 | _resultobj = Py_None; |
4269 | return _resultobj; | |
4270 | } | |
4271 | ||
af309447 | 4272 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4273 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4274 | PyObject * _resultobj; |
4275 | wxWindow * _arg0; | |
4276 | int _arg1; | |
4277 | int _arg2; | |
1d99702e | 4278 | PyObject * _argo0 = 0; |
efc5f224 | 4279 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4280 | |
4281 | self = self; | |
efc5f224 | 4282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4283 | return NULL; |
1d99702e RD |
4284 | if (_argo0) { |
4285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4288 | return NULL; | |
4289 | } | |
4290 | } | |
cf694132 RD |
4291 | { |
4292 | wxPy_BEGIN_ALLOW_THREADS; | |
4293 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4294 | ||
4295 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4296 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4297 | } Py_INCREF(Py_None); |
af309447 RD |
4298 | _resultobj = Py_None; |
4299 | return _resultobj; | |
4300 | } | |
4301 | ||
4302 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4303 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4304 | PyObject * _resultobj; |
4305 | wxWindow * _arg0; | |
4306 | wxSize * _arg1; | |
1d99702e | 4307 | PyObject * _argo0 = 0; |
2f90df85 RD |
4308 | wxSize temp; |
4309 | PyObject * _obj1 = 0; | |
efc5f224 | 4310 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4311 | |
4312 | self = self; | |
2f90df85 | 4313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4314 | return NULL; |
1d99702e RD |
4315 | if (_argo0) { |
4316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4319 | return NULL; | |
4320 | } | |
4321 | } | |
2f90df85 RD |
4322 | { |
4323 | _arg1 = &temp; | |
4324 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4325 | return NULL; |
2f90df85 | 4326 | } |
cf694132 RD |
4327 | { |
4328 | wxPy_BEGIN_ALLOW_THREADS; | |
4329 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4330 | ||
4331 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4332 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4333 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4334 | _resultobj = Py_None; |
4335 | return _resultobj; | |
4336 | } | |
4337 | ||
4338 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4339 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4340 | PyObject * _resultobj; |
4341 | wxWindow * _arg0; | |
4342 | wxCursor * _arg1; | |
1d99702e RD |
4343 | PyObject * _argo0 = 0; |
4344 | PyObject * _argo1 = 0; | |
efc5f224 | 4345 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4346 | |
4347 | self = self; | |
efc5f224 | 4348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4349 | return NULL; |
1d99702e RD |
4350 | if (_argo0) { |
4351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4354 | return NULL; | |
4355 | } | |
4356 | } | |
1d99702e RD |
4357 | if (_argo1) { |
4358 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4359 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4361 | return NULL; | |
4362 | } | |
4363 | } | |
cf694132 RD |
4364 | { |
4365 | wxPy_BEGIN_ALLOW_THREADS; | |
4366 | wxWindow_SetCursor(_arg0,*_arg1); | |
4367 | ||
4368 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4369 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4370 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4371 | _resultobj = Py_None; |
4372 | return _resultobj; | |
4373 | } | |
4374 | ||
1afc06c2 RD |
4375 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4376 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4377 | PyObject * _resultobj; | |
4378 | wxWindow * _arg0; | |
4379 | wxEvtHandler * _arg1; | |
4380 | PyObject * _argo0 = 0; | |
4381 | PyObject * _argo1 = 0; | |
4382 | char *_kwnames[] = { "self","handler", NULL }; | |
4383 | ||
4384 | self = self; | |
4385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4386 | return NULL; | |
4387 | if (_argo0) { | |
4388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4391 | return NULL; | |
4392 | } | |
4393 | } | |
4394 | if (_argo1) { | |
4395 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4396 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4398 | return NULL; | |
4399 | } | |
4400 | } | |
4401 | { | |
4402 | wxPy_BEGIN_ALLOW_THREADS; | |
4403 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4404 | ||
4405 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4406 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4407 | } Py_INCREF(Py_None); |
4408 | _resultobj = Py_None; | |
4409 | return _resultobj; | |
4410 | } | |
4411 | ||
5e40f9dd RD |
4412 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4413 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4414 | PyObject * _resultobj; | |
4415 | wxWindow * _arg0; | |
4416 | long _arg1; | |
4417 | PyObject * _argo0 = 0; | |
4418 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4419 | ||
4420 | self = self; | |
4421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4422 | return NULL; | |
4423 | if (_argo0) { | |
4424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4427 | return NULL; | |
4428 | } | |
4429 | } | |
4430 | { | |
4431 | wxPy_BEGIN_ALLOW_THREADS; | |
4432 | wxWindow_SetExtraStyle(_arg0,_arg1); | |
4433 | ||
4434 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4435 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4436 | } Py_INCREF(Py_None); |
4437 | _resultobj = Py_None; | |
4438 | return _resultobj; | |
4439 | } | |
4440 | ||
8ab979d7 | 4441 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4442 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4443 | PyObject * _resultobj; |
4444 | wxWindow * _arg0; | |
4445 | wxString * _arg1; | |
1d99702e | 4446 | PyObject * _argo0 = 0; |
8ab979d7 | 4447 | PyObject * _obj1 = 0; |
efc5f224 | 4448 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4449 | |
4450 | self = self; | |
efc5f224 | 4451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4452 | return NULL; |
1d99702e RD |
4453 | if (_argo0) { |
4454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4457 | return NULL; | |
4458 | } | |
4459 | } | |
4460 | { | |
2cd2fac8 RD |
4461 | #if PYTHON_API_VERSION >= 1009 |
4462 | char* tmpPtr; int tmpSize; | |
4463 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4464 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4465 | return NULL; |
4466 | } | |
4467 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4468 | return NULL; | |
4469 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4470 | #else | |
8ab979d7 RD |
4471 | if (!PyString_Check(_obj1)) { |
4472 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4473 | return NULL; | |
4474 | } | |
2cd2fac8 RD |
4475 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4476 | #endif | |
8ab979d7 | 4477 | } |
cf694132 RD |
4478 | { |
4479 | wxPy_BEGIN_ALLOW_THREADS; | |
4480 | wxWindow_SetTitle(_arg0,*_arg1); | |
4481 | ||
4482 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4483 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4484 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4485 | _resultobj = Py_None; |
4486 | { | |
4487 | if (_obj1) | |
4488 | delete _arg1; | |
4489 | } | |
4490 | return _resultobj; | |
4491 | } | |
4492 | ||
4493 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4494 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4495 | PyObject * _resultobj; |
4496 | bool _result; | |
4497 | wxWindow * _arg0; | |
4498 | bool _arg1; | |
1d99702e | 4499 | PyObject * _argo0 = 0; |
8ab979d7 | 4500 | int tempbool1; |
efc5f224 | 4501 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4502 | |
4503 | self = self; | |
efc5f224 | 4504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4505 | return NULL; |
1d99702e RD |
4506 | if (_argo0) { |
4507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4510 | return NULL; | |
4511 | } | |
4512 | } | |
4513 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4514 | { |
4515 | wxPy_BEGIN_ALLOW_THREADS; | |
4516 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4517 | ||
4518 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4519 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4520 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4521 | return _resultobj; |
4522 | } | |
4523 | ||
4524 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4525 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4526 | PyObject * _resultobj; |
4527 | bool _result; | |
4528 | wxWindow * _arg0; | |
1d99702e | 4529 | PyObject * _argo0 = 0; |
efc5f224 | 4530 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4531 | |
4532 | self = self; | |
efc5f224 | 4533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4534 | return NULL; |
1d99702e RD |
4535 | if (_argo0) { |
4536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4539 | return NULL; | |
4540 | } | |
4541 | } | |
cf694132 RD |
4542 | { |
4543 | wxPy_BEGIN_ALLOW_THREADS; | |
4544 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4545 | ||
4546 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4547 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4548 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4549 | return _resultobj; |
4550 | } | |
4551 | ||
4552 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4553 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4554 | PyObject * _resultobj; |
4555 | bool _result; | |
4556 | wxWindow * _arg0; | |
1d99702e | 4557 | PyObject * _argo0 = 0; |
efc5f224 | 4558 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4559 | |
4560 | self = self; | |
efc5f224 | 4561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4562 | return NULL; |
1d99702e RD |
4563 | if (_argo0) { |
4564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4567 | return NULL; | |
4568 | } | |
4569 | } | |
cf694132 RD |
4570 | { |
4571 | wxPy_BEGIN_ALLOW_THREADS; | |
4572 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4573 | ||
4574 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4575 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4576 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4577 | return _resultobj; |
4578 | } | |
4579 | ||
4580 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4581 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4582 | PyObject * _resultobj; |
4583 | bool _result; | |
4584 | wxWindow * _arg0; | |
1d99702e | 4585 | PyObject * _argo0 = 0; |
efc5f224 | 4586 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4587 | |
4588 | self = self; | |
efc5f224 | 4589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4590 | return NULL; |
1d99702e RD |
4591 | if (_argo0) { |
4592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4595 | return NULL; | |
4596 | } | |
4597 | } | |
cf694132 RD |
4598 | { |
4599 | wxPy_BEGIN_ALLOW_THREADS; | |
4600 | _result = (bool )wxWindow_Validate(_arg0); | |
4601 | ||
4602 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4603 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4604 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4605 | return _resultobj; |
4606 | } | |
4607 | ||
4608 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4609 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4610 | PyObject * _resultobj; |
4611 | wxWindow * _arg0; | |
4612 | int _arg1; | |
4613 | int _arg2; | |
1d99702e | 4614 | PyObject * _argo0 = 0; |
efc5f224 | 4615 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4616 | |
4617 | self = self; | |
efc5f224 | 4618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4619 | return NULL; |
1d99702e RD |
4620 | if (_argo0) { |
4621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4624 | return NULL; | |
4625 | } | |
4626 | } | |
cf694132 RD |
4627 | { |
4628 | wxPy_BEGIN_ALLOW_THREADS; | |
4629 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4630 | ||
4631 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4632 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4633 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4634 | _resultobj = Py_None; |
4635 | return _resultobj; | |
4636 | } | |
4637 | ||
b8b8dda7 | 4638 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4639 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4640 | PyObject * _resultobj; |
4641 | wxPoint * _result; | |
4642 | wxWindow * _arg0; | |
4643 | wxPoint * _arg1; | |
1d99702e | 4644 | PyObject * _argo0 = 0; |
2f90df85 RD |
4645 | wxPoint temp; |
4646 | PyObject * _obj1 = 0; | |
efc5f224 | 4647 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4648 | char _ptemp[128]; |
4649 | ||
4650 | self = self; | |
2f90df85 | 4651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4652 | return NULL; |
1d99702e RD |
4653 | if (_argo0) { |
4654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4657 | return NULL; | |
4658 | } | |
4659 | } | |
2f90df85 RD |
4660 | { |
4661 | _arg1 = &temp; | |
4662 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4663 | return NULL; |
2f90df85 | 4664 | } |
cf694132 RD |
4665 | { |
4666 | wxPy_BEGIN_ALLOW_THREADS; | |
4667 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4668 | ||
4669 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4670 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4671 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4672 | _resultobj = Py_BuildValue("s",_ptemp); |
4673 | return _resultobj; | |
4674 | } | |
4675 | ||
4676 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4677 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4678 | PyObject * _resultobj; |
4679 | wxSize * _result; | |
4680 | wxWindow * _arg0; | |
4681 | wxSize * _arg1; | |
1d99702e | 4682 | PyObject * _argo0 = 0; |
2f90df85 RD |
4683 | wxSize temp; |
4684 | PyObject * _obj1 = 0; | |
efc5f224 | 4685 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4686 | char _ptemp[128]; |
4687 | ||
4688 | self = self; | |
2f90df85 | 4689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 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")) { | |
b8b8dda7 RD |
4694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4695 | return NULL; | |
4696 | } | |
4697 | } | |
2f90df85 RD |
4698 | { |
4699 | _arg1 = &temp; | |
4700 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4701 | return NULL; |
2f90df85 | 4702 | } |
cf694132 RD |
4703 | { |
4704 | wxPy_BEGIN_ALLOW_THREADS; | |
4705 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4706 | ||
4707 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4708 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4709 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4710 | _resultobj = Py_BuildValue("s",_ptemp); |
4711 | return _resultobj; | |
4712 | } | |
4713 | ||
4714 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4715 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4716 | PyObject * _resultobj; |
4717 | wxPoint * _result; | |
4718 | wxWindow * _arg0; | |
4719 | wxPoint * _arg1; | |
1d99702e | 4720 | PyObject * _argo0 = 0; |
2f90df85 RD |
4721 | wxPoint temp; |
4722 | PyObject * _obj1 = 0; | |
efc5f224 | 4723 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4724 | char _ptemp[128]; |
4725 | ||
4726 | self = self; | |
2f90df85 | 4727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4728 | return NULL; |
1d99702e RD |
4729 | if (_argo0) { |
4730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4733 | return NULL; | |
4734 | } | |
4735 | } | |
2f90df85 RD |
4736 | { |
4737 | _arg1 = &temp; | |
4738 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4739 | return NULL; |
2f90df85 | 4740 | } |
cf694132 RD |
4741 | { |
4742 | wxPy_BEGIN_ALLOW_THREADS; | |
4743 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4744 | ||
4745 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4746 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4747 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4748 | _resultobj = Py_BuildValue("s",_ptemp); |
4749 | return _resultobj; | |
4750 | } | |
4751 | ||
4752 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4753 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4754 | PyObject * _resultobj; |
4755 | wxSize * _result; | |
4756 | wxWindow * _arg0; | |
4757 | wxSize * _arg1; | |
1d99702e | 4758 | PyObject * _argo0 = 0; |
2f90df85 RD |
4759 | wxSize temp; |
4760 | PyObject * _obj1 = 0; | |
efc5f224 | 4761 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4762 | char _ptemp[128]; |
4763 | ||
4764 | self = self; | |
2f90df85 | 4765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4766 | return NULL; |
1d99702e RD |
4767 | if (_argo0) { |
4768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4771 | return NULL; | |
4772 | } | |
4773 | } | |
2f90df85 RD |
4774 | { |
4775 | _arg1 = &temp; | |
4776 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4777 | return NULL; |
2f90df85 | 4778 | } |
cf694132 RD |
4779 | { |
4780 | wxPy_BEGIN_ALLOW_THREADS; | |
4781 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4782 | ||
4783 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4784 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4785 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4786 | _resultobj = Py_BuildValue("s",_ptemp); |
4787 | return _resultobj; | |
4788 | } | |
4789 | ||
af309447 | 4790 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4791 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4792 | PyObject * _resultobj; |
4793 | wxWindow * _arg0; | |
4794 | wxString * _arg1; | |
1d99702e | 4795 | PyObject * _argo0 = 0; |
af309447 | 4796 | PyObject * _obj1 = 0; |
efc5f224 | 4797 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4798 | |
4799 | self = self; | |
efc5f224 | 4800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4801 | return NULL; |
1d99702e RD |
4802 | if (_argo0) { |
4803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4806 | return NULL; | |
4807 | } | |
4808 | } | |
4809 | { | |
2cd2fac8 RD |
4810 | #if PYTHON_API_VERSION >= 1009 |
4811 | char* tmpPtr; int tmpSize; | |
4812 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4813 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4814 | return NULL; |
4815 | } | |
4816 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4817 | return NULL; | |
4818 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4819 | #else | |
af309447 RD |
4820 | if (!PyString_Check(_obj1)) { |
4821 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4822 | return NULL; | |
4823 | } | |
2cd2fac8 RD |
4824 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4825 | #endif | |
af309447 | 4826 | } |
cf694132 RD |
4827 | { |
4828 | wxPy_BEGIN_ALLOW_THREADS; | |
4829 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4830 | ||
4831 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4832 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4833 | } Py_INCREF(Py_None); |
af309447 RD |
4834 | _resultobj = Py_None; |
4835 | { | |
4836 | if (_obj1) | |
4837 | delete _arg1; | |
4838 | } | |
4839 | return _resultobj; | |
4840 | } | |
4841 | ||
4842 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4843 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4844 | PyObject * _resultobj; |
4845 | wxWindow * _arg0; | |
4846 | wxToolTip * _arg1; | |
1d99702e RD |
4847 | PyObject * _argo0 = 0; |
4848 | PyObject * _argo1 = 0; | |
efc5f224 | 4849 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4850 | |
4851 | self = self; | |
efc5f224 | 4852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4853 | return NULL; |
1d99702e RD |
4854 | if (_argo0) { |
4855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4858 | return NULL; | |
4859 | } | |
4860 | } | |
1d99702e RD |
4861 | if (_argo1) { |
4862 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4863 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4865 | return NULL; | |
4866 | } | |
4867 | } | |
cf694132 RD |
4868 | { |
4869 | wxPy_BEGIN_ALLOW_THREADS; | |
4870 | wxWindow_SetToolTip(_arg0,_arg1); | |
4871 | ||
4872 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4873 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4874 | } Py_INCREF(Py_None); |
af309447 RD |
4875 | _resultobj = Py_None; |
4876 | return _resultobj; | |
4877 | } | |
4878 | ||
4879 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 4880 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4881 | PyObject * _resultobj; |
4882 | wxToolTip * _result; | |
4883 | wxWindow * _arg0; | |
1d99702e | 4884 | PyObject * _argo0 = 0; |
efc5f224 | 4885 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
4886 | |
4887 | self = self; | |
efc5f224 | 4888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 4889 | return NULL; |
1d99702e RD |
4890 | if (_argo0) { |
4891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4894 | return NULL; | |
4895 | } | |
4896 | } | |
cf694132 RD |
4897 | { |
4898 | wxPy_BEGIN_ALLOW_THREADS; | |
4899 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4900 | ||
4901 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4902 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 4903 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
4904 | return _resultobj; |
4905 | } | |
4906 | ||
2f90df85 RD |
4907 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
4908 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4909 | PyObject * _resultobj; | |
4910 | wxWindow * _arg0; | |
4911 | wxSizer * _arg1; | |
4912 | PyObject * _argo0 = 0; | |
4913 | PyObject * _argo1 = 0; | |
4914 | char *_kwnames[] = { "self","sizer", NULL }; | |
4915 | ||
4916 | self = self; | |
4917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4918 | return NULL; | |
4919 | if (_argo0) { | |
4920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4923 | return NULL; | |
4924 | } | |
4925 | } | |
4926 | if (_argo1) { | |
4927 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4928 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4930 | return NULL; | |
4931 | } | |
4932 | } | |
4933 | { | |
4934 | wxPy_BEGIN_ALLOW_THREADS; | |
4935 | wxWindow_SetSizer(_arg0,_arg1); | |
4936 | ||
4937 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4938 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4939 | } Py_INCREF(Py_None); |
4940 | _resultobj = Py_None; | |
4941 | return _resultobj; | |
4942 | } | |
4943 | ||
f6bcfd97 BP |
4944 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
4945 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4946 | PyObject * _resultobj; | |
4947 | wxSizer * _result; | |
4948 | wxWindow * _arg0; | |
4949 | PyObject * _argo0 = 0; | |
4950 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
4951 | |
4952 | self = self; | |
4953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
4954 | return NULL; | |
4955 | if (_argo0) { | |
4956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
4959 | return NULL; | |
4960 | } | |
4961 | } | |
4962 | { | |
4963 | wxPy_BEGIN_ALLOW_THREADS; | |
4964 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
4965 | ||
4966 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4967 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 4968 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
4969 | return _resultobj; |
4970 | } | |
4971 | ||
2f90df85 RD |
4972 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
4973 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4974 | PyObject * _resultobj; | |
4975 | wxValidator * _result; | |
4976 | wxWindow * _arg0; | |
4977 | PyObject * _argo0 = 0; | |
4978 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
4979 | |
4980 | self = self; | |
4981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
4982 | return NULL; | |
4983 | if (_argo0) { | |
4984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
4987 | return NULL; | |
4988 | } | |
4989 | } | |
4990 | { | |
4991 | wxPy_BEGIN_ALLOW_THREADS; | |
4992 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
4993 | ||
4994 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4995 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 4996 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
4997 | return _resultobj; |
4998 | } | |
4999 | ||
5000 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5001 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5002 | PyObject * _resultobj; | |
5003 | wxWindow * _arg0; | |
5004 | wxValidator * _arg1; | |
5005 | PyObject * _argo0 = 0; | |
5006 | PyObject * _argo1 = 0; | |
5007 | char *_kwnames[] = { "self","validator", NULL }; | |
5008 | ||
5009 | self = self; | |
5010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5011 | return NULL; | |
5012 | if (_argo0) { | |
5013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5016 | return NULL; | |
5017 | } | |
5018 | } | |
5019 | if (_argo1) { | |
5020 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5021 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5023 | return NULL; | |
5024 | } | |
5025 | } | |
5026 | { | |
5027 | wxPy_BEGIN_ALLOW_THREADS; | |
5028 | wxWindow_SetValidator(_arg0,*_arg1); | |
5029 | ||
5030 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5031 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5032 | } Py_INCREF(Py_None); |
5033 | _resultobj = Py_None; | |
5034 | return _resultobj; | |
5035 | } | |
5036 | ||
b1462dfa RD |
5037 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5038 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5039 | PyObject * _resultobj; | |
5040 | wxWindow * _arg0; | |
5041 | wxDropTarget * _arg1; | |
5042 | PyObject * _argo0 = 0; | |
5043 | PyObject * _argo1 = 0; | |
5044 | char *_kwnames[] = { "self","target", NULL }; | |
5045 | ||
5046 | self = self; | |
5047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5048 | return NULL; | |
5049 | if (_argo0) { | |
5050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5053 | return NULL; | |
5054 | } | |
5055 | } | |
5056 | if (_argo1) { | |
5057 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5058 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5060 | return NULL; | |
5061 | } | |
5062 | } | |
5063 | { | |
5064 | wxPy_BEGIN_ALLOW_THREADS; | |
5065 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5066 | ||
5067 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5068 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5069 | } Py_INCREF(Py_None); |
5070 | _resultobj = Py_None; | |
5071 | return _resultobj; | |
5072 | } | |
5073 | ||
5074 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5075 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5076 | PyObject * _resultobj; | |
5077 | wxDropTarget * _result; | |
5078 | wxWindow * _arg0; | |
5079 | PyObject * _argo0 = 0; | |
5080 | char *_kwnames[] = { "self", NULL }; | |
5081 | char _ptemp[128]; | |
5082 | ||
5083 | self = self; | |
5084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5085 | return NULL; | |
5086 | if (_argo0) { | |
5087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5090 | return NULL; | |
5091 | } | |
5092 | } | |
5093 | { | |
5094 | wxPy_BEGIN_ALLOW_THREADS; | |
5095 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5096 | ||
5097 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5098 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5099 | } if (_result) { |
5100 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5101 | _resultobj = Py_BuildValue("s",_ptemp); | |
5102 | } else { | |
5103 | Py_INCREF(Py_None); | |
5104 | _resultobj = Py_None; | |
5105 | } | |
5106 | return _resultobj; | |
5107 | } | |
5108 | ||
694759cf RD |
5109 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5110 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5111 | PyObject * _resultobj; | |
5112 | wxSize * _result; | |
5113 | wxWindow * _arg0; | |
5114 | PyObject * _argo0 = 0; | |
5115 | char *_kwnames[] = { "self", NULL }; | |
5116 | char _ptemp[128]; | |
5117 | ||
5118 | self = self; | |
5119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5120 | return NULL; | |
5121 | if (_argo0) { | |
5122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5125 | return NULL; | |
5126 | } | |
5127 | } | |
5128 | { | |
5129 | wxPy_BEGIN_ALLOW_THREADS; | |
5130 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5131 | ||
5132 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5133 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5134 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5135 | _resultobj = Py_BuildValue("s",_ptemp); | |
5136 | return _resultobj; | |
5137 | } | |
5138 | ||
a1df7a95 RD |
5139 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5140 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5141 | PyObject * _resultobj; | |
5142 | wxWindow * _arg0; | |
5143 | wxCaret * _arg1; | |
5144 | PyObject * _argo0 = 0; | |
5145 | PyObject * _argo1 = 0; | |
5146 | char *_kwnames[] = { "self","caret", NULL }; | |
5147 | ||
5148 | self = self; | |
5149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5150 | return NULL; | |
5151 | if (_argo0) { | |
5152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5155 | return NULL; | |
5156 | } | |
5157 | } | |
5158 | if (_argo1) { | |
5159 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5160 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5162 | return NULL; | |
5163 | } | |
5164 | } | |
5165 | { | |
5166 | wxPy_BEGIN_ALLOW_THREADS; | |
5167 | wxWindow_SetCaret(_arg0,_arg1); | |
5168 | ||
5169 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5170 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5171 | } Py_INCREF(Py_None); |
5172 | _resultobj = Py_None; | |
5173 | return _resultobj; | |
5174 | } | |
5175 | ||
5176 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5177 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5178 | PyObject * _resultobj; | |
5179 | wxCaret * _result; | |
5180 | wxWindow * _arg0; | |
5181 | PyObject * _argo0 = 0; | |
5182 | char *_kwnames[] = { "self", NULL }; | |
5183 | char _ptemp[128]; | |
5184 | ||
5185 | self = self; | |
5186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5187 | return NULL; | |
5188 | if (_argo0) { | |
5189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5192 | return NULL; | |
5193 | } | |
5194 | } | |
5195 | { | |
5196 | wxPy_BEGIN_ALLOW_THREADS; | |
5197 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5198 | ||
5199 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5200 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5201 | } if (_result) { |
5202 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5203 | _resultobj = Py_BuildValue("s",_ptemp); | |
5204 | } else { | |
5205 | Py_INCREF(Py_None); | |
5206 | _resultobj = Py_None; | |
5207 | } | |
5208 | return _resultobj; | |
5209 | } | |
5210 | ||
10be44ac RD |
5211 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5212 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5213 | PyObject * _resultobj; | |
5214 | wxWindow * _arg0; | |
5215 | PyObject * _argo0 = 0; | |
5216 | char *_kwnames[] = { "self", NULL }; | |
5217 | ||
5218 | self = self; | |
5219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5220 | return NULL; | |
5221 | if (_argo0) { | |
5222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5225 | return NULL; | |
5226 | } | |
5227 | } | |
5228 | { | |
5229 | wxPy_BEGIN_ALLOW_THREADS; | |
5230 | wxWindow_Freeze(_arg0); | |
5231 | ||
5232 | wxPy_END_ALLOW_THREADS; | |
5233 | if (PyErr_Occurred()) return NULL; | |
5234 | } Py_INCREF(Py_None); | |
5235 | _resultobj = Py_None; | |
5236 | return _resultobj; | |
5237 | } | |
5238 | ||
5239 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5240 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5241 | PyObject * _resultobj; | |
5242 | wxWindow * _arg0; | |
5243 | PyObject * _argo0 = 0; | |
5244 | char *_kwnames[] = { "self", NULL }; | |
5245 | ||
5246 | self = self; | |
5247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5248 | return NULL; | |
5249 | if (_argo0) { | |
5250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5253 | return NULL; | |
5254 | } | |
5255 | } | |
5256 | { | |
5257 | wxPy_BEGIN_ALLOW_THREADS; | |
5258 | wxWindow_Thaw(_arg0); | |
5259 | ||
5260 | wxPy_END_ALLOW_THREADS; | |
5261 | if (PyErr_Occurred()) return NULL; | |
5262 | } Py_INCREF(Py_None); | |
5263 | _resultobj = Py_None; | |
5264 | return _resultobj; | |
5265 | } | |
5266 | ||
aa2a5b86 RD |
5267 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
5268 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5269 | PyObject * _resultobj; | |
5270 | wxWindow * _arg0; | |
5271 | PyObject * _argo0 = 0; | |
5272 | char *_kwnames[] = { "self", NULL }; | |
5273 | ||
5274 | self = self; | |
5275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5276 | return NULL; | |
5277 | if (_argo0) { | |
5278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5281 | return NULL; | |
5282 | } | |
5283 | } | |
5284 | { | |
5285 | wxPy_BEGIN_ALLOW_THREADS; | |
5286 | wxWindow_Update(_arg0); | |
5287 | ||
5288 | wxPy_END_ALLOW_THREADS; | |
5289 | if (PyErr_Occurred()) return NULL; | |
5290 | } Py_INCREF(Py_None); | |
5291 | _resultobj = Py_None; | |
5292 | return _resultobj; | |
5293 | } | |
5294 | ||
cd096152 RD |
5295 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
5296 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5297 | PyObject * _resultobj; | |
5298 | wxString * _result; | |
5299 | wxWindow * _arg0; | |
5300 | PyObject * _argo0 = 0; | |
5301 | char *_kwnames[] = { "self", NULL }; | |
5302 | ||
5303 | self = self; | |
5304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5305 | return NULL; | |
5306 | if (_argo0) { | |
5307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5310 | return NULL; | |
5311 | } | |
5312 | } | |
5313 | { | |
5314 | wxPy_BEGIN_ALLOW_THREADS; | |
5315 | _result = new wxString (wxWindow_GetHelpText(_arg0)); | |
5316 | ||
5317 | wxPy_END_ALLOW_THREADS; | |
5318 | if (PyErr_Occurred()) return NULL; | |
5319 | }{ | |
5320 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5321 | } | |
5322 | { | |
5323 | delete _result; | |
5324 | } | |
5325 | return _resultobj; | |
5326 | } | |
5327 | ||
5328 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5329 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5330 | PyObject * _resultobj; | |
5331 | wxWindow * _arg0; | |
5332 | wxString * _arg1; | |
5333 | PyObject * _argo0 = 0; | |
5334 | PyObject * _obj1 = 0; | |
5335 | char *_kwnames[] = { "self","helpText", NULL }; | |
5336 | ||
5337 | self = self; | |
5338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5339 | return NULL; | |
5340 | if (_argo0) { | |
5341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5344 | return NULL; | |
5345 | } | |
5346 | } | |
5347 | { | |
5348 | #if PYTHON_API_VERSION >= 1009 | |
5349 | char* tmpPtr; int tmpSize; | |
5350 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5351 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5352 | return NULL; | |
5353 | } | |
5354 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5355 | return NULL; | |
5356 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5357 | #else | |
5358 | if (!PyString_Check(_obj1)) { | |
5359 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5360 | return NULL; | |
5361 | } | |
5362 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5363 | #endif | |
5364 | } | |
5365 | { | |
5366 | wxPy_BEGIN_ALLOW_THREADS; | |
5367 | wxWindow_SetHelpText(_arg0,*_arg1); | |
5368 | ||
5369 | wxPy_END_ALLOW_THREADS; | |
5370 | if (PyErr_Occurred()) return NULL; | |
5371 | } Py_INCREF(Py_None); | |
5372 | _resultobj = Py_None; | |
5373 | { | |
5374 | if (_obj1) | |
5375 | delete _arg1; | |
5376 | } | |
5377 | return _resultobj; | |
5378 | } | |
5379 | ||
5380 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) | |
5381 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5382 | PyObject * _resultobj; | |
5383 | bool _result; | |
5384 | wxWindow * _arg0; | |
5385 | int _arg1; | |
5386 | PyObject * _argo0 = 0; | |
5387 | char *_kwnames[] = { "self","lines", NULL }; | |
5388 | ||
5389 | self = self; | |
5390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
5391 | return NULL; | |
5392 | if (_argo0) { | |
5393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
5396 | return NULL; | |
5397 | } | |
5398 | } | |
5399 | { | |
5400 | wxPy_BEGIN_ALLOW_THREADS; | |
5401 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); | |
5402 | ||
5403 | wxPy_END_ALLOW_THREADS; | |
5404 | if (PyErr_Occurred()) return NULL; | |
5405 | } _resultobj = Py_BuildValue("i",_result); | |
5406 | return _resultobj; | |
5407 | } | |
5408 | ||
5409 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
5410 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5411 | PyObject * _resultobj; | |
5412 | bool _result; | |
5413 | wxWindow * _arg0; | |
5414 | int _arg1; | |
5415 | PyObject * _argo0 = 0; | |
5416 | char *_kwnames[] = { "self","pages", NULL }; | |
5417 | ||
5418 | self = self; | |
5419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
5420 | return NULL; | |
5421 | if (_argo0) { | |
5422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
5425 | return NULL; | |
5426 | } | |
5427 | } | |
5428 | { | |
5429 | wxPy_BEGIN_ALLOW_THREADS; | |
5430 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); | |
5431 | ||
5432 | wxPy_END_ALLOW_THREADS; | |
5433 | if (PyErr_Occurred()) return NULL; | |
5434 | } _resultobj = Py_BuildValue("i",_result); | |
5435 | return _resultobj; | |
5436 | } | |
5437 | ||
5438 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
5439 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5440 | PyObject * _resultobj; | |
5441 | bool _result; | |
5442 | wxWindow * _arg0; | |
5443 | PyObject * _argo0 = 0; | |
5444 | char *_kwnames[] = { "self", NULL }; | |
5445 | ||
5446 | self = self; | |
5447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
5448 | return NULL; | |
5449 | if (_argo0) { | |
5450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
5453 | return NULL; | |
5454 | } | |
5455 | } | |
5456 | { | |
5457 | wxPy_BEGIN_ALLOW_THREADS; | |
5458 | _result = (bool )wxWindow_LineUp(_arg0); | |
5459 | ||
5460 | wxPy_END_ALLOW_THREADS; | |
5461 | if (PyErr_Occurred()) return NULL; | |
5462 | } _resultobj = Py_BuildValue("i",_result); | |
5463 | return _resultobj; | |
5464 | } | |
5465 | ||
5466 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
5467 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5468 | PyObject * _resultobj; | |
5469 | bool _result; | |
5470 | wxWindow * _arg0; | |
5471 | PyObject * _argo0 = 0; | |
5472 | char *_kwnames[] = { "self", NULL }; | |
5473 | ||
5474 | self = self; | |
5475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
5476 | return NULL; | |
5477 | if (_argo0) { | |
5478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
5481 | return NULL; | |
5482 | } | |
5483 | } | |
5484 | { | |
5485 | wxPy_BEGIN_ALLOW_THREADS; | |
5486 | _result = (bool )wxWindow_LineDown(_arg0); | |
5487 | ||
5488 | wxPy_END_ALLOW_THREADS; | |
5489 | if (PyErr_Occurred()) return NULL; | |
5490 | } _resultobj = Py_BuildValue("i",_result); | |
5491 | return _resultobj; | |
5492 | } | |
5493 | ||
5494 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
5495 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5496 | PyObject * _resultobj; | |
5497 | bool _result; | |
5498 | wxWindow * _arg0; | |
5499 | PyObject * _argo0 = 0; | |
5500 | char *_kwnames[] = { "self", NULL }; | |
5501 | ||
5502 | self = self; | |
5503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
5504 | return NULL; | |
5505 | if (_argo0) { | |
5506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
5509 | return NULL; | |
5510 | } | |
5511 | } | |
5512 | { | |
5513 | wxPy_BEGIN_ALLOW_THREADS; | |
5514 | _result = (bool )wxWindow_PageUp(_arg0); | |
5515 | ||
5516 | wxPy_END_ALLOW_THREADS; | |
5517 | if (PyErr_Occurred()) return NULL; | |
5518 | } _resultobj = Py_BuildValue("i",_result); | |
5519 | return _resultobj; | |
5520 | } | |
5521 | ||
5522 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
5523 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5524 | PyObject * _resultobj; | |
5525 | bool _result; | |
5526 | wxWindow * _arg0; | |
5527 | PyObject * _argo0 = 0; | |
5528 | char *_kwnames[] = { "self", NULL }; | |
5529 | ||
5530 | self = self; | |
5531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
5532 | return NULL; | |
5533 | if (_argo0) { | |
5534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
5537 | return NULL; | |
5538 | } | |
5539 | } | |
5540 | { | |
5541 | wxPy_BEGIN_ALLOW_THREADS; | |
5542 | _result = (bool )wxWindow_PageDown(_arg0); | |
5543 | ||
5544 | wxPy_END_ALLOW_THREADS; | |
5545 | if (PyErr_Occurred()) return NULL; | |
5546 | } _resultobj = Py_BuildValue("i",_result); | |
5547 | return _resultobj; | |
5548 | } | |
5549 | ||
aa2a5b86 RD |
5550 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
5551 | PyObject * _resultobj; | |
5552 | wxWindow * _result; | |
5553 | char *_kwnames[] = { NULL }; | |
5554 | ||
5555 | self = self; | |
5556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
5557 | return NULL; | |
5558 | { | |
5559 | wxPy_BEGIN_ALLOW_THREADS; | |
5560 | _result = (wxWindow *)wxWindow::FindFocus(); | |
5561 | ||
5562 | wxPy_END_ALLOW_THREADS; | |
5563 | if (PyErr_Occurred()) return NULL; | |
5564 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5565 | return _resultobj; | |
5566 | } | |
5567 | ||
5568 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5569 | PyObject * _resultobj; | |
5570 | int _result; | |
5571 | char *_kwnames[] = { NULL }; | |
5572 | ||
5573 | self = self; | |
5574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
5575 | return NULL; | |
5576 | { | |
5577 | wxPy_BEGIN_ALLOW_THREADS; | |
5578 | _result = (int )wxWindow::NewControlId(); | |
5579 | ||
5580 | wxPy_END_ALLOW_THREADS; | |
5581 | if (PyErr_Occurred()) return NULL; | |
5582 | } _resultobj = Py_BuildValue("i",_result); | |
5583 | return _resultobj; | |
5584 | } | |
5585 | ||
5586 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5587 | PyObject * _resultobj; | |
5588 | int _result; | |
5589 | int _arg0; | |
5590 | char *_kwnames[] = { "id", NULL }; | |
5591 | ||
5592 | self = self; | |
5593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
5594 | return NULL; | |
5595 | { | |
5596 | wxPy_BEGIN_ALLOW_THREADS; | |
5597 | _result = (int )wxWindow::NextControlId(_arg0); | |
5598 | ||
5599 | wxPy_END_ALLOW_THREADS; | |
5600 | if (PyErr_Occurred()) return NULL; | |
5601 | } _resultobj = Py_BuildValue("i",_result); | |
5602 | return _resultobj; | |
5603 | } | |
5604 | ||
5605 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5606 | PyObject * _resultobj; | |
5607 | int _result; | |
5608 | int _arg0; | |
5609 | char *_kwnames[] = { "id", NULL }; | |
5610 | ||
5611 | self = self; | |
5612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
5613 | return NULL; | |
5614 | { | |
5615 | wxPy_BEGIN_ALLOW_THREADS; | |
5616 | _result = (int )wxWindow::PrevControlId(_arg0); | |
5617 | ||
5618 | wxPy_END_ALLOW_THREADS; | |
5619 | if (PyErr_Occurred()) return NULL; | |
5620 | } _resultobj = Py_BuildValue("i",_result); | |
5621 | return _resultobj; | |
5622 | } | |
5623 | ||
32c988a3 RD |
5624 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
5625 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5626 | PyObject * _resultobj; | |
5627 | wxWindow * _arg0; | |
5628 | wxAcceleratorTable * _arg1; | |
5629 | PyObject * _argo0 = 0; | |
5630 | PyObject * _argo1 = 0; | |
5631 | char *_kwnames[] = { "self","accel", NULL }; | |
5632 | ||
5633 | self = self; | |
5634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
5635 | return NULL; | |
5636 | if (_argo0) { | |
5637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
5640 | return NULL; | |
5641 | } | |
5642 | } | |
5643 | if (_argo1) { | |
5644 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5645 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
5646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
5647 | return NULL; | |
5648 | } | |
5649 | } | |
5650 | { | |
5651 | wxPy_BEGIN_ALLOW_THREADS; | |
5652 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
5653 | ||
5654 | wxPy_END_ALLOW_THREADS; | |
5655 | if (PyErr_Occurred()) return NULL; | |
5656 | } Py_INCREF(Py_None); | |
5657 | _resultobj = Py_None; | |
5658 | return _resultobj; | |
5659 | } | |
5660 | ||
65191ae8 RD |
5661 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
5662 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5663 | PyObject * _resultobj; | |
5664 | wxAcceleratorTable * _result; | |
5665 | wxWindow * _arg0; | |
5666 | PyObject * _argo0 = 0; | |
5667 | char *_kwnames[] = { "self", NULL }; | |
5668 | char _ptemp[128]; | |
5669 | ||
5670 | self = self; | |
5671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
5672 | return NULL; | |
5673 | if (_argo0) { | |
5674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
5677 | return NULL; | |
5678 | } | |
5679 | } | |
5680 | { | |
5681 | wxPy_BEGIN_ALLOW_THREADS; | |
5682 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); | |
5683 | ||
5684 | wxPy_END_ALLOW_THREADS; | |
5685 | if (PyErr_Occurred()) return NULL; | |
5686 | } if (_result) { | |
5687 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
5688 | _resultobj = Py_BuildValue("s",_ptemp); | |
5689 | } else { | |
5690 | Py_INCREF(Py_None); | |
5691 | _resultobj = Py_None; | |
5692 | } | |
5693 | return _resultobj; | |
5694 | } | |
5695 | ||
8ab979d7 RD |
5696 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5697 | wxPanel *src; | |
5698 | wxWindow *dest; | |
5699 | src = (wxPanel *) ptr; | |
5700 | dest = (wxWindow *) src; | |
5701 | return (void *) dest; | |
5702 | } | |
5703 | ||
5704 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5705 | wxPanel *src; | |
5706 | wxEvtHandler *dest; | |
5707 | src = (wxPanel *) ptr; | |
5708 | dest = (wxEvtHandler *) src; | |
5709 | return (void *) dest; | |
5710 | } | |
5711 | ||
9df61a29 RD |
5712 | static void *SwigwxPanelTowxObject(void *ptr) { |
5713 | wxPanel *src; | |
5714 | wxObject *dest; | |
5715 | src = (wxPanel *) ptr; | |
5716 | dest = (wxObject *) src; | |
5717 | return (void *) dest; | |
5718 | } | |
5719 | ||
8ab979d7 | 5720 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 5721 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5722 | PyObject * _resultobj; |
5723 | wxPanel * _result; | |
5724 | wxWindow * _arg0; | |
5725 | wxWindowID _arg1; | |
b68dc582 RD |
5726 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5727 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5728 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
5729 | char * _arg5 = (char *) "panel"; | |
5730 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5731 | wxPoint temp; |
5732 | PyObject * _obj2 = 0; | |
5733 | wxSize temp0; | |
5734 | PyObject * _obj3 = 0; | |
efc5f224 | 5735 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5736 | char _ptemp[128]; |
5737 | ||
5738 | self = self; | |
2f90df85 | 5739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5740 | return NULL; |
1d99702e RD |
5741 | if (_argo0) { |
5742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5745 | return NULL; | |
5746 | } | |
5747 | } | |
2f90df85 RD |
5748 | if (_obj2) |
5749 | { | |
5750 | _arg2 = &temp; | |
5751 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5752 | return NULL; |
2f90df85 RD |
5753 | } |
5754 | if (_obj3) | |
5755 | { | |
5756 | _arg3 = &temp0; | |
5757 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5758 | return NULL; |
2f90df85 | 5759 | } |
cf694132 RD |
5760 | { |
5761 | wxPy_BEGIN_ALLOW_THREADS; | |
5762 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5763 | ||
5764 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5765 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5766 | } if (_result) { |
5767 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5768 | _resultobj = Py_BuildValue("s",_ptemp); | |
5769 | } else { | |
5770 | Py_INCREF(Py_None); | |
5771 | _resultobj = Py_None; | |
5772 | } | |
8ab979d7 RD |
5773 | return _resultobj; |
5774 | } | |
5775 | ||
aa2a5b86 RD |
5776 | #define new_wxPrePanel() (new wxPanel()) |
5777 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5778 | PyObject * _resultobj; | |
5779 | wxPanel * _result; | |
5780 | char *_kwnames[] = { NULL }; | |
5781 | char _ptemp[128]; | |
5782 | ||
5783 | self = self; | |
5784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
5785 | return NULL; | |
5786 | { | |
5787 | wxPy_BEGIN_ALLOW_THREADS; | |
5788 | _result = (wxPanel *)new_wxPrePanel(); | |
5789 | ||
5790 | wxPy_END_ALLOW_THREADS; | |
5791 | if (PyErr_Occurred()) return NULL; | |
5792 | } if (_result) { | |
5793 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5794 | _resultobj = Py_BuildValue("s",_ptemp); | |
5795 | } else { | |
5796 | Py_INCREF(Py_None); | |
5797 | _resultobj = Py_None; | |
5798 | } | |
5799 | return _resultobj; | |
5800 | } | |
5801 | ||
5802 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5803 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5804 | PyObject * _resultobj; | |
5805 | bool _result; | |
5806 | wxPanel * _arg0; | |
5807 | wxWindow * _arg1; | |
5808 | wxWindowID _arg2; | |
5809 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5810 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5811 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
5812 | char * _arg6 = (char *) "panel"; | |
5813 | PyObject * _argo0 = 0; | |
5814 | PyObject * _argo1 = 0; | |
5815 | wxPoint temp; | |
5816 | PyObject * _obj3 = 0; | |
5817 | wxSize temp0; | |
5818 | PyObject * _obj4 = 0; | |
5819 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
5820 | ||
5821 | self = self; | |
5822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
5823 | return NULL; | |
5824 | if (_argo0) { | |
5825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
5827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
5828 | return NULL; | |
5829 | } | |
5830 | } | |
5831 | if (_argo1) { | |
5832 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5833 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
5835 | return NULL; | |
5836 | } | |
5837 | } | |
5838 | if (_obj3) | |
5839 | { | |
5840 | _arg3 = &temp; | |
5841 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5842 | return NULL; | |
5843 | } | |
5844 | if (_obj4) | |
5845 | { | |
5846 | _arg4 = &temp0; | |
5847 | if (! wxSize_helper(_obj4, &_arg4)) | |
5848 | return NULL; | |
5849 | } | |
5850 | { | |
5851 | wxPy_BEGIN_ALLOW_THREADS; | |
5852 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5853 | ||
5854 | wxPy_END_ALLOW_THREADS; | |
5855 | if (PyErr_Occurred()) return NULL; | |
5856 | } _resultobj = Py_BuildValue("i",_result); | |
5857 | return _resultobj; | |
5858 | } | |
5859 | ||
8ab979d7 | 5860 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 5861 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5862 | PyObject * _resultobj; |
5863 | wxPanel * _arg0; | |
1d99702e | 5864 | PyObject * _argo0 = 0; |
efc5f224 | 5865 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5866 | |
5867 | self = self; | |
efc5f224 | 5868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 5869 | return NULL; |
1d99702e RD |
5870 | if (_argo0) { |
5871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
5873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
5874 | return NULL; | |
5875 | } | |
5876 | } | |
cf694132 RD |
5877 | { |
5878 | wxPy_BEGIN_ALLOW_THREADS; | |
5879 | wxPanel_InitDialog(_arg0); | |
5880 | ||
5881 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5882 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5883 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5884 | _resultobj = Py_None; |
5885 | return _resultobj; | |
5886 | } | |
5887 | ||
bb0054cd | 5888 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
efc5f224 | 5889 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5890 | PyObject * _resultobj; |
5891 | wxButton * _result; | |
5892 | wxPanel * _arg0; | |
1d99702e | 5893 | PyObject * _argo0 = 0; |
efc5f224 | 5894 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5895 | |
5896 | self = self; | |
efc5f224 | 5897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
bb0054cd | 5898 | return NULL; |
1d99702e RD |
5899 | if (_argo0) { |
5900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
5903 | return NULL; | |
5904 | } | |
5905 | } | |
5906 | { | |
5907 | wxPy_BEGIN_ALLOW_THREADS; | |
5908 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
5909 | ||
5910 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5911 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5912 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
5913 | return _resultobj; |
5914 | } | |
5915 | ||
5916 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
efc5f224 | 5917 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5918 | PyObject * _resultobj; |
5919 | wxPanel * _arg0; | |
5920 | wxButton * _arg1; | |
1d99702e RD |
5921 | PyObject * _argo0 = 0; |
5922 | PyObject * _argo1 = 0; | |
efc5f224 | 5923 | char *_kwnames[] = { "self","btn", NULL }; |
bb0054cd RD |
5924 | |
5925 | self = self; | |
efc5f224 | 5926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 5927 | return NULL; |
1d99702e RD |
5928 | if (_argo0) { |
5929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
5932 | return NULL; | |
5933 | } | |
5934 | } | |
1d99702e RD |
5935 | if (_argo1) { |
5936 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5937 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
bb0054cd RD |
5938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
5939 | return NULL; | |
5940 | } | |
5941 | } | |
5942 | { | |
5943 | wxPy_BEGIN_ALLOW_THREADS; | |
5944 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
5945 | ||
5946 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5947 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5948 | } Py_INCREF(Py_None); |
5949 | _resultobj = Py_None; | |
5950 | return _resultobj; | |
5951 | } | |
5952 | ||
bb0054cd RD |
5953 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
5954 | wxScrolledWindow *src; | |
5955 | wxPanel *dest; | |
5956 | src = (wxScrolledWindow *) ptr; | |
5957 | dest = (wxPanel *) src; | |
5958 | return (void *) dest; | |
5959 | } | |
5960 | ||
8ab979d7 RD |
5961 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
5962 | wxScrolledWindow *src; | |
5963 | wxWindow *dest; | |
5964 | src = (wxScrolledWindow *) ptr; | |
5965 | dest = (wxWindow *) src; | |
5966 | return (void *) dest; | |
5967 | } | |
5968 | ||
5969 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
5970 | wxScrolledWindow *src; | |
5971 | wxEvtHandler *dest; | |
5972 | src = (wxScrolledWindow *) ptr; | |
5973 | dest = (wxEvtHandler *) src; | |
5974 | return (void *) dest; | |
5975 | } | |
5976 | ||
9df61a29 RD |
5977 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
5978 | wxScrolledWindow *src; | |
5979 | wxObject *dest; | |
5980 | src = (wxScrolledWindow *) ptr; | |
5981 | dest = (wxObject *) src; | |
5982 | return (void *) dest; | |
5983 | } | |
5984 | ||
8ab979d7 | 5985 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 5986 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5987 | PyObject * _resultobj; |
5988 | wxScrolledWindow * _result; | |
5989 | wxWindow * _arg0; | |
1d99702e | 5990 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
5991 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5992 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5993 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
5994 | char * _arg5 = (char *) "scrolledWindow"; | |
5995 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5996 | wxPoint temp; |
5997 | PyObject * _obj2 = 0; | |
5998 | wxSize temp0; | |
5999 | PyObject * _obj3 = 0; | |
efc5f224 | 6000 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6001 | char _ptemp[128]; |
6002 | ||
6003 | self = self; | |
2f90df85 | 6004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6005 | return NULL; |
1d99702e RD |
6006 | if (_argo0) { |
6007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6010 | return NULL; | |
6011 | } | |
6012 | } | |
2f90df85 RD |
6013 | if (_obj2) |
6014 | { | |
6015 | _arg2 = &temp; | |
6016 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6017 | return NULL; |
2f90df85 RD |
6018 | } |
6019 | if (_obj3) | |
6020 | { | |
6021 | _arg3 = &temp0; | |
6022 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6023 | return NULL; |
2f90df85 | 6024 | } |
cf694132 RD |
6025 | { |
6026 | wxPy_BEGIN_ALLOW_THREADS; | |
6027 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
6028 | ||
6029 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6030 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6031 | } if (_result) { |
6032 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6033 | _resultobj = Py_BuildValue("s",_ptemp); | |
6034 | } else { | |
6035 | Py_INCREF(Py_None); | |
6036 | _resultobj = Py_None; | |
6037 | } | |
8ab979d7 RD |
6038 | return _resultobj; |
6039 | } | |
6040 | ||
aa2a5b86 RD |
6041 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
6042 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6043 | PyObject * _resultobj; | |
6044 | wxScrolledWindow * _result; | |
6045 | char *_kwnames[] = { NULL }; | |
6046 | char _ptemp[128]; | |
6047 | ||
6048 | self = self; | |
6049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6050 | return NULL; | |
6051 | { | |
6052 | wxPy_BEGIN_ALLOW_THREADS; | |
6053 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); | |
6054 | ||
6055 | wxPy_END_ALLOW_THREADS; | |
6056 | if (PyErr_Occurred()) return NULL; | |
6057 | } if (_result) { | |
6058 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6059 | _resultobj = Py_BuildValue("s",_ptemp); | |
6060 | } else { | |
6061 | Py_INCREF(Py_None); | |
6062 | _resultobj = Py_None; | |
6063 | } | |
6064 | return _resultobj; | |
6065 | } | |
6066 | ||
6067 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6068 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6069 | PyObject * _resultobj; | |
6070 | bool _result; | |
6071 | wxScrolledWindow * _arg0; | |
6072 | wxWindow * _arg1; | |
6073 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6074 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6075 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6076 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
6077 | char * _arg6 = (char *) "scrolledWindow"; | |
6078 | PyObject * _argo0 = 0; | |
6079 | PyObject * _argo1 = 0; | |
6080 | wxPoint temp; | |
6081 | PyObject * _obj3 = 0; | |
6082 | wxSize temp0; | |
6083 | PyObject * _obj4 = 0; | |
6084 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6085 | ||
6086 | self = self; | |
6087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6088 | return NULL; | |
6089 | if (_argo0) { | |
6090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6093 | return NULL; | |
6094 | } | |
6095 | } | |
6096 | if (_argo1) { | |
6097 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6098 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6100 | return NULL; | |
6101 | } | |
6102 | } | |
6103 | if (_obj3) | |
6104 | { | |
6105 | _arg3 = &temp; | |
6106 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6107 | return NULL; | |
6108 | } | |
6109 | if (_obj4) | |
6110 | { | |
6111 | _arg4 = &temp0; | |
6112 | if (! wxSize_helper(_obj4, &_arg4)) | |
6113 | return NULL; | |
6114 | } | |
6115 | { | |
6116 | wxPy_BEGIN_ALLOW_THREADS; | |
6117 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
6118 | ||
6119 | wxPy_END_ALLOW_THREADS; | |
6120 | if (PyErr_Occurred()) return NULL; | |
6121 | } _resultobj = Py_BuildValue("i",_result); | |
6122 | return _resultobj; | |
6123 | } | |
6124 | ||
8ab979d7 | 6125 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 6126 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6127 | PyObject * _resultobj; |
6128 | wxScrolledWindow * _arg0; | |
6129 | bool _arg1; | |
6130 | bool _arg2; | |
1d99702e | 6131 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6132 | int tempbool1; |
6133 | int tempbool2; | |
efc5f224 | 6134 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6135 | |
6136 | self = self; | |
efc5f224 | 6137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6138 | return NULL; |
1d99702e RD |
6139 | if (_argo0) { |
6140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6143 | return NULL; | |
6144 | } | |
6145 | } | |
6146 | _arg1 = (bool ) tempbool1; | |
6147 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6148 | { |
6149 | wxPy_BEGIN_ALLOW_THREADS; | |
6150 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
6151 | ||
6152 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6153 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6154 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6155 | _resultobj = Py_None; |
6156 | return _resultobj; | |
6157 | } | |
6158 | ||
b7e72427 RD |
6159 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6160 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6161 | PyObject * _resultobj; | |
6162 | int _result; | |
6163 | wxScrolledWindow * _arg0; | |
6164 | int _arg1; | |
6165 | PyObject * _argo0 = 0; | |
6166 | char *_kwnames[] = { "self","orient", NULL }; | |
6167 | ||
6168 | self = self; | |
6169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6170 | return NULL; | |
6171 | if (_argo0) { | |
6172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6175 | return NULL; | |
6176 | } | |
6177 | } | |
6178 | { | |
6179 | wxPy_BEGIN_ALLOW_THREADS; | |
6180 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
6181 | ||
6182 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6183 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6184 | } _resultobj = Py_BuildValue("i",_result); |
6185 | return _resultobj; | |
6186 | } | |
6187 | ||
8ab979d7 | 6188 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6189 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6190 | PyObject * _resultobj; |
6191 | wxScrolledWindow * _arg0; | |
6192 | int * _arg1; | |
6193 | int temp; | |
6194 | int * _arg2; | |
6195 | int temp0; | |
1d99702e | 6196 | PyObject * _argo0 = 0; |
efc5f224 | 6197 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6198 | |
6199 | self = self; | |
6200 | { | |
6201 | _arg1 = &temp; | |
6202 | } | |
6203 | { | |
6204 | _arg2 = &temp0; | |
6205 | } | |
efc5f224 | 6206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6207 | return NULL; |
1d99702e RD |
6208 | if (_argo0) { |
6209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6212 | return NULL; | |
6213 | } | |
6214 | } | |
cf694132 RD |
6215 | { |
6216 | wxPy_BEGIN_ALLOW_THREADS; | |
6217 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
6218 | ||
6219 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6220 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6221 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6222 | _resultobj = Py_None; |
6223 | { | |
6224 | PyObject *o; | |
6225 | o = PyInt_FromLong((long) (*_arg1)); | |
6226 | _resultobj = t_output_helper(_resultobj, o); | |
6227 | } | |
6228 | { | |
6229 | PyObject *o; | |
6230 | o = PyInt_FromLong((long) (*_arg2)); | |
6231 | _resultobj = t_output_helper(_resultobj, o); | |
6232 | } | |
6233 | return _resultobj; | |
6234 | } | |
6235 | ||
b7e72427 RD |
6236 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6237 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6238 | PyObject * _resultobj; | |
6239 | wxWindow * _result; | |
6240 | wxScrolledWindow * _arg0; | |
6241 | PyObject * _argo0 = 0; | |
6242 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6243 | |
6244 | self = self; | |
6245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6246 | return NULL; | |
6247 | if (_argo0) { | |
6248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6251 | return NULL; | |
6252 | } | |
6253 | } | |
6254 | { | |
6255 | wxPy_BEGIN_ALLOW_THREADS; | |
6256 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6257 | ||
6258 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6259 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6260 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
6261 | return _resultobj; |
6262 | } | |
6263 | ||
8ab979d7 | 6264 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6265 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6266 | PyObject * _resultobj; |
6267 | wxScrolledWindow * _arg0; | |
6268 | int * _arg1; | |
6269 | int temp; | |
6270 | int * _arg2; | |
6271 | int temp0; | |
1d99702e | 6272 | PyObject * _argo0 = 0; |
efc5f224 | 6273 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6274 | |
6275 | self = self; | |
6276 | { | |
6277 | _arg1 = &temp; | |
6278 | } | |
6279 | { | |
6280 | _arg2 = &temp0; | |
6281 | } | |
efc5f224 | 6282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6283 | return NULL; |
1d99702e RD |
6284 | if (_argo0) { |
6285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6288 | return NULL; | |
6289 | } | |
6290 | } | |
cf694132 RD |
6291 | { |
6292 | wxPy_BEGIN_ALLOW_THREADS; | |
6293 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6294 | ||
6295 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6296 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6297 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6298 | _resultobj = Py_None; |
6299 | { | |
6300 | PyObject *o; | |
6301 | o = PyInt_FromLong((long) (*_arg1)); | |
6302 | _resultobj = t_output_helper(_resultobj, o); | |
6303 | } | |
6304 | { | |
6305 | PyObject *o; | |
6306 | o = PyInt_FromLong((long) (*_arg2)); | |
6307 | _resultobj = t_output_helper(_resultobj, o); | |
6308 | } | |
6309 | return _resultobj; | |
6310 | } | |
6311 | ||
6312 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6313 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6314 | PyObject * _resultobj; |
6315 | bool _result; | |
6316 | wxScrolledWindow * _arg0; | |
1d99702e | 6317 | PyObject * _argo0 = 0; |
efc5f224 | 6318 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6319 | |
6320 | self = self; | |
efc5f224 | 6321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6322 | return NULL; |
1d99702e RD |
6323 | if (_argo0) { |
6324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6327 | return NULL; | |
6328 | } | |
6329 | } | |
cf694132 RD |
6330 | { |
6331 | wxPy_BEGIN_ALLOW_THREADS; | |
6332 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6333 | ||
6334 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6335 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6336 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6337 | return _resultobj; |
6338 | } | |
6339 | ||
6340 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6341 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6342 | PyObject * _resultobj; |
6343 | wxScrolledWindow * _arg0; | |
6344 | wxDC * _arg1; | |
1d99702e RD |
6345 | PyObject * _argo0 = 0; |
6346 | PyObject * _argo1 = 0; | |
efc5f224 | 6347 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6348 | |
6349 | self = self; | |
efc5f224 | 6350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6351 | return NULL; |
1d99702e RD |
6352 | if (_argo0) { |
6353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6356 | return NULL; | |
6357 | } | |
6358 | } | |
1d99702e RD |
6359 | if (_argo1) { |
6360 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6361 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6363 | return NULL; | |
6364 | } | |
6365 | } | |
cf694132 RD |
6366 | { |
6367 | wxPy_BEGIN_ALLOW_THREADS; | |
6368 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
6369 | ||
6370 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6371 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6372 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6373 | _resultobj = Py_None; |
6374 | return _resultobj; | |
6375 | } | |
6376 | ||
6377 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6378 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6379 | PyObject * _resultobj; |
6380 | wxScrolledWindow * _arg0; | |
6381 | int _arg1; | |
6382 | int _arg2; | |
1d99702e | 6383 | PyObject * _argo0 = 0; |
efc5f224 | 6384 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6385 | |
6386 | self = self; | |
efc5f224 | 6387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6388 | return NULL; |
1d99702e RD |
6389 | if (_argo0) { |
6390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6393 | return NULL; | |
6394 | } | |
6395 | } | |
cf694132 RD |
6396 | { |
6397 | wxPy_BEGIN_ALLOW_THREADS; | |
6398 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
6399 | ||
6400 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6401 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6402 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6403 | _resultobj = Py_None; |
6404 | return _resultobj; | |
6405 | } | |
6406 | ||
f6bcfd97 | 6407 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6408 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6409 | PyObject * _resultobj; |
6410 | wxScrolledWindow * _arg0; | |
6411 | int _arg1; | |
6412 | int _arg2; | |
6413 | int _arg3; | |
6414 | int _arg4; | |
1d99702e RD |
6415 | int _arg5 = (int ) 0; |
6416 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6417 | int _arg7 = (int ) FALSE; |
1d99702e | 6418 | PyObject * _argo0 = 0; |
f6bcfd97 | 6419 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6420 | |
6421 | self = self; | |
f6bcfd97 | 6422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6423 | return NULL; |
1d99702e RD |
6424 | if (_argo0) { |
6425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6428 | return NULL; | |
6429 | } | |
6430 | } | |
cf694132 RD |
6431 | { |
6432 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6433 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 RD |
6434 | |
6435 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6436 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6437 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6438 | _resultobj = Py_None; |
6439 | return _resultobj; | |
6440 | } | |
6441 | ||
b7e72427 RD |
6442 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6443 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6444 | PyObject * _resultobj; | |
6445 | wxScrolledWindow * _arg0; | |
6446 | int _arg1; | |
6447 | int _arg2; | |
6448 | PyObject * _argo0 = 0; | |
6449 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6450 | ||
6451 | self = self; | |
6452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6453 | return NULL; | |
6454 | if (_argo0) { | |
6455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6458 | return NULL; | |
6459 | } | |
6460 | } | |
6461 | { | |
6462 | wxPy_BEGIN_ALLOW_THREADS; | |
6463 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6464 | ||
6465 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6466 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6467 | } Py_INCREF(Py_None); |
6468 | _resultobj = Py_None; | |
6469 | return _resultobj; | |
6470 | } | |
6471 | ||
eb715945 RD |
6472 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6473 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6474 | PyObject * _resultobj; | |
6475 | wxScrolledWindow * _arg0; | |
6476 | wxWindow * _arg1; | |
6477 | PyObject * _argo0 = 0; | |
6478 | PyObject * _argo1 = 0; | |
6479 | char *_kwnames[] = { "self","window", NULL }; | |
6480 | ||
6481 | self = self; | |
6482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6483 | return NULL; | |
6484 | if (_argo0) { | |
6485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6488 | return NULL; | |
6489 | } | |
6490 | } | |
6491 | if (_argo1) { | |
6492 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6493 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6495 | return NULL; | |
6496 | } | |
6497 | } | |
6498 | { | |
6499 | wxPy_BEGIN_ALLOW_THREADS; | |
6500 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6501 | ||
6502 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6503 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
6504 | } Py_INCREF(Py_None); |
6505 | _resultobj = Py_None; | |
6506 | return _resultobj; | |
6507 | } | |
6508 | ||
4c9993c3 RD |
6509 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6510 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6511 | PyObject * _resultobj; | |
6512 | wxScrolledWindow * _arg0; | |
6513 | int * _arg1; | |
6514 | int temp; | |
6515 | int * _arg2; | |
6516 | int temp0; | |
6517 | PyObject * _argo0 = 0; | |
6518 | char *_kwnames[] = { "self", NULL }; | |
6519 | ||
6520 | self = self; | |
6521 | { | |
6522 | _arg1 = &temp; | |
6523 | } | |
6524 | { | |
6525 | _arg2 = &temp0; | |
6526 | } | |
6527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6528 | return NULL; | |
6529 | if (_argo0) { | |
6530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6533 | return NULL; | |
6534 | } | |
6535 | } | |
6536 | { | |
6537 | wxPy_BEGIN_ALLOW_THREADS; | |
6538 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6539 | ||
6540 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6541 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
6542 | } Py_INCREF(Py_None); |
6543 | _resultobj = Py_None; | |
6544 | { | |
6545 | PyObject *o; | |
6546 | o = PyInt_FromLong((long) (*_arg1)); | |
6547 | _resultobj = t_output_helper(_resultobj, o); | |
6548 | } | |
6549 | { | |
6550 | PyObject *o; | |
6551 | o = PyInt_FromLong((long) (*_arg2)); | |
6552 | _resultobj = t_output_helper(_resultobj, o); | |
6553 | } | |
6554 | return _resultobj; | |
6555 | } | |
6556 | ||
9d8bd15f RD |
6557 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6558 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6559 | PyObject * _resultobj; | |
6560 | wxScrolledWindow * _arg0; | |
6561 | int _arg1; | |
6562 | int _arg2; | |
6563 | int * _arg3; | |
6564 | int temp; | |
6565 | int * _arg4; | |
6566 | int temp0; | |
6567 | PyObject * _argo0 = 0; | |
6568 | char *_kwnames[] = { "self","x","y", NULL }; | |
6569 | ||
6570 | self = self; | |
6571 | { | |
6572 | _arg3 = &temp; | |
6573 | } | |
6574 | { | |
6575 | _arg4 = &temp0; | |
6576 | } | |
6577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6578 | return NULL; | |
6579 | if (_argo0) { | |
6580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6583 | return NULL; | |
6584 | } | |
6585 | } | |
6586 | { | |
6587 | wxPy_BEGIN_ALLOW_THREADS; | |
6588 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6589 | ||
6590 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6591 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6592 | } Py_INCREF(Py_None); |
6593 | _resultobj = Py_None; | |
6594 | { | |
6595 | PyObject *o; | |
6596 | o = PyInt_FromLong((long) (*_arg3)); | |
6597 | _resultobj = t_output_helper(_resultobj, o); | |
6598 | } | |
6599 | { | |
6600 | PyObject *o; | |
6601 | o = PyInt_FromLong((long) (*_arg4)); | |
6602 | _resultobj = t_output_helper(_resultobj, o); | |
6603 | } | |
6604 | return _resultobj; | |
6605 | } | |
6606 | ||
6607 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6608 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6609 | PyObject * _resultobj; | |
6610 | wxScrolledWindow * _arg0; | |
6611 | int _arg1; | |
6612 | int _arg2; | |
6613 | int * _arg3; | |
6614 | int temp; | |
6615 | int * _arg4; | |
6616 | int temp0; | |
6617 | PyObject * _argo0 = 0; | |
6618 | char *_kwnames[] = { "self","x","y", NULL }; | |
6619 | ||
6620 | self = self; | |
6621 | { | |
6622 | _arg3 = &temp; | |
6623 | } | |
6624 | { | |
6625 | _arg4 = &temp0; | |
6626 | } | |
6627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6628 | return NULL; | |
6629 | if (_argo0) { | |
6630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6633 | return NULL; | |
6634 | } | |
6635 | } | |
6636 | { | |
6637 | wxPy_BEGIN_ALLOW_THREADS; | |
6638 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6639 | ||
6640 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6641 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6642 | } Py_INCREF(Py_None); |
6643 | _resultobj = Py_None; | |
6644 | { | |
6645 | PyObject *o; | |
6646 | o = PyInt_FromLong((long) (*_arg3)); | |
6647 | _resultobj = t_output_helper(_resultobj, o); | |
6648 | } | |
6649 | { | |
6650 | PyObject *o; | |
6651 | o = PyInt_FromLong((long) (*_arg4)); | |
6652 | _resultobj = t_output_helper(_resultobj, o); | |
6653 | } | |
6654 | return _resultobj; | |
6655 | } | |
6656 | ||
7a446686 RD |
6657 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
6658 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6659 | PyObject * _resultobj; | |
6660 | wxScrolledWindow * _arg0; | |
6661 | double _arg1; | |
6662 | double _arg2; | |
6663 | PyObject * _argo0 = 0; | |
6664 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
6665 | ||
6666 | self = self; | |
6667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6668 | return NULL; | |
6669 | if (_argo0) { | |
6670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
6673 | return NULL; | |
6674 | } | |
6675 | } | |
6676 | { | |
6677 | wxPy_BEGIN_ALLOW_THREADS; | |
6678 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); | |
6679 | ||
6680 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6681 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
6682 | } Py_INCREF(Py_None); |
6683 | _resultobj = Py_None; | |
6684 | return _resultobj; | |
6685 | } | |
6686 | ||
6687 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
6688 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6689 | PyObject * _resultobj; | |
6690 | double _result; | |
6691 | wxScrolledWindow * _arg0; | |
6692 | PyObject * _argo0 = 0; | |
6693 | char *_kwnames[] = { "self", NULL }; | |
6694 | ||
6695 | self = self; | |
6696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
6697 | return NULL; | |
6698 | if (_argo0) { | |
6699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
6702 | return NULL; | |
6703 | } | |
6704 | } | |
6705 | { | |
6706 | wxPy_BEGIN_ALLOW_THREADS; | |
6707 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); | |
6708 | ||
6709 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6710 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
6711 | } _resultobj = Py_BuildValue("d",_result); |
6712 | return _resultobj; | |
6713 | } | |
6714 | ||
6715 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
6716 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6717 | PyObject * _resultobj; | |
6718 | double _result; | |
6719 | wxScrolledWindow * _arg0; | |
6720 | PyObject * _argo0 = 0; | |
6721 | char *_kwnames[] = { "self", NULL }; | |
6722 | ||
6723 | self = self; | |
6724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
6725 | return NULL; | |
6726 | if (_argo0) { | |
6727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
6730 | return NULL; | |
6731 | } | |
6732 | } | |
6733 | { | |
6734 | wxPy_BEGIN_ALLOW_THREADS; | |
6735 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
6736 | ||
6737 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6738 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
6739 | } _resultobj = Py_BuildValue("d",_result); |
6740 | return _resultobj; | |
6741 | } | |
6742 | ||
6743 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
6744 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6745 | PyObject * _resultobj; | |
6746 | wxScrolledWindow * _arg0; | |
6747 | PyObject * _argo0 = 0; | |
6748 | char *_kwnames[] = { "self", NULL }; | |
6749 | ||
6750 | self = self; | |
6751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
6752 | return NULL; | |
6753 | if (_argo0) { | |
6754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
6757 | return NULL; | |
6758 | } | |
6759 | } | |
6760 | { | |
6761 | wxPy_BEGIN_ALLOW_THREADS; | |
6762 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
6763 | ||
6764 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6765 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
6766 | } Py_INCREF(Py_None); |
6767 | _resultobj = Py_None; | |
6768 | return _resultobj; | |
6769 | } | |
6770 | ||
8ab979d7 RD |
6771 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
6772 | wxMenu *src; | |
6773 | wxEvtHandler *dest; | |
6774 | src = (wxMenu *) ptr; | |
6775 | dest = (wxEvtHandler *) src; | |
6776 | return (void *) dest; | |
6777 | } | |
6778 | ||
9df61a29 RD |
6779 | static void *SwigwxMenuTowxObject(void *ptr) { |
6780 | wxMenu *src; | |
6781 | wxObject *dest; | |
6782 | src = (wxMenu *) ptr; | |
6783 | dest = (wxObject *) src; | |
6784 | return (void *) dest; | |
6785 | } | |
6786 | ||
8bf5d46e | 6787 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 6788 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6789 | PyObject * _resultobj; |
6790 | wxMenu * _result; | |
1d99702e RD |
6791 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
6792 | long _arg1 = (long ) 0; | |
8ab979d7 | 6793 | PyObject * _obj0 = 0; |
efc5f224 | 6794 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
6795 | char _ptemp[128]; |
6796 | ||
6797 | self = self; | |
efc5f224 | 6798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
6799 | return NULL; |
6800 | if (_obj0) | |
6801 | { | |
2cd2fac8 RD |
6802 | #if PYTHON_API_VERSION >= 1009 |
6803 | char* tmpPtr; int tmpSize; | |
6804 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 6805 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6806 | return NULL; |
6807 | } | |
6808 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6809 | return NULL; | |
6810 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6811 | #else | |
8ab979d7 RD |
6812 | if (!PyString_Check(_obj0)) { |
6813 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6814 | return NULL; | |
6815 | } | |
2cd2fac8 RD |
6816 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
6817 | #endif | |
8ab979d7 | 6818 | } |
cf694132 RD |
6819 | { |
6820 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 6821 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 RD |
6822 | |
6823 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6824 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6825 | } if (_result) { |
6826 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6827 | _resultobj = Py_BuildValue("s",_ptemp); | |
6828 | } else { | |
6829 | Py_INCREF(Py_None); | |
6830 | _resultobj = Py_None; | |
6831 | } | |
8ab979d7 RD |
6832 | { |
6833 | if (_obj0) | |
6834 | delete _arg0; | |
6835 | } | |
6836 | return _resultobj; | |
6837 | } | |
6838 | ||
6839 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6840 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6841 | PyObject * _resultobj; |
6842 | wxMenu * _arg0; | |
6843 | int _arg1; | |
6844 | wxString * _arg2; | |
1d99702e | 6845 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
9e689c06 | 6846 | int _arg4 = (int ) FALSE; |
1d99702e | 6847 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6848 | PyObject * _obj2 = 0; |
6849 | PyObject * _obj3 = 0; | |
efc5f224 | 6850 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
6851 | |
6852 | self = self; | |
9e689c06 | 6853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 6854 | return NULL; |
1d99702e RD |
6855 | if (_argo0) { |
6856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
6859 | return NULL; | |
6860 | } | |
6861 | } | |
6862 | { | |
2cd2fac8 RD |
6863 | #if PYTHON_API_VERSION >= 1009 |
6864 | char* tmpPtr; int tmpSize; | |
6865 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 6866 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6867 | return NULL; |
6868 | } | |
6869 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6870 | return NULL; | |
6871 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6872 | #else | |
8ab979d7 RD |
6873 | if (!PyString_Check(_obj2)) { |
6874 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6875 | return NULL; | |
6876 | } | |
2cd2fac8 RD |
6877 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6878 | #endif | |
8ab979d7 RD |
6879 | } |
6880 | if (_obj3) | |
6881 | { | |
2cd2fac8 RD |
6882 | #if PYTHON_API_VERSION >= 1009 |
6883 | char* tmpPtr; int tmpSize; | |
6884 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 6885 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6886 | return NULL; |
6887 | } | |
6888 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6889 | return NULL; | |
6890 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6891 | #else | |
8ab979d7 RD |
6892 | if (!PyString_Check(_obj3)) { |
6893 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6894 | return NULL; | |
6895 | } | |
2cd2fac8 RD |
6896 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6897 | #endif | |
8ab979d7 | 6898 | } |
cf694132 RD |
6899 | { |
6900 | wxPy_BEGIN_ALLOW_THREADS; | |
6901 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
6902 | ||
6903 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6904 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6905 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6906 | _resultobj = Py_None; |
6907 | { | |
6908 | if (_obj2) | |
6909 | delete _arg2; | |
6910 | } | |
6911 | { | |
6912 | if (_obj3) | |
6913 | delete _arg3; | |
6914 | } | |
6915 | return _resultobj; | |
6916 | } | |
6917 | ||
6918 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6919 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6920 | PyObject * _resultobj; |
6921 | wxMenu * _arg0; | |
6922 | int _arg1; | |
6923 | wxString * _arg2; | |
6924 | wxMenu * _arg3; | |
1d99702e RD |
6925 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
6926 | PyObject * _argo0 = 0; | |
8ab979d7 | 6927 | PyObject * _obj2 = 0; |
1d99702e | 6928 | PyObject * _argo3 = 0; |
8ab979d7 | 6929 | PyObject * _obj4 = 0; |
efc5f224 | 6930 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
6931 | |
6932 | self = self; | |
efc5f224 | 6933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 6934 | return NULL; |
1d99702e RD |
6935 | if (_argo0) { |
6936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6939 | return NULL; | |
6940 | } | |
6941 | } | |
6942 | { | |
2cd2fac8 RD |
6943 | #if PYTHON_API_VERSION >= 1009 |
6944 | char* tmpPtr; int tmpSize; | |
6945 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 6946 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6947 | return NULL; |
6948 | } | |
6949 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6950 | return NULL; | |
6951 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6952 | #else | |
8ab979d7 RD |
6953 | if (!PyString_Check(_obj2)) { |
6954 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6955 | return NULL; | |
6956 | } | |
2cd2fac8 RD |
6957 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6958 | #endif | |
8ab979d7 | 6959 | } |
1d99702e RD |
6960 | if (_argo3) { |
6961 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6962 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
6963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6964 | return NULL; | |
6965 | } | |
6966 | } | |
6967 | if (_obj4) | |
6968 | { | |
2cd2fac8 RD |
6969 | #if PYTHON_API_VERSION >= 1009 |
6970 | char* tmpPtr; int tmpSize; | |
6971 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
7a446686 | 6972 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6973 | return NULL; |
6974 | } | |
6975 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
6976 | return NULL; | |
6977 | _arg4 = new wxString(tmpPtr, tmpSize); | |
6978 | #else | |
8ab979d7 RD |
6979 | if (!PyString_Check(_obj4)) { |
6980 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6981 | return NULL; | |
6982 | } | |
2cd2fac8 RD |
6983 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
6984 | #endif | |
8ab979d7 | 6985 | } |
cf694132 RD |
6986 | { |
6987 | wxPy_BEGIN_ALLOW_THREADS; | |
6988 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
6989 | ||
6990 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6991 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6992 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6993 | _resultobj = Py_None; |
6994 | { | |
6995 | if (_obj2) | |
6996 | delete _arg2; | |
6997 | } | |
6998 | { | |
6999 | if (_obj4) | |
7000 | delete _arg4; | |
7001 | } | |
7002 | return _resultobj; | |
7003 | } | |
7004 | ||
af309447 | 7005 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 7006 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
7007 | PyObject * _resultobj; |
7008 | wxMenu * _arg0; | |
7009 | wxMenuItem * _arg1; | |
1d99702e RD |
7010 | PyObject * _argo0 = 0; |
7011 | PyObject * _argo1 = 0; | |
efc5f224 | 7012 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
7013 | |
7014 | self = self; | |
efc5f224 | 7015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 7016 | return NULL; |
1d99702e RD |
7017 | if (_argo0) { |
7018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
7020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
7021 | return NULL; | |
7022 | } | |
7023 | } | |
1d99702e RD |
7024 | if (_argo1) { |
7025 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7026 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
7027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
7028 | return NULL; | |
7029 | } | |
7030 | } | |
cf694132 RD |
7031 | { |
7032 | wxPy_BEGIN_ALLOW_THREADS; | |
7033 | wxMenu_AppendItem(_arg0,_arg1); | |
7034 | ||
7035 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7036 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7037 | } Py_INCREF(Py_None); |
af309447 RD |
7038 | _resultobj = Py_None; |
7039 | return _resultobj; | |
7040 | } | |
7041 | ||
8ab979d7 | 7042 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 7043 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7044 | PyObject * _resultobj; |
7045 | wxMenu * _arg0; | |
1d99702e | 7046 | PyObject * _argo0 = 0; |
efc5f224 | 7047 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7048 | |
7049 | self = self; | |
efc5f224 | 7050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 7051 | return NULL; |
1d99702e RD |
7052 | if (_argo0) { |
7053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
7056 | return NULL; | |
7057 | } | |
7058 | } | |
cf694132 RD |
7059 | { |
7060 | wxPy_BEGIN_ALLOW_THREADS; | |
7061 | wxMenu_AppendSeparator(_arg0); | |
7062 | ||
7063 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7064 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7065 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7066 | _resultobj = Py_None; |
7067 | return _resultobj; | |
7068 | } | |
7069 | ||
7070 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 7071 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7072 | PyObject * _resultobj; |
7073 | wxMenu * _arg0; | |
1d99702e | 7074 | PyObject * _argo0 = 0; |
efc5f224 | 7075 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7076 | |
7077 | self = self; | |
efc5f224 | 7078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 7079 | return NULL; |
1d99702e RD |
7080 | if (_argo0) { |
7081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
7084 | return NULL; | |
7085 | } | |
7086 | } | |
cf694132 RD |
7087 | { |
7088 | wxPy_BEGIN_ALLOW_THREADS; | |
7089 | wxMenu_Break(_arg0); | |
7090 | ||
7091 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7092 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7093 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7094 | _resultobj = Py_None; |
7095 | return _resultobj; | |
7096 | } | |
7097 | ||
7098 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 7099 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7100 | PyObject * _resultobj; |
7101 | wxMenu * _arg0; | |
7102 | int _arg1; | |
7103 | bool _arg2; | |
1d99702e | 7104 | PyObject * _argo0 = 0; |
8ab979d7 | 7105 | int tempbool2; |
efc5f224 | 7106 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
7107 | |
7108 | self = self; | |
efc5f224 | 7109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7110 | return NULL; |
1d99702e RD |
7111 | if (_argo0) { |
7112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
7115 | return NULL; | |
7116 | } | |
7117 | } | |
7118 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7119 | { |
7120 | wxPy_BEGIN_ALLOW_THREADS; | |
7121 | wxMenu_Check(_arg0,_arg1,_arg2); | |
7122 | ||
7123 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7124 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7125 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7126 | _resultobj = Py_None; |
7127 | return _resultobj; | |
7128 | } | |
7129 | ||
b1462dfa RD |
7130 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
7131 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7132 | PyObject * _resultobj; | |
7133 | bool _result; | |
7134 | wxMenu * _arg0; | |
7135 | int _arg1; | |
7136 | PyObject * _argo0 = 0; | |
7137 | char *_kwnames[] = { "self","id", NULL }; | |
7138 | ||
7139 | self = self; | |
7140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7141 | return NULL; | |
7142 | if (_argo0) { | |
7143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7146 | return NULL; | |
7147 | } | |
7148 | } | |
7149 | { | |
7150 | wxPy_BEGIN_ALLOW_THREADS; | |
7151 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
7152 | ||
7153 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7154 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7155 | } _resultobj = Py_BuildValue("i",_result); |
7156 | return _resultobj; | |
7157 | } | |
7158 | ||
8ab979d7 | 7159 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 7160 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7161 | PyObject * _resultobj; |
7162 | wxMenu * _arg0; | |
7163 | int _arg1; | |
7164 | bool _arg2; | |
1d99702e | 7165 | PyObject * _argo0 = 0; |
8ab979d7 | 7166 | int tempbool2; |
efc5f224 | 7167 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
7168 | |
7169 | self = self; | |
efc5f224 | 7170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7171 | return NULL; |
1d99702e RD |
7172 | if (_argo0) { |
7173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
7176 | return NULL; | |
7177 | } | |
7178 | } | |
7179 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7180 | { |
7181 | wxPy_BEGIN_ALLOW_THREADS; | |
7182 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
7183 | ||
7184 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7185 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7186 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7187 | _resultobj = Py_None; |
7188 | return _resultobj; | |
7189 | } | |
7190 | ||
b1462dfa RD |
7191 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
7192 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7193 | PyObject * _resultobj; | |
7194 | bool _result; | |
7195 | wxMenu * _arg0; | |
7196 | int _arg1; | |
7197 | PyObject * _argo0 = 0; | |
7198 | char *_kwnames[] = { "self","id", NULL }; | |
7199 | ||
7200 | self = self; | |
7201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7202 | return NULL; | |
7203 | if (_argo0) { | |
7204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7207 | return NULL; | |
7208 | } | |
7209 | } | |
7210 | { | |
7211 | wxPy_BEGIN_ALLOW_THREADS; | |
7212 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
7213 | ||
7214 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7215 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7216 | } _resultobj = Py_BuildValue("i",_result); |
7217 | return _resultobj; | |
7218 | } | |
7219 | ||
8ab979d7 | 7220 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 7221 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7222 | PyObject * _resultobj; |
7223 | int _result; | |
7224 | wxMenu * _arg0; | |
7225 | wxString * _arg1; | |
1d99702e | 7226 | PyObject * _argo0 = 0; |
8ab979d7 | 7227 | PyObject * _obj1 = 0; |
efc5f224 | 7228 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
7229 | |
7230 | self = self; | |
efc5f224 | 7231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7232 | return NULL; |
1d99702e RD |
7233 | if (_argo0) { |
7234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
7237 | return NULL; | |
7238 | } | |
7239 | } | |
7240 | { | |
2cd2fac8 RD |
7241 | #if PYTHON_API_VERSION >= 1009 |
7242 | char* tmpPtr; int tmpSize; | |
7243 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7244 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7245 | return NULL; |
7246 | } | |
7247 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7248 | return NULL; | |
7249 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7250 | #else | |
8ab979d7 RD |
7251 | if (!PyString_Check(_obj1)) { |
7252 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7253 | return NULL; | |
7254 | } | |
2cd2fac8 RD |
7255 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7256 | #endif | |
8ab979d7 | 7257 | } |
cf694132 RD |
7258 | { |
7259 | wxPy_BEGIN_ALLOW_THREADS; | |
7260 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
7261 | ||
7262 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7263 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7264 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7265 | { |
7266 | if (_obj1) | |
7267 | delete _arg1; | |
7268 | } | |
7269 | return _resultobj; | |
7270 | } | |
7271 | ||
b1462dfa RD |
7272 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
7273 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7274 | PyObject * _resultobj; | |
7275 | wxMenuItem * _result; | |
7276 | wxMenu * _arg0; | |
7277 | int _arg1; | |
7278 | PyObject * _argo0 = 0; | |
7279 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
7280 | |
7281 | self = self; | |
7282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7283 | return NULL; | |
7284 | if (_argo0) { | |
7285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7288 | return NULL; | |
7289 | } | |
7290 | } | |
7291 | { | |
7292 | wxPy_BEGIN_ALLOW_THREADS; | |
7293 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
7294 | ||
7295 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7296 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7297 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
7298 | return _resultobj; |
7299 | } | |
7300 | ||
8ab979d7 | 7301 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 7302 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7303 | PyObject * _resultobj; |
7304 | wxString * _result; | |
7305 | wxMenu * _arg0; | |
1d99702e | 7306 | PyObject * _argo0 = 0; |
efc5f224 | 7307 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7308 | |
7309 | self = self; | |
efc5f224 | 7310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 7311 | return NULL; |
1d99702e RD |
7312 | if (_argo0) { |
7313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
7316 | return NULL; | |
7317 | } | |
7318 | } | |
8ab979d7 | 7319 | { |
cf694132 RD |
7320 | wxPy_BEGIN_ALLOW_THREADS; |
7321 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
7322 | ||
7323 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7324 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7325 | }{ |
eec92d76 | 7326 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7327 | } |
7328 | { | |
7329 | delete _result; | |
7330 | } | |
7331 | return _resultobj; | |
7332 | } | |
7333 | ||
7334 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7335 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7336 | PyObject * _resultobj; |
7337 | wxMenu * _arg0; | |
7338 | wxString * _arg1; | |
1d99702e | 7339 | PyObject * _argo0 = 0; |
8ab979d7 | 7340 | PyObject * _obj1 = 0; |
efc5f224 | 7341 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7342 | |
7343 | self = self; | |
efc5f224 | 7344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7345 | return NULL; |
1d99702e RD |
7346 | if (_argo0) { |
7347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7350 | return NULL; | |
7351 | } | |
7352 | } | |
7353 | { | |
2cd2fac8 RD |
7354 | #if PYTHON_API_VERSION >= 1009 |
7355 | char* tmpPtr; int tmpSize; | |
7356 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7357 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7358 | return NULL; |
7359 | } | |
7360 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7361 | return NULL; | |
7362 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7363 | #else | |
8ab979d7 RD |
7364 | if (!PyString_Check(_obj1)) { |
7365 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7366 | return NULL; | |
7367 | } | |
2cd2fac8 RD |
7368 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7369 | #endif | |
8ab979d7 | 7370 | } |
cf694132 RD |
7371 | { |
7372 | wxPy_BEGIN_ALLOW_THREADS; | |
7373 | wxMenu_SetTitle(_arg0,*_arg1); | |
7374 | ||
7375 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7376 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7377 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7378 | _resultobj = Py_None; |
7379 | { | |
7380 | if (_obj1) | |
7381 | delete _arg1; | |
7382 | } | |
7383 | return _resultobj; | |
7384 | } | |
7385 | ||
b1462dfa RD |
7386 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7387 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7388 | PyObject * _resultobj; |
b1462dfa | 7389 | wxString * _result; |
8ab979d7 RD |
7390 | wxMenu * _arg0; |
7391 | int _arg1; | |
1d99702e | 7392 | PyObject * _argo0 = 0; |
efc5f224 | 7393 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7394 | |
7395 | self = self; | |
b1462dfa | 7396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7397 | return NULL; |
1d99702e RD |
7398 | if (_argo0) { |
7399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7402 | return NULL; |
7403 | } | |
7404 | } | |
cf694132 RD |
7405 | { |
7406 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7407 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 RD |
7408 | |
7409 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7410 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7411 | }{ |
eec92d76 | 7412 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7413 | } |
7414 | { | |
7415 | delete _result; | |
7416 | } | |
8ab979d7 RD |
7417 | return _resultobj; |
7418 | } | |
7419 | ||
b1462dfa RD |
7420 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7421 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7422 | PyObject * _resultobj; |
8ab979d7 RD |
7423 | wxMenu * _arg0; |
7424 | int _arg1; | |
b1462dfa | 7425 | wxString * _arg2; |
1d99702e | 7426 | PyObject * _argo0 = 0; |
b1462dfa RD |
7427 | PyObject * _obj2 = 0; |
7428 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7429 | |
7430 | self = self; | |
b1462dfa | 7431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7432 | return NULL; |
1d99702e RD |
7433 | if (_argo0) { |
7434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7437 | return NULL; |
7438 | } | |
7439 | } | |
b1462dfa | 7440 | { |
2cd2fac8 RD |
7441 | #if PYTHON_API_VERSION >= 1009 |
7442 | char* tmpPtr; int tmpSize; | |
7443 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7444 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7445 | return NULL; |
7446 | } | |
7447 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7448 | return NULL; | |
7449 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7450 | #else | |
b1462dfa RD |
7451 | if (!PyString_Check(_obj2)) { |
7452 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7453 | return NULL; | |
7454 | } | |
2cd2fac8 RD |
7455 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7456 | #endif | |
b1462dfa | 7457 | } |
8ab979d7 | 7458 | { |
cf694132 | 7459 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7460 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
7461 | |
7462 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7463 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7464 | } Py_INCREF(Py_None); |
7465 | _resultobj = Py_None; | |
8ab979d7 | 7466 | { |
b1462dfa RD |
7467 | if (_obj2) |
7468 | delete _arg2; | |
8ab979d7 RD |
7469 | } |
7470 | return _resultobj; | |
7471 | } | |
7472 | ||
b1462dfa RD |
7473 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7474 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7475 | PyObject * _resultobj; |
7476 | wxString * _result; | |
7477 | wxMenu * _arg0; | |
7478 | int _arg1; | |
1d99702e | 7479 | PyObject * _argo0 = 0; |
efc5f224 | 7480 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7481 | |
7482 | self = self; | |
b1462dfa | 7483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7484 | return NULL; |
1d99702e RD |
7485 | if (_argo0) { |
7486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7489 | return NULL; |
7490 | } | |
7491 | } | |
8ab979d7 | 7492 | { |
cf694132 | 7493 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7494 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
7495 | |
7496 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7497 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7498 | }{ |
eec92d76 | 7499 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7500 | } |
7501 | { | |
7502 | delete _result; | |
7503 | } | |
7504 | return _resultobj; | |
7505 | } | |
7506 | ||
7507 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7508 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7509 | PyObject * _resultobj; |
7510 | wxMenu * _arg0; | |
7511 | int _arg1; | |
7512 | wxString * _arg2; | |
1d99702e | 7513 | PyObject * _argo0 = 0; |
8ab979d7 | 7514 | PyObject * _obj2 = 0; |
efc5f224 | 7515 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7516 | |
7517 | self = self; | |
efc5f224 | 7518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7519 | return NULL; |
1d99702e RD |
7520 | if (_argo0) { |
7521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7524 | return NULL; | |
7525 | } | |
7526 | } | |
7527 | { | |
2cd2fac8 RD |
7528 | #if PYTHON_API_VERSION >= 1009 |
7529 | char* tmpPtr; int tmpSize; | |
7530 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7531 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7532 | return NULL; |
7533 | } | |
7534 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7535 | return NULL; | |
7536 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7537 | #else | |
8ab979d7 RD |
7538 | if (!PyString_Check(_obj2)) { |
7539 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7540 | return NULL; | |
7541 | } | |
2cd2fac8 RD |
7542 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7543 | #endif | |
8ab979d7 | 7544 | } |
cf694132 RD |
7545 | { |
7546 | wxPy_BEGIN_ALLOW_THREADS; | |
7547 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
7548 | ||
7549 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7550 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7551 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7552 | _resultobj = Py_None; |
7553 | { | |
7554 | if (_obj2) | |
7555 | delete _arg2; | |
7556 | } | |
7557 | return _resultobj; | |
7558 | } | |
7559 | ||
b1462dfa RD |
7560 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7561 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7562 | PyObject * _resultobj; |
8ab979d7 | 7563 | wxMenu * _arg0; |
b1462dfa | 7564 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7565 | PyObject * _argo0 = 0; |
b1462dfa RD |
7566 | PyObject * _argo1 = 0; |
7567 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7568 | |
7569 | self = self; | |
b1462dfa | 7570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7571 | return NULL; |
1d99702e RD |
7572 | if (_argo0) { |
7573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
7575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7576 | return NULL; | |
7577 | } | |
7578 | } | |
7579 | if (_argo1) { | |
7580 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7581 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7583 | return NULL; |
7584 | } | |
7585 | } | |
cf694132 RD |
7586 | { |
7587 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7588 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 RD |
7589 | |
7590 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7591 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7592 | } Py_INCREF(Py_None); |
7593 | _resultobj = Py_None; | |
8ab979d7 RD |
7594 | return _resultobj; |
7595 | } | |
7596 | ||
b1462dfa RD |
7597 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7598 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7599 | PyObject * _resultobj; |
7600 | bool _result; | |
7601 | wxMenu * _arg0; | |
7602 | int _arg1; | |
1d99702e | 7603 | PyObject * _argo0 = 0; |
efc5f224 | 7604 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7605 | |
7606 | self = self; | |
b1462dfa | 7607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7608 | return NULL; |
1d99702e RD |
7609 | if (_argo0) { |
7610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
7613 | return NULL; |
7614 | } | |
7615 | } | |
cf694132 RD |
7616 | { |
7617 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7618 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 RD |
7619 | |
7620 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7621 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7622 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7623 | return _resultobj; |
7624 | } | |
7625 | ||
b1462dfa RD |
7626 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7627 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7628 | PyObject * _resultobj; |
b1462dfa | 7629 | bool _result; |
8ab979d7 | 7630 | wxMenu * _arg0; |
b1462dfa | 7631 | wxMenuItem * _arg1; |
1d99702e | 7632 | PyObject * _argo0 = 0; |
b1462dfa RD |
7633 | PyObject * _argo1 = 0; |
7634 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7635 | |
7636 | self = self; | |
b1462dfa | 7637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7638 | return NULL; |
1d99702e RD |
7639 | if (_argo0) { |
7640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7643 | return NULL; |
7644 | } | |
7645 | } | |
b1462dfa RD |
7646 | if (_argo1) { |
7647 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7648 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7650 | return NULL; |
b1462dfa | 7651 | } |
8ab979d7 | 7652 | } |
cf694132 RD |
7653 | { |
7654 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7655 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 RD |
7656 | |
7657 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7658 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7659 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7660 | return _resultobj; |
7661 | } | |
7662 | ||
b1462dfa RD |
7663 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7664 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7665 | PyObject * _resultobj; |
b1462dfa | 7666 | bool _result; |
8bf5d46e | 7667 | wxMenu * _arg0; |
b1462dfa RD |
7668 | size_t _arg1; |
7669 | wxMenuItem * _arg2; | |
1d99702e | 7670 | PyObject * _argo0 = 0; |
b1462dfa RD |
7671 | PyObject * _argo2 = 0; |
7672 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7673 | |
7674 | self = self; | |
b1462dfa | 7675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7676 | return NULL; |
1d99702e RD |
7677 | if (_argo0) { |
7678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7681 | return NULL; |
7682 | } | |
7683 | } | |
b1462dfa RD |
7684 | if (_argo2) { |
7685 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7686 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7688 | return NULL; |
7689 | } | |
7690 | } | |
cf694132 RD |
7691 | { |
7692 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7693 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 RD |
7694 | |
7695 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7696 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7697 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7698 | return _resultobj; |
7699 | } | |
7700 | ||
b1462dfa RD |
7701 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7702 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7703 | PyObject * _resultobj; |
b1462dfa | 7704 | wxMenuItem * _result; |
efc5f224 | 7705 | wxMenu * _arg0; |
b1462dfa | 7706 | int _arg1; |
efc5f224 | 7707 | PyObject * _argo0 = 0; |
b1462dfa | 7708 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
7709 | |
7710 | self = self; | |
b1462dfa | 7711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7712 | return NULL; |
7713 | if (_argo0) { | |
7714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7717 | return NULL; |
7718 | } | |
7719 | } | |
7720 | { | |
7721 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7722 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 RD |
7723 | |
7724 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7725 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7726 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
7727 | return _resultobj; |
7728 | } | |
7729 | ||
b1462dfa RD |
7730 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7731 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7732 | PyObject * _resultobj; |
b1462dfa RD |
7733 | wxMenuItem * _result; |
7734 | wxMenu * _arg0; | |
7735 | wxMenuItem * _arg1; | |
7736 | PyObject * _argo0 = 0; | |
7737 | PyObject * _argo1 = 0; | |
7738 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7739 | |
7740 | self = self; | |
b1462dfa RD |
7741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7742 | return NULL; | |
7743 | if (_argo0) { | |
7744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7747 | return NULL; | |
7748 | } | |
7749 | } | |
7750 | if (_argo1) { | |
7751 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7752 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7754 | return NULL; |
b1462dfa RD |
7755 | } |
7756 | } | |
cf694132 RD |
7757 | { |
7758 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7759 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 RD |
7760 | |
7761 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7762 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7763 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7764 | return _resultobj; |
7765 | } | |
7766 | ||
eb715945 | 7767 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7768 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7769 | PyObject * _resultobj; |
b1462dfa | 7770 | wxMenu * _arg0; |
1d99702e | 7771 | PyObject * _argo0 = 0; |
b1462dfa | 7772 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7773 | |
7774 | self = self; | |
b1462dfa | 7775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7776 | return NULL; |
1d99702e RD |
7777 | if (_argo0) { |
7778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7781 | return NULL; |
7782 | } | |
7783 | } | |
cf694132 RD |
7784 | { |
7785 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7786 | wxMenu_Destroy(_arg0); |
cf694132 RD |
7787 | |
7788 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7789 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7790 | } Py_INCREF(Py_None); |
8ab979d7 | 7791 | _resultobj = Py_None; |
8ab979d7 RD |
7792 | return _resultobj; |
7793 | } | |
7794 | ||
b1462dfa RD |
7795 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7796 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7797 | PyObject * _resultobj; |
b1462dfa RD |
7798 | bool _result; |
7799 | wxMenu * _arg0; | |
8ab979d7 | 7800 | int _arg1; |
1d99702e | 7801 | PyObject * _argo0 = 0; |
b1462dfa | 7802 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7803 | |
7804 | self = self; | |
b1462dfa | 7805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7806 | return NULL; |
1d99702e RD |
7807 | if (_argo0) { |
7808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
7811 | return NULL; |
7812 | } | |
7813 | } | |
cf694132 RD |
7814 | { |
7815 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7816 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 RD |
7817 | |
7818 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7819 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7820 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7821 | return _resultobj; |
7822 | } | |
7823 | ||
b1462dfa RD |
7824 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7825 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7826 | PyObject * _resultobj; |
b1462dfa RD |
7827 | bool _result; |
7828 | wxMenu * _arg0; | |
7829 | wxMenuItem * _arg1; | |
1d99702e | 7830 | PyObject * _argo0 = 0; |
b1462dfa RD |
7831 | PyObject * _argo1 = 0; |
7832 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7833 | |
7834 | self = self; | |
b1462dfa | 7835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7836 | return NULL; |
1d99702e RD |
7837 | if (_argo0) { |
7838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7841 | return NULL; | |
7842 | } | |
7843 | } | |
7844 | if (_argo1) { | |
7845 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7846 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7848 | return NULL; |
7849 | } | |
7850 | } | |
cf694132 RD |
7851 | { |
7852 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7853 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 RD |
7854 | |
7855 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7856 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7857 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7858 | return _resultobj; |
7859 | } | |
7860 | ||
b1462dfa RD |
7861 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
7862 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7863 | PyObject * _resultobj; |
b1462dfa RD |
7864 | size_t _result; |
7865 | wxMenu * _arg0; | |
1d99702e | 7866 | PyObject * _argo0 = 0; |
b1462dfa | 7867 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7868 | |
7869 | self = self; | |
b1462dfa | 7870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 7871 | return NULL; |
1d99702e RD |
7872 | if (_argo0) { |
7873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
7876 | return NULL; |
7877 | } | |
7878 | } | |
cf694132 RD |
7879 | { |
7880 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7881 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 RD |
7882 | |
7883 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7884 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 7885 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7886 | return _resultobj; |
7887 | } | |
7888 | ||
b1462dfa RD |
7889 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
7890 | wxMenuItemList& list = self->GetMenuItems(); | |
7891 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
7892 | } | |
7893 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7894 | PyObject * _resultobj; |
b1462dfa RD |
7895 | PyObject * _result; |
7896 | wxMenu * _arg0; | |
1d99702e | 7897 | PyObject * _argo0 = 0; |
b1462dfa | 7898 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7899 | |
7900 | self = self; | |
b1462dfa | 7901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 7902 | return NULL; |
1d99702e RD |
7903 | if (_argo0) { |
7904 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7905 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
7907 | return NULL; |
7908 | } | |
7909 | } | |
cf694132 RD |
7910 | { |
7911 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7912 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 RD |
7913 | |
7914 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7915 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7916 | }{ |
7917 | _resultobj = _result; | |
7918 | } | |
8ab979d7 RD |
7919 | return _resultobj; |
7920 | } | |
7921 | ||
b1462dfa RD |
7922 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
7923 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7924 | PyObject * _resultobj; |
b1462dfa RD |
7925 | wxMenu * _arg0; |
7926 | wxEvtHandler * _arg1; | |
1d99702e | 7927 | PyObject * _argo0 = 0; |
b1462dfa RD |
7928 | PyObject * _argo1 = 0; |
7929 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
7930 | |
7931 | self = self; | |
b1462dfa | 7932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7933 | return NULL; |
1d99702e RD |
7934 | if (_argo0) { |
7935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7938 | return NULL; |
7939 | } | |
7940 | } | |
b1462dfa RD |
7941 | if (_argo1) { |
7942 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7943 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 7945 | return NULL; |
b1462dfa | 7946 | } |
8ab979d7 | 7947 | } |
cf694132 RD |
7948 | { |
7949 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7950 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 RD |
7951 | |
7952 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7953 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7954 | } Py_INCREF(Py_None); |
7955 | _resultobj = Py_None; | |
8ab979d7 RD |
7956 | return _resultobj; |
7957 | } | |
7958 | ||
b1462dfa RD |
7959 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
7960 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7961 | PyObject * _resultobj; |
b1462dfa RD |
7962 | wxEvtHandler * _result; |
7963 | wxMenu * _arg0; | |
1d99702e | 7964 | PyObject * _argo0 = 0; |
b1462dfa | 7965 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7966 | |
7967 | self = self; | |
b1462dfa | 7968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 7969 | return NULL; |
1d99702e RD |
7970 | if (_argo0) { |
7971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7974 | return NULL; |
7975 | } | |
7976 | } | |
cf694132 RD |
7977 | { |
7978 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7979 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 RD |
7980 | |
7981 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7982 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7983 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7984 | return _resultobj; |
7985 | } | |
7986 | ||
b1462dfa RD |
7987 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
7988 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 7989 | PyObject * _resultobj; |
b1462dfa RD |
7990 | wxMenu * _arg0; |
7991 | wxWindow * _arg1; | |
2f90df85 | 7992 | PyObject * _argo0 = 0; |
b1462dfa RD |
7993 | PyObject * _argo1 = 0; |
7994 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
7995 | |
7996 | self = self; | |
b1462dfa | 7997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
7998 | return NULL; |
7999 | if (_argo0) { | |
8000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
8003 | return NULL; |
8004 | } | |
8005 | } | |
b1462dfa RD |
8006 | if (_argo1) { |
8007 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8008 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 8010 | return NULL; |
b1462dfa | 8011 | } |
2f90df85 | 8012 | } |
2f90df85 RD |
8013 | { |
8014 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8015 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 RD |
8016 | |
8017 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8018 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
8019 | } Py_INCREF(Py_None); |
8020 | _resultobj = Py_None; | |
2f90df85 RD |
8021 | return _resultobj; |
8022 | } | |
8023 | ||
b1462dfa RD |
8024 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
8025 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8026 | PyObject * _resultobj; |
b1462dfa RD |
8027 | wxWindow * _result; |
8028 | wxMenu * _arg0; | |
1d99702e | 8029 | PyObject * _argo0 = 0; |
b1462dfa | 8030 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8031 | |
8032 | self = self; | |
b1462dfa | 8033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 8034 | return NULL; |
1d99702e RD |
8035 | if (_argo0) { |
8036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
8039 | return NULL; |
8040 | } | |
8041 | } | |
cf694132 RD |
8042 | { |
8043 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8044 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 RD |
8045 | |
8046 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8047 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8048 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8049 | return _resultobj; |
8050 | } | |
8051 | ||
b1462dfa RD |
8052 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
8053 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8054 | PyObject * _resultobj; |
b1462dfa RD |
8055 | long _result; |
8056 | wxMenu * _arg0; | |
1d99702e | 8057 | PyObject * _argo0 = 0; |
b1462dfa | 8058 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8059 | |
8060 | self = self; | |
b1462dfa | 8061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 8062 | return NULL; |
1d99702e RD |
8063 | if (_argo0) { |
8064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
8067 | return NULL; |
8068 | } | |
8069 | } | |
8ab979d7 | 8070 | { |
cf694132 | 8071 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8072 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 RD |
8073 | |
8074 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8075 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8076 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8077 | return _resultobj; |
8078 | } | |
8079 | ||
b1462dfa RD |
8080 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
8081 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8082 | PyObject * _resultobj; |
b1462dfa RD |
8083 | bool _result; |
8084 | wxMenu * _arg0; | |
1d99702e | 8085 | PyObject * _argo0 = 0; |
b1462dfa | 8086 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8087 | |
8088 | self = self; | |
b1462dfa | 8089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 8090 | return NULL; |
1d99702e RD |
8091 | if (_argo0) { |
8092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
8095 | return NULL; |
8096 | } | |
8097 | } | |
8ab979d7 | 8098 | { |
cf694132 | 8099 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8100 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 RD |
8101 | |
8102 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8103 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8104 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8105 | return _resultobj; |
8106 | } | |
8107 | ||
b1462dfa RD |
8108 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
8109 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8110 | PyObject * _resultobj; |
b1462dfa RD |
8111 | wxMenu * _arg0; |
8112 | wxMenu * _arg1; | |
1d99702e | 8113 | PyObject * _argo0 = 0; |
b1462dfa RD |
8114 | PyObject * _argo1 = 0; |
8115 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
8116 | |
8117 | self = self; | |
b1462dfa | 8118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8119 | return NULL; |
1d99702e RD |
8120 | if (_argo0) { |
8121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8124 | return NULL; |
8125 | } | |
8126 | } | |
b1462dfa RD |
8127 | if (_argo1) { |
8128 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8129 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 8131 | return NULL; |
b1462dfa | 8132 | } |
8ab979d7 | 8133 | } |
cf694132 RD |
8134 | { |
8135 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8136 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 RD |
8137 | |
8138 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8139 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8140 | } Py_INCREF(Py_None); |
8ab979d7 | 8141 | _resultobj = Py_None; |
8ab979d7 RD |
8142 | return _resultobj; |
8143 | } | |
8144 | ||
b1462dfa RD |
8145 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
8146 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8147 | PyObject * _resultobj; |
b1462dfa RD |
8148 | wxMenu * _result; |
8149 | wxMenu * _arg0; | |
1d99702e | 8150 | PyObject * _argo0 = 0; |
b1462dfa | 8151 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8152 | |
8153 | self = self; | |
b1462dfa | 8154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 8155 | return NULL; |
1d99702e RD |
8156 | if (_argo0) { |
8157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8160 | return NULL; |
8161 | } | |
8162 | } | |
8ab979d7 | 8163 | { |
cf694132 | 8164 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8165 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 RD |
8166 | |
8167 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8168 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8169 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8170 | return _resultobj; |
8ab979d7 | 8171 | } |
b1462dfa RD |
8172 | |
8173 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8174 | wxMenuBar *src; | |
8175 | wxWindow *dest; | |
8176 | src = (wxMenuBar *) ptr; | |
8177 | dest = (wxWindow *) src; | |
8178 | return (void *) dest; | |
8179 | } | |
8180 | ||
8181 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8182 | wxMenuBar *src; | |
8183 | wxEvtHandler *dest; | |
8184 | src = (wxMenuBar *) ptr; | |
8185 | dest = (wxEvtHandler *) src; | |
8186 | return (void *) dest; | |
8ab979d7 | 8187 | } |
b1462dfa | 8188 | |
9df61a29 RD |
8189 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
8190 | wxMenuBar *src; | |
8191 | wxObject *dest; | |
8192 | src = (wxMenuBar *) ptr; | |
8193 | dest = (wxObject *) src; | |
8194 | return (void *) dest; | |
8195 | } | |
8196 | ||
c368d904 | 8197 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
8198 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8199 | PyObject * _resultobj; | |
8200 | wxMenuBar * _result; | |
c368d904 RD |
8201 | long _arg0 = (long ) 0; |
8202 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
8203 | char _ptemp[128]; |
8204 | ||
8205 | self = self; | |
c368d904 | 8206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
8207 | return NULL; |
8208 | { | |
8209 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 8210 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa RD |
8211 | |
8212 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8213 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8214 | } if (_result) { |
8215 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8216 | _resultobj = Py_BuildValue("s",_ptemp); | |
8217 | } else { | |
8218 | Py_INCREF(Py_None); | |
8219 | _resultobj = Py_None; | |
8220 | } | |
8ab979d7 RD |
8221 | return _resultobj; |
8222 | } | |
8223 | ||
b1462dfa RD |
8224 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
8225 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8226 | PyObject * _resultobj; |
b1462dfa | 8227 | bool _result; |
8ab979d7 | 8228 | wxMenuBar * _arg0; |
b1462dfa | 8229 | wxMenu * _arg1; |
8ab979d7 | 8230 | wxString * _arg2; |
1d99702e | 8231 | PyObject * _argo0 = 0; |
b1462dfa | 8232 | PyObject * _argo1 = 0; |
8ab979d7 | 8233 | PyObject * _obj2 = 0; |
b1462dfa | 8234 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
8235 | |
8236 | self = self; | |
b1462dfa | 8237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8238 | return NULL; |
1d99702e RD |
8239 | if (_argo0) { |
8240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
8243 | return NULL; | |
8244 | } | |
8245 | } | |
8246 | if (_argo1) { | |
8247 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8248 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
8250 | return NULL; |
8251 | } | |
8252 | } | |
8253 | { | |
2cd2fac8 RD |
8254 | #if PYTHON_API_VERSION >= 1009 |
8255 | char* tmpPtr; int tmpSize; | |
8256 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8257 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8258 | return NULL; |
8259 | } | |
8260 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8261 | return NULL; | |
8262 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8263 | #else | |
8ab979d7 RD |
8264 | if (!PyString_Check(_obj2)) { |
8265 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8266 | return NULL; | |
8267 | } | |
2cd2fac8 RD |
8268 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8269 | #endif | |
8ab979d7 | 8270 | } |
cf694132 RD |
8271 | { |
8272 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8273 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 RD |
8274 | |
8275 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8276 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8277 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8278 | { |
8279 | if (_obj2) | |
8280 | delete _arg2; | |
8281 | } | |
8282 | return _resultobj; | |
8283 | } | |
8284 | ||
b1462dfa RD |
8285 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
8286 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8287 | PyObject * _resultobj; |
b1462dfa | 8288 | bool _result; |
8ab979d7 | 8289 | wxMenuBar * _arg0; |
b1462dfa RD |
8290 | size_t _arg1; |
8291 | wxMenu * _arg2; | |
8292 | wxString * _arg3; | |
1d99702e | 8293 | PyObject * _argo0 = 0; |
b1462dfa RD |
8294 | PyObject * _argo2 = 0; |
8295 | PyObject * _obj3 = 0; | |
8296 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
8297 | |
8298 | self = self; | |
b1462dfa | 8299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 8300 | return NULL; |
1d99702e RD |
8301 | if (_argo0) { |
8302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
8305 | return NULL; | |
8306 | } | |
8307 | } | |
8308 | if (_argo2) { | |
8309 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8310 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
8312 | return NULL; |
8313 | } | |
8314 | } | |
b1462dfa | 8315 | { |
2cd2fac8 RD |
8316 | #if PYTHON_API_VERSION >= 1009 |
8317 | char* tmpPtr; int tmpSize; | |
8318 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 8319 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8320 | return NULL; |
8321 | } | |
8322 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8323 | return NULL; | |
8324 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8325 | #else | |
b1462dfa RD |
8326 | if (!PyString_Check(_obj3)) { |
8327 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8328 | return NULL; | |
8329 | } | |
2cd2fac8 RD |
8330 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8331 | #endif | |
b1462dfa | 8332 | } |
cf694132 RD |
8333 | { |
8334 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8335 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
8336 | |
8337 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8338 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8339 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
8340 | { |
8341 | if (_obj3) | |
8342 | delete _arg3; | |
8343 | } | |
8ab979d7 RD |
8344 | return _resultobj; |
8345 | } | |
8346 | ||
b1462dfa RD |
8347 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8348 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8349 | PyObject * _resultobj; |
b1462dfa | 8350 | size_t _result; |
8ab979d7 | 8351 | wxMenuBar * _arg0; |
1d99702e | 8352 | PyObject * _argo0 = 0; |
b1462dfa | 8353 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8354 | |
8355 | self = self; | |
b1462dfa | 8356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8357 | return NULL; |
1d99702e RD |
8358 | if (_argo0) { |
8359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8362 | return NULL; |
8363 | } | |
8364 | } | |
cf694132 RD |
8365 | { |
8366 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8367 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 RD |
8368 | |
8369 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8370 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8371 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8372 | return _resultobj; |
8373 | } | |
8374 | ||
b1462dfa RD |
8375 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8376 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8377 | PyObject * _resultobj; |
b1462dfa | 8378 | wxMenu * _result; |
06c0fba4 | 8379 | wxMenuBar * _arg0; |
b1462dfa | 8380 | size_t _arg1; |
06c0fba4 | 8381 | PyObject * _argo0 = 0; |
b1462dfa | 8382 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
8383 | |
8384 | self = self; | |
b1462dfa | 8385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8386 | return NULL; |
8387 | if (_argo0) { | |
8388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8391 | return NULL; |
8392 | } | |
8393 | } | |
8394 | { | |
8395 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8396 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 RD |
8397 | |
8398 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8399 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8400 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
8401 | return _resultobj; |
8402 | } | |
8403 | ||
2abc0a0f RD |
8404 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8405 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8406 | PyObject * _resultobj; | |
8407 | wxMenu * _result; | |
8408 | wxMenuBar * _arg0; | |
8409 | size_t _arg1; | |
8410 | wxMenu * _arg2; | |
8411 | wxString * _arg3; | |
8412 | PyObject * _argo0 = 0; | |
8413 | PyObject * _argo2 = 0; | |
8414 | PyObject * _obj3 = 0; | |
8415 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
8416 | |
8417 | self = self; | |
8418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8419 | return NULL; | |
8420 | if (_argo0) { | |
8421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8424 | return NULL; | |
8425 | } | |
8426 | } | |
8427 | if (_argo2) { | |
8428 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8429 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8431 | return NULL; | |
8432 | } | |
8433 | } | |
8434 | { | |
2cd2fac8 RD |
8435 | #if PYTHON_API_VERSION >= 1009 |
8436 | char* tmpPtr; int tmpSize; | |
8437 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 8438 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8439 | return NULL; |
8440 | } | |
8441 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8442 | return NULL; | |
8443 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8444 | #else | |
2abc0a0f RD |
8445 | if (!PyString_Check(_obj3)) { |
8446 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8447 | return NULL; | |
8448 | } | |
2cd2fac8 RD |
8449 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8450 | #endif | |
2abc0a0f RD |
8451 | } |
8452 | { | |
8453 | wxPy_BEGIN_ALLOW_THREADS; | |
8454 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
8455 | ||
8456 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8457 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8458 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8459 | { |
8460 | if (_obj3) | |
8461 | delete _arg3; | |
8462 | } | |
8463 | return _resultobj; | |
8464 | } | |
8465 | ||
8466 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8467 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8468 | PyObject * _resultobj; | |
8469 | wxMenu * _result; | |
8470 | wxMenuBar * _arg0; | |
8471 | size_t _arg1; | |
8472 | PyObject * _argo0 = 0; | |
8473 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
8474 | |
8475 | self = self; | |
8476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8477 | return NULL; | |
8478 | if (_argo0) { | |
8479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8482 | return NULL; | |
8483 | } | |
8484 | } | |
8485 | { | |
8486 | wxPy_BEGIN_ALLOW_THREADS; | |
8487 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
8488 | ||
8489 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8490 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8491 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8492 | return _resultobj; |
8493 | } | |
8494 | ||
b1462dfa RD |
8495 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8496 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8497 | PyObject * _resultobj; |
b1462dfa RD |
8498 | wxMenuBar * _arg0; |
8499 | size_t _arg1; | |
8500 | bool _arg2; | |
8501 | PyObject * _argo0 = 0; | |
8502 | int tempbool2; | |
8503 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8504 | ||
8505 | self = self; | |
8506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8507 | return NULL; | |
8508 | if (_argo0) { | |
8509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8512 | return NULL; | |
8513 | } | |
8514 | } | |
8515 | _arg2 = (bool ) tempbool2; | |
8516 | { | |
8517 | wxPy_BEGIN_ALLOW_THREADS; | |
8518 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
8519 | ||
8520 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8521 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8522 | } Py_INCREF(Py_None); |
8523 | _resultobj = Py_None; | |
8524 | return _resultobj; | |
8525 | } | |
8526 | ||
8527 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8528 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8529 | PyObject * _resultobj; | |
8530 | wxMenuBar * _arg0; | |
8531 | size_t _arg1; | |
8532 | wxString * _arg2; | |
1d99702e | 8533 | PyObject * _argo0 = 0; |
cf694132 | 8534 | PyObject * _obj2 = 0; |
b1462dfa | 8535 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8536 | |
8537 | self = self; | |
b1462dfa | 8538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8539 | return NULL; |
1d99702e RD |
8540 | if (_argo0) { |
8541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8544 | return NULL; |
8545 | } | |
8546 | } | |
cf694132 | 8547 | { |
2cd2fac8 RD |
8548 | #if PYTHON_API_VERSION >= 1009 |
8549 | char* tmpPtr; int tmpSize; | |
8550 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8551 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8552 | return NULL; |
8553 | } | |
8554 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8555 | return NULL; | |
8556 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8557 | #else | |
cf694132 RD |
8558 | if (!PyString_Check(_obj2)) { |
8559 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8560 | return NULL; | |
8561 | } | |
2cd2fac8 RD |
8562 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8563 | #endif | |
cf694132 | 8564 | } |
cf694132 | 8565 | { |
b1462dfa RD |
8566 | wxPy_BEGIN_ALLOW_THREADS; |
8567 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
8568 | ||
8569 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8570 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8571 | } Py_INCREF(Py_None); |
8572 | _resultobj = Py_None; | |
8573 | { | |
8574 | if (_obj2) | |
8575 | delete _arg2; | |
8576 | } | |
8577 | return _resultobj; | |
8578 | } | |
8579 | ||
8580 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8581 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8582 | PyObject * _resultobj; | |
8583 | wxString * _result; | |
8584 | wxMenuBar * _arg0; | |
8585 | size_t _arg1; | |
8586 | PyObject * _argo0 = 0; | |
8587 | char *_kwnames[] = { "self","pos", NULL }; | |
8588 | ||
8589 | self = self; | |
8590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8591 | return NULL; | |
8592 | if (_argo0) { | |
8593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8596 | return NULL; | |
8597 | } | |
8598 | } | |
8599 | { | |
8600 | wxPy_BEGIN_ALLOW_THREADS; | |
8601 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
8602 | ||
8603 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8604 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8605 | }{ |
eec92d76 | 8606 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8607 | } |
8608 | { | |
8609 | delete _result; | |
8610 | } | |
8611 | return _resultobj; | |
8612 | } | |
8613 | ||
10be44ac RD |
8614 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
8615 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8616 | PyObject * _resultobj; | |
8617 | int _result; | |
8618 | wxMenuBar * _arg0; | |
8619 | wxString * _arg1; | |
8620 | PyObject * _argo0 = 0; | |
8621 | PyObject * _obj1 = 0; | |
8622 | char *_kwnames[] = { "self","title", NULL }; | |
8623 | ||
8624 | self = self; | |
8625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
8626 | return NULL; | |
8627 | if (_argo0) { | |
8628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
8631 | return NULL; | |
8632 | } | |
8633 | } | |
8634 | { | |
8635 | #if PYTHON_API_VERSION >= 1009 | |
8636 | char* tmpPtr; int tmpSize; | |
8637 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8638 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8639 | return NULL; | |
8640 | } | |
8641 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8642 | return NULL; | |
8643 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8644 | #else | |
8645 | if (!PyString_Check(_obj1)) { | |
8646 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8647 | return NULL; | |
8648 | } | |
8649 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8650 | #endif | |
8651 | } | |
8652 | { | |
8653 | wxPy_BEGIN_ALLOW_THREADS; | |
8654 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); | |
8655 | ||
8656 | wxPy_END_ALLOW_THREADS; | |
8657 | if (PyErr_Occurred()) return NULL; | |
8658 | } _resultobj = Py_BuildValue("i",_result); | |
8659 | { | |
8660 | if (_obj1) | |
8661 | delete _arg1; | |
8662 | } | |
8663 | return _resultobj; | |
8664 | } | |
8665 | ||
b1462dfa RD |
8666 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
8667 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8668 | PyObject * _resultobj; | |
8669 | int _result; | |
8670 | wxMenuBar * _arg0; | |
8671 | wxString * _arg1; | |
8672 | wxString * _arg2; | |
8673 | PyObject * _argo0 = 0; | |
8674 | PyObject * _obj1 = 0; | |
8675 | PyObject * _obj2 = 0; | |
8676 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8677 | ||
8678 | self = self; | |
8679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8680 | return NULL; | |
8681 | if (_argo0) { | |
8682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8685 | return NULL; | |
8686 | } | |
8687 | } | |
8688 | { | |
2cd2fac8 RD |
8689 | #if PYTHON_API_VERSION >= 1009 |
8690 | char* tmpPtr; int tmpSize; | |
8691 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 8692 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8693 | return NULL; |
8694 | } | |
8695 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8696 | return NULL; | |
8697 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8698 | #else | |
b1462dfa | 8699 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
8700 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
8701 | return NULL; | |
8702 | } | |
2cd2fac8 RD |
8703 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8704 | #endif | |
cf694132 | 8705 | } |
b1462dfa | 8706 | { |
2cd2fac8 RD |
8707 | #if PYTHON_API_VERSION >= 1009 |
8708 | char* tmpPtr; int tmpSize; | |
8709 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8710 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8711 | return NULL; |
8712 | } | |
8713 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8714 | return NULL; | |
8715 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8716 | #else | |
b1462dfa RD |
8717 | if (!PyString_Check(_obj2)) { |
8718 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8719 | return NULL; | |
8720 | } | |
2cd2fac8 RD |
8721 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8722 | #endif | |
b1462dfa RD |
8723 | } |
8724 | { | |
8725 | wxPy_BEGIN_ALLOW_THREADS; | |
8726 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
8727 | ||
8728 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8729 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8730 | } _resultobj = Py_BuildValue("i",_result); |
8731 | { | |
8732 | if (_obj1) | |
8733 | delete _arg1; | |
8734 | } | |
8735 | { | |
8736 | if (_obj2) | |
8737 | delete _arg2; | |
8738 | } | |
8739 | return _resultobj; | |
8740 | } | |
8741 | ||
8742 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8743 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8744 | PyObject * _resultobj; | |
8745 | wxMenuItem * _result; | |
8746 | wxMenuBar * _arg0; | |
8747 | int _arg1; | |
8748 | PyObject * _argo0 = 0; | |
8749 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8750 | |
8751 | self = self; | |
8752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8753 | return NULL; | |
8754 | if (_argo0) { | |
8755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8758 | return NULL; |
8759 | } | |
8760 | } | |
8761 | { | |
8762 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8763 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 RD |
8764 | |
8765 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8766 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8767 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8768 | return _resultobj; |
cf694132 | 8769 | } |
b1462dfa RD |
8770 | |
8771 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8772 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8773 | PyObject * _resultobj; | |
8774 | wxMenuBar * _arg0; | |
8775 | int _arg1; | |
8776 | bool _arg2; | |
8777 | PyObject * _argo0 = 0; | |
8778 | int tempbool2; | |
8779 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8780 | ||
8781 | self = self; | |
8782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8783 | return NULL; | |
8784 | if (_argo0) { | |
8785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8788 | return NULL; | |
8789 | } | |
8790 | } | |
8791 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8792 | { |
b1462dfa RD |
8793 | wxPy_BEGIN_ALLOW_THREADS; |
8794 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8795 | ||
8796 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8797 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8798 | } Py_INCREF(Py_None); |
8799 | _resultobj = Py_None; | |
8800 | return _resultobj; | |
cf694132 | 8801 | } |
b1462dfa RD |
8802 | |
8803 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8804 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8805 | PyObject * _resultobj; | |
8806 | wxMenuBar * _arg0; | |
8807 | int _arg1; | |
8808 | bool _arg2; | |
8809 | PyObject * _argo0 = 0; | |
8810 | int tempbool2; | |
8811 | char *_kwnames[] = { "self","id","check", NULL }; | |
8812 | ||
8813 | self = self; | |
8814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8815 | return NULL; | |
8816 | if (_argo0) { | |
8817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8820 | return NULL; | |
8821 | } | |
8822 | } | |
8823 | _arg2 = (bool ) tempbool2; | |
8824 | { | |
8825 | wxPy_BEGIN_ALLOW_THREADS; | |
8826 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8827 | ||
8828 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8829 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8830 | } Py_INCREF(Py_None); |
8831 | _resultobj = Py_None; | |
cf694132 RD |
8832 | return _resultobj; |
8833 | } | |
8834 | ||
b1462dfa RD |
8835 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8836 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8837 | PyObject * _resultobj; |
8838 | bool _result; | |
b1462dfa RD |
8839 | wxMenuBar * _arg0; |
8840 | int _arg1; | |
1d99702e | 8841 | PyObject * _argo0 = 0; |
b1462dfa | 8842 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8843 | |
8844 | self = self; | |
b1462dfa | 8845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8846 | return NULL; |
1d99702e RD |
8847 | if (_argo0) { |
8848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8851 | return NULL; |
8852 | } | |
8853 | } | |
cf694132 RD |
8854 | { |
8855 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8856 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 RD |
8857 | |
8858 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8859 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8860 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8861 | return _resultobj; |
8862 | } | |
8863 | ||
b1462dfa RD |
8864 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8865 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8866 | PyObject * _resultobj; |
8867 | bool _result; | |
b1462dfa RD |
8868 | wxMenuBar * _arg0; |
8869 | int _arg1; | |
1d99702e | 8870 | PyObject * _argo0 = 0; |
b1462dfa | 8871 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8872 | |
8873 | self = self; | |
b1462dfa | 8874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8875 | return NULL; |
1d99702e RD |
8876 | if (_argo0) { |
8877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8880 | return NULL; |
8881 | } | |
8882 | } | |
cf694132 RD |
8883 | { |
8884 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8885 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 RD |
8886 | |
8887 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8888 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8889 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8890 | return _resultobj; |
8891 | } | |
8892 | ||
b1462dfa RD |
8893 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8894 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8895 | PyObject * _resultobj; |
b1462dfa RD |
8896 | wxMenuBar * _arg0; |
8897 | int _arg1; | |
8898 | wxString * _arg2; | |
1d99702e | 8899 | PyObject * _argo0 = 0; |
b1462dfa RD |
8900 | PyObject * _obj2 = 0; |
8901 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8902 | |
8903 | self = self; | |
b1462dfa | 8904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8905 | return NULL; |
1d99702e RD |
8906 | if (_argo0) { |
8907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8910 | return NULL; |
8911 | } | |
8912 | } | |
b1462dfa | 8913 | { |
2cd2fac8 RD |
8914 | #if PYTHON_API_VERSION >= 1009 |
8915 | char* tmpPtr; int tmpSize; | |
8916 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8917 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8918 | return NULL; |
8919 | } | |
8920 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8921 | return NULL; | |
8922 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8923 | #else | |
b1462dfa RD |
8924 | if (!PyString_Check(_obj2)) { |
8925 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8926 | return NULL; | |
8927 | } | |
2cd2fac8 RD |
8928 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8929 | #endif | |
b1462dfa | 8930 | } |
cf694132 RD |
8931 | { |
8932 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8933 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
8934 | |
8935 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8936 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8937 | } Py_INCREF(Py_None); |
8938 | _resultobj = Py_None; | |
8939 | { | |
8940 | if (_obj2) | |
8941 | delete _arg2; | |
8942 | } | |
8ab979d7 RD |
8943 | return _resultobj; |
8944 | } | |
8945 | ||
b1462dfa RD |
8946 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8947 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8948 | PyObject * _resultobj; |
b1462dfa RD |
8949 | wxString * _result; |
8950 | wxMenuBar * _arg0; | |
8951 | int _arg1; | |
1d99702e | 8952 | PyObject * _argo0 = 0; |
b1462dfa | 8953 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8954 | |
8955 | self = self; | |
b1462dfa | 8956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8957 | return NULL; |
1d99702e RD |
8958 | if (_argo0) { |
8959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
8962 | return NULL; | |
8963 | } | |
8964 | } | |
8965 | { | |
8966 | wxPy_BEGIN_ALLOW_THREADS; | |
8967 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
8968 | ||
8969 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8970 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8971 | }{ |
eec92d76 | 8972 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8973 | } |
8974 | { | |
8975 | delete _result; | |
8976 | } | |
8977 | return _resultobj; | |
8978 | } | |
8979 | ||
8980 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
8981 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8982 | PyObject * _resultobj; | |
8983 | wxMenuBar * _arg0; | |
8984 | int _arg1; | |
8985 | wxString * _arg2; | |
8986 | PyObject * _argo0 = 0; | |
8987 | PyObject * _obj2 = 0; | |
8988 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
8989 | ||
8990 | self = self; | |
8991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8992 | return NULL; | |
8993 | if (_argo0) { | |
8994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
8997 | return NULL; | |
8998 | } | |
8999 | } | |
9000 | { | |
2cd2fac8 RD |
9001 | #if PYTHON_API_VERSION >= 1009 |
9002 | char* tmpPtr; int tmpSize; | |
9003 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 9004 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9005 | return NULL; |
9006 | } | |
9007 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9008 | return NULL; | |
9009 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9010 | #else | |
b1462dfa RD |
9011 | if (!PyString_Check(_obj2)) { |
9012 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9013 | return NULL; | |
9014 | } | |
2cd2fac8 RD |
9015 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9016 | #endif | |
b1462dfa RD |
9017 | } |
9018 | { | |
9019 | wxPy_BEGIN_ALLOW_THREADS; | |
9020 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
9021 | ||
9022 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9023 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9024 | } Py_INCREF(Py_None); |
9025 | _resultobj = Py_None; | |
9026 | { | |
9027 | if (_obj2) | |
9028 | delete _arg2; | |
9029 | } | |
9030 | return _resultobj; | |
9031 | } | |
9032 | ||
9033 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
9034 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9035 | PyObject * _resultobj; | |
9036 | wxString * _result; | |
9037 | wxMenuBar * _arg0; | |
9038 | int _arg1; | |
9039 | PyObject * _argo0 = 0; | |
9040 | char *_kwnames[] = { "self","id", NULL }; | |
9041 | ||
9042 | self = self; | |
9043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
9044 | return NULL; | |
9045 | if (_argo0) { | |
9046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9049 | return NULL; |
9050 | } | |
9051 | } | |
cf694132 RD |
9052 | { |
9053 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9054 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
9055 | |
9056 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9057 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9058 | }{ |
eec92d76 | 9059 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9060 | } |
9061 | { | |
9062 | delete _result; | |
9063 | } | |
8ab979d7 RD |
9064 | return _resultobj; |
9065 | } | |
9066 | ||
9df61a29 RD |
9067 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
9068 | wxMenuItem *src; | |
9069 | wxObject *dest; | |
9070 | src = (wxMenuItem *) ptr; | |
9071 | dest = (wxObject *) src; | |
9072 | return (void *) dest; | |
9073 | } | |
9074 | ||
b1462dfa RD |
9075 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
9076 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9077 | PyObject * _resultobj; |
b1462dfa RD |
9078 | wxMenuItem * _result; |
9079 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 9080 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
9081 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
9082 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
9083 | bool _arg4 = (bool ) FALSE; | |
9084 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 9085 | PyObject * _argo0 = 0; |
b1462dfa RD |
9086 | PyObject * _obj2 = 0; |
9087 | PyObject * _obj3 = 0; | |
9088 | int tempbool4 = (int) FALSE; | |
9089 | PyObject * _argo5 = 0; | |
9090 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
9091 | char _ptemp[128]; | |
8ab979d7 RD |
9092 | |
9093 | self = self; | |
b1462dfa | 9094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 9095 | return NULL; |
1d99702e RD |
9096 | if (_argo0) { |
9097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9100 | return NULL; | |
9101 | } | |
9102 | } | |
9103 | if (_obj2) | |
9104 | { | |
2cd2fac8 RD |
9105 | #if PYTHON_API_VERSION >= 1009 |
9106 | char* tmpPtr; int tmpSize; | |
9107 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 9108 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9109 | return NULL; |
9110 | } | |
9111 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9112 | return NULL; | |
9113 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9114 | #else | |
b1462dfa RD |
9115 | if (!PyString_Check(_obj2)) { |
9116 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9117 | return NULL; | |
9118 | } | |
2cd2fac8 RD |
9119 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9120 | #endif | |
b1462dfa RD |
9121 | } |
9122 | if (_obj3) | |
9123 | { | |
2cd2fac8 RD |
9124 | #if PYTHON_API_VERSION >= 1009 |
9125 | char* tmpPtr; int tmpSize; | |
9126 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 9127 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9128 | return NULL; |
9129 | } | |
9130 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9131 | return NULL; | |
9132 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9133 | #else | |
b1462dfa RD |
9134 | if (!PyString_Check(_obj3)) { |
9135 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9136 | return NULL; | |
9137 | } | |
2cd2fac8 RD |
9138 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
9139 | #endif | |
b1462dfa RD |
9140 | } |
9141 | _arg4 = (bool ) tempbool4; | |
9142 | if (_argo5) { | |
9143 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9144 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
9146 | return NULL; |
9147 | } | |
9148 | } | |
cf694132 RD |
9149 | { |
9150 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9151 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 RD |
9152 | |
9153 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9154 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9155 | } if (_result) { |
9156 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9157 | _resultobj = Py_BuildValue("s",_ptemp); | |
9158 | } else { | |
9159 | Py_INCREF(Py_None); | |
9160 | _resultobj = Py_None; | |
9161 | } | |
9162 | { | |
9163 | if (_obj2) | |
9164 | delete _arg2; | |
9165 | } | |
9166 | { | |
9167 | if (_obj3) | |
9168 | delete _arg3; | |
9169 | } | |
8ab979d7 RD |
9170 | return _resultobj; |
9171 | } | |
9172 | ||
b1462dfa RD |
9173 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
9174 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9175 | PyObject * _resultobj; |
b1462dfa | 9176 | wxMenu * _result; |
8ab979d7 | 9177 | wxMenuItem * _arg0; |
1d99702e | 9178 | PyObject * _argo0 = 0; |
efc5f224 | 9179 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9180 | |
9181 | self = self; | |
b1462dfa | 9182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 9183 | return NULL; |
1d99702e RD |
9184 | if (_argo0) { |
9185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9188 | return NULL; |
9189 | } | |
9190 | } | |
cf694132 RD |
9191 | { |
9192 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9193 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 RD |
9194 | |
9195 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9196 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9197 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9198 | return _resultobj; |
9199 | } | |
9200 | ||
2abc0a0f RD |
9201 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
9202 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9203 | PyObject * _resultobj; |
9204 | wxMenuItem * _arg0; | |
2abc0a0f | 9205 | int _arg1; |
1d99702e | 9206 | PyObject * _argo0 = 0; |
2abc0a0f | 9207 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9208 | |
9209 | self = self; | |
2abc0a0f | 9210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9211 | return NULL; |
1d99702e RD |
9212 | if (_argo0) { |
9213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 9215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9216 | return NULL; |
9217 | } | |
9218 | } | |
cf694132 RD |
9219 | { |
9220 | wxPy_BEGIN_ALLOW_THREADS; | |
2abc0a0f | 9221 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 RD |
9222 | |
9223 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9224 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9225 | } Py_INCREF(Py_None); |
8ab979d7 | 9226 | _resultobj = Py_None; |
8ab979d7 RD |
9227 | return _resultobj; |
9228 | } | |
9229 | ||
b1462dfa RD |
9230 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
9231 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9232 | PyObject * _resultobj; |
b1462dfa | 9233 | int _result; |
8ab979d7 | 9234 | wxMenuItem * _arg0; |
1d99702e | 9235 | PyObject * _argo0 = 0; |
efc5f224 | 9236 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9237 | |
9238 | self = self; | |
b1462dfa | 9239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 9240 | return NULL; |
1d99702e RD |
9241 | if (_argo0) { |
9242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9245 | return NULL; |
9246 | } | |
9247 | } | |
8ab979d7 | 9248 | { |
cf694132 | 9249 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9250 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 RD |
9251 | |
9252 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9253 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9254 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9255 | return _resultobj; |
9256 | } | |
9257 | ||
b1462dfa RD |
9258 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
9259 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9260 | PyObject * _resultobj; |
b1462dfa | 9261 | bool _result; |
8ab979d7 | 9262 | wxMenuItem * _arg0; |
1d99702e | 9263 | PyObject * _argo0 = 0; |
efc5f224 | 9264 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9265 | |
9266 | self = self; | |
b1462dfa | 9267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 9268 | return NULL; |
1d99702e RD |
9269 | if (_argo0) { |
9270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9273 | return NULL; |
9274 | } | |
9275 | } | |
8ab979d7 | 9276 | { |
cf694132 | 9277 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9278 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 RD |
9279 | |
9280 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9281 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9282 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9283 | return _resultobj; |
9284 | } | |
9285 | ||
b1462dfa RD |
9286 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
9287 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9288 | PyObject * _resultobj; |
9289 | wxMenuItem * _arg0; | |
9290 | wxString * _arg1; | |
1d99702e | 9291 | PyObject * _argo0 = 0; |
8ab979d7 | 9292 | PyObject * _obj1 = 0; |
b1462dfa | 9293 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
9294 | |
9295 | self = self; | |
b1462dfa | 9296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9297 | return NULL; |
1d99702e RD |
9298 | if (_argo0) { |
9299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9302 | return NULL; |
9303 | } | |
9304 | } | |
9305 | { | |
2cd2fac8 RD |
9306 | #if PYTHON_API_VERSION >= 1009 |
9307 | char* tmpPtr; int tmpSize; | |
9308 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 9309 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9310 | return NULL; |
9311 | } | |
9312 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9313 | return NULL; | |
9314 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9315 | #else | |
8ab979d7 RD |
9316 | if (!PyString_Check(_obj1)) { |
9317 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9318 | return NULL; | |
9319 | } | |
2cd2fac8 RD |
9320 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9321 | #endif | |
8ab979d7 | 9322 | } |
cf694132 RD |
9323 | { |
9324 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9325 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 RD |
9326 | |
9327 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9328 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9329 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9330 | _resultobj = Py_None; |
9331 | { | |
9332 | if (_obj1) | |
9333 | delete _arg1; | |
9334 | } | |
9335 | return _resultobj; | |
9336 | } | |
9337 | ||
b1462dfa RD |
9338 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
9339 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9340 | PyObject * _resultobj; |
b1462dfa | 9341 | wxString * _result; |
8ab979d7 | 9342 | wxMenuItem * _arg0; |
1d99702e | 9343 | PyObject * _argo0 = 0; |
b1462dfa | 9344 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9345 | |
9346 | self = self; | |
b1462dfa | 9347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 9348 | return NULL; |
1d99702e RD |
9349 | if (_argo0) { |
9350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9353 | return NULL; |
9354 | } | |
9355 | } | |
cf694132 RD |
9356 | { |
9357 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9358 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 RD |
9359 | |
9360 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9361 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9362 | }{ |
eec92d76 | 9363 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 9364 | } |
cf694132 | 9365 | { |
b1462dfa RD |
9366 | delete _result; |
9367 | } | |
cf694132 RD |
9368 | return _resultobj; |
9369 | } | |
9370 | ||
b1462dfa RD |
9371 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
9372 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9373 | PyObject * _resultobj; |
b1462dfa | 9374 | wxString * _result; |
cf694132 | 9375 | wxMenuItem * _arg0; |
1d99702e | 9376 | PyObject * _argo0 = 0; |
efc5f224 | 9377 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9378 | |
9379 | self = self; | |
b1462dfa | 9380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 9381 | return NULL; |
1d99702e RD |
9382 | if (_argo0) { |
9383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9386 | return NULL; |
9387 | } | |
9388 | } | |
9389 | { | |
9390 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9391 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
9392 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9393 | |
9394 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9395 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9396 | }{ |
eec92d76 | 9397 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 9398 | } |
cf694132 RD |
9399 | return _resultobj; |
9400 | } | |
9401 | ||
b1462dfa RD |
9402 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9403 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9404 | PyObject * _resultobj; |
cf694132 | 9405 | wxMenuItem * _arg0; |
b1462dfa | 9406 | bool _arg1; |
1d99702e | 9407 | PyObject * _argo0 = 0; |
b1462dfa RD |
9408 | int tempbool1; |
9409 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9410 | |
9411 | self = self; | |
b1462dfa | 9412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9413 | return NULL; |
1d99702e RD |
9414 | if (_argo0) { |
9415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9418 | return NULL; |
9419 | } | |
9420 | } | |
b1462dfa | 9421 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9422 | { |
9423 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9424 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 RD |
9425 | |
9426 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9427 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9428 | } Py_INCREF(Py_None); |
9429 | _resultobj = Py_None; | |
cf694132 RD |
9430 | return _resultobj; |
9431 | } | |
9432 | ||
b1462dfa RD |
9433 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9434 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9435 | PyObject * _resultobj; |
b1462dfa | 9436 | bool _result; |
cf694132 | 9437 | wxMenuItem * _arg0; |
1d99702e | 9438 | PyObject * _argo0 = 0; |
efc5f224 | 9439 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9440 | |
9441 | self = self; | |
b1462dfa | 9442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9443 | return NULL; |
1d99702e RD |
9444 | if (_argo0) { |
9445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9448 | return NULL; |
9449 | } | |
9450 | } | |
9451 | { | |
9452 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9453 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 RD |
9454 | |
9455 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9456 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9457 | } _resultobj = Py_BuildValue("i",_result); |
9458 | return _resultobj; | |
9459 | } | |
9460 | ||
b1462dfa RD |
9461 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9462 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9463 | PyObject * _resultobj; |
b1462dfa | 9464 | bool _result; |
cf694132 | 9465 | wxMenuItem * _arg0; |
1d99702e | 9466 | PyObject * _argo0 = 0; |
efc5f224 | 9467 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9468 | |
9469 | self = self; | |
b1462dfa | 9470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9471 | return NULL; |
1d99702e RD |
9472 | if (_argo0) { |
9473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9476 | return NULL; |
9477 | } | |
9478 | } | |
9479 | { | |
9480 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9481 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 RD |
9482 | |
9483 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9484 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9485 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9486 | return _resultobj; |
9487 | } | |
9488 | ||
b1462dfa RD |
9489 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9490 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9491 | PyObject * _resultobj; |
9492 | wxMenuItem * _arg0; | |
b1462dfa | 9493 | wxMenu * _arg1; |
1d99702e RD |
9494 | PyObject * _argo0 = 0; |
9495 | PyObject * _argo1 = 0; | |
b1462dfa | 9496 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9497 | |
9498 | self = self; | |
b1462dfa | 9499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9500 | return NULL; |
1d99702e RD |
9501 | if (_argo0) { |
9502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9505 | return NULL; |
9506 | } | |
9507 | } | |
1d99702e RD |
9508 | if (_argo1) { |
9509 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9510 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9512 | return NULL; |
9513 | } | |
9514 | } | |
9515 | { | |
9516 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9517 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 RD |
9518 | |
9519 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9520 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9521 | } Py_INCREF(Py_None); |
9522 | _resultobj = Py_None; | |
9523 | return _resultobj; | |
9524 | } | |
9525 | ||
b1462dfa RD |
9526 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9527 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9528 | PyObject * _resultobj; |
b1462dfa | 9529 | wxMenu * _result; |
cf694132 | 9530 | wxMenuItem * _arg0; |
1d99702e | 9531 | PyObject * _argo0 = 0; |
b1462dfa | 9532 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9533 | |
9534 | self = self; | |
b1462dfa | 9535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 9536 | return NULL; |
1d99702e RD |
9537 | if (_argo0) { |
9538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9541 | return NULL; |
9542 | } | |
9543 | } | |
b1462dfa RD |
9544 | { |
9545 | wxPy_BEGIN_ALLOW_THREADS; | |
9546 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
9547 | ||
9548 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9549 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9550 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
9551 | return _resultobj; |
9552 | } | |
9553 | ||
9554 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9555 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9556 | PyObject * _resultobj; | |
9557 | wxMenuItem * _arg0; | |
9558 | bool _arg1 = (bool ) TRUE; | |
9559 | PyObject * _argo0 = 0; | |
9560 | int tempbool1 = (int) TRUE; | |
9561 | char *_kwnames[] = { "self","enable", NULL }; | |
9562 | ||
9563 | self = self; | |
9564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9565 | return NULL; | |
9566 | if (_argo0) { | |
9567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
9570 | return NULL; |
9571 | } | |
9572 | } | |
b1462dfa | 9573 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9574 | { |
9575 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9576 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 RD |
9577 | |
9578 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9579 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9580 | } Py_INCREF(Py_None); |
9581 | _resultobj = Py_None; | |
9582 | return _resultobj; | |
9583 | } | |
9584 | ||
b1462dfa RD |
9585 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9586 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9587 | PyObject * _resultobj; |
b1462dfa | 9588 | bool _result; |
cf694132 | 9589 | wxMenuItem * _arg0; |
1d99702e | 9590 | PyObject * _argo0 = 0; |
b1462dfa | 9591 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9592 | |
9593 | self = self; | |
b1462dfa | 9594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9595 | return NULL; |
1d99702e RD |
9596 | if (_argo0) { |
9597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
9600 | return NULL; |
9601 | } | |
9602 | } | |
9603 | { | |
9604 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9605 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 RD |
9606 | |
9607 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9608 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9609 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9610 | return _resultobj; |
9611 | } | |
9612 | ||
b1462dfa RD |
9613 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
9614 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9615 | PyObject * _resultobj; |
9616 | wxMenuItem * _arg0; | |
b1462dfa | 9617 | bool _arg1 = (bool ) TRUE; |
1d99702e | 9618 | PyObject * _argo0 = 0; |
b1462dfa RD |
9619 | int tempbool1 = (int) TRUE; |
9620 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
9621 | |
9622 | self = self; | |
b1462dfa | 9623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9624 | return NULL; |
1d99702e RD |
9625 | if (_argo0) { |
9626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
9629 | return NULL; |
9630 | } | |
9631 | } | |
b1462dfa | 9632 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9633 | { |
9634 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9635 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 RD |
9636 | |
9637 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9638 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9639 | } Py_INCREF(Py_None); |
9640 | _resultobj = Py_None; | |
9641 | return _resultobj; | |
9642 | } | |
9643 | ||
b1462dfa RD |
9644 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
9645 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9646 | PyObject * _resultobj; |
b1462dfa | 9647 | bool _result; |
2abc0a0f | 9648 | wxMenuItem * _arg0; |
2abc0a0f | 9649 | PyObject * _argo0 = 0; |
b1462dfa | 9650 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
9651 | |
9652 | self = self; | |
b1462dfa | 9653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
9654 | return NULL; |
9655 | if (_argo0) { | |
9656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9659 | return NULL; |
9660 | } | |
9661 | } | |
2abc0a0f RD |
9662 | { |
9663 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9664 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f RD |
9665 | |
9666 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9667 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9668 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
9669 | return _resultobj; |
9670 | } | |
9671 | ||
b1462dfa RD |
9672 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
9673 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9674 | PyObject * _resultobj; |
2abc0a0f RD |
9675 | wxMenuItem * _arg0; |
9676 | PyObject * _argo0 = 0; | |
9677 | char *_kwnames[] = { "self", NULL }; | |
9678 | ||
9679 | self = self; | |
b1462dfa | 9680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
9681 | return NULL; |
9682 | if (_argo0) { | |
9683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9686 | return NULL; |
9687 | } | |
9688 | } | |
9689 | { | |
9690 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9691 | wxMenuItem_Toggle(_arg0); |
2abc0a0f RD |
9692 | |
9693 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9694 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9695 | } Py_INCREF(Py_None); |
9696 | _resultobj = Py_None; | |
2abc0a0f RD |
9697 | return _resultobj; |
9698 | } | |
9699 | ||
b1462dfa RD |
9700 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
9701 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9702 | PyObject * _resultobj; |
9703 | wxMenuItem * _arg0; | |
b1462dfa | 9704 | wxString * _arg1; |
1d99702e | 9705 | PyObject * _argo0 = 0; |
b1462dfa RD |
9706 | PyObject * _obj1 = 0; |
9707 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
9708 | |
9709 | self = self; | |
b1462dfa | 9710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 9711 | return NULL; |
1d99702e RD |
9712 | if (_argo0) { |
9713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
9716 | return NULL; |
9717 | } | |
9718 | } | |
b1462dfa | 9719 | { |
2cd2fac8 RD |
9720 | #if PYTHON_API_VERSION >= 1009 |
9721 | char* tmpPtr; int tmpSize; | |
9722 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 9723 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9724 | return NULL; |
9725 | } | |
9726 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9727 | return NULL; | |
9728 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9729 | #else | |
b1462dfa RD |
9730 | if (!PyString_Check(_obj1)) { |
9731 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 9732 | return NULL; |
cf694132 | 9733 | } |
2cd2fac8 RD |
9734 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9735 | #endif | |
b1462dfa | 9736 | } |
cf694132 RD |
9737 | { |
9738 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9739 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 RD |
9740 | |
9741 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9742 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9743 | } Py_INCREF(Py_None); |
8ab979d7 | 9744 | _resultobj = Py_None; |
b1462dfa RD |
9745 | { |
9746 | if (_obj1) | |
9747 | delete _arg1; | |
9748 | } | |
8ab979d7 RD |
9749 | return _resultobj; |
9750 | } | |
9751 | ||
b1462dfa RD |
9752 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
9753 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 9754 | PyObject * _resultobj; |
b1462dfa | 9755 | wxString * _result; |
be4d9c1f | 9756 | wxMenuItem * _arg0; |
1d99702e | 9757 | PyObject * _argo0 = 0; |
efc5f224 | 9758 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
9759 | |
9760 | self = self; | |
b1462dfa | 9761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 9762 | return NULL; |
1d99702e RD |
9763 | if (_argo0) { |
9764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
9767 | return NULL; |
9768 | } | |
9769 | } | |
cf694132 RD |
9770 | { |
9771 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9772 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
9773 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9774 | |
9775 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9776 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9777 | }{ |
eec92d76 | 9778 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 9779 | } |
be4d9c1f RD |
9780 | return _resultobj; |
9781 | } | |
9782 | ||
b1462dfa RD |
9783 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
9784 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9785 | PyObject * _resultobj; |
b1462dfa | 9786 | wxAcceleratorEntry * _result; |
2abc0a0f | 9787 | wxMenuItem * _arg0; |
2abc0a0f | 9788 | PyObject * _argo0 = 0; |
b1462dfa RD |
9789 | char *_kwnames[] = { "self", NULL }; |
9790 | char _ptemp[128]; | |
2abc0a0f RD |
9791 | |
9792 | self = self; | |
b1462dfa | 9793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
9794 | return NULL; |
9795 | if (_argo0) { | |
9796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9799 | return NULL; |
9800 | } | |
9801 | } | |
2abc0a0f RD |
9802 | { |
9803 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9804 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f RD |
9805 | |
9806 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9807 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9808 | } if (_result) { |
9809 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9810 | _resultobj = Py_BuildValue("s",_ptemp); | |
9811 | } else { | |
9812 | Py_INCREF(Py_None); | |
9813 | _resultobj = Py_None; | |
9814 | } | |
2abc0a0f RD |
9815 | return _resultobj; |
9816 | } | |
9817 | ||
b1462dfa RD |
9818 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9819 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9820 | PyObject * _resultobj; |
9821 | wxMenuItem * _arg0; | |
b1462dfa | 9822 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9823 | PyObject * _argo0 = 0; |
9824 | PyObject * _argo1 = 0; | |
b1462dfa | 9825 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9826 | |
9827 | self = self; | |
b1462dfa | 9828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9829 | return NULL; |
9830 | if (_argo0) { | |
9831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9834 | return NULL; |
9835 | } | |
9836 | } | |
9837 | if (_argo1) { | |
9838 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9839 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
9840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
9841 | return NULL; |
9842 | } | |
9843 | } | |
9844 | { | |
9845 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9846 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f RD |
9847 | |
9848 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9849 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
9850 | } Py_INCREF(Py_None); |
9851 | _resultobj = Py_None; | |
9852 | return _resultobj; | |
9853 | } | |
9854 | ||
9c4165ad RD |
9855 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9856 | PyObject * _resultobj; | |
9857 | wxString * _result; | |
9858 | wxString * _arg0; | |
9859 | PyObject * _obj0 = 0; | |
9860 | char *_kwnames[] = { "text", NULL }; | |
9861 | ||
9862 | self = self; | |
9863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
9864 | return NULL; | |
9865 | { | |
9866 | #if PYTHON_API_VERSION >= 1009 | |
9867 | char* tmpPtr; int tmpSize; | |
9868 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 9869 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
9c4165ad RD |
9870 | return NULL; |
9871 | } | |
9872 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9873 | return NULL; | |
9874 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9875 | #else | |
9876 | if (!PyString_Check(_obj0)) { | |
9877 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9878 | return NULL; | |
9879 | } | |
9880 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9881 | #endif | |
9882 | } | |
9883 | { | |
9884 | wxPy_BEGIN_ALLOW_THREADS; | |
9885 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); | |
9886 | ||
9887 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9888 | if (PyErr_Occurred()) return NULL; |
9c4165ad RD |
9889 | }{ |
9890 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9891 | } | |
9892 | { | |
9893 | if (_obj0) | |
9894 | delete _arg0; | |
9895 | } | |
9896 | { | |
9897 | delete _result; | |
9898 | } | |
9899 | return _resultobj; | |
9900 | } | |
9901 | ||
8ab979d7 | 9902 | static PyMethodDef windowscMethods[] = { |
9c4165ad | 9903 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9904 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
9905 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
9906 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9907 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9908 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
9909 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9910 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9911 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9912 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9913 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9914 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 9915 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9916 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9917 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
9918 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9919 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9920 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9921 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9922 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
9923 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9924 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9925 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9926 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9927 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
9928 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 9929 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
9930 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
9931 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9932 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9933 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
9934 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
9935 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10be44ac | 9936 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9937 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
9938 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9939 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
9940 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9941 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
9942 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
9943 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
9944 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9945 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
9946 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
9947 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
9948 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
9949 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
9950 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
9951 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9952 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9953 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9954 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9955 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
9956 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9957 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
9958 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9959 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9960 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
9961 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9962 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
9963 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
9964 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9965 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9966 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9967 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9968 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
9969 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9970 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
9971 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 9972 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9973 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9974 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9975 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9976 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9977 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
9978 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
9979 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
9980 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
9981 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
9982 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
9983 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
7a446686 RD |
9984 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
9985 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
9986 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
9987 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
9988 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
9989 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 9990 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 9991 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 9992 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9993 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
9994 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
9995 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
9996 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
9997 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 9998 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9999 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10000 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10001 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10002 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10003 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10004 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10005 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
10006 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10007 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10008 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
10009 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10010 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 | 10011 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
32c988a3 | 10012 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10013 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
10014 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10015 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
10016 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
10017 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
10018 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
10019 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
10020 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
10021 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
10022 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
10023 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
10024 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 10025 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
10be44ac RD |
10026 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
10027 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10028 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
10029 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10030 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10031 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
10032 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10033 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
10034 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10035 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10036 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10037 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
10038 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10039 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10040 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10041 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10042 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10043 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10044 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10045 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10046 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10047 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
10048 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
10049 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10050 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10051 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 10052 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10053 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10054 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
10055 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10056 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10057 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
2cd2fac8 | 10058 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10059 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
10060 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10061 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10062 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10063 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10064 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10065 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10066 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10067 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10068 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10069 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10070 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10071 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10072 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 10073 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10074 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10075 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
10076 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10077 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10078 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10079 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10080 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 10081 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10082 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
10083 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10084 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10085 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10086 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10087 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10088 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
10089 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10090 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10091 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10092 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10093 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10094 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10095 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10096 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
10097 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
10098 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10099 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10100 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10101 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10102 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10103 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10104 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10105 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
10106 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10107 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10108 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10109 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10110 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10111 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10112 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10113 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10114 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10115 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10116 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10117 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10118 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10119 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10120 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10121 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10122 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 10123 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10124 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
10125 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10126 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10127 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10128 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10129 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10130 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10131 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10132 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10133 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10134 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10135 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
10136 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10137 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
10138 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
4dfaa61e | 10139 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10140 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
10141 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10142 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
10143 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
10144 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
9d6da64a | 10145 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
10146 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
10147 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10148 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
10149 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
10150 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10151 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
10152 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10153 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10154 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10155 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10156 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10157 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9df61a29 RD |
10158 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
10159 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10160 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
10161 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10162 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
10163 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 10164 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10165 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
10166 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
10167 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10168 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
10169 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10170 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10171 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10172 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10173 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10174 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
10175 | { NULL, NULL } |
10176 | }; | |
1d99702e RD |
10177 | #ifdef __cplusplus |
10178 | } | |
10179 | #endif | |
10180 | /* | |
10181 | * This table is used by the pointer type-checker | |
10182 | */ | |
10183 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 10184 | { "_signed_long","_long",0}, |
b1462dfa | 10185 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10186 | { "_wxPrintQuality","_int",0}, |
10187 | { "_wxPrintQuality","_signed_int",0}, | |
10188 | { "_wxPrintQuality","_unsigned_int",0}, | |
10189 | { "_wxPrintQuality","_wxWindowID",0}, | |
10190 | { "_wxPrintQuality","_uint",0}, | |
10191 | { "_wxPrintQuality","_EBool",0}, | |
10192 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10193 | { "_wxPrintQuality","_time_t",0}, |
1d99702e RD |
10194 | { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
10195 | { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10196 | { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10197 | { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10198 | { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10199 | { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
1d99702e RD |
10200 | { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, |
10201 | { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10202 | { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
10203 | { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
10204 | { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
10205 | { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
10206 | { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
10207 | { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e | 10208 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10209 | { "_long","_unsigned_long",0}, |
10210 | { "_long","_signed_long",0}, | |
9df61a29 RD |
10211 | { "_class_wxObject","_class_wxMenuItem",SwigwxMenuItemTowxObject}, |
10212 | { "_class_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, | |
10213 | { "_class_wxObject","_class_wxMenuBar",SwigwxMenuBarTowxObject}, | |
10214 | { "_class_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, | |
10215 | { "_class_wxObject","_class_wxMenu",SwigwxMenuTowxObject}, | |
10216 | { "_class_wxObject","_wxMenu",SwigwxMenuTowxObject}, | |
10217 | { "_class_wxObject","_class_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
10218 | { "_class_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
9df61a29 RD |
10219 | { "_class_wxObject","_class_wxPanel",SwigwxPanelTowxObject}, |
10220 | { "_class_wxObject","_wxPanel",SwigwxPanelTowxObject}, | |
10221 | { "_class_wxObject","_class_wxWindow",SwigwxWindowTowxObject}, | |
10222 | { "_class_wxObject","_wxWindow",SwigwxWindowTowxObject}, | |
10223 | { "_class_wxObject","_class_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
10224 | { "_class_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
10225 | { "_class_wxObject","_class_wxValidator",SwigwxValidatorTowxObject}, | |
10226 | { "_class_wxObject","_wxValidator",SwigwxValidatorTowxObject}, | |
10227 | { "_class_wxObject","_class_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
10228 | { "_class_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
b1462dfa | 10229 | { "_size_t","_wxCoord",0}, |
1d99702e | 10230 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10231 | { "_size_t","_time_t",0}, |
1d99702e RD |
10232 | { "_size_t","_unsigned_int",0}, |
10233 | { "_size_t","_int",0}, | |
10234 | { "_size_t","_wxWindowID",0}, | |
10235 | { "_size_t","_uint",0}, | |
1d99702e RD |
10236 | { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
10237 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
b1462dfa | 10238 | { "_uint","_wxCoord",0}, |
1d99702e | 10239 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10240 | { "_uint","_time_t",0}, |
1d99702e RD |
10241 | { "_uint","_size_t",0}, |
10242 | { "_uint","_unsigned_int",0}, | |
10243 | { "_uint","_int",0}, | |
10244 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10245 | { "_wxChar","_char",0}, |
f6bcfd97 | 10246 | { "_char","_wxChar",0}, |
2f90df85 RD |
10247 | { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
10248 | { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
059a841c | 10249 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10250 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10251 | { "_EBool","_wxPrintQuality",0}, |
10252 | { "_EBool","_signed_int",0}, | |
10253 | { "_EBool","_int",0}, | |
10254 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10255 | { "_unsigned_long","_long",0}, |
059a841c | 10256 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
1d99702e RD |
10257 | { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
10258 | { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
b1462dfa | 10259 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10260 | { "_signed_int","_wxPrintQuality",0}, |
10261 | { "_signed_int","_EBool",0}, | |
10262 | { "_signed_int","_wxWindowID",0}, | |
10263 | { "_signed_int","_int",0}, | |
1d99702e RD |
10264 | { "_WXTYPE","_short",0}, |
10265 | { "_WXTYPE","_signed_short",0}, | |
10266 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
10267 | { "_unsigned_short","_WXTYPE",0}, |
10268 | { "_unsigned_short","_short",0}, | |
b1462dfa RD |
10269 | { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, |
10270 | { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
10271 | { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
10272 | { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
1d99702e RD |
10273 | { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, |
10274 | { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
9df61a29 RD |
10275 | { "_wxObject","_class_wxMenuItem",SwigwxMenuItemTowxObject}, |
10276 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, | |
10277 | { "_wxObject","_class_wxMenuBar",SwigwxMenuBarTowxObject}, | |
10278 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, | |
10279 | { "_wxObject","_class_wxMenu",SwigwxMenuTowxObject}, | |
10280 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, | |
10281 | { "_wxObject","_class_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
10282 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
9df61a29 RD |
10283 | { "_wxObject","_class_wxPanel",SwigwxPanelTowxObject}, |
10284 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, | |
10285 | { "_wxObject","_class_wxWindow",SwigwxWindowTowxObject}, | |
10286 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, | |
10287 | { "_wxObject","_class_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
10288 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
10289 | { "_wxObject","_class_wxValidator",SwigwxValidatorTowxObject}, | |
10290 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, | |
10291 | { "_wxObject","_class_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
10292 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
1d99702e RD |
10293 | { "_signed_short","_WXTYPE",0}, |
10294 | { "_signed_short","_short",0}, | |
1d99702e | 10295 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10296 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10297 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10298 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10299 | { "_unsigned_int","_size_t",0}, |
10300 | { "_unsigned_int","_uint",0}, | |
10301 | { "_unsigned_int","_wxWindowID",0}, | |
10302 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
10303 | { "_short","_WXTYPE",0}, |
10304 | { "_short","_unsigned_short",0}, | |
10305 | { "_short","_signed_short",0}, | |
b1462dfa | 10306 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10307 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10308 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10309 | { "_wxWindowID","_size_t",0}, |
10310 | { "_wxWindowID","_EBool",0}, | |
10311 | { "_wxWindowID","_uint",0}, | |
10312 | { "_wxWindowID","_int",0}, | |
10313 | { "_wxWindowID","_signed_int",0}, | |
10314 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10315 | { "_int","_wxCoord",0}, |
1d99702e | 10316 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10317 | { "_int","_time_t",0}, |
1d99702e RD |
10318 | { "_int","_size_t",0}, |
10319 | { "_int","_EBool",0}, | |
10320 | { "_int","_uint",0}, | |
10321 | { "_int","_wxWindowID",0}, | |
10322 | { "_int","_unsigned_int",0}, | |
10323 | { "_int","_signed_int",0}, | |
c368d904 RD |
10324 | { "_time_t","_wxCoord",0}, |
10325 | { "_time_t","_wxPrintQuality",0}, | |
10326 | { "_time_t","_unsigned_int",0}, | |
10327 | { "_time_t","_int",0}, | |
10328 | { "_time_t","_wxWindowID",0}, | |
10329 | { "_time_t","_uint",0}, | |
10330 | { "_time_t","_size_t",0}, | |
2f90df85 RD |
10331 | { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
10332 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
b1462dfa RD |
10333 | { "_wxCoord","_int",0}, |
10334 | { "_wxCoord","_signed_int",0}, | |
10335 | { "_wxCoord","_unsigned_int",0}, | |
10336 | { "_wxCoord","_wxWindowID",0}, | |
10337 | { "_wxCoord","_uint",0}, | |
10338 | { "_wxCoord","_EBool",0}, | |
10339 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10340 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10341 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e RD |
10342 | { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
10343 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10344 | { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10345 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10346 | { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10347 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
1d99702e RD |
10348 | { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, |
10349 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10350 | { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
10351 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
10352 | { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
10353 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
10354 | { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
10355 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
b1462dfa RD |
10356 | { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, |
10357 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
10358 | { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
10359 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
1d99702e RD |
10360 | { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, |
10361 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
1d99702e RD |
10362 | {0,0,0}}; |
10363 | ||
8ab979d7 RD |
10364 | static PyObject *SWIG_globals; |
10365 | #ifdef __cplusplus | |
10366 | extern "C" | |
10367 | #endif | |
1d99702e | 10368 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
10369 | PyObject *m, *d; |
10370 | SWIG_globals = SWIG_newvarlink(); | |
10371 | m = Py_InitModule("windowsc", windowscMethods); | |
10372 | d = PyModule_GetDict(m); | |
1d99702e RD |
10373 | { |
10374 | int i; | |
10375 | for (i = 0; _swig_mapping[i].n1; i++) | |
10376 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10377 | } | |
8ab979d7 | 10378 | } |