]>
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; | |
3065 | bool _arg1; | |
1d99702e | 3066 | PyObject * _argo0 = 0; |
8ab979d7 | 3067 | int tempbool1; |
efc5f224 | 3068 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3069 | |
3070 | self = self; | |
efc5f224 | 3071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi: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 | ||
b8b8dda7 | 3645 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
efc5f224 | 3646 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
3647 | PyObject * _resultobj; |
3648 | wxWindow * _arg0; | |
3649 | wxAcceleratorTable * _arg1; | |
1d99702e RD |
3650 | PyObject * _argo0 = 0; |
3651 | PyObject * _argo1 = 0; | |
efc5f224 | 3652 | char *_kwnames[] = { "self","accel", NULL }; |
b8b8dda7 RD |
3653 | |
3654 | self = self; | |
efc5f224 | 3655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 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")) { | |
b8b8dda7 RD |
3660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); |
3661 | return NULL; | |
3662 | } | |
3663 | } | |
1d99702e RD |
3664 | if (_argo1) { |
3665 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3666 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
b8b8dda7 RD |
3667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
3668 | return NULL; | |
3669 | } | |
3670 | } | |
cf694132 RD |
3671 | { |
3672 | wxPy_BEGIN_ALLOW_THREADS; | |
3673 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
3674 | ||
3675 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3676 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3677 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
3678 | _resultobj = Py_None; |
3679 | return _resultobj; | |
3680 | } | |
3681 | ||
8ab979d7 | 3682 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) |
efc5f224 | 3683 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3684 | PyObject * _resultobj; |
3685 | wxWindow * _arg0; | |
3686 | bool _arg1; | |
1d99702e | 3687 | PyObject * _argo0 = 0; |
8ab979d7 | 3688 | int tempbool1; |
efc5f224 | 3689 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3690 | |
3691 | self = self; | |
efc5f224 | 3692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3693 | return NULL; |
1d99702e RD |
3694 | if (_argo0) { |
3695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3698 | return NULL; | |
3699 | } | |
3700 | } | |
3701 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3702 | { |
3703 | wxPy_BEGIN_ALLOW_THREADS; | |
3704 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3705 | ||
3706 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3707 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3708 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3709 | _resultobj = Py_None; |
3710 | return _resultobj; | |
3711 | } | |
3712 | ||
9d8bd15f RD |
3713 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3714 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3715 | PyObject * _resultobj; | |
3716 | bool _result; | |
3717 | wxWindow * _arg0; | |
3718 | PyObject * _argo0 = 0; | |
3719 | char *_kwnames[] = { "self", NULL }; | |
3720 | ||
3721 | self = self; | |
3722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3723 | return NULL; | |
3724 | if (_argo0) { | |
3725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3728 | return NULL; | |
3729 | } | |
3730 | } | |
3731 | { | |
3732 | wxPy_BEGIN_ALLOW_THREADS; | |
3733 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3734 | ||
3735 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3736 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3737 | } _resultobj = Py_BuildValue("i",_result); |
3738 | return _resultobj; | |
3739 | } | |
3740 | ||
8ab979d7 | 3741 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3742 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3743 | PyObject * _resultobj; |
3744 | wxWindow * _arg0; | |
3745 | wxColour * _arg1; | |
1d99702e | 3746 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3747 | wxColour temp; |
3748 | PyObject * _obj1 = 0; | |
efc5f224 | 3749 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3750 | |
3751 | self = self; | |
f6bcfd97 | 3752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3753 | return NULL; |
1d99702e RD |
3754 | if (_argo0) { |
3755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3758 | return NULL; | |
3759 | } | |
3760 | } | |
f6bcfd97 BP |
3761 | { |
3762 | _arg1 = &temp; | |
3763 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3764 | return NULL; |
f6bcfd97 | 3765 | } |
cf694132 RD |
3766 | { |
3767 | wxPy_BEGIN_ALLOW_THREADS; | |
3768 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3769 | ||
3770 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3771 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3772 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3773 | _resultobj = Py_None; |
3774 | return _resultobj; | |
3775 | } | |
3776 | ||
3777 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3778 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3779 | PyObject * _resultobj; |
3780 | wxWindow * _arg0; | |
3781 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3782 | PyObject * _argo0 = 0; |
3783 | PyObject * _argo1 = 0; | |
efc5f224 | 3784 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3785 | |
3786 | self = self; | |
efc5f224 | 3787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3788 | return NULL; |
1d99702e RD |
3789 | if (_argo0) { |
3790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3793 | return NULL; | |
3794 | } | |
3795 | } | |
1d99702e RD |
3796 | if (_argo1) { |
3797 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3798 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3800 | return NULL; | |
3801 | } | |
3802 | } | |
cf694132 RD |
3803 | { |
3804 | wxPy_BEGIN_ALLOW_THREADS; | |
3805 | wxWindow_SetConstraints(_arg0,_arg1); | |
3806 | ||
3807 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3808 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3809 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3810 | _resultobj = Py_None; |
3811 | return _resultobj; | |
3812 | } | |
3813 | ||
2f90df85 RD |
3814 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3815 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3816 | PyObject * _resultobj; | |
3817 | wxWindow * _arg0; | |
3818 | wxLayoutConstraints * _arg1; | |
3819 | PyObject * _argo0 = 0; | |
3820 | PyObject * _argo1 = 0; | |
3821 | char *_kwnames[] = { "self","constraints", NULL }; | |
3822 | ||
3823 | self = self; | |
3824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3825 | return NULL; | |
3826 | if (_argo0) { | |
3827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3830 | return NULL; | |
3831 | } | |
3832 | } | |
3833 | if (_argo1) { | |
3834 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3835 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3837 | return NULL; | |
3838 | } | |
3839 | } | |
3840 | { | |
3841 | wxPy_BEGIN_ALLOW_THREADS; | |
3842 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3843 | ||
3844 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3845 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3846 | } Py_INCREF(Py_None); |
3847 | _resultobj = Py_None; | |
3848 | return _resultobj; | |
3849 | } | |
3850 | ||
8ab979d7 | 3851 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3852 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3853 | PyObject * _resultobj; |
3854 | wxWindow * _arg0; | |
1d99702e | 3855 | PyObject * _argo0 = 0; |
efc5f224 | 3856 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3857 | |
3858 | self = self; | |
efc5f224 | 3859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3860 | return NULL; |
1d99702e RD |
3861 | if (_argo0) { |
3862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3865 | return NULL; | |
3866 | } | |
3867 | } | |
cf694132 RD |
3868 | { |
3869 | wxPy_BEGIN_ALLOW_THREADS; | |
3870 | wxWindow_SetFocus(_arg0); | |
3871 | ||
3872 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3873 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3874 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3875 | _resultobj = Py_None; |
3876 | return _resultobj; | |
3877 | } | |
3878 | ||
2f90df85 RD |
3879 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3880 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3881 | PyObject * _resultobj; | |
3882 | bool _result; | |
3883 | wxWindow * _arg0; | |
3884 | PyObject * _argo0 = 0; | |
3885 | char *_kwnames[] = { "self", NULL }; | |
3886 | ||
3887 | self = self; | |
3888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3889 | return NULL; | |
3890 | if (_argo0) { | |
3891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3894 | return NULL; | |
3895 | } | |
3896 | } | |
3897 | { | |
3898 | wxPy_BEGIN_ALLOW_THREADS; | |
3899 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3900 | ||
3901 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3902 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3903 | } _resultobj = Py_BuildValue("i",_result); |
3904 | return _resultobj; | |
3905 | } | |
3906 | ||
8ab979d7 | 3907 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 3908 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3909 | PyObject * _resultobj; |
3910 | wxWindow * _arg0; | |
3911 | wxFont * _arg1; | |
1d99702e RD |
3912 | PyObject * _argo0 = 0; |
3913 | PyObject * _argo1 = 0; | |
efc5f224 | 3914 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
3915 | |
3916 | self = self; | |
efc5f224 | 3917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3918 | return NULL; |
1d99702e RD |
3919 | if (_argo0) { |
3920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3923 | return NULL; | |
3924 | } | |
3925 | } | |
1d99702e RD |
3926 | if (_argo1) { |
3927 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3928 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
3929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3930 | return NULL; | |
3931 | } | |
3932 | } | |
cf694132 RD |
3933 | { |
3934 | wxPy_BEGIN_ALLOW_THREADS; | |
3935 | wxWindow_SetFont(_arg0,*_arg1); | |
3936 | ||
3937 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3938 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3939 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3940 | _resultobj = Py_None; |
3941 | return _resultobj; | |
3942 | } | |
3943 | ||
3944 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 3945 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3946 | PyObject * _resultobj; |
3947 | wxWindow * _arg0; | |
3948 | wxColour * _arg1; | |
1d99702e | 3949 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3950 | wxColour temp; |
3951 | PyObject * _obj1 = 0; | |
efc5f224 | 3952 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3953 | |
3954 | self = self; | |
f6bcfd97 | 3955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3956 | return NULL; |
1d99702e RD |
3957 | if (_argo0) { |
3958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
3961 | return NULL; | |
3962 | } | |
3963 | } | |
f6bcfd97 BP |
3964 | { |
3965 | _arg1 = &temp; | |
3966 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3967 | return NULL; |
f6bcfd97 | 3968 | } |
cf694132 RD |
3969 | { |
3970 | wxPy_BEGIN_ALLOW_THREADS; | |
3971 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3972 | ||
3973 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3974 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3975 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3976 | _resultobj = Py_None; |
3977 | return _resultobj; | |
3978 | } | |
3979 | ||
3980 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 3981 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3982 | PyObject * _resultobj; |
3983 | wxWindow * _arg0; | |
3984 | int _arg1; | |
1d99702e | 3985 | PyObject * _argo0 = 0; |
efc5f224 | 3986 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
3987 | |
3988 | self = self; | |
efc5f224 | 3989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3990 | return NULL; |
1d99702e RD |
3991 | if (_argo0) { |
3992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
3995 | return NULL; | |
3996 | } | |
3997 | } | |
cf694132 RD |
3998 | { |
3999 | wxPy_BEGIN_ALLOW_THREADS; | |
4000 | wxWindow_SetId(_arg0,_arg1); | |
4001 | ||
4002 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4003 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4004 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4005 | _resultobj = Py_None; |
4006 | return _resultobj; | |
4007 | } | |
4008 | ||
4009 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4010 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4011 | PyObject * _resultobj; |
4012 | wxWindow * _arg0; | |
4013 | wxString * _arg1; | |
1d99702e | 4014 | PyObject * _argo0 = 0; |
8ab979d7 | 4015 | PyObject * _obj1 = 0; |
efc5f224 | 4016 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4017 | |
4018 | self = self; | |
efc5f224 | 4019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4020 | return NULL; |
1d99702e RD |
4021 | if (_argo0) { |
4022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4025 | return NULL; | |
4026 | } | |
4027 | } | |
4028 | { | |
2cd2fac8 RD |
4029 | #if PYTHON_API_VERSION >= 1009 |
4030 | char* tmpPtr; int tmpSize; | |
4031 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4032 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4033 | return NULL; |
4034 | } | |
4035 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4036 | return NULL; | |
4037 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4038 | #else | |
8ab979d7 RD |
4039 | if (!PyString_Check(_obj1)) { |
4040 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4041 | return NULL; | |
4042 | } | |
2cd2fac8 RD |
4043 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4044 | #endif | |
8ab979d7 | 4045 | } |
cf694132 RD |
4046 | { |
4047 | wxPy_BEGIN_ALLOW_THREADS; | |
4048 | wxWindow_SetName(_arg0,*_arg1); | |
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 | { | |
4055 | if (_obj1) | |
4056 | delete _arg1; | |
4057 | } | |
4058 | return _resultobj; | |
4059 | } | |
4060 | ||
8ab979d7 | 4061 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4062 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4063 | PyObject * _resultobj; |
4064 | wxWindow * _arg0; | |
4065 | int _arg1; | |
4066 | int _arg2; | |
4067 | int _arg3; | |
4068 | int _arg4; | |
eb715945 | 4069 | int _arg5 = (int ) TRUE; |
1d99702e | 4070 | PyObject * _argo0 = 0; |
efc5f224 | 4071 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4072 | |
4073 | self = self; | |
eb715945 | 4074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4075 | return NULL; |
1d99702e RD |
4076 | if (_argo0) { |
4077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4080 | return NULL; | |
4081 | } | |
4082 | } | |
cf694132 RD |
4083 | { |
4084 | wxPy_BEGIN_ALLOW_THREADS; | |
4085 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4086 | ||
4087 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4088 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4089 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4090 | _resultobj = Py_None; |
4091 | return _resultobj; | |
4092 | } | |
4093 | ||
4094 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4095 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4096 | PyObject * _resultobj; |
4097 | wxWindow * _arg0; | |
4098 | int _arg1; | |
4099 | int _arg2; | |
1d99702e RD |
4100 | bool _arg3 = (bool ) TRUE; |
4101 | PyObject * _argo0 = 0; | |
4102 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4103 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4104 | |
4105 | self = self; | |
efc5f224 | 4106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4107 | return NULL; |
1d99702e RD |
4108 | if (_argo0) { |
4109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4112 | return NULL; | |
4113 | } | |
4114 | } | |
4115 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
4116 | { |
4117 | wxPy_BEGIN_ALLOW_THREADS; | |
4118 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4119 | ||
4120 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4121 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4122 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4123 | _resultobj = Py_None; |
4124 | return _resultobj; | |
4125 | } | |
4126 | ||
4127 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4128 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4129 | PyObject * _resultobj; |
4130 | wxWindow * _arg0; | |
4131 | int _arg1; | |
4132 | int _arg2; | |
4133 | int _arg3; | |
4134 | int _arg4; | |
1d99702e RD |
4135 | int _arg5 = (int ) wxSIZE_AUTO; |
4136 | PyObject * _argo0 = 0; | |
efc5f224 | 4137 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4138 | |
4139 | self = self; | |
efc5f224 | 4140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4141 | return NULL; |
1d99702e RD |
4142 | if (_argo0) { |
4143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4146 | return NULL; | |
4147 | } | |
4148 | } | |
cf694132 RD |
4149 | { |
4150 | wxPy_BEGIN_ALLOW_THREADS; | |
4151 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4152 | ||
4153 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4154 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4155 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4156 | _resultobj = Py_None; |
4157 | return _resultobj; | |
4158 | } | |
4159 | ||
4160 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4161 | self->SetSize(size); |
8ab979d7 | 4162 | } |
efc5f224 | 4163 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4164 | PyObject * _resultobj; |
4165 | wxWindow * _arg0; | |
4166 | wxSize * _arg1; | |
1d99702e | 4167 | PyObject * _argo0 = 0; |
2f90df85 RD |
4168 | wxSize temp; |
4169 | PyObject * _obj1 = 0; | |
efc5f224 | 4170 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4171 | |
4172 | self = self; | |
2f90df85 | 4173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4174 | return NULL; |
1d99702e RD |
4175 | if (_argo0) { |
4176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4179 | return NULL; | |
4180 | } | |
4181 | } | |
2f90df85 RD |
4182 | { |
4183 | _arg1 = &temp; | |
4184 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4185 | return NULL; |
2f90df85 | 4186 | } |
cf694132 RD |
4187 | { |
4188 | wxPy_BEGIN_ALLOW_THREADS; | |
4189 | wxWindow_SetSize(_arg0,*_arg1); | |
4190 | ||
4191 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4192 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4193 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4194 | _resultobj = Py_None; |
4195 | return _resultobj; | |
4196 | } | |
4197 | ||
4198 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
b7e72427 | 4199 | self->Move(pos); |
8ab979d7 | 4200 | } |
efc5f224 | 4201 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4202 | PyObject * _resultobj; |
4203 | wxWindow * _arg0; | |
4204 | wxPoint * _arg1; | |
1d99702e | 4205 | PyObject * _argo0 = 0; |
2f90df85 RD |
4206 | wxPoint temp; |
4207 | PyObject * _obj1 = 0; | |
efc5f224 | 4208 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4209 | |
4210 | self = self; | |
2f90df85 | 4211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4212 | return NULL; |
1d99702e RD |
4213 | if (_argo0) { |
4214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4217 | return NULL; | |
4218 | } | |
4219 | } | |
2f90df85 RD |
4220 | { |
4221 | _arg1 = &temp; | |
4222 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4223 | return NULL; |
2f90df85 | 4224 | } |
cf694132 RD |
4225 | { |
4226 | wxPy_BEGIN_ALLOW_THREADS; | |
4227 | wxWindow_SetPosition(_arg0,*_arg1); | |
4228 | ||
4229 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4230 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4231 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4232 | _resultobj = Py_None; |
4233 | return _resultobj; | |
4234 | } | |
4235 | ||
2cd2fac8 RD |
4236 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4237 | self->SetSize(rect, sizeFlags); | |
4238 | } | |
4239 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4240 | PyObject * _resultobj; | |
4241 | wxWindow * _arg0; | |
4242 | wxRect * _arg1; | |
4243 | int _arg2 = (int ) wxSIZE_AUTO; | |
4244 | PyObject * _argo0 = 0; | |
4245 | wxRect temp; | |
4246 | PyObject * _obj1 = 0; | |
4247 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4248 | ||
4249 | self = self; | |
4250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4251 | return NULL; | |
4252 | if (_argo0) { | |
4253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4256 | return NULL; | |
4257 | } | |
4258 | } | |
4259 | { | |
4260 | _arg1 = &temp; | |
4261 | if (! wxRect_helper(_obj1, &_arg1)) | |
4262 | return NULL; | |
4263 | } | |
4264 | { | |
4265 | wxPy_BEGIN_ALLOW_THREADS; | |
4266 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4267 | ||
4268 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4269 | if (PyErr_Occurred()) return NULL; |
2cd2fac8 RD |
4270 | } Py_INCREF(Py_None); |
4271 | _resultobj = Py_None; | |
4272 | return _resultobj; | |
4273 | } | |
4274 | ||
8ab979d7 | 4275 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4276 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4277 | PyObject * _resultobj; |
4278 | wxWindow * _arg0; | |
1d99702e RD |
4279 | int _arg1 = (int ) -1; |
4280 | int _arg2 = (int ) -1; | |
4281 | int _arg3 = (int ) -1; | |
4282 | int _arg4 = (int ) -1; | |
4283 | int _arg5 = (int ) -1; | |
4284 | int _arg6 = (int ) -1; | |
4285 | PyObject * _argo0 = 0; | |
efc5f224 | 4286 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4287 | |
4288 | self = self; | |
efc5f224 | 4289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4290 | return NULL; |
1d99702e RD |
4291 | if (_argo0) { |
4292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4295 | return NULL; | |
4296 | } | |
4297 | } | |
cf694132 RD |
4298 | { |
4299 | wxPy_BEGIN_ALLOW_THREADS; | |
4300 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4301 | ||
4302 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4303 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4304 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4305 | _resultobj = Py_None; |
4306 | return _resultobj; | |
4307 | } | |
4308 | ||
af309447 | 4309 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4310 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4311 | PyObject * _resultobj; |
4312 | wxWindow * _arg0; | |
4313 | int _arg1; | |
4314 | int _arg2; | |
1d99702e | 4315 | PyObject * _argo0 = 0; |
efc5f224 | 4316 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4317 | |
4318 | self = self; | |
efc5f224 | 4319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4320 | return NULL; |
1d99702e RD |
4321 | if (_argo0) { |
4322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4325 | return NULL; | |
4326 | } | |
4327 | } | |
cf694132 RD |
4328 | { |
4329 | wxPy_BEGIN_ALLOW_THREADS; | |
4330 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4331 | ||
4332 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4333 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4334 | } Py_INCREF(Py_None); |
af309447 RD |
4335 | _resultobj = Py_None; |
4336 | return _resultobj; | |
4337 | } | |
4338 | ||
4339 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4340 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4341 | PyObject * _resultobj; |
4342 | wxWindow * _arg0; | |
4343 | wxSize * _arg1; | |
1d99702e | 4344 | PyObject * _argo0 = 0; |
2f90df85 RD |
4345 | wxSize temp; |
4346 | PyObject * _obj1 = 0; | |
efc5f224 | 4347 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4348 | |
4349 | self = self; | |
2f90df85 | 4350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4351 | return NULL; |
1d99702e RD |
4352 | if (_argo0) { |
4353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4356 | return NULL; | |
4357 | } | |
4358 | } | |
2f90df85 RD |
4359 | { |
4360 | _arg1 = &temp; | |
4361 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4362 | return NULL; |
2f90df85 | 4363 | } |
cf694132 RD |
4364 | { |
4365 | wxPy_BEGIN_ALLOW_THREADS; | |
4366 | wxWindow_SetClientSize(_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 | ||
4375 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4376 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4377 | PyObject * _resultobj; |
4378 | wxWindow * _arg0; | |
4379 | wxCursor * _arg1; | |
1d99702e RD |
4380 | PyObject * _argo0 = 0; |
4381 | PyObject * _argo1 = 0; | |
efc5f224 | 4382 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4383 | |
4384 | self = self; | |
efc5f224 | 4385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4386 | return NULL; |
1d99702e RD |
4387 | if (_argo0) { |
4388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4391 | return NULL; | |
4392 | } | |
4393 | } | |
1d99702e RD |
4394 | if (_argo1) { |
4395 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4396 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4398 | return NULL; | |
4399 | } | |
4400 | } | |
cf694132 RD |
4401 | { |
4402 | wxPy_BEGIN_ALLOW_THREADS; | |
4403 | wxWindow_SetCursor(_arg0,*_arg1); | |
4404 | ||
4405 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4406 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4407 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4408 | _resultobj = Py_None; |
4409 | return _resultobj; | |
4410 | } | |
4411 | ||
1afc06c2 RD |
4412 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4413 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4414 | PyObject * _resultobj; | |
4415 | wxWindow * _arg0; | |
4416 | wxEvtHandler * _arg1; | |
4417 | PyObject * _argo0 = 0; | |
4418 | PyObject * _argo1 = 0; | |
4419 | char *_kwnames[] = { "self","handler", NULL }; | |
4420 | ||
4421 | self = self; | |
4422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4423 | return NULL; | |
4424 | if (_argo0) { | |
4425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4428 | return NULL; | |
4429 | } | |
4430 | } | |
4431 | if (_argo1) { | |
4432 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4433 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4435 | return NULL; | |
4436 | } | |
4437 | } | |
4438 | { | |
4439 | wxPy_BEGIN_ALLOW_THREADS; | |
4440 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4441 | ||
4442 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4443 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4444 | } Py_INCREF(Py_None); |
4445 | _resultobj = Py_None; | |
4446 | return _resultobj; | |
4447 | } | |
4448 | ||
5e40f9dd RD |
4449 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4450 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4451 | PyObject * _resultobj; | |
4452 | wxWindow * _arg0; | |
4453 | long _arg1; | |
4454 | PyObject * _argo0 = 0; | |
4455 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4456 | ||
4457 | self = self; | |
4458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4459 | return NULL; | |
4460 | if (_argo0) { | |
4461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4464 | return NULL; | |
4465 | } | |
4466 | } | |
4467 | { | |
4468 | wxPy_BEGIN_ALLOW_THREADS; | |
4469 | wxWindow_SetExtraStyle(_arg0,_arg1); | |
4470 | ||
4471 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4472 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4473 | } Py_INCREF(Py_None); |
4474 | _resultobj = Py_None; | |
4475 | return _resultobj; | |
4476 | } | |
4477 | ||
8ab979d7 | 4478 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4479 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4480 | PyObject * _resultobj; |
4481 | wxWindow * _arg0; | |
4482 | wxString * _arg1; | |
1d99702e | 4483 | PyObject * _argo0 = 0; |
8ab979d7 | 4484 | PyObject * _obj1 = 0; |
efc5f224 | 4485 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4486 | |
4487 | self = self; | |
efc5f224 | 4488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4489 | return NULL; |
1d99702e RD |
4490 | if (_argo0) { |
4491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4494 | return NULL; | |
4495 | } | |
4496 | } | |
4497 | { | |
2cd2fac8 RD |
4498 | #if PYTHON_API_VERSION >= 1009 |
4499 | char* tmpPtr; int tmpSize; | |
4500 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4501 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4502 | return NULL; |
4503 | } | |
4504 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4505 | return NULL; | |
4506 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4507 | #else | |
8ab979d7 RD |
4508 | if (!PyString_Check(_obj1)) { |
4509 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4510 | return NULL; | |
4511 | } | |
2cd2fac8 RD |
4512 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4513 | #endif | |
8ab979d7 | 4514 | } |
cf694132 RD |
4515 | { |
4516 | wxPy_BEGIN_ALLOW_THREADS; | |
4517 | wxWindow_SetTitle(_arg0,*_arg1); | |
4518 | ||
4519 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4520 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4521 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4522 | _resultobj = Py_None; |
4523 | { | |
4524 | if (_obj1) | |
4525 | delete _arg1; | |
4526 | } | |
4527 | return _resultobj; | |
4528 | } | |
4529 | ||
4530 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4531 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4532 | PyObject * _resultobj; |
4533 | bool _result; | |
4534 | wxWindow * _arg0; | |
4535 | bool _arg1; | |
1d99702e | 4536 | PyObject * _argo0 = 0; |
8ab979d7 | 4537 | int tempbool1; |
efc5f224 | 4538 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4539 | |
4540 | self = self; | |
efc5f224 | 4541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4542 | return NULL; |
1d99702e RD |
4543 | if (_argo0) { |
4544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4547 | return NULL; | |
4548 | } | |
4549 | } | |
4550 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4551 | { |
4552 | wxPy_BEGIN_ALLOW_THREADS; | |
4553 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4554 | ||
4555 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4556 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4557 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4558 | return _resultobj; |
4559 | } | |
4560 | ||
4561 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4562 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4563 | PyObject * _resultobj; |
4564 | bool _result; | |
4565 | wxWindow * _arg0; | |
1d99702e | 4566 | PyObject * _argo0 = 0; |
efc5f224 | 4567 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4568 | |
4569 | self = self; | |
efc5f224 | 4570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4571 | return NULL; |
1d99702e RD |
4572 | if (_argo0) { |
4573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4576 | return NULL; | |
4577 | } | |
4578 | } | |
cf694132 RD |
4579 | { |
4580 | wxPy_BEGIN_ALLOW_THREADS; | |
4581 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4582 | ||
4583 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4584 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4585 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4586 | return _resultobj; |
4587 | } | |
4588 | ||
4589 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4590 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4591 | PyObject * _resultobj; |
4592 | bool _result; | |
4593 | wxWindow * _arg0; | |
1d99702e | 4594 | PyObject * _argo0 = 0; |
efc5f224 | 4595 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4596 | |
4597 | self = self; | |
efc5f224 | 4598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4599 | return NULL; |
1d99702e RD |
4600 | if (_argo0) { |
4601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4604 | return NULL; | |
4605 | } | |
4606 | } | |
cf694132 RD |
4607 | { |
4608 | wxPy_BEGIN_ALLOW_THREADS; | |
4609 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4610 | ||
4611 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4612 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4613 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4614 | return _resultobj; |
4615 | } | |
4616 | ||
4617 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4618 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4619 | PyObject * _resultobj; |
4620 | bool _result; | |
4621 | wxWindow * _arg0; | |
1d99702e | 4622 | PyObject * _argo0 = 0; |
efc5f224 | 4623 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4624 | |
4625 | self = self; | |
efc5f224 | 4626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4627 | return NULL; |
1d99702e RD |
4628 | if (_argo0) { |
4629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4632 | return NULL; | |
4633 | } | |
4634 | } | |
cf694132 RD |
4635 | { |
4636 | wxPy_BEGIN_ALLOW_THREADS; | |
4637 | _result = (bool )wxWindow_Validate(_arg0); | |
4638 | ||
4639 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4640 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4641 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4642 | return _resultobj; |
4643 | } | |
4644 | ||
4645 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4646 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4647 | PyObject * _resultobj; |
4648 | wxWindow * _arg0; | |
4649 | int _arg1; | |
4650 | int _arg2; | |
1d99702e | 4651 | PyObject * _argo0 = 0; |
efc5f224 | 4652 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4653 | |
4654 | self = self; | |
efc5f224 | 4655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4656 | return NULL; |
1d99702e RD |
4657 | if (_argo0) { |
4658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4661 | return NULL; | |
4662 | } | |
4663 | } | |
cf694132 RD |
4664 | { |
4665 | wxPy_BEGIN_ALLOW_THREADS; | |
4666 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4667 | ||
4668 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4669 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4670 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4671 | _resultobj = Py_None; |
4672 | return _resultobj; | |
4673 | } | |
4674 | ||
b8b8dda7 | 4675 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4676 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4677 | PyObject * _resultobj; |
4678 | wxPoint * _result; | |
4679 | wxWindow * _arg0; | |
4680 | wxPoint * _arg1; | |
1d99702e | 4681 | PyObject * _argo0 = 0; |
2f90df85 RD |
4682 | wxPoint temp; |
4683 | PyObject * _obj1 = 0; | |
efc5f224 | 4684 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4685 | char _ptemp[128]; |
4686 | ||
4687 | self = self; | |
2f90df85 | 4688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4689 | return NULL; |
1d99702e RD |
4690 | if (_argo0) { |
4691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4694 | return NULL; | |
4695 | } | |
4696 | } | |
2f90df85 RD |
4697 | { |
4698 | _arg1 = &temp; | |
4699 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4700 | return NULL; |
2f90df85 | 4701 | } |
cf694132 RD |
4702 | { |
4703 | wxPy_BEGIN_ALLOW_THREADS; | |
4704 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4705 | ||
4706 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4707 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4708 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4709 | _resultobj = Py_BuildValue("s",_ptemp); |
4710 | return _resultobj; | |
4711 | } | |
4712 | ||
4713 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4714 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4715 | PyObject * _resultobj; |
4716 | wxSize * _result; | |
4717 | wxWindow * _arg0; | |
4718 | wxSize * _arg1; | |
1d99702e | 4719 | PyObject * _argo0 = 0; |
2f90df85 RD |
4720 | wxSize temp; |
4721 | PyObject * _obj1 = 0; | |
efc5f224 | 4722 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4723 | char _ptemp[128]; |
4724 | ||
4725 | self = self; | |
2f90df85 | 4726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4727 | return NULL; |
1d99702e RD |
4728 | if (_argo0) { |
4729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4732 | return NULL; | |
4733 | } | |
4734 | } | |
2f90df85 RD |
4735 | { |
4736 | _arg1 = &temp; | |
4737 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4738 | return NULL; |
2f90df85 | 4739 | } |
cf694132 RD |
4740 | { |
4741 | wxPy_BEGIN_ALLOW_THREADS; | |
4742 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4743 | ||
4744 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4745 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4746 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4747 | _resultobj = Py_BuildValue("s",_ptemp); |
4748 | return _resultobj; | |
4749 | } | |
4750 | ||
4751 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4752 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4753 | PyObject * _resultobj; |
4754 | wxPoint * _result; | |
4755 | wxWindow * _arg0; | |
4756 | wxPoint * _arg1; | |
1d99702e | 4757 | PyObject * _argo0 = 0; |
2f90df85 RD |
4758 | wxPoint temp; |
4759 | PyObject * _obj1 = 0; | |
efc5f224 | 4760 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4761 | char _ptemp[128]; |
4762 | ||
4763 | self = self; | |
2f90df85 | 4764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4765 | return NULL; |
1d99702e RD |
4766 | if (_argo0) { |
4767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4770 | return NULL; | |
4771 | } | |
4772 | } | |
2f90df85 RD |
4773 | { |
4774 | _arg1 = &temp; | |
4775 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4776 | return NULL; |
2f90df85 | 4777 | } |
cf694132 RD |
4778 | { |
4779 | wxPy_BEGIN_ALLOW_THREADS; | |
4780 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4781 | ||
4782 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4783 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4784 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4785 | _resultobj = Py_BuildValue("s",_ptemp); |
4786 | return _resultobj; | |
4787 | } | |
4788 | ||
4789 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4790 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4791 | PyObject * _resultobj; |
4792 | wxSize * _result; | |
4793 | wxWindow * _arg0; | |
4794 | wxSize * _arg1; | |
1d99702e | 4795 | PyObject * _argo0 = 0; |
2f90df85 RD |
4796 | wxSize temp; |
4797 | PyObject * _obj1 = 0; | |
efc5f224 | 4798 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4799 | char _ptemp[128]; |
4800 | ||
4801 | self = self; | |
2f90df85 | 4802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4803 | return NULL; |
1d99702e RD |
4804 | if (_argo0) { |
4805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4808 | return NULL; | |
4809 | } | |
4810 | } | |
2f90df85 RD |
4811 | { |
4812 | _arg1 = &temp; | |
4813 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4814 | return NULL; |
2f90df85 | 4815 | } |
cf694132 RD |
4816 | { |
4817 | wxPy_BEGIN_ALLOW_THREADS; | |
4818 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4819 | ||
4820 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4821 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4822 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4823 | _resultobj = Py_BuildValue("s",_ptemp); |
4824 | return _resultobj; | |
4825 | } | |
4826 | ||
af309447 | 4827 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4828 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4829 | PyObject * _resultobj; |
4830 | wxWindow * _arg0; | |
4831 | wxString * _arg1; | |
1d99702e | 4832 | PyObject * _argo0 = 0; |
af309447 | 4833 | PyObject * _obj1 = 0; |
efc5f224 | 4834 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4835 | |
4836 | self = self; | |
efc5f224 | 4837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4838 | return NULL; |
1d99702e RD |
4839 | if (_argo0) { |
4840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4843 | return NULL; | |
4844 | } | |
4845 | } | |
4846 | { | |
2cd2fac8 RD |
4847 | #if PYTHON_API_VERSION >= 1009 |
4848 | char* tmpPtr; int tmpSize; | |
4849 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4850 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4851 | return NULL; |
4852 | } | |
4853 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4854 | return NULL; | |
4855 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4856 | #else | |
af309447 RD |
4857 | if (!PyString_Check(_obj1)) { |
4858 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4859 | return NULL; | |
4860 | } | |
2cd2fac8 RD |
4861 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4862 | #endif | |
af309447 | 4863 | } |
cf694132 RD |
4864 | { |
4865 | wxPy_BEGIN_ALLOW_THREADS; | |
4866 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4867 | ||
4868 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4869 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4870 | } Py_INCREF(Py_None); |
af309447 RD |
4871 | _resultobj = Py_None; |
4872 | { | |
4873 | if (_obj1) | |
4874 | delete _arg1; | |
4875 | } | |
4876 | return _resultobj; | |
4877 | } | |
4878 | ||
4879 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4880 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4881 | PyObject * _resultobj; |
4882 | wxWindow * _arg0; | |
4883 | wxToolTip * _arg1; | |
1d99702e RD |
4884 | PyObject * _argo0 = 0; |
4885 | PyObject * _argo1 = 0; | |
efc5f224 | 4886 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4887 | |
4888 | self = self; | |
efc5f224 | 4889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4890 | return NULL; |
1d99702e RD |
4891 | if (_argo0) { |
4892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4895 | return NULL; | |
4896 | } | |
4897 | } | |
1d99702e RD |
4898 | if (_argo1) { |
4899 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4900 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4902 | return NULL; | |
4903 | } | |
4904 | } | |
cf694132 RD |
4905 | { |
4906 | wxPy_BEGIN_ALLOW_THREADS; | |
4907 | wxWindow_SetToolTip(_arg0,_arg1); | |
4908 | ||
4909 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4910 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4911 | } Py_INCREF(Py_None); |
af309447 RD |
4912 | _resultobj = Py_None; |
4913 | return _resultobj; | |
4914 | } | |
4915 | ||
4916 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 4917 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4918 | PyObject * _resultobj; |
4919 | wxToolTip * _result; | |
4920 | wxWindow * _arg0; | |
1d99702e | 4921 | PyObject * _argo0 = 0; |
efc5f224 | 4922 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
4923 | |
4924 | self = self; | |
efc5f224 | 4925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 4926 | return NULL; |
1d99702e RD |
4927 | if (_argo0) { |
4928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4931 | return NULL; | |
4932 | } | |
4933 | } | |
cf694132 RD |
4934 | { |
4935 | wxPy_BEGIN_ALLOW_THREADS; | |
4936 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4937 | ||
4938 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4939 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 4940 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
4941 | return _resultobj; |
4942 | } | |
4943 | ||
2f90df85 RD |
4944 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
4945 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4946 | PyObject * _resultobj; | |
4947 | wxWindow * _arg0; | |
4948 | wxSizer * _arg1; | |
4949 | PyObject * _argo0 = 0; | |
4950 | PyObject * _argo1 = 0; | |
4951 | char *_kwnames[] = { "self","sizer", NULL }; | |
4952 | ||
4953 | self = self; | |
4954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4955 | return NULL; | |
4956 | if (_argo0) { | |
4957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4960 | return NULL; | |
4961 | } | |
4962 | } | |
4963 | if (_argo1) { | |
4964 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4965 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4967 | return NULL; | |
4968 | } | |
4969 | } | |
4970 | { | |
4971 | wxPy_BEGIN_ALLOW_THREADS; | |
4972 | wxWindow_SetSizer(_arg0,_arg1); | |
4973 | ||
4974 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4975 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4976 | } Py_INCREF(Py_None); |
4977 | _resultobj = Py_None; | |
4978 | return _resultobj; | |
4979 | } | |
4980 | ||
f6bcfd97 BP |
4981 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
4982 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4983 | PyObject * _resultobj; | |
4984 | wxSizer * _result; | |
4985 | wxWindow * _arg0; | |
4986 | PyObject * _argo0 = 0; | |
4987 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
4988 | |
4989 | self = self; | |
4990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
4991 | return NULL; | |
4992 | if (_argo0) { | |
4993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
4996 | return NULL; | |
4997 | } | |
4998 | } | |
4999 | { | |
5000 | wxPy_BEGIN_ALLOW_THREADS; | |
5001 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
5002 | ||
5003 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5004 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5005 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
5006 | return _resultobj; |
5007 | } | |
5008 | ||
2f90df85 RD |
5009 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5010 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5011 | PyObject * _resultobj; | |
5012 | wxValidator * _result; | |
5013 | wxWindow * _arg0; | |
5014 | PyObject * _argo0 = 0; | |
5015 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5016 | |
5017 | self = self; | |
5018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5019 | return NULL; | |
5020 | if (_argo0) { | |
5021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5024 | return NULL; | |
5025 | } | |
5026 | } | |
5027 | { | |
5028 | wxPy_BEGIN_ALLOW_THREADS; | |
5029 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
5030 | ||
5031 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5032 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5033 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5034 | return _resultobj; |
5035 | } | |
5036 | ||
5037 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5038 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5039 | PyObject * _resultobj; | |
5040 | wxWindow * _arg0; | |
5041 | wxValidator * _arg1; | |
5042 | PyObject * _argo0 = 0; | |
5043 | PyObject * _argo1 = 0; | |
5044 | char *_kwnames[] = { "self","validator", NULL }; | |
5045 | ||
5046 | self = self; | |
5047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_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_SetValidator. 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,"_wxValidator_p")) { | |
5059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5060 | return NULL; | |
5061 | } | |
5062 | } | |
5063 | { | |
5064 | wxPy_BEGIN_ALLOW_THREADS; | |
5065 | wxWindow_SetValidator(_arg0,*_arg1); | |
5066 | ||
5067 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5068 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5069 | } Py_INCREF(Py_None); |
5070 | _resultobj = Py_None; | |
5071 | return _resultobj; | |
5072 | } | |
5073 | ||
b1462dfa RD |
5074 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5075 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5076 | PyObject * _resultobj; | |
5077 | wxWindow * _arg0; | |
5078 | wxDropTarget * _arg1; | |
5079 | PyObject * _argo0 = 0; | |
5080 | PyObject * _argo1 = 0; | |
5081 | char *_kwnames[] = { "self","target", NULL }; | |
5082 | ||
5083 | self = self; | |
5084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
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_SetDropTarget. Expected _wxWindow_p."); | |
5090 | return NULL; | |
5091 | } | |
5092 | } | |
5093 | if (_argo1) { | |
5094 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5095 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5097 | return NULL; | |
5098 | } | |
5099 | } | |
5100 | { | |
5101 | wxPy_BEGIN_ALLOW_THREADS; | |
5102 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5103 | ||
5104 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5105 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5106 | } Py_INCREF(Py_None); |
5107 | _resultobj = Py_None; | |
5108 | return _resultobj; | |
5109 | } | |
5110 | ||
5111 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5112 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5113 | PyObject * _resultobj; | |
5114 | wxDropTarget * _result; | |
5115 | wxWindow * _arg0; | |
5116 | PyObject * _argo0 = 0; | |
5117 | char *_kwnames[] = { "self", NULL }; | |
5118 | char _ptemp[128]; | |
5119 | ||
5120 | self = self; | |
5121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5122 | return NULL; | |
5123 | if (_argo0) { | |
5124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5127 | return NULL; | |
5128 | } | |
5129 | } | |
5130 | { | |
5131 | wxPy_BEGIN_ALLOW_THREADS; | |
5132 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5133 | ||
5134 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5135 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5136 | } if (_result) { |
5137 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5138 | _resultobj = Py_BuildValue("s",_ptemp); | |
5139 | } else { | |
5140 | Py_INCREF(Py_None); | |
5141 | _resultobj = Py_None; | |
5142 | } | |
5143 | return _resultobj; | |
5144 | } | |
5145 | ||
694759cf RD |
5146 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5147 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5148 | PyObject * _resultobj; | |
5149 | wxSize * _result; | |
5150 | wxWindow * _arg0; | |
5151 | PyObject * _argo0 = 0; | |
5152 | char *_kwnames[] = { "self", NULL }; | |
5153 | char _ptemp[128]; | |
5154 | ||
5155 | self = self; | |
5156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5157 | return NULL; | |
5158 | if (_argo0) { | |
5159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5162 | return NULL; | |
5163 | } | |
5164 | } | |
5165 | { | |
5166 | wxPy_BEGIN_ALLOW_THREADS; | |
5167 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5168 | ||
5169 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5170 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5171 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5172 | _resultobj = Py_BuildValue("s",_ptemp); | |
5173 | return _resultobj; | |
5174 | } | |
5175 | ||
a1df7a95 RD |
5176 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5177 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5178 | PyObject * _resultobj; | |
5179 | wxWindow * _arg0; | |
5180 | wxCaret * _arg1; | |
5181 | PyObject * _argo0 = 0; | |
5182 | PyObject * _argo1 = 0; | |
5183 | char *_kwnames[] = { "self","caret", NULL }; | |
5184 | ||
5185 | self = self; | |
5186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
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_SetCaret. Expected _wxWindow_p."); | |
5192 | return NULL; | |
5193 | } | |
5194 | } | |
5195 | if (_argo1) { | |
5196 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5197 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5199 | return NULL; | |
5200 | } | |
5201 | } | |
5202 | { | |
5203 | wxPy_BEGIN_ALLOW_THREADS; | |
5204 | wxWindow_SetCaret(_arg0,_arg1); | |
5205 | ||
5206 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5207 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5208 | } Py_INCREF(Py_None); |
5209 | _resultobj = Py_None; | |
5210 | return _resultobj; | |
5211 | } | |
5212 | ||
5213 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5214 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5215 | PyObject * _resultobj; | |
5216 | wxCaret * _result; | |
5217 | wxWindow * _arg0; | |
5218 | PyObject * _argo0 = 0; | |
5219 | char *_kwnames[] = { "self", NULL }; | |
5220 | char _ptemp[128]; | |
5221 | ||
5222 | self = self; | |
5223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5224 | return NULL; | |
5225 | if (_argo0) { | |
5226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5229 | return NULL; | |
5230 | } | |
5231 | } | |
5232 | { | |
5233 | wxPy_BEGIN_ALLOW_THREADS; | |
5234 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5235 | ||
5236 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5237 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5238 | } if (_result) { |
5239 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5240 | _resultobj = Py_BuildValue("s",_ptemp); | |
5241 | } else { | |
5242 | Py_INCREF(Py_None); | |
5243 | _resultobj = Py_None; | |
5244 | } | |
5245 | return _resultobj; | |
5246 | } | |
5247 | ||
10be44ac RD |
5248 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5249 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5250 | PyObject * _resultobj; | |
5251 | wxWindow * _arg0; | |
5252 | PyObject * _argo0 = 0; | |
5253 | char *_kwnames[] = { "self", NULL }; | |
5254 | ||
5255 | self = self; | |
5256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5257 | return NULL; | |
5258 | if (_argo0) { | |
5259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5262 | return NULL; | |
5263 | } | |
5264 | } | |
5265 | { | |
5266 | wxPy_BEGIN_ALLOW_THREADS; | |
5267 | wxWindow_Freeze(_arg0); | |
5268 | ||
5269 | wxPy_END_ALLOW_THREADS; | |
5270 | if (PyErr_Occurred()) return NULL; | |
5271 | } Py_INCREF(Py_None); | |
5272 | _resultobj = Py_None; | |
5273 | return _resultobj; | |
5274 | } | |
5275 | ||
5276 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5277 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5278 | PyObject * _resultobj; | |
5279 | wxWindow * _arg0; | |
5280 | PyObject * _argo0 = 0; | |
5281 | char *_kwnames[] = { "self", NULL }; | |
5282 | ||
5283 | self = self; | |
5284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5285 | return NULL; | |
5286 | if (_argo0) { | |
5287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5290 | return NULL; | |
5291 | } | |
5292 | } | |
5293 | { | |
5294 | wxPy_BEGIN_ALLOW_THREADS; | |
5295 | wxWindow_Thaw(_arg0); | |
5296 | ||
5297 | wxPy_END_ALLOW_THREADS; | |
5298 | if (PyErr_Occurred()) return NULL; | |
5299 | } Py_INCREF(Py_None); | |
5300 | _resultobj = Py_None; | |
5301 | return _resultobj; | |
5302 | } | |
5303 | ||
aa2a5b86 RD |
5304 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
5305 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5306 | PyObject * _resultobj; | |
5307 | wxWindow * _arg0; | |
5308 | PyObject * _argo0 = 0; | |
5309 | char *_kwnames[] = { "self", NULL }; | |
5310 | ||
5311 | self = self; | |
5312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5313 | return NULL; | |
5314 | if (_argo0) { | |
5315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5318 | return NULL; | |
5319 | } | |
5320 | } | |
5321 | { | |
5322 | wxPy_BEGIN_ALLOW_THREADS; | |
5323 | wxWindow_Update(_arg0); | |
5324 | ||
5325 | wxPy_END_ALLOW_THREADS; | |
5326 | if (PyErr_Occurred()) return NULL; | |
5327 | } Py_INCREF(Py_None); | |
5328 | _resultobj = Py_None; | |
5329 | return _resultobj; | |
5330 | } | |
5331 | ||
cd096152 RD |
5332 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
5333 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5334 | PyObject * _resultobj; | |
5335 | wxString * _result; | |
5336 | wxWindow * _arg0; | |
5337 | PyObject * _argo0 = 0; | |
5338 | char *_kwnames[] = { "self", NULL }; | |
5339 | ||
5340 | self = self; | |
5341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5342 | return NULL; | |
5343 | if (_argo0) { | |
5344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5347 | return NULL; | |
5348 | } | |
5349 | } | |
5350 | { | |
5351 | wxPy_BEGIN_ALLOW_THREADS; | |
5352 | _result = new wxString (wxWindow_GetHelpText(_arg0)); | |
5353 | ||
5354 | wxPy_END_ALLOW_THREADS; | |
5355 | if (PyErr_Occurred()) return NULL; | |
5356 | }{ | |
5357 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5358 | } | |
5359 | { | |
5360 | delete _result; | |
5361 | } | |
5362 | return _resultobj; | |
5363 | } | |
5364 | ||
5365 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5366 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5367 | PyObject * _resultobj; | |
5368 | wxWindow * _arg0; | |
5369 | wxString * _arg1; | |
5370 | PyObject * _argo0 = 0; | |
5371 | PyObject * _obj1 = 0; | |
5372 | char *_kwnames[] = { "self","helpText", NULL }; | |
5373 | ||
5374 | self = self; | |
5375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5376 | return NULL; | |
5377 | if (_argo0) { | |
5378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5381 | return NULL; | |
5382 | } | |
5383 | } | |
5384 | { | |
5385 | #if PYTHON_API_VERSION >= 1009 | |
5386 | char* tmpPtr; int tmpSize; | |
5387 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5388 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5389 | return NULL; | |
5390 | } | |
5391 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5392 | return NULL; | |
5393 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5394 | #else | |
5395 | if (!PyString_Check(_obj1)) { | |
5396 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5397 | return NULL; | |
5398 | } | |
5399 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5400 | #endif | |
5401 | } | |
5402 | { | |
5403 | wxPy_BEGIN_ALLOW_THREADS; | |
5404 | wxWindow_SetHelpText(_arg0,*_arg1); | |
5405 | ||
5406 | wxPy_END_ALLOW_THREADS; | |
5407 | if (PyErr_Occurred()) return NULL; | |
5408 | } Py_INCREF(Py_None); | |
5409 | _resultobj = Py_None; | |
5410 | { | |
5411 | if (_obj1) | |
5412 | delete _arg1; | |
5413 | } | |
5414 | return _resultobj; | |
5415 | } | |
5416 | ||
5417 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) | |
5418 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5419 | PyObject * _resultobj; | |
5420 | bool _result; | |
5421 | wxWindow * _arg0; | |
5422 | int _arg1; | |
5423 | PyObject * _argo0 = 0; | |
5424 | char *_kwnames[] = { "self","lines", NULL }; | |
5425 | ||
5426 | self = self; | |
5427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
5428 | return NULL; | |
5429 | if (_argo0) { | |
5430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
5433 | return NULL; | |
5434 | } | |
5435 | } | |
5436 | { | |
5437 | wxPy_BEGIN_ALLOW_THREADS; | |
5438 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); | |
5439 | ||
5440 | wxPy_END_ALLOW_THREADS; | |
5441 | if (PyErr_Occurred()) return NULL; | |
5442 | } _resultobj = Py_BuildValue("i",_result); | |
5443 | return _resultobj; | |
5444 | } | |
5445 | ||
5446 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
5447 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5448 | PyObject * _resultobj; | |
5449 | bool _result; | |
5450 | wxWindow * _arg0; | |
5451 | int _arg1; | |
5452 | PyObject * _argo0 = 0; | |
5453 | char *_kwnames[] = { "self","pages", NULL }; | |
5454 | ||
5455 | self = self; | |
5456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
5457 | return NULL; | |
5458 | if (_argo0) { | |
5459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
5462 | return NULL; | |
5463 | } | |
5464 | } | |
5465 | { | |
5466 | wxPy_BEGIN_ALLOW_THREADS; | |
5467 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); | |
5468 | ||
5469 | wxPy_END_ALLOW_THREADS; | |
5470 | if (PyErr_Occurred()) return NULL; | |
5471 | } _resultobj = Py_BuildValue("i",_result); | |
5472 | return _resultobj; | |
5473 | } | |
5474 | ||
5475 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
5476 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5477 | PyObject * _resultobj; | |
5478 | bool _result; | |
5479 | wxWindow * _arg0; | |
5480 | PyObject * _argo0 = 0; | |
5481 | char *_kwnames[] = { "self", NULL }; | |
5482 | ||
5483 | self = self; | |
5484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
5485 | return NULL; | |
5486 | if (_argo0) { | |
5487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
5490 | return NULL; | |
5491 | } | |
5492 | } | |
5493 | { | |
5494 | wxPy_BEGIN_ALLOW_THREADS; | |
5495 | _result = (bool )wxWindow_LineUp(_arg0); | |
5496 | ||
5497 | wxPy_END_ALLOW_THREADS; | |
5498 | if (PyErr_Occurred()) return NULL; | |
5499 | } _resultobj = Py_BuildValue("i",_result); | |
5500 | return _resultobj; | |
5501 | } | |
5502 | ||
5503 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
5504 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5505 | PyObject * _resultobj; | |
5506 | bool _result; | |
5507 | wxWindow * _arg0; | |
5508 | PyObject * _argo0 = 0; | |
5509 | char *_kwnames[] = { "self", NULL }; | |
5510 | ||
5511 | self = self; | |
5512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
5513 | return NULL; | |
5514 | if (_argo0) { | |
5515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
5518 | return NULL; | |
5519 | } | |
5520 | } | |
5521 | { | |
5522 | wxPy_BEGIN_ALLOW_THREADS; | |
5523 | _result = (bool )wxWindow_LineDown(_arg0); | |
5524 | ||
5525 | wxPy_END_ALLOW_THREADS; | |
5526 | if (PyErr_Occurred()) return NULL; | |
5527 | } _resultobj = Py_BuildValue("i",_result); | |
5528 | return _resultobj; | |
5529 | } | |
5530 | ||
5531 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
5532 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5533 | PyObject * _resultobj; | |
5534 | bool _result; | |
5535 | wxWindow * _arg0; | |
5536 | PyObject * _argo0 = 0; | |
5537 | char *_kwnames[] = { "self", NULL }; | |
5538 | ||
5539 | self = self; | |
5540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
5541 | return NULL; | |
5542 | if (_argo0) { | |
5543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
5546 | return NULL; | |
5547 | } | |
5548 | } | |
5549 | { | |
5550 | wxPy_BEGIN_ALLOW_THREADS; | |
5551 | _result = (bool )wxWindow_PageUp(_arg0); | |
5552 | ||
5553 | wxPy_END_ALLOW_THREADS; | |
5554 | if (PyErr_Occurred()) return NULL; | |
5555 | } _resultobj = Py_BuildValue("i",_result); | |
5556 | return _resultobj; | |
5557 | } | |
5558 | ||
5559 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
5560 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5561 | PyObject * _resultobj; | |
5562 | bool _result; | |
5563 | wxWindow * _arg0; | |
5564 | PyObject * _argo0 = 0; | |
5565 | char *_kwnames[] = { "self", NULL }; | |
5566 | ||
5567 | self = self; | |
5568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
5569 | return NULL; | |
5570 | if (_argo0) { | |
5571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
5574 | return NULL; | |
5575 | } | |
5576 | } | |
5577 | { | |
5578 | wxPy_BEGIN_ALLOW_THREADS; | |
5579 | _result = (bool )wxWindow_PageDown(_arg0); | |
5580 | ||
5581 | wxPy_END_ALLOW_THREADS; | |
5582 | if (PyErr_Occurred()) return NULL; | |
5583 | } _resultobj = Py_BuildValue("i",_result); | |
5584 | return _resultobj; | |
5585 | } | |
5586 | ||
aa2a5b86 RD |
5587 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
5588 | PyObject * _resultobj; | |
5589 | wxWindow * _result; | |
5590 | char *_kwnames[] = { NULL }; | |
5591 | ||
5592 | self = self; | |
5593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
5594 | return NULL; | |
5595 | { | |
5596 | wxPy_BEGIN_ALLOW_THREADS; | |
5597 | _result = (wxWindow *)wxWindow::FindFocus(); | |
5598 | ||
5599 | wxPy_END_ALLOW_THREADS; | |
5600 | if (PyErr_Occurred()) return NULL; | |
5601 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5602 | return _resultobj; | |
5603 | } | |
5604 | ||
5605 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5606 | PyObject * _resultobj; | |
5607 | int _result; | |
5608 | char *_kwnames[] = { NULL }; | |
5609 | ||
5610 | self = self; | |
5611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
5612 | return NULL; | |
5613 | { | |
5614 | wxPy_BEGIN_ALLOW_THREADS; | |
5615 | _result = (int )wxWindow::NewControlId(); | |
5616 | ||
5617 | wxPy_END_ALLOW_THREADS; | |
5618 | if (PyErr_Occurred()) return NULL; | |
5619 | } _resultobj = Py_BuildValue("i",_result); | |
5620 | return _resultobj; | |
5621 | } | |
5622 | ||
5623 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5624 | PyObject * _resultobj; | |
5625 | int _result; | |
5626 | int _arg0; | |
5627 | char *_kwnames[] = { "id", NULL }; | |
5628 | ||
5629 | self = self; | |
5630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
5631 | return NULL; | |
5632 | { | |
5633 | wxPy_BEGIN_ALLOW_THREADS; | |
5634 | _result = (int )wxWindow::NextControlId(_arg0); | |
5635 | ||
5636 | wxPy_END_ALLOW_THREADS; | |
5637 | if (PyErr_Occurred()) return NULL; | |
5638 | } _resultobj = Py_BuildValue("i",_result); | |
5639 | return _resultobj; | |
5640 | } | |
5641 | ||
5642 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5643 | PyObject * _resultobj; | |
5644 | int _result; | |
5645 | int _arg0; | |
5646 | char *_kwnames[] = { "id", NULL }; | |
5647 | ||
5648 | self = self; | |
5649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
5650 | return NULL; | |
5651 | { | |
5652 | wxPy_BEGIN_ALLOW_THREADS; | |
5653 | _result = (int )wxWindow::PrevControlId(_arg0); | |
5654 | ||
5655 | wxPy_END_ALLOW_THREADS; | |
5656 | if (PyErr_Occurred()) return NULL; | |
5657 | } _resultobj = Py_BuildValue("i",_result); | |
5658 | return _resultobj; | |
5659 | } | |
5660 | ||
8ab979d7 RD |
5661 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5662 | wxPanel *src; | |
5663 | wxWindow *dest; | |
5664 | src = (wxPanel *) ptr; | |
5665 | dest = (wxWindow *) src; | |
5666 | return (void *) dest; | |
5667 | } | |
5668 | ||
5669 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5670 | wxPanel *src; | |
5671 | wxEvtHandler *dest; | |
5672 | src = (wxPanel *) ptr; | |
5673 | dest = (wxEvtHandler *) src; | |
5674 | return (void *) dest; | |
5675 | } | |
5676 | ||
9df61a29 RD |
5677 | static void *SwigwxPanelTowxObject(void *ptr) { |
5678 | wxPanel *src; | |
5679 | wxObject *dest; | |
5680 | src = (wxPanel *) ptr; | |
5681 | dest = (wxObject *) src; | |
5682 | return (void *) dest; | |
5683 | } | |
5684 | ||
8ab979d7 | 5685 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 5686 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5687 | PyObject * _resultobj; |
5688 | wxPanel * _result; | |
5689 | wxWindow * _arg0; | |
5690 | wxWindowID _arg1; | |
b68dc582 RD |
5691 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5692 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5693 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
5694 | char * _arg5 = (char *) "panel"; | |
5695 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5696 | wxPoint temp; |
5697 | PyObject * _obj2 = 0; | |
5698 | wxSize temp0; | |
5699 | PyObject * _obj3 = 0; | |
efc5f224 | 5700 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5701 | char _ptemp[128]; |
5702 | ||
5703 | self = self; | |
2f90df85 | 5704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5705 | return NULL; |
1d99702e RD |
5706 | if (_argo0) { |
5707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5710 | return NULL; | |
5711 | } | |
5712 | } | |
2f90df85 RD |
5713 | if (_obj2) |
5714 | { | |
5715 | _arg2 = &temp; | |
5716 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5717 | return NULL; |
2f90df85 RD |
5718 | } |
5719 | if (_obj3) | |
5720 | { | |
5721 | _arg3 = &temp0; | |
5722 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5723 | return NULL; |
2f90df85 | 5724 | } |
cf694132 RD |
5725 | { |
5726 | wxPy_BEGIN_ALLOW_THREADS; | |
5727 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5728 | ||
5729 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5730 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5731 | } if (_result) { |
5732 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5733 | _resultobj = Py_BuildValue("s",_ptemp); | |
5734 | } else { | |
5735 | Py_INCREF(Py_None); | |
5736 | _resultobj = Py_None; | |
5737 | } | |
8ab979d7 RD |
5738 | return _resultobj; |
5739 | } | |
5740 | ||
aa2a5b86 RD |
5741 | #define new_wxPrePanel() (new wxPanel()) |
5742 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5743 | PyObject * _resultobj; | |
5744 | wxPanel * _result; | |
5745 | char *_kwnames[] = { NULL }; | |
5746 | char _ptemp[128]; | |
5747 | ||
5748 | self = self; | |
5749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
5750 | return NULL; | |
5751 | { | |
5752 | wxPy_BEGIN_ALLOW_THREADS; | |
5753 | _result = (wxPanel *)new_wxPrePanel(); | |
5754 | ||
5755 | wxPy_END_ALLOW_THREADS; | |
5756 | if (PyErr_Occurred()) return NULL; | |
5757 | } if (_result) { | |
5758 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5759 | _resultobj = Py_BuildValue("s",_ptemp); | |
5760 | } else { | |
5761 | Py_INCREF(Py_None); | |
5762 | _resultobj = Py_None; | |
5763 | } | |
5764 | return _resultobj; | |
5765 | } | |
5766 | ||
5767 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5768 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5769 | PyObject * _resultobj; | |
5770 | bool _result; | |
5771 | wxPanel * _arg0; | |
5772 | wxWindow * _arg1; | |
5773 | wxWindowID _arg2; | |
5774 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5775 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5776 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
5777 | char * _arg6 = (char *) "panel"; | |
5778 | PyObject * _argo0 = 0; | |
5779 | PyObject * _argo1 = 0; | |
5780 | wxPoint temp; | |
5781 | PyObject * _obj3 = 0; | |
5782 | wxSize temp0; | |
5783 | PyObject * _obj4 = 0; | |
5784 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
5785 | ||
5786 | self = self; | |
5787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
5788 | return NULL; | |
5789 | if (_argo0) { | |
5790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
5792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
5793 | return NULL; | |
5794 | } | |
5795 | } | |
5796 | if (_argo1) { | |
5797 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5798 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
5800 | return NULL; | |
5801 | } | |
5802 | } | |
5803 | if (_obj3) | |
5804 | { | |
5805 | _arg3 = &temp; | |
5806 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5807 | return NULL; | |
5808 | } | |
5809 | if (_obj4) | |
5810 | { | |
5811 | _arg4 = &temp0; | |
5812 | if (! wxSize_helper(_obj4, &_arg4)) | |
5813 | return NULL; | |
5814 | } | |
5815 | { | |
5816 | wxPy_BEGIN_ALLOW_THREADS; | |
5817 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5818 | ||
5819 | wxPy_END_ALLOW_THREADS; | |
5820 | if (PyErr_Occurred()) return NULL; | |
5821 | } _resultobj = Py_BuildValue("i",_result); | |
5822 | return _resultobj; | |
5823 | } | |
5824 | ||
8ab979d7 | 5825 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 5826 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5827 | PyObject * _resultobj; |
5828 | wxPanel * _arg0; | |
1d99702e | 5829 | PyObject * _argo0 = 0; |
efc5f224 | 5830 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5831 | |
5832 | self = self; | |
efc5f224 | 5833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 5834 | return NULL; |
1d99702e RD |
5835 | if (_argo0) { |
5836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
5838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
5839 | return NULL; | |
5840 | } | |
5841 | } | |
cf694132 RD |
5842 | { |
5843 | wxPy_BEGIN_ALLOW_THREADS; | |
5844 | wxPanel_InitDialog(_arg0); | |
5845 | ||
5846 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5847 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5848 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5849 | _resultobj = Py_None; |
5850 | return _resultobj; | |
5851 | } | |
5852 | ||
bb0054cd | 5853 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
efc5f224 | 5854 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5855 | PyObject * _resultobj; |
5856 | wxButton * _result; | |
5857 | wxPanel * _arg0; | |
1d99702e | 5858 | PyObject * _argo0 = 0; |
efc5f224 | 5859 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5860 | |
5861 | self = self; | |
efc5f224 | 5862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
bb0054cd | 5863 | return NULL; |
1d99702e RD |
5864 | if (_argo0) { |
5865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
5868 | return NULL; | |
5869 | } | |
5870 | } | |
5871 | { | |
5872 | wxPy_BEGIN_ALLOW_THREADS; | |
5873 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
5874 | ||
5875 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5876 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5877 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
5878 | return _resultobj; |
5879 | } | |
5880 | ||
5881 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
efc5f224 | 5882 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5883 | PyObject * _resultobj; |
5884 | wxPanel * _arg0; | |
5885 | wxButton * _arg1; | |
1d99702e RD |
5886 | PyObject * _argo0 = 0; |
5887 | PyObject * _argo1 = 0; | |
efc5f224 | 5888 | char *_kwnames[] = { "self","btn", NULL }; |
bb0054cd RD |
5889 | |
5890 | self = self; | |
efc5f224 | 5891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 5892 | return NULL; |
1d99702e RD |
5893 | if (_argo0) { |
5894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
5897 | return NULL; | |
5898 | } | |
5899 | } | |
1d99702e RD |
5900 | if (_argo1) { |
5901 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5902 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
bb0054cd RD |
5903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
5904 | return NULL; | |
5905 | } | |
5906 | } | |
5907 | { | |
5908 | wxPy_BEGIN_ALLOW_THREADS; | |
5909 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
5910 | ||
5911 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5912 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5913 | } Py_INCREF(Py_None); |
5914 | _resultobj = Py_None; | |
5915 | return _resultobj; | |
5916 | } | |
5917 | ||
8ab979d7 RD |
5918 | static void *SwigwxDialogTowxPanel(void *ptr) { |
5919 | wxDialog *src; | |
5920 | wxPanel *dest; | |
5921 | src = (wxDialog *) ptr; | |
5922 | dest = (wxPanel *) src; | |
5923 | return (void *) dest; | |
5924 | } | |
5925 | ||
5926 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
5927 | wxDialog *src; | |
5928 | wxWindow *dest; | |
5929 | src = (wxDialog *) ptr; | |
5930 | dest = (wxWindow *) src; | |
5931 | return (void *) dest; | |
5932 | } | |
5933 | ||
5934 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
5935 | wxDialog *src; | |
5936 | wxEvtHandler *dest; | |
5937 | src = (wxDialog *) ptr; | |
5938 | dest = (wxEvtHandler *) src; | |
5939 | return (void *) dest; | |
5940 | } | |
5941 | ||
9df61a29 RD |
5942 | static void *SwigwxDialogTowxObject(void *ptr) { |
5943 | wxDialog *src; | |
5944 | wxObject *dest; | |
5945 | src = (wxDialog *) ptr; | |
5946 | dest = (wxObject *) src; | |
5947 | return (void *) dest; | |
5948 | } | |
5949 | ||
8ab979d7 | 5950 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 5951 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5952 | PyObject * _resultobj; |
5953 | wxDialog * _result; | |
5954 | wxWindow * _arg0; | |
5955 | wxWindowID _arg1; | |
5956 | wxString * _arg2; | |
b68dc582 RD |
5957 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
5958 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5959 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; |
5960 | char * _arg6 = (char *) "dialogBox"; | |
5961 | PyObject * _argo0 = 0; | |
8ab979d7 | 5962 | PyObject * _obj2 = 0; |
2f90df85 RD |
5963 | wxPoint temp; |
5964 | PyObject * _obj3 = 0; | |
5965 | wxSize temp0; | |
5966 | PyObject * _obj4 = 0; | |
efc5f224 | 5967 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
8ab979d7 RD |
5968 | char _ptemp[128]; |
5969 | ||
5970 | self = self; | |
2f90df85 | 5971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 5972 | return NULL; |
1d99702e RD |
5973 | if (_argo0) { |
5974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); |
5977 | return NULL; | |
5978 | } | |
5979 | } | |
5980 | { | |
2cd2fac8 RD |
5981 | #if PYTHON_API_VERSION >= 1009 |
5982 | char* tmpPtr; int tmpSize; | |
5983 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 5984 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5985 | return NULL; |
5986 | } | |
5987 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5988 | return NULL; | |
5989 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5990 | #else | |
8ab979d7 RD |
5991 | if (!PyString_Check(_obj2)) { |
5992 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5993 | return NULL; | |
5994 | } | |
2cd2fac8 RD |
5995 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5996 | #endif | |
8ab979d7 | 5997 | } |
2f90df85 RD |
5998 | if (_obj3) |
5999 | { | |
6000 | _arg3 = &temp; | |
6001 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 6002 | return NULL; |
2f90df85 RD |
6003 | } |
6004 | if (_obj4) | |
6005 | { | |
6006 | _arg4 = &temp0; | |
6007 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 6008 | return NULL; |
2f90df85 | 6009 | } |
cf694132 RD |
6010 | { |
6011 | wxPy_BEGIN_ALLOW_THREADS; | |
6012 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
6013 | ||
6014 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6015 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6016 | } if (_result) { |
6017 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
6018 | _resultobj = Py_BuildValue("s",_ptemp); | |
6019 | } else { | |
6020 | Py_INCREF(Py_None); | |
6021 | _resultobj = Py_None; | |
6022 | } | |
8ab979d7 RD |
6023 | { |
6024 | if (_obj2) | |
6025 | delete _arg2; | |
6026 | } | |
6027 | return _resultobj; | |
6028 | } | |
6029 | ||
aa2a5b86 RD |
6030 | #define new_wxPreDialog() (new wxDialog()) |
6031 | static PyObject *_wrap_new_wxPreDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6032 | PyObject * _resultobj; | |
6033 | wxDialog * _result; | |
6034 | char *_kwnames[] = { NULL }; | |
6035 | char _ptemp[128]; | |
6036 | ||
6037 | self = self; | |
6038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDialog",_kwnames)) | |
6039 | return NULL; | |
6040 | { | |
6041 | wxPy_BEGIN_ALLOW_THREADS; | |
6042 | _result = (wxDialog *)new_wxPreDialog(); | |
6043 | ||
6044 | wxPy_END_ALLOW_THREADS; | |
6045 | if (PyErr_Occurred()) return NULL; | |
6046 | } if (_result) { | |
6047 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
6048 | _resultobj = Py_BuildValue("s",_ptemp); | |
6049 | } else { | |
6050 | Py_INCREF(Py_None); | |
6051 | _resultobj = Py_None; | |
6052 | } | |
6053 | return _resultobj; | |
6054 | } | |
6055 | ||
6056 | #define wxDialog_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6057 | static PyObject *_wrap_wxDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6058 | PyObject * _resultobj; | |
6059 | bool _result; | |
6060 | wxDialog * _arg0; | |
6061 | wxWindow * _arg1; | |
6062 | wxWindowID _arg2; | |
6063 | wxString * _arg3; | |
6064 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
6065 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
6066 | long _arg6 = (long ) wxDEFAULT_DIALOG_STYLE; | |
6067 | char * _arg7 = (char *) "dialogBox"; | |
6068 | PyObject * _argo0 = 0; | |
6069 | PyObject * _argo1 = 0; | |
6070 | PyObject * _obj3 = 0; | |
6071 | wxPoint temp; | |
6072 | PyObject * _obj4 = 0; | |
6073 | wxSize temp0; | |
6074 | PyObject * _obj5 = 0; | |
6075 | char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL }; | |
6076 | ||
6077 | self = self; | |
6078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxDialog_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
6079 | return NULL; | |
6080 | if (_argo0) { | |
6081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
6083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Create. Expected _wxDialog_p."); | |
6084 | return NULL; | |
6085 | } | |
6086 | } | |
6087 | if (_argo1) { | |
6088 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6089 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDialog_Create. Expected _wxWindow_p."); | |
6091 | return NULL; | |
6092 | } | |
6093 | } | |
6094 | { | |
6095 | #if PYTHON_API_VERSION >= 1009 | |
6096 | char* tmpPtr; int tmpSize; | |
6097 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
6098 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6099 | return NULL; | |
6100 | } | |
6101 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6102 | return NULL; | |
6103 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6104 | #else | |
6105 | if (!PyString_Check(_obj3)) { | |
6106 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6107 | return NULL; | |
6108 | } | |
6109 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
6110 | #endif | |
6111 | } | |
6112 | if (_obj4) | |
6113 | { | |
6114 | _arg4 = &temp; | |
6115 | if (! wxPoint_helper(_obj4, &_arg4)) | |
6116 | return NULL; | |
6117 | } | |
6118 | if (_obj5) | |
6119 | { | |
6120 | _arg5 = &temp0; | |
6121 | if (! wxSize_helper(_obj5, &_arg5)) | |
6122 | return NULL; | |
6123 | } | |
6124 | { | |
6125 | wxPy_BEGIN_ALLOW_THREADS; | |
6126 | _result = (bool )wxDialog_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); | |
6127 | ||
6128 | wxPy_END_ALLOW_THREADS; | |
6129 | if (PyErr_Occurred()) return NULL; | |
6130 | } _resultobj = Py_BuildValue("i",_result); | |
6131 | { | |
6132 | if (_obj3) | |
6133 | delete _arg3; | |
6134 | } | |
6135 | return _resultobj; | |
6136 | } | |
6137 | ||
8ab979d7 | 6138 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) |
efc5f224 | 6139 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6140 | PyObject * _resultobj; |
6141 | wxDialog * _arg0; | |
1d99702e RD |
6142 | int _arg1 = (int ) wxBOTH; |
6143 | PyObject * _argo0 = 0; | |
efc5f224 | 6144 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
6145 | |
6146 | self = self; | |
efc5f224 | 6147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6148 | return NULL; |
1d99702e RD |
6149 | if (_argo0) { |
6150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
6152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); |
6153 | return NULL; | |
6154 | } | |
6155 | } | |
cf694132 RD |
6156 | { |
6157 | wxPy_BEGIN_ALLOW_THREADS; | |
6158 | wxDialog_Centre(_arg0,_arg1); | |
6159 | ||
6160 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6161 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6162 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6163 | _resultobj = Py_None; |
6164 | return _resultobj; | |
6165 | } | |
6166 | ||
6167 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
efc5f224 | 6168 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6169 | PyObject * _resultobj; |
6170 | wxDialog * _arg0; | |
6171 | int _arg1; | |
1d99702e | 6172 | PyObject * _argo0 = 0; |
efc5f224 | 6173 | char *_kwnames[] = { "self","retCode", NULL }; |
8ab979d7 RD |
6174 | |
6175 | self = self; | |
efc5f224 | 6176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6177 | return NULL; |
1d99702e RD |
6178 | if (_argo0) { |
6179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
6181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); |
6182 | return NULL; | |
6183 | } | |
6184 | } | |
cf694132 RD |
6185 | { |
6186 | wxPy_BEGIN_ALLOW_THREADS; | |
6187 | wxDialog_EndModal(_arg0,_arg1); | |
6188 | ||
6189 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6190 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6191 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6192 | _resultobj = Py_None; |
6193 | return _resultobj; | |
6194 | } | |
6195 | ||
6196 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
efc5f224 | 6197 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6198 | PyObject * _resultobj; |
6199 | wxString * _result; | |
6200 | wxDialog * _arg0; | |
1d99702e | 6201 | PyObject * _argo0 = 0; |
efc5f224 | 6202 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6203 | |
6204 | self = self; | |
efc5f224 | 6205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 6206 | return NULL; |
1d99702e RD |
6207 | if (_argo0) { |
6208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
6210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); |
6211 | return NULL; | |
6212 | } | |
6213 | } | |
8ab979d7 | 6214 | { |
cf694132 RD |
6215 | wxPy_BEGIN_ALLOW_THREADS; |
6216 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
6217 | ||
6218 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6219 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6220 | }{ |
eec92d76 | 6221 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
6222 | } |
6223 | { | |
6224 | delete _result; | |
6225 | } | |
6226 | return _resultobj; | |
6227 | } | |
6228 | ||
6229 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
efc5f224 | 6230 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6231 | PyObject * _resultobj; |
6232 | wxDialog * _arg0; | |
6233 | bool _arg1; | |
1d99702e | 6234 | PyObject * _argo0 = 0; |
8ab979d7 | 6235 | int tempbool1; |
efc5f224 | 6236 | char *_kwnames[] = { "self","iconize", NULL }; |
8ab979d7 RD |
6237 | |
6238 | self = self; | |
efc5f224 | 6239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 6240 | return NULL; |
1d99702e RD |
6241 | if (_argo0) { |
6242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
6244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p."); |
6245 | return NULL; | |
6246 | } | |
6247 | } | |
6248 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
6249 | { |
6250 | wxPy_BEGIN_ALLOW_THREADS; | |
6251 | wxDialog_Iconize(_arg0,_arg1); | |
6252 | ||
6253 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6254 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6255 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6256 | _resultobj = Py_None; |
6257 | return _resultobj; | |
6258 | } | |
6259 | ||
6260 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
efc5f224 | 6261 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6262 | PyObject * _resultobj; |
6263 | bool _result; | |
6264 | wxDialog * _arg0; | |
1d99702e | 6265 | PyObject * _argo0 = 0; |
efc5f224 | 6266 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6267 | |
6268 | self = self; | |
efc5f224 | 6269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) |
8ab979d7 | 6270 | return NULL; |
1d99702e RD |
6271 | if (_argo0) { |
6272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
6274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); |
6275 | return NULL; | |
6276 | } | |
6277 | } | |
cf694132 RD |
6278 | { |
6279 | wxPy_BEGIN_ALLOW_THREADS; | |
6280 | _result = (bool )wxDialog_IsIconized(_arg0); | |
6281 | ||
6282 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6283 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6284 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6285 | return _resultobj; |
6286 | } | |
6287 | ||
6288 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
efc5f224 | 6289 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6290 | PyObject * _resultobj; |
6291 | wxDialog * _arg0; | |
6292 | bool _arg1; | |
1d99702e | 6293 | PyObject * _argo0 = 0; |
8ab979d7 | 6294 | int tempbool1; |
efc5f224 | 6295 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
6296 | |
6297 | self = self; | |
efc5f224 | 6298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 6299 | return NULL; |
1d99702e RD |
6300 | if (_argo0) { |
6301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
6303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); |
6304 | return NULL; | |
6305 | } | |
6306 | } | |
6307 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
6308 | { |
6309 | wxPy_BEGIN_ALLOW_THREADS; | |
6310 | wxDialog_SetModal(_arg0,_arg1); | |
6311 | ||
6312 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6313 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6314 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6315 | _resultobj = Py_None; |
6316 | return _resultobj; | |
6317 | } | |
6318 | ||
6319 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
efc5f224 | 6320 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6321 | PyObject * _resultobj; |
6322 | bool _result; | |
6323 | wxDialog * _arg0; | |
1d99702e | 6324 | PyObject * _argo0 = 0; |
efc5f224 | 6325 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6326 | |
6327 | self = self; | |
efc5f224 | 6328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) |
8ab979d7 | 6329 | return NULL; |
1d99702e RD |
6330 | if (_argo0) { |
6331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
6333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); |
6334 | return NULL; | |
6335 | } | |
6336 | } | |
cf694132 RD |
6337 | { |
6338 | wxPy_BEGIN_ALLOW_THREADS; | |
6339 | _result = (bool )wxDialog_IsModal(_arg0); | |
6340 | ||
6341 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6342 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6343 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6344 | return _resultobj; |
6345 | } | |
6346 | ||
6347 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 6348 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6349 | PyObject * _resultobj; |
6350 | wxDialog * _arg0; | |
6351 | wxString * _arg1; | |
1d99702e | 6352 | PyObject * _argo0 = 0; |
8ab979d7 | 6353 | PyObject * _obj1 = 0; |
efc5f224 | 6354 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
6355 | |
6356 | self = self; | |
efc5f224 | 6357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6358 | return NULL; |
1d99702e RD |
6359 | if (_argo0) { |
6360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
6362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); |
6363 | return NULL; | |
6364 | } | |
6365 | } | |
6366 | { | |
2cd2fac8 RD |
6367 | #if PYTHON_API_VERSION >= 1009 |
6368 | char* tmpPtr; int tmpSize; | |
6369 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 6370 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6371 | return NULL; |
6372 | } | |
6373 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6374 | return NULL; | |
6375 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6376 | #else | |
8ab979d7 RD |
6377 | if (!PyString_Check(_obj1)) { |
6378 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6379 | return NULL; | |
6380 | } | |
2cd2fac8 RD |
6381 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6382 | #endif | |
8ab979d7 | 6383 | } |
cf694132 RD |
6384 | { |
6385 | wxPy_BEGIN_ALLOW_THREADS; | |
6386 | wxDialog_SetTitle(_arg0,*_arg1); | |
6387 | ||
6388 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6389 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6390 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6391 | _resultobj = Py_None; |
6392 | { | |
6393 | if (_obj1) | |
6394 | delete _arg1; | |
6395 | } | |
6396 | return _resultobj; | |
6397 | } | |
6398 | ||
6399 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 6400 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6401 | PyObject * _resultobj; |
6402 | bool _result; | |
6403 | wxDialog * _arg0; | |
6404 | bool _arg1; | |
1d99702e | 6405 | PyObject * _argo0 = 0; |
8ab979d7 | 6406 | int tempbool1; |
efc5f224 | 6407 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
6408 | |
6409 | self = self; | |
efc5f224 | 6410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 6411 | return NULL; |
1d99702e RD |
6412 | if (_argo0) { |
6413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
6415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); |
6416 | return NULL; | |
6417 | } | |
6418 | } | |
6419 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
6420 | { |
6421 | wxPy_BEGIN_ALLOW_THREADS; | |
6422 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
6423 | ||
6424 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6425 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6426 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6427 | return _resultobj; |
6428 | } | |
6429 | ||
6430 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 6431 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6432 | PyObject * _resultobj; |
6433 | int _result; | |
6434 | wxDialog * _arg0; | |
1d99702e | 6435 | PyObject * _argo0 = 0; |
efc5f224 | 6436 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6437 | |
6438 | self = self; | |
efc5f224 | 6439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 6440 | return NULL; |
1d99702e RD |
6441 | if (_argo0) { |
6442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
6444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); |
6445 | return NULL; | |
6446 | } | |
6447 | } | |
cf694132 RD |
6448 | { |
6449 | wxPy_BEGIN_ALLOW_THREADS; | |
6450 | _result = (int )wxDialog_ShowModal(_arg0); | |
6451 | ||
6452 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6453 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6454 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6455 | return _resultobj; |
6456 | } | |
6457 | ||
bb0054cd | 6458 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) |
efc5f224 | 6459 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
6460 | PyObject * _resultobj; |
6461 | int _result; | |
6462 | wxDialog * _arg0; | |
1d99702e | 6463 | PyObject * _argo0 = 0; |
efc5f224 | 6464 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
6465 | |
6466 | self = self; | |
efc5f224 | 6467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) |
bb0054cd | 6468 | return NULL; |
1d99702e RD |
6469 | if (_argo0) { |
6470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
6472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); |
6473 | return NULL; | |
6474 | } | |
6475 | } | |
6476 | { | |
6477 | wxPy_BEGIN_ALLOW_THREADS; | |
6478 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
6479 | ||
6480 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6481 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
6482 | } _resultobj = Py_BuildValue("i",_result); |
6483 | return _resultobj; | |
6484 | } | |
6485 | ||
6486 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
efc5f224 | 6487 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
6488 | PyObject * _resultobj; |
6489 | wxDialog * _arg0; | |
6490 | int _arg1; | |
1d99702e | 6491 | PyObject * _argo0 = 0; |
efc5f224 | 6492 | char *_kwnames[] = { "self","retCode", NULL }; |
bb0054cd RD |
6493 | |
6494 | self = self; | |
efc5f224 | 6495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 6496 | return NULL; |
1d99702e RD |
6497 | if (_argo0) { |
6498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
6500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); |
6501 | return NULL; | |
6502 | } | |
6503 | } | |
6504 | { | |
6505 | wxPy_BEGIN_ALLOW_THREADS; | |
6506 | wxDialog_SetReturnCode(_arg0,_arg1); | |
6507 | ||
6508 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6509 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
6510 | } Py_INCREF(Py_None); |
6511 | _resultobj = Py_None; | |
6512 | return _resultobj; | |
6513 | } | |
6514 | ||
4662be59 RD |
6515 | #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0)) |
6516 | static PyObject *_wrap_wxDialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6517 | PyObject * _resultobj; | |
6518 | wxSizer * _result; | |
6519 | wxDialog * _arg0; | |
6520 | wxString * _arg1; | |
6521 | PyObject * _argo0 = 0; | |
6522 | PyObject * _obj1 = 0; | |
6523 | char *_kwnames[] = { "self","message", NULL }; | |
4662be59 RD |
6524 | |
6525 | self = self; | |
6526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_CreateTextSizer",_kwnames,&_argo0,&_obj1)) | |
6527 | return NULL; | |
6528 | if (_argo0) { | |
6529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
6531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p."); | |
6532 | return NULL; | |
6533 | } | |
6534 | } | |
6535 | { | |
6536 | #if PYTHON_API_VERSION >= 1009 | |
6537 | char* tmpPtr; int tmpSize; | |
6538 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 6539 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
4662be59 RD |
6540 | return NULL; |
6541 | } | |
6542 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6543 | return NULL; | |
6544 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6545 | #else | |
6546 | if (!PyString_Check(_obj1)) { | |
6547 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6548 | return NULL; | |
6549 | } | |
6550 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6551 | #endif | |
6552 | } | |
6553 | { | |
6554 | wxPy_BEGIN_ALLOW_THREADS; | |
6555 | _result = (wxSizer *)wxDialog_CreateTextSizer(_arg0,*_arg1); | |
6556 | ||
6557 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6558 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6559 | }{ _resultobj = wxPyMake_wxObject(_result); } |
4662be59 RD |
6560 | { |
6561 | if (_obj1) | |
6562 | delete _arg1; | |
6563 | } | |
6564 | return _resultobj; | |
6565 | } | |
6566 | ||
6567 | #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0)) | |
6568 | static PyObject *_wrap_wxDialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6569 | PyObject * _resultobj; | |
6570 | wxSizer * _result; | |
6571 | wxDialog * _arg0; | |
6572 | long _arg1; | |
6573 | PyObject * _argo0 = 0; | |
6574 | char *_kwnames[] = { "self","flags", NULL }; | |
4662be59 RD |
6575 | |
6576 | self = self; | |
6577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDialog_CreateButtonSizer",_kwnames,&_argo0,&_arg1)) | |
6578 | return NULL; | |
6579 | if (_argo0) { | |
6580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
6582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p."); | |
6583 | return NULL; | |
6584 | } | |
6585 | } | |
6586 | { | |
6587 | wxPy_BEGIN_ALLOW_THREADS; | |
6588 | _result = (wxSizer *)wxDialog_CreateButtonSizer(_arg0,_arg1); | |
6589 | ||
6590 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6591 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6592 | }{ _resultobj = wxPyMake_wxObject(_result); } |
4662be59 RD |
6593 | return _resultobj; |
6594 | } | |
6595 | ||
bb0054cd RD |
6596 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6597 | wxScrolledWindow *src; | |
6598 | wxPanel *dest; | |
6599 | src = (wxScrolledWindow *) ptr; | |
6600 | dest = (wxPanel *) src; | |
6601 | return (void *) dest; | |
6602 | } | |
6603 | ||
8ab979d7 RD |
6604 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6605 | wxScrolledWindow *src; | |
6606 | wxWindow *dest; | |
6607 | src = (wxScrolledWindow *) ptr; | |
6608 | dest = (wxWindow *) src; | |
6609 | return (void *) dest; | |
6610 | } | |
6611 | ||
6612 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6613 | wxScrolledWindow *src; | |
6614 | wxEvtHandler *dest; | |
6615 | src = (wxScrolledWindow *) ptr; | |
6616 | dest = (wxEvtHandler *) src; | |
6617 | return (void *) dest; | |
6618 | } | |
6619 | ||
9df61a29 RD |
6620 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6621 | wxScrolledWindow *src; | |
6622 | wxObject *dest; | |
6623 | src = (wxScrolledWindow *) ptr; | |
6624 | dest = (wxObject *) src; | |
6625 | return (void *) dest; | |
6626 | } | |
6627 | ||
8ab979d7 | 6628 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6629 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6630 | PyObject * _resultobj; |
6631 | wxScrolledWindow * _result; | |
6632 | wxWindow * _arg0; | |
1d99702e | 6633 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6634 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6635 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6636 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
6637 | char * _arg5 = (char *) "scrolledWindow"; | |
6638 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6639 | wxPoint temp; |
6640 | PyObject * _obj2 = 0; | |
6641 | wxSize temp0; | |
6642 | PyObject * _obj3 = 0; | |
efc5f224 | 6643 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6644 | char _ptemp[128]; |
6645 | ||
6646 | self = self; | |
2f90df85 | 6647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6648 | return NULL; |
1d99702e RD |
6649 | if (_argo0) { |
6650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6653 | return NULL; | |
6654 | } | |
6655 | } | |
2f90df85 RD |
6656 | if (_obj2) |
6657 | { | |
6658 | _arg2 = &temp; | |
6659 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6660 | return NULL; |
2f90df85 RD |
6661 | } |
6662 | if (_obj3) | |
6663 | { | |
6664 | _arg3 = &temp0; | |
6665 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6666 | return NULL; |
2f90df85 | 6667 | } |
cf694132 RD |
6668 | { |
6669 | wxPy_BEGIN_ALLOW_THREADS; | |
6670 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
6671 | ||
6672 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6673 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6674 | } if (_result) { |
6675 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6676 | _resultobj = Py_BuildValue("s",_ptemp); | |
6677 | } else { | |
6678 | Py_INCREF(Py_None); | |
6679 | _resultobj = Py_None; | |
6680 | } | |
8ab979d7 RD |
6681 | return _resultobj; |
6682 | } | |
6683 | ||
aa2a5b86 RD |
6684 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
6685 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6686 | PyObject * _resultobj; | |
6687 | wxScrolledWindow * _result; | |
6688 | char *_kwnames[] = { NULL }; | |
6689 | char _ptemp[128]; | |
6690 | ||
6691 | self = self; | |
6692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6693 | return NULL; | |
6694 | { | |
6695 | wxPy_BEGIN_ALLOW_THREADS; | |
6696 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); | |
6697 | ||
6698 | wxPy_END_ALLOW_THREADS; | |
6699 | if (PyErr_Occurred()) return NULL; | |
6700 | } if (_result) { | |
6701 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6702 | _resultobj = Py_BuildValue("s",_ptemp); | |
6703 | } else { | |
6704 | Py_INCREF(Py_None); | |
6705 | _resultobj = Py_None; | |
6706 | } | |
6707 | return _resultobj; | |
6708 | } | |
6709 | ||
6710 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6711 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6712 | PyObject * _resultobj; | |
6713 | bool _result; | |
6714 | wxScrolledWindow * _arg0; | |
6715 | wxWindow * _arg1; | |
6716 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6717 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6718 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6719 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
6720 | char * _arg6 = (char *) "scrolledWindow"; | |
6721 | PyObject * _argo0 = 0; | |
6722 | PyObject * _argo1 = 0; | |
6723 | wxPoint temp; | |
6724 | PyObject * _obj3 = 0; | |
6725 | wxSize temp0; | |
6726 | PyObject * _obj4 = 0; | |
6727 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6728 | ||
6729 | self = self; | |
6730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6731 | return NULL; | |
6732 | if (_argo0) { | |
6733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6736 | return NULL; | |
6737 | } | |
6738 | } | |
6739 | if (_argo1) { | |
6740 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6741 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6743 | return NULL; | |
6744 | } | |
6745 | } | |
6746 | if (_obj3) | |
6747 | { | |
6748 | _arg3 = &temp; | |
6749 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6750 | return NULL; | |
6751 | } | |
6752 | if (_obj4) | |
6753 | { | |
6754 | _arg4 = &temp0; | |
6755 | if (! wxSize_helper(_obj4, &_arg4)) | |
6756 | return NULL; | |
6757 | } | |
6758 | { | |
6759 | wxPy_BEGIN_ALLOW_THREADS; | |
6760 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
6761 | ||
6762 | wxPy_END_ALLOW_THREADS; | |
6763 | if (PyErr_Occurred()) return NULL; | |
6764 | } _resultobj = Py_BuildValue("i",_result); | |
6765 | return _resultobj; | |
6766 | } | |
6767 | ||
8ab979d7 | 6768 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 6769 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6770 | PyObject * _resultobj; |
6771 | wxScrolledWindow * _arg0; | |
6772 | bool _arg1; | |
6773 | bool _arg2; | |
1d99702e | 6774 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6775 | int tempbool1; |
6776 | int tempbool2; | |
efc5f224 | 6777 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6778 | |
6779 | self = self; | |
efc5f224 | 6780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6781 | return NULL; |
1d99702e RD |
6782 | if (_argo0) { |
6783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6786 | return NULL; | |
6787 | } | |
6788 | } | |
6789 | _arg1 = (bool ) tempbool1; | |
6790 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6791 | { |
6792 | wxPy_BEGIN_ALLOW_THREADS; | |
6793 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
6794 | ||
6795 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6796 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6797 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6798 | _resultobj = Py_None; |
6799 | return _resultobj; | |
6800 | } | |
6801 | ||
b7e72427 RD |
6802 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6803 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6804 | PyObject * _resultobj; | |
6805 | int _result; | |
6806 | wxScrolledWindow * _arg0; | |
6807 | int _arg1; | |
6808 | PyObject * _argo0 = 0; | |
6809 | char *_kwnames[] = { "self","orient", NULL }; | |
6810 | ||
6811 | self = self; | |
6812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6813 | return NULL; | |
6814 | if (_argo0) { | |
6815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6818 | return NULL; | |
6819 | } | |
6820 | } | |
6821 | { | |
6822 | wxPy_BEGIN_ALLOW_THREADS; | |
6823 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
6824 | ||
6825 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6826 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6827 | } _resultobj = Py_BuildValue("i",_result); |
6828 | return _resultobj; | |
6829 | } | |
6830 | ||
8ab979d7 | 6831 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6832 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6833 | PyObject * _resultobj; |
6834 | wxScrolledWindow * _arg0; | |
6835 | int * _arg1; | |
6836 | int temp; | |
6837 | int * _arg2; | |
6838 | int temp0; | |
1d99702e | 6839 | PyObject * _argo0 = 0; |
efc5f224 | 6840 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6841 | |
6842 | self = self; | |
6843 | { | |
6844 | _arg1 = &temp; | |
6845 | } | |
6846 | { | |
6847 | _arg2 = &temp0; | |
6848 | } | |
efc5f224 | 6849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6850 | return NULL; |
1d99702e RD |
6851 | if (_argo0) { |
6852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6855 | return NULL; | |
6856 | } | |
6857 | } | |
cf694132 RD |
6858 | { |
6859 | wxPy_BEGIN_ALLOW_THREADS; | |
6860 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
6861 | ||
6862 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6863 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6864 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6865 | _resultobj = Py_None; |
6866 | { | |
6867 | PyObject *o; | |
6868 | o = PyInt_FromLong((long) (*_arg1)); | |
6869 | _resultobj = t_output_helper(_resultobj, o); | |
6870 | } | |
6871 | { | |
6872 | PyObject *o; | |
6873 | o = PyInt_FromLong((long) (*_arg2)); | |
6874 | _resultobj = t_output_helper(_resultobj, o); | |
6875 | } | |
6876 | return _resultobj; | |
6877 | } | |
6878 | ||
b7e72427 RD |
6879 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6880 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6881 | PyObject * _resultobj; | |
6882 | wxWindow * _result; | |
6883 | wxScrolledWindow * _arg0; | |
6884 | PyObject * _argo0 = 0; | |
6885 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6886 | |
6887 | self = self; | |
6888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6889 | return NULL; | |
6890 | if (_argo0) { | |
6891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6894 | return NULL; | |
6895 | } | |
6896 | } | |
6897 | { | |
6898 | wxPy_BEGIN_ALLOW_THREADS; | |
6899 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6900 | ||
6901 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6902 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6903 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
6904 | return _resultobj; |
6905 | } | |
6906 | ||
8ab979d7 | 6907 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6908 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6909 | PyObject * _resultobj; |
6910 | wxScrolledWindow * _arg0; | |
6911 | int * _arg1; | |
6912 | int temp; | |
6913 | int * _arg2; | |
6914 | int temp0; | |
1d99702e | 6915 | PyObject * _argo0 = 0; |
efc5f224 | 6916 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6917 | |
6918 | self = self; | |
6919 | { | |
6920 | _arg1 = &temp; | |
6921 | } | |
6922 | { | |
6923 | _arg2 = &temp0; | |
6924 | } | |
efc5f224 | 6925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6926 | return NULL; |
1d99702e RD |
6927 | if (_argo0) { |
6928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6931 | return NULL; | |
6932 | } | |
6933 | } | |
cf694132 RD |
6934 | { |
6935 | wxPy_BEGIN_ALLOW_THREADS; | |
6936 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6937 | ||
6938 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6939 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6940 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6941 | _resultobj = Py_None; |
6942 | { | |
6943 | PyObject *o; | |
6944 | o = PyInt_FromLong((long) (*_arg1)); | |
6945 | _resultobj = t_output_helper(_resultobj, o); | |
6946 | } | |
6947 | { | |
6948 | PyObject *o; | |
6949 | o = PyInt_FromLong((long) (*_arg2)); | |
6950 | _resultobj = t_output_helper(_resultobj, o); | |
6951 | } | |
6952 | return _resultobj; | |
6953 | } | |
6954 | ||
6955 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6956 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6957 | PyObject * _resultobj; |
6958 | bool _result; | |
6959 | wxScrolledWindow * _arg0; | |
1d99702e | 6960 | PyObject * _argo0 = 0; |
efc5f224 | 6961 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6962 | |
6963 | self = self; | |
efc5f224 | 6964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6965 | return NULL; |
1d99702e RD |
6966 | if (_argo0) { |
6967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6970 | return NULL; | |
6971 | } | |
6972 | } | |
cf694132 RD |
6973 | { |
6974 | wxPy_BEGIN_ALLOW_THREADS; | |
6975 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6976 | ||
6977 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6978 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6979 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6980 | return _resultobj; |
6981 | } | |
6982 | ||
6983 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6984 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6985 | PyObject * _resultobj; |
6986 | wxScrolledWindow * _arg0; | |
6987 | wxDC * _arg1; | |
1d99702e RD |
6988 | PyObject * _argo0 = 0; |
6989 | PyObject * _argo1 = 0; | |
efc5f224 | 6990 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6991 | |
6992 | self = self; | |
efc5f224 | 6993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6994 | return NULL; |
1d99702e RD |
6995 | if (_argo0) { |
6996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6999 | return NULL; | |
7000 | } | |
7001 | } | |
1d99702e RD |
7002 | if (_argo1) { |
7003 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7004 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
7005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
7006 | return NULL; | |
7007 | } | |
7008 | } | |
cf694132 RD |
7009 | { |
7010 | wxPy_BEGIN_ALLOW_THREADS; | |
7011 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
7012 | ||
7013 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7014 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7015 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7016 | _resultobj = Py_None; |
7017 | return _resultobj; | |
7018 | } | |
7019 | ||
7020 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 7021 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7022 | PyObject * _resultobj; |
7023 | wxScrolledWindow * _arg0; | |
7024 | int _arg1; | |
7025 | int _arg2; | |
1d99702e | 7026 | PyObject * _argo0 = 0; |
efc5f224 | 7027 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7028 | |
7029 | self = self; | |
efc5f224 | 7030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7031 | return NULL; |
1d99702e RD |
7032 | if (_argo0) { |
7033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
7036 | return NULL; | |
7037 | } | |
7038 | } | |
cf694132 RD |
7039 | { |
7040 | wxPy_BEGIN_ALLOW_THREADS; | |
7041 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
7042 | ||
7043 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7044 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7045 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7046 | _resultobj = Py_None; |
7047 | return _resultobj; | |
7048 | } | |
7049 | ||
f6bcfd97 | 7050 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 7051 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7052 | PyObject * _resultobj; |
7053 | wxScrolledWindow * _arg0; | |
7054 | int _arg1; | |
7055 | int _arg2; | |
7056 | int _arg3; | |
7057 | int _arg4; | |
1d99702e RD |
7058 | int _arg5 = (int ) 0; |
7059 | int _arg6 = (int ) 0; | |
f6bcfd97 | 7060 | int _arg7 = (int ) FALSE; |
1d99702e | 7061 | PyObject * _argo0 = 0; |
f6bcfd97 | 7062 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
7063 | |
7064 | self = self; | |
f6bcfd97 | 7065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 7066 | return NULL; |
1d99702e RD |
7067 | if (_argo0) { |
7068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
7071 | return NULL; | |
7072 | } | |
7073 | } | |
cf694132 RD |
7074 | { |
7075 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7076 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 RD |
7077 | |
7078 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7079 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7080 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7081 | _resultobj = Py_None; |
7082 | return _resultobj; | |
7083 | } | |
7084 | ||
b7e72427 RD |
7085 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
7086 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7087 | PyObject * _resultobj; | |
7088 | wxScrolledWindow * _arg0; | |
7089 | int _arg1; | |
7090 | int _arg2; | |
7091 | PyObject * _argo0 = 0; | |
7092 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
7093 | ||
7094 | self = self; | |
7095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7096 | return NULL; | |
7097 | if (_argo0) { | |
7098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
7101 | return NULL; | |
7102 | } | |
7103 | } | |
7104 | { | |
7105 | wxPy_BEGIN_ALLOW_THREADS; | |
7106 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
7107 | ||
7108 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7109 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
7110 | } Py_INCREF(Py_None); |
7111 | _resultobj = Py_None; | |
7112 | return _resultobj; | |
7113 | } | |
7114 | ||
eb715945 RD |
7115 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
7116 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7117 | PyObject * _resultobj; | |
7118 | wxScrolledWindow * _arg0; | |
7119 | wxWindow * _arg1; | |
7120 | PyObject * _argo0 = 0; | |
7121 | PyObject * _argo1 = 0; | |
7122 | char *_kwnames[] = { "self","window", NULL }; | |
7123 | ||
7124 | self = self; | |
7125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
7126 | return NULL; | |
7127 | if (_argo0) { | |
7128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
7131 | return NULL; | |
7132 | } | |
7133 | } | |
7134 | if (_argo1) { | |
7135 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7136 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
7138 | return NULL; | |
7139 | } | |
7140 | } | |
7141 | { | |
7142 | wxPy_BEGIN_ALLOW_THREADS; | |
7143 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
7144 | ||
7145 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7146 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
7147 | } Py_INCREF(Py_None); |
7148 | _resultobj = Py_None; | |
7149 | return _resultobj; | |
7150 | } | |
7151 | ||
4c9993c3 RD |
7152 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
7153 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7154 | PyObject * _resultobj; | |
7155 | wxScrolledWindow * _arg0; | |
7156 | int * _arg1; | |
7157 | int temp; | |
7158 | int * _arg2; | |
7159 | int temp0; | |
7160 | PyObject * _argo0 = 0; | |
7161 | char *_kwnames[] = { "self", NULL }; | |
7162 | ||
7163 | self = self; | |
7164 | { | |
7165 | _arg1 = &temp; | |
7166 | } | |
7167 | { | |
7168 | _arg2 = &temp0; | |
7169 | } | |
7170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
7171 | return NULL; | |
7172 | if (_argo0) { | |
7173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
7176 | return NULL; | |
7177 | } | |
7178 | } | |
7179 | { | |
7180 | wxPy_BEGIN_ALLOW_THREADS; | |
7181 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
7182 | ||
7183 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7184 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
7185 | } Py_INCREF(Py_None); |
7186 | _resultobj = Py_None; | |
7187 | { | |
7188 | PyObject *o; | |
7189 | o = PyInt_FromLong((long) (*_arg1)); | |
7190 | _resultobj = t_output_helper(_resultobj, o); | |
7191 | } | |
7192 | { | |
7193 | PyObject *o; | |
7194 | o = PyInt_FromLong((long) (*_arg2)); | |
7195 | _resultobj = t_output_helper(_resultobj, o); | |
7196 | } | |
7197 | return _resultobj; | |
7198 | } | |
7199 | ||
9d8bd15f RD |
7200 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7201 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7202 | PyObject * _resultobj; | |
7203 | wxScrolledWindow * _arg0; | |
7204 | int _arg1; | |
7205 | int _arg2; | |
7206 | int * _arg3; | |
7207 | int temp; | |
7208 | int * _arg4; | |
7209 | int temp0; | |
7210 | PyObject * _argo0 = 0; | |
7211 | char *_kwnames[] = { "self","x","y", NULL }; | |
7212 | ||
7213 | self = self; | |
7214 | { | |
7215 | _arg3 = &temp; | |
7216 | } | |
7217 | { | |
7218 | _arg4 = &temp0; | |
7219 | } | |
7220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7221 | return NULL; | |
7222 | if (_argo0) { | |
7223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
7226 | return NULL; | |
7227 | } | |
7228 | } | |
7229 | { | |
7230 | wxPy_BEGIN_ALLOW_THREADS; | |
7231 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7232 | ||
7233 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7234 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7235 | } Py_INCREF(Py_None); |
7236 | _resultobj = Py_None; | |
7237 | { | |
7238 | PyObject *o; | |
7239 | o = PyInt_FromLong((long) (*_arg3)); | |
7240 | _resultobj = t_output_helper(_resultobj, o); | |
7241 | } | |
7242 | { | |
7243 | PyObject *o; | |
7244 | o = PyInt_FromLong((long) (*_arg4)); | |
7245 | _resultobj = t_output_helper(_resultobj, o); | |
7246 | } | |
7247 | return _resultobj; | |
7248 | } | |
7249 | ||
7250 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7251 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7252 | PyObject * _resultobj; | |
7253 | wxScrolledWindow * _arg0; | |
7254 | int _arg1; | |
7255 | int _arg2; | |
7256 | int * _arg3; | |
7257 | int temp; | |
7258 | int * _arg4; | |
7259 | int temp0; | |
7260 | PyObject * _argo0 = 0; | |
7261 | char *_kwnames[] = { "self","x","y", NULL }; | |
7262 | ||
7263 | self = self; | |
7264 | { | |
7265 | _arg3 = &temp; | |
7266 | } | |
7267 | { | |
7268 | _arg4 = &temp0; | |
7269 | } | |
7270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7271 | return NULL; | |
7272 | if (_argo0) { | |
7273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
7276 | return NULL; | |
7277 | } | |
7278 | } | |
7279 | { | |
7280 | wxPy_BEGIN_ALLOW_THREADS; | |
7281 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7282 | ||
7283 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7284 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7285 | } Py_INCREF(Py_None); |
7286 | _resultobj = Py_None; | |
7287 | { | |
7288 | PyObject *o; | |
7289 | o = PyInt_FromLong((long) (*_arg3)); | |
7290 | _resultobj = t_output_helper(_resultobj, o); | |
7291 | } | |
7292 | { | |
7293 | PyObject *o; | |
7294 | o = PyInt_FromLong((long) (*_arg4)); | |
7295 | _resultobj = t_output_helper(_resultobj, o); | |
7296 | } | |
7297 | return _resultobj; | |
7298 | } | |
7299 | ||
7a446686 RD |
7300 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
7301 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7302 | PyObject * _resultobj; | |
7303 | wxScrolledWindow * _arg0; | |
7304 | double _arg1; | |
7305 | double _arg2; | |
7306 | PyObject * _argo0 = 0; | |
7307 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
7308 | ||
7309 | self = self; | |
7310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7311 | return NULL; | |
7312 | if (_argo0) { | |
7313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
7316 | return NULL; | |
7317 | } | |
7318 | } | |
7319 | { | |
7320 | wxPy_BEGIN_ALLOW_THREADS; | |
7321 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); | |
7322 | ||
7323 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7324 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
7325 | } Py_INCREF(Py_None); |
7326 | _resultobj = Py_None; | |
7327 | return _resultobj; | |
7328 | } | |
7329 | ||
7330 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
7331 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7332 | PyObject * _resultobj; | |
7333 | double _result; | |
7334 | wxScrolledWindow * _arg0; | |
7335 | PyObject * _argo0 = 0; | |
7336 | char *_kwnames[] = { "self", NULL }; | |
7337 | ||
7338 | self = self; | |
7339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
7340 | return NULL; | |
7341 | if (_argo0) { | |
7342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
7345 | return NULL; | |
7346 | } | |
7347 | } | |
7348 | { | |
7349 | wxPy_BEGIN_ALLOW_THREADS; | |
7350 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); | |
7351 | ||
7352 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7353 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
7354 | } _resultobj = Py_BuildValue("d",_result); |
7355 | return _resultobj; | |
7356 | } | |
7357 | ||
7358 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
7359 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7360 | PyObject * _resultobj; | |
7361 | double _result; | |
7362 | wxScrolledWindow * _arg0; | |
7363 | PyObject * _argo0 = 0; | |
7364 | char *_kwnames[] = { "self", NULL }; | |
7365 | ||
7366 | self = self; | |
7367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
7368 | return NULL; | |
7369 | if (_argo0) { | |
7370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
7373 | return NULL; | |
7374 | } | |
7375 | } | |
7376 | { | |
7377 | wxPy_BEGIN_ALLOW_THREADS; | |
7378 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
7379 | ||
7380 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7381 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
7382 | } _resultobj = Py_BuildValue("d",_result); |
7383 | return _resultobj; | |
7384 | } | |
7385 | ||
7386 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
7387 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7388 | PyObject * _resultobj; | |
7389 | wxScrolledWindow * _arg0; | |
7390 | PyObject * _argo0 = 0; | |
7391 | char *_kwnames[] = { "self", NULL }; | |
7392 | ||
7393 | self = self; | |
7394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
7395 | return NULL; | |
7396 | if (_argo0) { | |
7397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
7400 | return NULL; | |
7401 | } | |
7402 | } | |
7403 | { | |
7404 | wxPy_BEGIN_ALLOW_THREADS; | |
7405 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
7406 | ||
7407 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7408 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
7409 | } Py_INCREF(Py_None); |
7410 | _resultobj = Py_None; | |
7411 | return _resultobj; | |
7412 | } | |
7413 | ||
8ab979d7 RD |
7414 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
7415 | wxMenu *src; | |
7416 | wxEvtHandler *dest; | |
7417 | src = (wxMenu *) ptr; | |
7418 | dest = (wxEvtHandler *) src; | |
7419 | return (void *) dest; | |
7420 | } | |
7421 | ||
9df61a29 RD |
7422 | static void *SwigwxMenuTowxObject(void *ptr) { |
7423 | wxMenu *src; | |
7424 | wxObject *dest; | |
7425 | src = (wxMenu *) ptr; | |
7426 | dest = (wxObject *) src; | |
7427 | return (void *) dest; | |
7428 | } | |
7429 | ||
8bf5d46e | 7430 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 7431 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7432 | PyObject * _resultobj; |
7433 | wxMenu * _result; | |
1d99702e RD |
7434 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
7435 | long _arg1 = (long ) 0; | |
8ab979d7 | 7436 | PyObject * _obj0 = 0; |
efc5f224 | 7437 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
7438 | char _ptemp[128]; |
7439 | ||
7440 | self = self; | |
efc5f224 | 7441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
7442 | return NULL; |
7443 | if (_obj0) | |
7444 | { | |
2cd2fac8 RD |
7445 | #if PYTHON_API_VERSION >= 1009 |
7446 | char* tmpPtr; int tmpSize; | |
7447 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 7448 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7449 | return NULL; |
7450 | } | |
7451 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
7452 | return NULL; | |
7453 | _arg0 = new wxString(tmpPtr, tmpSize); | |
7454 | #else | |
8ab979d7 RD |
7455 | if (!PyString_Check(_obj0)) { |
7456 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7457 | return NULL; | |
7458 | } | |
2cd2fac8 RD |
7459 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
7460 | #endif | |
8ab979d7 | 7461 | } |
cf694132 RD |
7462 | { |
7463 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 7464 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 RD |
7465 | |
7466 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7467 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7468 | } if (_result) { |
7469 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7470 | _resultobj = Py_BuildValue("s",_ptemp); | |
7471 | } else { | |
7472 | Py_INCREF(Py_None); | |
7473 | _resultobj = Py_None; | |
7474 | } | |
8ab979d7 RD |
7475 | { |
7476 | if (_obj0) | |
7477 | delete _arg0; | |
7478 | } | |
7479 | return _resultobj; | |
7480 | } | |
7481 | ||
7482 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 7483 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7484 | PyObject * _resultobj; |
7485 | wxMenu * _arg0; | |
7486 | int _arg1; | |
7487 | wxString * _arg2; | |
1d99702e | 7488 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
9e689c06 | 7489 | int _arg4 = (int ) FALSE; |
1d99702e | 7490 | PyObject * _argo0 = 0; |
8ab979d7 RD |
7491 | PyObject * _obj2 = 0; |
7492 | PyObject * _obj3 = 0; | |
efc5f224 | 7493 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
7494 | |
7495 | self = self; | |
9e689c06 | 7496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 7497 | return NULL; |
1d99702e RD |
7498 | if (_argo0) { |
7499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
7502 | return NULL; | |
7503 | } | |
7504 | } | |
7505 | { | |
2cd2fac8 RD |
7506 | #if PYTHON_API_VERSION >= 1009 |
7507 | char* tmpPtr; int tmpSize; | |
7508 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7509 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7510 | return NULL; |
7511 | } | |
7512 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7513 | return NULL; | |
7514 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7515 | #else | |
8ab979d7 RD |
7516 | if (!PyString_Check(_obj2)) { |
7517 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7518 | return NULL; | |
7519 | } | |
2cd2fac8 RD |
7520 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7521 | #endif | |
8ab979d7 RD |
7522 | } |
7523 | if (_obj3) | |
7524 | { | |
2cd2fac8 RD |
7525 | #if PYTHON_API_VERSION >= 1009 |
7526 | char* tmpPtr; int tmpSize; | |
7527 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 7528 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7529 | return NULL; |
7530 | } | |
7531 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7532 | return NULL; | |
7533 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7534 | #else | |
8ab979d7 RD |
7535 | if (!PyString_Check(_obj3)) { |
7536 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7537 | return NULL; | |
7538 | } | |
2cd2fac8 RD |
7539 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
7540 | #endif | |
8ab979d7 | 7541 | } |
cf694132 RD |
7542 | { |
7543 | wxPy_BEGIN_ALLOW_THREADS; | |
7544 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
7545 | ||
7546 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7547 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7548 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7549 | _resultobj = Py_None; |
7550 | { | |
7551 | if (_obj2) | |
7552 | delete _arg2; | |
7553 | } | |
7554 | { | |
7555 | if (_obj3) | |
7556 | delete _arg3; | |
7557 | } | |
7558 | return _resultobj; | |
7559 | } | |
7560 | ||
7561 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 7562 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7563 | PyObject * _resultobj; |
7564 | wxMenu * _arg0; | |
7565 | int _arg1; | |
7566 | wxString * _arg2; | |
7567 | wxMenu * _arg3; | |
1d99702e RD |
7568 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
7569 | PyObject * _argo0 = 0; | |
8ab979d7 | 7570 | PyObject * _obj2 = 0; |
1d99702e | 7571 | PyObject * _argo3 = 0; |
8ab979d7 | 7572 | PyObject * _obj4 = 0; |
efc5f224 | 7573 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
7574 | |
7575 | self = self; | |
efc5f224 | 7576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 7577 | return NULL; |
1d99702e RD |
7578 | if (_argo0) { |
7579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
7582 | return NULL; | |
7583 | } | |
7584 | } | |
7585 | { | |
2cd2fac8 RD |
7586 | #if PYTHON_API_VERSION >= 1009 |
7587 | char* tmpPtr; int tmpSize; | |
7588 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7589 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7590 | return NULL; |
7591 | } | |
7592 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7593 | return NULL; | |
7594 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7595 | #else | |
8ab979d7 RD |
7596 | if (!PyString_Check(_obj2)) { |
7597 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7598 | return NULL; | |
7599 | } | |
2cd2fac8 RD |
7600 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7601 | #endif | |
8ab979d7 | 7602 | } |
1d99702e RD |
7603 | if (_argo3) { |
7604 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7605 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
7606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
7607 | return NULL; | |
7608 | } | |
7609 | } | |
7610 | if (_obj4) | |
7611 | { | |
2cd2fac8 RD |
7612 | #if PYTHON_API_VERSION >= 1009 |
7613 | char* tmpPtr; int tmpSize; | |
7614 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
7a446686 | 7615 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7616 | return NULL; |
7617 | } | |
7618 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
7619 | return NULL; | |
7620 | _arg4 = new wxString(tmpPtr, tmpSize); | |
7621 | #else | |
8ab979d7 RD |
7622 | if (!PyString_Check(_obj4)) { |
7623 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7624 | return NULL; | |
7625 | } | |
2cd2fac8 RD |
7626 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
7627 | #endif | |
8ab979d7 | 7628 | } |
cf694132 RD |
7629 | { |
7630 | wxPy_BEGIN_ALLOW_THREADS; | |
7631 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
7632 | ||
7633 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7634 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7635 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7636 | _resultobj = Py_None; |
7637 | { | |
7638 | if (_obj2) | |
7639 | delete _arg2; | |
7640 | } | |
7641 | { | |
7642 | if (_obj4) | |
7643 | delete _arg4; | |
7644 | } | |
7645 | return _resultobj; | |
7646 | } | |
7647 | ||
af309447 | 7648 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 7649 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
7650 | PyObject * _resultobj; |
7651 | wxMenu * _arg0; | |
7652 | wxMenuItem * _arg1; | |
1d99702e RD |
7653 | PyObject * _argo0 = 0; |
7654 | PyObject * _argo1 = 0; | |
efc5f224 | 7655 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
7656 | |
7657 | self = self; | |
efc5f224 | 7658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 7659 | return NULL; |
1d99702e RD |
7660 | if (_argo0) { |
7661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
7663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
7664 | return NULL; | |
7665 | } | |
7666 | } | |
1d99702e RD |
7667 | if (_argo1) { |
7668 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7669 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
7670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
7671 | return NULL; | |
7672 | } | |
7673 | } | |
cf694132 RD |
7674 | { |
7675 | wxPy_BEGIN_ALLOW_THREADS; | |
7676 | wxMenu_AppendItem(_arg0,_arg1); | |
7677 | ||
7678 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7679 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7680 | } Py_INCREF(Py_None); |
af309447 RD |
7681 | _resultobj = Py_None; |
7682 | return _resultobj; | |
7683 | } | |
7684 | ||
8ab979d7 | 7685 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 7686 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7687 | PyObject * _resultobj; |
7688 | wxMenu * _arg0; | |
1d99702e | 7689 | PyObject * _argo0 = 0; |
efc5f224 | 7690 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7691 | |
7692 | self = self; | |
efc5f224 | 7693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 7694 | return NULL; |
1d99702e RD |
7695 | if (_argo0) { |
7696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
7699 | return NULL; | |
7700 | } | |
7701 | } | |
cf694132 RD |
7702 | { |
7703 | wxPy_BEGIN_ALLOW_THREADS; | |
7704 | wxMenu_AppendSeparator(_arg0); | |
7705 | ||
7706 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7707 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7708 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7709 | _resultobj = Py_None; |
7710 | return _resultobj; | |
7711 | } | |
7712 | ||
7713 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 7714 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7715 | PyObject * _resultobj; |
7716 | wxMenu * _arg0; | |
1d99702e | 7717 | PyObject * _argo0 = 0; |
efc5f224 | 7718 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7719 | |
7720 | self = self; | |
efc5f224 | 7721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 7722 | return NULL; |
1d99702e RD |
7723 | if (_argo0) { |
7724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
7727 | return NULL; | |
7728 | } | |
7729 | } | |
cf694132 RD |
7730 | { |
7731 | wxPy_BEGIN_ALLOW_THREADS; | |
7732 | wxMenu_Break(_arg0); | |
7733 | ||
7734 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7735 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7736 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7737 | _resultobj = Py_None; |
7738 | return _resultobj; | |
7739 | } | |
7740 | ||
7741 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 7742 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7743 | PyObject * _resultobj; |
7744 | wxMenu * _arg0; | |
7745 | int _arg1; | |
7746 | bool _arg2; | |
1d99702e | 7747 | PyObject * _argo0 = 0; |
8ab979d7 | 7748 | int tempbool2; |
efc5f224 | 7749 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
7750 | |
7751 | self = self; | |
efc5f224 | 7752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7753 | return NULL; |
1d99702e RD |
7754 | if (_argo0) { |
7755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
7758 | return NULL; | |
7759 | } | |
7760 | } | |
7761 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7762 | { |
7763 | wxPy_BEGIN_ALLOW_THREADS; | |
7764 | wxMenu_Check(_arg0,_arg1,_arg2); | |
7765 | ||
7766 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7767 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7768 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7769 | _resultobj = Py_None; |
7770 | return _resultobj; | |
7771 | } | |
7772 | ||
b1462dfa RD |
7773 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
7774 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7775 | PyObject * _resultobj; | |
7776 | bool _result; | |
7777 | wxMenu * _arg0; | |
7778 | int _arg1; | |
7779 | PyObject * _argo0 = 0; | |
7780 | char *_kwnames[] = { "self","id", NULL }; | |
7781 | ||
7782 | self = self; | |
7783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7784 | return NULL; | |
7785 | if (_argo0) { | |
7786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7789 | return NULL; | |
7790 | } | |
7791 | } | |
7792 | { | |
7793 | wxPy_BEGIN_ALLOW_THREADS; | |
7794 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
7795 | ||
7796 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7797 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7798 | } _resultobj = Py_BuildValue("i",_result); |
7799 | return _resultobj; | |
7800 | } | |
7801 | ||
8ab979d7 | 7802 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 7803 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7804 | PyObject * _resultobj; |
7805 | wxMenu * _arg0; | |
7806 | int _arg1; | |
7807 | bool _arg2; | |
1d99702e | 7808 | PyObject * _argo0 = 0; |
8ab979d7 | 7809 | int tempbool2; |
efc5f224 | 7810 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
7811 | |
7812 | self = self; | |
efc5f224 | 7813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7814 | return NULL; |
1d99702e RD |
7815 | if (_argo0) { |
7816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
7819 | return NULL; | |
7820 | } | |
7821 | } | |
7822 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7823 | { |
7824 | wxPy_BEGIN_ALLOW_THREADS; | |
7825 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
7826 | ||
7827 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7828 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7829 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7830 | _resultobj = Py_None; |
7831 | return _resultobj; | |
7832 | } | |
7833 | ||
b1462dfa RD |
7834 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
7835 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7836 | PyObject * _resultobj; | |
7837 | bool _result; | |
7838 | wxMenu * _arg0; | |
7839 | int _arg1; | |
7840 | PyObject * _argo0 = 0; | |
7841 | char *_kwnames[] = { "self","id", NULL }; | |
7842 | ||
7843 | self = self; | |
7844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7845 | return NULL; | |
7846 | if (_argo0) { | |
7847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7850 | return NULL; | |
7851 | } | |
7852 | } | |
7853 | { | |
7854 | wxPy_BEGIN_ALLOW_THREADS; | |
7855 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
7856 | ||
7857 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7858 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7859 | } _resultobj = Py_BuildValue("i",_result); |
7860 | return _resultobj; | |
7861 | } | |
7862 | ||
8ab979d7 | 7863 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 7864 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7865 | PyObject * _resultobj; |
7866 | int _result; | |
7867 | wxMenu * _arg0; | |
7868 | wxString * _arg1; | |
1d99702e | 7869 | PyObject * _argo0 = 0; |
8ab979d7 | 7870 | PyObject * _obj1 = 0; |
efc5f224 | 7871 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
7872 | |
7873 | self = self; | |
efc5f224 | 7874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7875 | return NULL; |
1d99702e RD |
7876 | if (_argo0) { |
7877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
7880 | return NULL; | |
7881 | } | |
7882 | } | |
7883 | { | |
2cd2fac8 RD |
7884 | #if PYTHON_API_VERSION >= 1009 |
7885 | char* tmpPtr; int tmpSize; | |
7886 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7887 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7888 | return NULL; |
7889 | } | |
7890 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7891 | return NULL; | |
7892 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7893 | #else | |
8ab979d7 RD |
7894 | if (!PyString_Check(_obj1)) { |
7895 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7896 | return NULL; | |
7897 | } | |
2cd2fac8 RD |
7898 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7899 | #endif | |
8ab979d7 | 7900 | } |
cf694132 RD |
7901 | { |
7902 | wxPy_BEGIN_ALLOW_THREADS; | |
7903 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
7904 | ||
7905 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7906 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7907 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7908 | { |
7909 | if (_obj1) | |
7910 | delete _arg1; | |
7911 | } | |
7912 | return _resultobj; | |
7913 | } | |
7914 | ||
b1462dfa RD |
7915 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
7916 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7917 | PyObject * _resultobj; | |
7918 | wxMenuItem * _result; | |
7919 | wxMenu * _arg0; | |
7920 | int _arg1; | |
7921 | PyObject * _argo0 = 0; | |
7922 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
7923 | |
7924 | self = self; | |
7925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7926 | return NULL; | |
7927 | if (_argo0) { | |
7928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7931 | return NULL; | |
7932 | } | |
7933 | } | |
7934 | { | |
7935 | wxPy_BEGIN_ALLOW_THREADS; | |
7936 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
7937 | ||
7938 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7939 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7940 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
7941 | return _resultobj; |
7942 | } | |
7943 | ||
8ab979d7 | 7944 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 7945 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7946 | PyObject * _resultobj; |
7947 | wxString * _result; | |
7948 | wxMenu * _arg0; | |
1d99702e | 7949 | PyObject * _argo0 = 0; |
efc5f224 | 7950 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7951 | |
7952 | self = self; | |
efc5f224 | 7953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 7954 | return NULL; |
1d99702e RD |
7955 | if (_argo0) { |
7956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
7959 | return NULL; | |
7960 | } | |
7961 | } | |
8ab979d7 | 7962 | { |
cf694132 RD |
7963 | wxPy_BEGIN_ALLOW_THREADS; |
7964 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
7965 | ||
7966 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7967 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7968 | }{ |
eec92d76 | 7969 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7970 | } |
7971 | { | |
7972 | delete _result; | |
7973 | } | |
7974 | return _resultobj; | |
7975 | } | |
7976 | ||
7977 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7978 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7979 | PyObject * _resultobj; |
7980 | wxMenu * _arg0; | |
7981 | wxString * _arg1; | |
1d99702e | 7982 | PyObject * _argo0 = 0; |
8ab979d7 | 7983 | PyObject * _obj1 = 0; |
efc5f224 | 7984 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7985 | |
7986 | self = self; | |
efc5f224 | 7987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7988 | return NULL; |
1d99702e RD |
7989 | if (_argo0) { |
7990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7993 | return NULL; | |
7994 | } | |
7995 | } | |
7996 | { | |
2cd2fac8 RD |
7997 | #if PYTHON_API_VERSION >= 1009 |
7998 | char* tmpPtr; int tmpSize; | |
7999 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 8000 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8001 | return NULL; |
8002 | } | |
8003 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8004 | return NULL; | |
8005 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8006 | #else | |
8ab979d7 RD |
8007 | if (!PyString_Check(_obj1)) { |
8008 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8009 | return NULL; | |
8010 | } | |
2cd2fac8 RD |
8011 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8012 | #endif | |
8ab979d7 | 8013 | } |
cf694132 RD |
8014 | { |
8015 | wxPy_BEGIN_ALLOW_THREADS; | |
8016 | wxMenu_SetTitle(_arg0,*_arg1); | |
8017 | ||
8018 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8019 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8020 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8021 | _resultobj = Py_None; |
8022 | { | |
8023 | if (_obj1) | |
8024 | delete _arg1; | |
8025 | } | |
8026 | return _resultobj; | |
8027 | } | |
8028 | ||
b1462dfa RD |
8029 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8030 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8031 | PyObject * _resultobj; |
b1462dfa | 8032 | wxString * _result; |
8ab979d7 RD |
8033 | wxMenu * _arg0; |
8034 | int _arg1; | |
1d99702e | 8035 | PyObject * _argo0 = 0; |
efc5f224 | 8036 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8037 | |
8038 | self = self; | |
b1462dfa | 8039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8040 | return NULL; |
1d99702e RD |
8041 | if (_argo0) { |
8042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
8045 | return NULL; |
8046 | } | |
8047 | } | |
cf694132 RD |
8048 | { |
8049 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8050 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 RD |
8051 | |
8052 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8053 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8054 | }{ |
eec92d76 | 8055 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8056 | } |
8057 | { | |
8058 | delete _result; | |
8059 | } | |
8ab979d7 RD |
8060 | return _resultobj; |
8061 | } | |
8062 | ||
b1462dfa RD |
8063 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8064 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8065 | PyObject * _resultobj; |
8ab979d7 RD |
8066 | wxMenu * _arg0; |
8067 | int _arg1; | |
b1462dfa | 8068 | wxString * _arg2; |
1d99702e | 8069 | PyObject * _argo0 = 0; |
b1462dfa RD |
8070 | PyObject * _obj2 = 0; |
8071 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8072 | |
8073 | self = self; | |
b1462dfa | 8074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8075 | return NULL; |
1d99702e RD |
8076 | if (_argo0) { |
8077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
8080 | return NULL; |
8081 | } | |
8082 | } | |
b1462dfa | 8083 | { |
2cd2fac8 RD |
8084 | #if PYTHON_API_VERSION >= 1009 |
8085 | char* tmpPtr; int tmpSize; | |
8086 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8087 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8088 | return NULL; |
8089 | } | |
8090 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8091 | return NULL; | |
8092 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8093 | #else | |
b1462dfa RD |
8094 | if (!PyString_Check(_obj2)) { |
8095 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8096 | return NULL; | |
8097 | } | |
2cd2fac8 RD |
8098 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8099 | #endif | |
b1462dfa | 8100 | } |
8ab979d7 | 8101 | { |
cf694132 | 8102 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8103 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
8104 | |
8105 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8106 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8107 | } Py_INCREF(Py_None); |
8108 | _resultobj = Py_None; | |
8ab979d7 | 8109 | { |
b1462dfa RD |
8110 | if (_obj2) |
8111 | delete _arg2; | |
8ab979d7 RD |
8112 | } |
8113 | return _resultobj; | |
8114 | } | |
8115 | ||
b1462dfa RD |
8116 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
8117 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8118 | PyObject * _resultobj; |
8119 | wxString * _result; | |
8120 | wxMenu * _arg0; | |
8121 | int _arg1; | |
1d99702e | 8122 | PyObject * _argo0 = 0; |
efc5f224 | 8123 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8124 | |
8125 | self = self; | |
b1462dfa | 8126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8127 | return NULL; |
1d99702e RD |
8128 | if (_argo0) { |
8129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
8132 | return NULL; |
8133 | } | |
8134 | } | |
8ab979d7 | 8135 | { |
cf694132 | 8136 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8137 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
8138 | |
8139 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8140 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8141 | }{ |
eec92d76 | 8142 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
8143 | } |
8144 | { | |
8145 | delete _result; | |
8146 | } | |
8147 | return _resultobj; | |
8148 | } | |
8149 | ||
8150 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 8151 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8152 | PyObject * _resultobj; |
8153 | wxMenu * _arg0; | |
8154 | int _arg1; | |
8155 | wxString * _arg2; | |
1d99702e | 8156 | PyObject * _argo0 = 0; |
8ab979d7 | 8157 | PyObject * _obj2 = 0; |
efc5f224 | 8158 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
8159 | |
8160 | self = self; | |
efc5f224 | 8161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8162 | return NULL; |
1d99702e RD |
8163 | if (_argo0) { |
8164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
8167 | return NULL; | |
8168 | } | |
8169 | } | |
8170 | { | |
2cd2fac8 RD |
8171 | #if PYTHON_API_VERSION >= 1009 |
8172 | char* tmpPtr; int tmpSize; | |
8173 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8174 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8175 | return NULL; |
8176 | } | |
8177 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8178 | return NULL; | |
8179 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8180 | #else | |
8ab979d7 RD |
8181 | if (!PyString_Check(_obj2)) { |
8182 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8183 | return NULL; | |
8184 | } | |
2cd2fac8 RD |
8185 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8186 | #endif | |
8ab979d7 | 8187 | } |
cf694132 RD |
8188 | { |
8189 | wxPy_BEGIN_ALLOW_THREADS; | |
8190 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
8191 | ||
8192 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8193 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8194 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8195 | _resultobj = Py_None; |
8196 | { | |
8197 | if (_obj2) | |
8198 | delete _arg2; | |
8199 | } | |
8200 | return _resultobj; | |
8201 | } | |
8202 | ||
b1462dfa RD |
8203 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
8204 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8205 | PyObject * _resultobj; |
8ab979d7 | 8206 | wxMenu * _arg0; |
b1462dfa | 8207 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 8208 | PyObject * _argo0 = 0; |
b1462dfa RD |
8209 | PyObject * _argo1 = 0; |
8210 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
8211 | |
8212 | self = self; | |
b1462dfa | 8213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8214 | return NULL; |
1d99702e RD |
8215 | if (_argo0) { |
8216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
8218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
8219 | return NULL; | |
8220 | } | |
8221 | } | |
8222 | if (_argo1) { | |
8223 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8224 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
8226 | return NULL; |
8227 | } | |
8228 | } | |
cf694132 RD |
8229 | { |
8230 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8231 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 RD |
8232 | |
8233 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8234 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8235 | } Py_INCREF(Py_None); |
8236 | _resultobj = Py_None; | |
8ab979d7 RD |
8237 | return _resultobj; |
8238 | } | |
8239 | ||
b1462dfa RD |
8240 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
8241 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8242 | PyObject * _resultobj; |
8243 | bool _result; | |
8244 | wxMenu * _arg0; | |
8245 | int _arg1; | |
1d99702e | 8246 | PyObject * _argo0 = 0; |
efc5f224 | 8247 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8248 | |
8249 | self = self; | |
b1462dfa | 8250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8251 | return NULL; |
1d99702e RD |
8252 | if (_argo0) { |
8253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
8256 | return NULL; |
8257 | } | |
8258 | } | |
cf694132 RD |
8259 | { |
8260 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8261 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 RD |
8262 | |
8263 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8264 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8265 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8266 | return _resultobj; |
8267 | } | |
8268 | ||
b1462dfa RD |
8269 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
8270 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8271 | PyObject * _resultobj; |
b1462dfa | 8272 | bool _result; |
8ab979d7 | 8273 | wxMenu * _arg0; |
b1462dfa | 8274 | wxMenuItem * _arg1; |
1d99702e | 8275 | PyObject * _argo0 = 0; |
b1462dfa RD |
8276 | PyObject * _argo1 = 0; |
8277 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
8278 | |
8279 | self = self; | |
b1462dfa | 8280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8281 | return NULL; |
1d99702e RD |
8282 | if (_argo0) { |
8283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
8286 | return NULL; |
8287 | } | |
8288 | } | |
b1462dfa RD |
8289 | if (_argo1) { |
8290 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8291 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 8293 | return NULL; |
b1462dfa | 8294 | } |
8ab979d7 | 8295 | } |
cf694132 RD |
8296 | { |
8297 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8298 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 RD |
8299 | |
8300 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8301 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8302 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8303 | return _resultobj; |
8304 | } | |
8305 | ||
b1462dfa RD |
8306 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
8307 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8308 | PyObject * _resultobj; |
b1462dfa | 8309 | bool _result; |
8bf5d46e | 8310 | wxMenu * _arg0; |
b1462dfa RD |
8311 | size_t _arg1; |
8312 | wxMenuItem * _arg2; | |
1d99702e | 8313 | PyObject * _argo0 = 0; |
b1462dfa RD |
8314 | PyObject * _argo2 = 0; |
8315 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
8316 | |
8317 | self = self; | |
b1462dfa | 8318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 8319 | return NULL; |
1d99702e RD |
8320 | if (_argo0) { |
8321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
8324 | return NULL; |
8325 | } | |
8326 | } | |
b1462dfa RD |
8327 | if (_argo2) { |
8328 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8329 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
8330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
8331 | return NULL; |
8332 | } | |
8333 | } | |
cf694132 RD |
8334 | { |
8335 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8336 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 RD |
8337 | |
8338 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8339 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8340 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8341 | return _resultobj; |
8342 | } | |
8343 | ||
b1462dfa RD |
8344 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
8345 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 8346 | PyObject * _resultobj; |
b1462dfa | 8347 | wxMenuItem * _result; |
efc5f224 | 8348 | wxMenu * _arg0; |
b1462dfa | 8349 | int _arg1; |
efc5f224 | 8350 | PyObject * _argo0 = 0; |
b1462dfa | 8351 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
8352 | |
8353 | self = self; | |
b1462dfa | 8354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
8355 | return NULL; |
8356 | if (_argo0) { | |
8357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
8360 | return NULL; |
8361 | } | |
8362 | } | |
8363 | { | |
8364 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8365 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 RD |
8366 | |
8367 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8368 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8369 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
8370 | return _resultobj; |
8371 | } | |
8372 | ||
b1462dfa RD |
8373 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
8374 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8375 | PyObject * _resultobj; |
b1462dfa RD |
8376 | wxMenuItem * _result; |
8377 | wxMenu * _arg0; | |
8378 | wxMenuItem * _arg1; | |
8379 | PyObject * _argo0 = 0; | |
8380 | PyObject * _argo1 = 0; | |
8381 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
8382 | |
8383 | self = self; | |
b1462dfa RD |
8384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
8385 | return NULL; | |
8386 | if (_argo0) { | |
8387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
8390 | return NULL; | |
8391 | } | |
8392 | } | |
8393 | if (_argo1) { | |
8394 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8395 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 8397 | return NULL; |
b1462dfa RD |
8398 | } |
8399 | } | |
cf694132 RD |
8400 | { |
8401 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8402 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 RD |
8403 | |
8404 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8405 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8406 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8407 | return _resultobj; |
8408 | } | |
8409 | ||
eb715945 | 8410 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 8411 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8412 | PyObject * _resultobj; |
b1462dfa | 8413 | wxMenu * _arg0; |
1d99702e | 8414 | PyObject * _argo0 = 0; |
b1462dfa | 8415 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8416 | |
8417 | self = self; | |
b1462dfa | 8418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 8419 | return NULL; |
1d99702e RD |
8420 | if (_argo0) { |
8421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
8424 | return NULL; |
8425 | } | |
8426 | } | |
cf694132 RD |
8427 | { |
8428 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8429 | wxMenu_Destroy(_arg0); |
cf694132 RD |
8430 | |
8431 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8432 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8433 | } Py_INCREF(Py_None); |
8ab979d7 | 8434 | _resultobj = Py_None; |
8ab979d7 RD |
8435 | return _resultobj; |
8436 | } | |
8437 | ||
b1462dfa RD |
8438 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
8439 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8440 | PyObject * _resultobj; |
b1462dfa RD |
8441 | bool _result; |
8442 | wxMenu * _arg0; | |
8ab979d7 | 8443 | int _arg1; |
1d99702e | 8444 | PyObject * _argo0 = 0; |
b1462dfa | 8445 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8446 | |
8447 | self = self; | |
b1462dfa | 8448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8449 | return NULL; |
1d99702e RD |
8450 | if (_argo0) { |
8451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
8454 | return NULL; |
8455 | } | |
8456 | } | |
cf694132 RD |
8457 | { |
8458 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8459 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 RD |
8460 | |
8461 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8462 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8463 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8464 | return _resultobj; |
8465 | } | |
8466 | ||
b1462dfa RD |
8467 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
8468 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8469 | PyObject * _resultobj; |
b1462dfa RD |
8470 | bool _result; |
8471 | wxMenu * _arg0; | |
8472 | wxMenuItem * _arg1; | |
1d99702e | 8473 | PyObject * _argo0 = 0; |
b1462dfa RD |
8474 | PyObject * _argo1 = 0; |
8475 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
8476 | |
8477 | self = self; | |
b1462dfa | 8478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8479 | return NULL; |
1d99702e RD |
8480 | if (_argo0) { |
8481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
8484 | return NULL; | |
8485 | } | |
8486 | } | |
8487 | if (_argo1) { | |
8488 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8489 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
8491 | return NULL; |
8492 | } | |
8493 | } | |
cf694132 RD |
8494 | { |
8495 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8496 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 RD |
8497 | |
8498 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8499 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8500 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8501 | return _resultobj; |
8502 | } | |
8503 | ||
b1462dfa RD |
8504 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
8505 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8506 | PyObject * _resultobj; |
b1462dfa RD |
8507 | size_t _result; |
8508 | wxMenu * _arg0; | |
1d99702e | 8509 | PyObject * _argo0 = 0; |
b1462dfa | 8510 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8511 | |
8512 | self = self; | |
b1462dfa | 8513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 8514 | return NULL; |
1d99702e RD |
8515 | if (_argo0) { |
8516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
8519 | return NULL; |
8520 | } | |
8521 | } | |
cf694132 RD |
8522 | { |
8523 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8524 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 RD |
8525 | |
8526 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8527 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 8528 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8529 | return _resultobj; |
8530 | } | |
8531 | ||
b1462dfa RD |
8532 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
8533 | wxMenuItemList& list = self->GetMenuItems(); | |
8534 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
8535 | } | |
8536 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8537 | PyObject * _resultobj; |
b1462dfa RD |
8538 | PyObject * _result; |
8539 | wxMenu * _arg0; | |
1d99702e | 8540 | PyObject * _argo0 = 0; |
b1462dfa | 8541 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8542 | |
8543 | self = self; | |
b1462dfa | 8544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 8545 | return NULL; |
1d99702e RD |
8546 | if (_argo0) { |
8547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
8550 | return NULL; |
8551 | } | |
8552 | } | |
cf694132 RD |
8553 | { |
8554 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8555 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 RD |
8556 | |
8557 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8558 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8559 | }{ |
8560 | _resultobj = _result; | |
8561 | } | |
8ab979d7 RD |
8562 | return _resultobj; |
8563 | } | |
8564 | ||
b1462dfa RD |
8565 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
8566 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8567 | PyObject * _resultobj; |
b1462dfa RD |
8568 | wxMenu * _arg0; |
8569 | wxEvtHandler * _arg1; | |
1d99702e | 8570 | PyObject * _argo0 = 0; |
b1462dfa RD |
8571 | PyObject * _argo1 = 0; |
8572 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
8573 | |
8574 | self = self; | |
b1462dfa | 8575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8576 | return NULL; |
1d99702e RD |
8577 | if (_argo0) { |
8578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8581 | return NULL; |
8582 | } | |
8583 | } | |
b1462dfa RD |
8584 | if (_argo1) { |
8585 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8586 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 8588 | return NULL; |
b1462dfa | 8589 | } |
8ab979d7 | 8590 | } |
cf694132 RD |
8591 | { |
8592 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8593 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 RD |
8594 | |
8595 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8596 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8597 | } Py_INCREF(Py_None); |
8598 | _resultobj = Py_None; | |
8ab979d7 RD |
8599 | return _resultobj; |
8600 | } | |
8601 | ||
b1462dfa RD |
8602 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
8603 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8604 | PyObject * _resultobj; |
b1462dfa RD |
8605 | wxEvtHandler * _result; |
8606 | wxMenu * _arg0; | |
1d99702e | 8607 | PyObject * _argo0 = 0; |
b1462dfa | 8608 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8609 | |
8610 | self = self; | |
b1462dfa | 8611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 8612 | return NULL; |
1d99702e RD |
8613 | if (_argo0) { |
8614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8617 | return NULL; |
8618 | } | |
8619 | } | |
cf694132 RD |
8620 | { |
8621 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8622 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 RD |
8623 | |
8624 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8625 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8626 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8627 | return _resultobj; |
8628 | } | |
8629 | ||
b1462dfa RD |
8630 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
8631 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 8632 | PyObject * _resultobj; |
b1462dfa RD |
8633 | wxMenu * _arg0; |
8634 | wxWindow * _arg1; | |
2f90df85 | 8635 | PyObject * _argo0 = 0; |
b1462dfa RD |
8636 | PyObject * _argo1 = 0; |
8637 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
8638 | |
8639 | self = self; | |
b1462dfa | 8640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
8641 | return NULL; |
8642 | if (_argo0) { | |
8643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
8646 | return NULL; |
8647 | } | |
8648 | } | |
b1462dfa RD |
8649 | if (_argo1) { |
8650 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8651 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 8653 | return NULL; |
b1462dfa | 8654 | } |
2f90df85 | 8655 | } |
2f90df85 RD |
8656 | { |
8657 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8658 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 RD |
8659 | |
8660 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8661 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
8662 | } Py_INCREF(Py_None); |
8663 | _resultobj = Py_None; | |
2f90df85 RD |
8664 | return _resultobj; |
8665 | } | |
8666 | ||
b1462dfa RD |
8667 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
8668 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8669 | PyObject * _resultobj; |
b1462dfa RD |
8670 | wxWindow * _result; |
8671 | wxMenu * _arg0; | |
1d99702e | 8672 | PyObject * _argo0 = 0; |
b1462dfa | 8673 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8674 | |
8675 | self = self; | |
b1462dfa | 8676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 8677 | return NULL; |
1d99702e RD |
8678 | if (_argo0) { |
8679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
8682 | return NULL; |
8683 | } | |
8684 | } | |
cf694132 RD |
8685 | { |
8686 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8687 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 RD |
8688 | |
8689 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8690 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8691 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8692 | return _resultobj; |
8693 | } | |
8694 | ||
b1462dfa RD |
8695 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
8696 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8697 | PyObject * _resultobj; |
b1462dfa RD |
8698 | long _result; |
8699 | wxMenu * _arg0; | |
1d99702e | 8700 | PyObject * _argo0 = 0; |
b1462dfa | 8701 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8702 | |
8703 | self = self; | |
b1462dfa | 8704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 8705 | return NULL; |
1d99702e RD |
8706 | if (_argo0) { |
8707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
8710 | return NULL; |
8711 | } | |
8712 | } | |
8ab979d7 | 8713 | { |
cf694132 | 8714 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8715 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 RD |
8716 | |
8717 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8718 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8719 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8720 | return _resultobj; |
8721 | } | |
8722 | ||
b1462dfa RD |
8723 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
8724 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8725 | PyObject * _resultobj; |
b1462dfa RD |
8726 | bool _result; |
8727 | wxMenu * _arg0; | |
1d99702e | 8728 | PyObject * _argo0 = 0; |
b1462dfa | 8729 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8730 | |
8731 | self = self; | |
b1462dfa | 8732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 8733 | return NULL; |
1d99702e RD |
8734 | if (_argo0) { |
8735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
8738 | return NULL; |
8739 | } | |
8740 | } | |
8ab979d7 | 8741 | { |
cf694132 | 8742 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8743 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 RD |
8744 | |
8745 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8746 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8747 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8748 | return _resultobj; |
8749 | } | |
8750 | ||
b1462dfa RD |
8751 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
8752 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8753 | PyObject * _resultobj; |
b1462dfa RD |
8754 | wxMenu * _arg0; |
8755 | wxMenu * _arg1; | |
1d99702e | 8756 | PyObject * _argo0 = 0; |
b1462dfa RD |
8757 | PyObject * _argo1 = 0; |
8758 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
8759 | |
8760 | self = self; | |
b1462dfa | 8761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8762 | return NULL; |
1d99702e RD |
8763 | if (_argo0) { |
8764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8767 | return NULL; |
8768 | } | |
8769 | } | |
b1462dfa RD |
8770 | if (_argo1) { |
8771 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8772 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 8774 | return NULL; |
b1462dfa | 8775 | } |
8ab979d7 | 8776 | } |
cf694132 RD |
8777 | { |
8778 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8779 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 RD |
8780 | |
8781 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8782 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8783 | } Py_INCREF(Py_None); |
8ab979d7 | 8784 | _resultobj = Py_None; |
8ab979d7 RD |
8785 | return _resultobj; |
8786 | } | |
8787 | ||
b1462dfa RD |
8788 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
8789 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8790 | PyObject * _resultobj; |
b1462dfa RD |
8791 | wxMenu * _result; |
8792 | wxMenu * _arg0; | |
1d99702e | 8793 | PyObject * _argo0 = 0; |
b1462dfa | 8794 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8795 | |
8796 | self = self; | |
b1462dfa | 8797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 8798 | return NULL; |
1d99702e RD |
8799 | if (_argo0) { |
8800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8803 | return NULL; |
8804 | } | |
8805 | } | |
8ab979d7 | 8806 | { |
cf694132 | 8807 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8808 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 RD |
8809 | |
8810 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8811 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8812 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8813 | return _resultobj; |
8ab979d7 | 8814 | } |
b1462dfa RD |
8815 | |
8816 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8817 | wxMenuBar *src; | |
8818 | wxWindow *dest; | |
8819 | src = (wxMenuBar *) ptr; | |
8820 | dest = (wxWindow *) src; | |
8821 | return (void *) dest; | |
8822 | } | |
8823 | ||
8824 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8825 | wxMenuBar *src; | |
8826 | wxEvtHandler *dest; | |
8827 | src = (wxMenuBar *) ptr; | |
8828 | dest = (wxEvtHandler *) src; | |
8829 | return (void *) dest; | |
8ab979d7 | 8830 | } |
b1462dfa | 8831 | |
9df61a29 RD |
8832 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
8833 | wxMenuBar *src; | |
8834 | wxObject *dest; | |
8835 | src = (wxMenuBar *) ptr; | |
8836 | dest = (wxObject *) src; | |
8837 | return (void *) dest; | |
8838 | } | |
8839 | ||
c368d904 | 8840 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
8841 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8842 | PyObject * _resultobj; | |
8843 | wxMenuBar * _result; | |
c368d904 RD |
8844 | long _arg0 = (long ) 0; |
8845 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
8846 | char _ptemp[128]; |
8847 | ||
8848 | self = self; | |
c368d904 | 8849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
8850 | return NULL; |
8851 | { | |
8852 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 8853 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa RD |
8854 | |
8855 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8856 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8857 | } if (_result) { |
8858 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8859 | _resultobj = Py_BuildValue("s",_ptemp); | |
8860 | } else { | |
8861 | Py_INCREF(Py_None); | |
8862 | _resultobj = Py_None; | |
8863 | } | |
8ab979d7 RD |
8864 | return _resultobj; |
8865 | } | |
8866 | ||
b1462dfa RD |
8867 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
8868 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8869 | PyObject * _resultobj; |
b1462dfa | 8870 | bool _result; |
8ab979d7 | 8871 | wxMenuBar * _arg0; |
b1462dfa | 8872 | wxMenu * _arg1; |
8ab979d7 | 8873 | wxString * _arg2; |
1d99702e | 8874 | PyObject * _argo0 = 0; |
b1462dfa | 8875 | PyObject * _argo1 = 0; |
8ab979d7 | 8876 | PyObject * _obj2 = 0; |
b1462dfa | 8877 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
8878 | |
8879 | self = self; | |
b1462dfa | 8880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8881 | return NULL; |
1d99702e RD |
8882 | if (_argo0) { |
8883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
8886 | return NULL; | |
8887 | } | |
8888 | } | |
8889 | if (_argo1) { | |
8890 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8891 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
8893 | return NULL; |
8894 | } | |
8895 | } | |
8896 | { | |
2cd2fac8 RD |
8897 | #if PYTHON_API_VERSION >= 1009 |
8898 | char* tmpPtr; int tmpSize; | |
8899 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8900 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8901 | return NULL; |
8902 | } | |
8903 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8904 | return NULL; | |
8905 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8906 | #else | |
8ab979d7 RD |
8907 | if (!PyString_Check(_obj2)) { |
8908 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8909 | return NULL; | |
8910 | } | |
2cd2fac8 RD |
8911 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8912 | #endif | |
8ab979d7 | 8913 | } |
cf694132 RD |
8914 | { |
8915 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8916 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 RD |
8917 | |
8918 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8919 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8920 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8921 | { |
8922 | if (_obj2) | |
8923 | delete _arg2; | |
8924 | } | |
8925 | return _resultobj; | |
8926 | } | |
8927 | ||
b1462dfa RD |
8928 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
8929 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8930 | PyObject * _resultobj; |
b1462dfa | 8931 | bool _result; |
8ab979d7 | 8932 | wxMenuBar * _arg0; |
b1462dfa RD |
8933 | size_t _arg1; |
8934 | wxMenu * _arg2; | |
8935 | wxString * _arg3; | |
1d99702e | 8936 | PyObject * _argo0 = 0; |
b1462dfa RD |
8937 | PyObject * _argo2 = 0; |
8938 | PyObject * _obj3 = 0; | |
8939 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
8940 | |
8941 | self = self; | |
b1462dfa | 8942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 8943 | return NULL; |
1d99702e RD |
8944 | if (_argo0) { |
8945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
8948 | return NULL; | |
8949 | } | |
8950 | } | |
8951 | if (_argo2) { | |
8952 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8953 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
8955 | return NULL; |
8956 | } | |
8957 | } | |
b1462dfa | 8958 | { |
2cd2fac8 RD |
8959 | #if PYTHON_API_VERSION >= 1009 |
8960 | char* tmpPtr; int tmpSize; | |
8961 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 8962 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8963 | return NULL; |
8964 | } | |
8965 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8966 | return NULL; | |
8967 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8968 | #else | |
b1462dfa RD |
8969 | if (!PyString_Check(_obj3)) { |
8970 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8971 | return NULL; | |
8972 | } | |
2cd2fac8 RD |
8973 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8974 | #endif | |
b1462dfa | 8975 | } |
cf694132 RD |
8976 | { |
8977 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8978 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
8979 | |
8980 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8981 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8982 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
8983 | { |
8984 | if (_obj3) | |
8985 | delete _arg3; | |
8986 | } | |
8ab979d7 RD |
8987 | return _resultobj; |
8988 | } | |
8989 | ||
b1462dfa RD |
8990 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8991 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8992 | PyObject * _resultobj; |
b1462dfa | 8993 | size_t _result; |
8ab979d7 | 8994 | wxMenuBar * _arg0; |
1d99702e | 8995 | PyObject * _argo0 = 0; |
b1462dfa | 8996 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8997 | |
8998 | self = self; | |
b1462dfa | 8999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 9000 | return NULL; |
1d99702e RD |
9001 | if (_argo0) { |
9002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
9005 | return NULL; |
9006 | } | |
9007 | } | |
cf694132 RD |
9008 | { |
9009 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9010 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 RD |
9011 | |
9012 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9013 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9014 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9015 | return _resultobj; |
9016 | } | |
9017 | ||
b1462dfa RD |
9018 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
9019 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 9020 | PyObject * _resultobj; |
b1462dfa | 9021 | wxMenu * _result; |
06c0fba4 | 9022 | wxMenuBar * _arg0; |
b1462dfa | 9023 | size_t _arg1; |
06c0fba4 | 9024 | PyObject * _argo0 = 0; |
b1462dfa | 9025 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
9026 | |
9027 | self = self; | |
b1462dfa | 9028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
9029 | return NULL; |
9030 | if (_argo0) { | |
9031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
9034 | return NULL; |
9035 | } | |
9036 | } | |
9037 | { | |
9038 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9039 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 RD |
9040 | |
9041 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9042 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9043 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
9044 | return _resultobj; |
9045 | } | |
9046 | ||
2abc0a0f RD |
9047 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
9048 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9049 | PyObject * _resultobj; | |
9050 | wxMenu * _result; | |
9051 | wxMenuBar * _arg0; | |
9052 | size_t _arg1; | |
9053 | wxMenu * _arg2; | |
9054 | wxString * _arg3; | |
9055 | PyObject * _argo0 = 0; | |
9056 | PyObject * _argo2 = 0; | |
9057 | PyObject * _obj3 = 0; | |
9058 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
9059 | |
9060 | self = self; | |
9061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
9062 | return NULL; | |
9063 | if (_argo0) { | |
9064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
9067 | return NULL; | |
9068 | } | |
9069 | } | |
9070 | if (_argo2) { | |
9071 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9072 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
9074 | return NULL; | |
9075 | } | |
9076 | } | |
9077 | { | |
2cd2fac8 RD |
9078 | #if PYTHON_API_VERSION >= 1009 |
9079 | char* tmpPtr; int tmpSize; | |
9080 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 9081 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9082 | return NULL; |
9083 | } | |
9084 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9085 | return NULL; | |
9086 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9087 | #else | |
2abc0a0f RD |
9088 | if (!PyString_Check(_obj3)) { |
9089 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9090 | return NULL; | |
9091 | } | |
2cd2fac8 RD |
9092 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
9093 | #endif | |
2abc0a0f RD |
9094 | } |
9095 | { | |
9096 | wxPy_BEGIN_ALLOW_THREADS; | |
9097 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
9098 | ||
9099 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9100 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9101 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
9102 | { |
9103 | if (_obj3) | |
9104 | delete _arg3; | |
9105 | } | |
9106 | return _resultobj; | |
9107 | } | |
9108 | ||
9109 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
9110 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9111 | PyObject * _resultobj; | |
9112 | wxMenu * _result; | |
9113 | wxMenuBar * _arg0; | |
9114 | size_t _arg1; | |
9115 | PyObject * _argo0 = 0; | |
9116 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
9117 | |
9118 | self = self; | |
9119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
9120 | return NULL; | |
9121 | if (_argo0) { | |
9122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
9125 | return NULL; | |
9126 | } | |
9127 | } | |
9128 | { | |
9129 | wxPy_BEGIN_ALLOW_THREADS; | |
9130 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
9131 | ||
9132 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9133 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9134 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
9135 | return _resultobj; |
9136 | } | |
9137 | ||
b1462dfa RD |
9138 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
9139 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9140 | PyObject * _resultobj; |
b1462dfa RD |
9141 | wxMenuBar * _arg0; |
9142 | size_t _arg1; | |
9143 | bool _arg2; | |
9144 | PyObject * _argo0 = 0; | |
9145 | int tempbool2; | |
9146 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
9147 | ||
9148 | self = self; | |
9149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9150 | return NULL; | |
9151 | if (_argo0) { | |
9152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
9155 | return NULL; | |
9156 | } | |
9157 | } | |
9158 | _arg2 = (bool ) tempbool2; | |
9159 | { | |
9160 | wxPy_BEGIN_ALLOW_THREADS; | |
9161 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
9162 | ||
9163 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9164 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9165 | } Py_INCREF(Py_None); |
9166 | _resultobj = Py_None; | |
9167 | return _resultobj; | |
9168 | } | |
9169 | ||
9170 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
9171 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9172 | PyObject * _resultobj; | |
9173 | wxMenuBar * _arg0; | |
9174 | size_t _arg1; | |
9175 | wxString * _arg2; | |
1d99702e | 9176 | PyObject * _argo0 = 0; |
cf694132 | 9177 | PyObject * _obj2 = 0; |
b1462dfa | 9178 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
9179 | |
9180 | self = self; | |
b1462dfa | 9181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 9182 | return NULL; |
1d99702e RD |
9183 | if (_argo0) { |
9184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
9187 | return NULL; |
9188 | } | |
9189 | } | |
cf694132 | 9190 | { |
2cd2fac8 RD |
9191 | #if PYTHON_API_VERSION >= 1009 |
9192 | char* tmpPtr; int tmpSize; | |
9193 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 9194 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9195 | return NULL; |
9196 | } | |
9197 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9198 | return NULL; | |
9199 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9200 | #else | |
cf694132 RD |
9201 | if (!PyString_Check(_obj2)) { |
9202 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9203 | return NULL; | |
9204 | } | |
2cd2fac8 RD |
9205 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9206 | #endif | |
cf694132 | 9207 | } |
cf694132 | 9208 | { |
b1462dfa RD |
9209 | wxPy_BEGIN_ALLOW_THREADS; |
9210 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
9211 | ||
9212 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9213 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9214 | } Py_INCREF(Py_None); |
9215 | _resultobj = Py_None; | |
9216 | { | |
9217 | if (_obj2) | |
9218 | delete _arg2; | |
9219 | } | |
9220 | return _resultobj; | |
9221 | } | |
9222 | ||
9223 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
9224 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9225 | PyObject * _resultobj; | |
9226 | wxString * _result; | |
9227 | wxMenuBar * _arg0; | |
9228 | size_t _arg1; | |
9229 | PyObject * _argo0 = 0; | |
9230 | char *_kwnames[] = { "self","pos", NULL }; | |
9231 | ||
9232 | self = self; | |
9233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
9234 | return NULL; | |
9235 | if (_argo0) { | |
9236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
9239 | return NULL; | |
9240 | } | |
9241 | } | |
9242 | { | |
9243 | wxPy_BEGIN_ALLOW_THREADS; | |
9244 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
9245 | ||
9246 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9247 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9248 | }{ |
eec92d76 | 9249 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9250 | } |
9251 | { | |
9252 | delete _result; | |
9253 | } | |
9254 | return _resultobj; | |
9255 | } | |
9256 | ||
10be44ac RD |
9257 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
9258 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9259 | PyObject * _resultobj; | |
9260 | int _result; | |
9261 | wxMenuBar * _arg0; | |
9262 | wxString * _arg1; | |
9263 | PyObject * _argo0 = 0; | |
9264 | PyObject * _obj1 = 0; | |
9265 | char *_kwnames[] = { "self","title", NULL }; | |
9266 | ||
9267 | self = self; | |
9268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
9269 | return NULL; | |
9270 | if (_argo0) { | |
9271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
9274 | return NULL; | |
9275 | } | |
9276 | } | |
9277 | { | |
9278 | #if PYTHON_API_VERSION >= 1009 | |
9279 | char* tmpPtr; int tmpSize; | |
9280 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9281 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9282 | return NULL; | |
9283 | } | |
9284 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9285 | return NULL; | |
9286 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9287 | #else | |
9288 | if (!PyString_Check(_obj1)) { | |
9289 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9290 | return NULL; | |
9291 | } | |
9292 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9293 | #endif | |
9294 | } | |
9295 | { | |
9296 | wxPy_BEGIN_ALLOW_THREADS; | |
9297 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); | |
9298 | ||
9299 | wxPy_END_ALLOW_THREADS; | |
9300 | if (PyErr_Occurred()) return NULL; | |
9301 | } _resultobj = Py_BuildValue("i",_result); | |
9302 | { | |
9303 | if (_obj1) | |
9304 | delete _arg1; | |
9305 | } | |
9306 | return _resultobj; | |
9307 | } | |
9308 | ||
b1462dfa RD |
9309 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
9310 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9311 | PyObject * _resultobj; | |
9312 | int _result; | |
9313 | wxMenuBar * _arg0; | |
9314 | wxString * _arg1; | |
9315 | wxString * _arg2; | |
9316 | PyObject * _argo0 = 0; | |
9317 | PyObject * _obj1 = 0; | |
9318 | PyObject * _obj2 = 0; | |
9319 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
9320 | ||
9321 | self = self; | |
9322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9323 | return NULL; | |
9324 | if (_argo0) { | |
9325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
9328 | return NULL; | |
9329 | } | |
9330 | } | |
9331 | { | |
2cd2fac8 RD |
9332 | #if PYTHON_API_VERSION >= 1009 |
9333 | char* tmpPtr; int tmpSize; | |
9334 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 9335 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9336 | return NULL; |
9337 | } | |
9338 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9339 | return NULL; | |
9340 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9341 | #else | |
b1462dfa | 9342 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
9343 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
9344 | return NULL; | |
9345 | } | |
2cd2fac8 RD |
9346 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9347 | #endif | |
cf694132 | 9348 | } |
b1462dfa | 9349 | { |
2cd2fac8 RD |
9350 | #if PYTHON_API_VERSION >= 1009 |
9351 | char* tmpPtr; int tmpSize; | |
9352 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 9353 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9354 | return NULL; |
9355 | } | |
9356 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9357 | return NULL; | |
9358 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9359 | #else | |
b1462dfa RD |
9360 | if (!PyString_Check(_obj2)) { |
9361 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9362 | return NULL; | |
9363 | } | |
2cd2fac8 RD |
9364 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9365 | #endif | |
b1462dfa RD |
9366 | } |
9367 | { | |
9368 | wxPy_BEGIN_ALLOW_THREADS; | |
9369 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
9370 | ||
9371 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9372 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9373 | } _resultobj = Py_BuildValue("i",_result); |
9374 | { | |
9375 | if (_obj1) | |
9376 | delete _arg1; | |
9377 | } | |
9378 | { | |
9379 | if (_obj2) | |
9380 | delete _arg2; | |
9381 | } | |
9382 | return _resultobj; | |
9383 | } | |
9384 | ||
9385 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
9386 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9387 | PyObject * _resultobj; | |
9388 | wxMenuItem * _result; | |
9389 | wxMenuBar * _arg0; | |
9390 | int _arg1; | |
9391 | PyObject * _argo0 = 0; | |
9392 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
9393 | |
9394 | self = self; | |
9395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
9396 | return NULL; | |
9397 | if (_argo0) { | |
9398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
9401 | return NULL; |
9402 | } | |
9403 | } | |
9404 | { | |
9405 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9406 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 RD |
9407 | |
9408 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9409 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9410 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 9411 | return _resultobj; |
cf694132 | 9412 | } |
b1462dfa RD |
9413 | |
9414 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
9415 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9416 | PyObject * _resultobj; | |
9417 | wxMenuBar * _arg0; | |
9418 | int _arg1; | |
9419 | bool _arg2; | |
9420 | PyObject * _argo0 = 0; | |
9421 | int tempbool2; | |
9422 | char *_kwnames[] = { "self","id","enable", NULL }; | |
9423 | ||
9424 | self = self; | |
9425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9426 | return NULL; | |
9427 | if (_argo0) { | |
9428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
9431 | return NULL; | |
9432 | } | |
9433 | } | |
9434 | _arg2 = (bool ) tempbool2; | |
cf694132 | 9435 | { |
b1462dfa RD |
9436 | wxPy_BEGIN_ALLOW_THREADS; |
9437 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
9438 | ||
9439 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9440 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9441 | } Py_INCREF(Py_None); |
9442 | _resultobj = Py_None; | |
9443 | return _resultobj; | |
cf694132 | 9444 | } |
b1462dfa RD |
9445 | |
9446 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
9447 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9448 | PyObject * _resultobj; | |
9449 | wxMenuBar * _arg0; | |
9450 | int _arg1; | |
9451 | bool _arg2; | |
9452 | PyObject * _argo0 = 0; | |
9453 | int tempbool2; | |
9454 | char *_kwnames[] = { "self","id","check", NULL }; | |
9455 | ||
9456 | self = self; | |
9457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9458 | return NULL; | |
9459 | if (_argo0) { | |
9460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
9463 | return NULL; | |
9464 | } | |
9465 | } | |
9466 | _arg2 = (bool ) tempbool2; | |
9467 | { | |
9468 | wxPy_BEGIN_ALLOW_THREADS; | |
9469 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
9470 | ||
9471 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9472 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9473 | } Py_INCREF(Py_None); |
9474 | _resultobj = Py_None; | |
cf694132 RD |
9475 | return _resultobj; |
9476 | } | |
9477 | ||
b1462dfa RD |
9478 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
9479 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9480 | PyObject * _resultobj; |
9481 | bool _result; | |
b1462dfa RD |
9482 | wxMenuBar * _arg0; |
9483 | int _arg1; | |
1d99702e | 9484 | PyObject * _argo0 = 0; |
b1462dfa | 9485 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9486 | |
9487 | self = self; | |
b1462dfa | 9488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9489 | return NULL; |
1d99702e RD |
9490 | if (_argo0) { |
9491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9494 | return NULL; |
9495 | } | |
9496 | } | |
cf694132 RD |
9497 | { |
9498 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9499 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 RD |
9500 | |
9501 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9502 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9503 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9504 | return _resultobj; |
9505 | } | |
9506 | ||
b1462dfa RD |
9507 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
9508 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9509 | PyObject * _resultobj; |
9510 | bool _result; | |
b1462dfa RD |
9511 | wxMenuBar * _arg0; |
9512 | int _arg1; | |
1d99702e | 9513 | PyObject * _argo0 = 0; |
b1462dfa | 9514 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9515 | |
9516 | self = self; | |
b1462dfa | 9517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9518 | return NULL; |
1d99702e RD |
9519 | if (_argo0) { |
9520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9523 | return NULL; |
9524 | } | |
9525 | } | |
cf694132 RD |
9526 | { |
9527 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9528 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 RD |
9529 | |
9530 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9531 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9532 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9533 | return _resultobj; |
9534 | } | |
9535 | ||
b1462dfa RD |
9536 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
9537 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9538 | PyObject * _resultobj; |
b1462dfa RD |
9539 | wxMenuBar * _arg0; |
9540 | int _arg1; | |
9541 | wxString * _arg2; | |
1d99702e | 9542 | PyObject * _argo0 = 0; |
b1462dfa RD |
9543 | PyObject * _obj2 = 0; |
9544 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
9545 | |
9546 | self = self; | |
b1462dfa | 9547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9548 | return NULL; |
1d99702e RD |
9549 | if (_argo0) { |
9550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9553 | return NULL; |
9554 | } | |
9555 | } | |
b1462dfa | 9556 | { |
2cd2fac8 RD |
9557 | #if PYTHON_API_VERSION >= 1009 |
9558 | char* tmpPtr; int tmpSize; | |
9559 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 9560 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9561 | return NULL; |
9562 | } | |
9563 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9564 | return NULL; | |
9565 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9566 | #else | |
b1462dfa RD |
9567 | if (!PyString_Check(_obj2)) { |
9568 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9569 | return NULL; | |
9570 | } | |
2cd2fac8 RD |
9571 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9572 | #endif | |
b1462dfa | 9573 | } |
cf694132 RD |
9574 | { |
9575 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9576 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
9577 | |
9578 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9579 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9580 | } Py_INCREF(Py_None); |
9581 | _resultobj = Py_None; | |
9582 | { | |
9583 | if (_obj2) | |
9584 | delete _arg2; | |
9585 | } | |
8ab979d7 RD |
9586 | return _resultobj; |
9587 | } | |
9588 | ||
b1462dfa RD |
9589 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
9590 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9591 | PyObject * _resultobj; |
b1462dfa RD |
9592 | wxString * _result; |
9593 | wxMenuBar * _arg0; | |
9594 | int _arg1; | |
1d99702e | 9595 | PyObject * _argo0 = 0; |
b1462dfa | 9596 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9597 | |
9598 | self = self; | |
b1462dfa | 9599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9600 | return NULL; |
1d99702e RD |
9601 | if (_argo0) { |
9602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
9605 | return NULL; | |
9606 | } | |
9607 | } | |
9608 | { | |
9609 | wxPy_BEGIN_ALLOW_THREADS; | |
9610 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
9611 | ||
9612 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9613 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9614 | }{ |
eec92d76 | 9615 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9616 | } |
9617 | { | |
9618 | delete _result; | |
9619 | } | |
9620 | return _resultobj; | |
9621 | } | |
9622 | ||
9623 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
9624 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9625 | PyObject * _resultobj; | |
9626 | wxMenuBar * _arg0; | |
9627 | int _arg1; | |
9628 | wxString * _arg2; | |
9629 | PyObject * _argo0 = 0; | |
9630 | PyObject * _obj2 = 0; | |
9631 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
9632 | ||
9633 | self = self; | |
9634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9635 | return NULL; | |
9636 | if (_argo0) { | |
9637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
9640 | return NULL; | |
9641 | } | |
9642 | } | |
9643 | { | |
2cd2fac8 RD |
9644 | #if PYTHON_API_VERSION >= 1009 |
9645 | char* tmpPtr; int tmpSize; | |
9646 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 9647 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9648 | return NULL; |
9649 | } | |
9650 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9651 | return NULL; | |
9652 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9653 | #else | |
b1462dfa RD |
9654 | if (!PyString_Check(_obj2)) { |
9655 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9656 | return NULL; | |
9657 | } | |
2cd2fac8 RD |
9658 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9659 | #endif | |
b1462dfa RD |
9660 | } |
9661 | { | |
9662 | wxPy_BEGIN_ALLOW_THREADS; | |
9663 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
9664 | ||
9665 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9666 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9667 | } Py_INCREF(Py_None); |
9668 | _resultobj = Py_None; | |
9669 | { | |
9670 | if (_obj2) | |
9671 | delete _arg2; | |
9672 | } | |
9673 | return _resultobj; | |
9674 | } | |
9675 | ||
9676 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
9677 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9678 | PyObject * _resultobj; | |
9679 | wxString * _result; | |
9680 | wxMenuBar * _arg0; | |
9681 | int _arg1; | |
9682 | PyObject * _argo0 = 0; | |
9683 | char *_kwnames[] = { "self","id", NULL }; | |
9684 | ||
9685 | self = self; | |
9686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
9687 | return NULL; | |
9688 | if (_argo0) { | |
9689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9692 | return NULL; |
9693 | } | |
9694 | } | |
cf694132 RD |
9695 | { |
9696 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9697 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
9698 | |
9699 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9700 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9701 | }{ |
eec92d76 | 9702 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9703 | } |
9704 | { | |
9705 | delete _result; | |
9706 | } | |
8ab979d7 RD |
9707 | return _resultobj; |
9708 | } | |
9709 | ||
9df61a29 RD |
9710 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
9711 | wxMenuItem *src; | |
9712 | wxObject *dest; | |
9713 | src = (wxMenuItem *) ptr; | |
9714 | dest = (wxObject *) src; | |
9715 | return (void *) dest; | |
9716 | } | |
9717 | ||
b1462dfa RD |
9718 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
9719 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9720 | PyObject * _resultobj; |
b1462dfa RD |
9721 | wxMenuItem * _result; |
9722 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 9723 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
9724 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
9725 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
9726 | bool _arg4 = (bool ) FALSE; | |
9727 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 9728 | PyObject * _argo0 = 0; |
b1462dfa RD |
9729 | PyObject * _obj2 = 0; |
9730 | PyObject * _obj3 = 0; | |
9731 | int tempbool4 = (int) FALSE; | |
9732 | PyObject * _argo5 = 0; | |
9733 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
9734 | char _ptemp[128]; | |
8ab979d7 RD |
9735 | |
9736 | self = self; | |
b1462dfa | 9737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 9738 | return NULL; |
1d99702e RD |
9739 | if (_argo0) { |
9740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9743 | return NULL; | |
9744 | } | |
9745 | } | |
9746 | if (_obj2) | |
9747 | { | |
2cd2fac8 RD |
9748 | #if PYTHON_API_VERSION >= 1009 |
9749 | char* tmpPtr; int tmpSize; | |
9750 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 9751 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9752 | return NULL; |
9753 | } | |
9754 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9755 | return NULL; | |
9756 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9757 | #else | |
b1462dfa RD |
9758 | if (!PyString_Check(_obj2)) { |
9759 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9760 | return NULL; | |
9761 | } | |
2cd2fac8 RD |
9762 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9763 | #endif | |
b1462dfa RD |
9764 | } |
9765 | if (_obj3) | |
9766 | { | |
2cd2fac8 RD |
9767 | #if PYTHON_API_VERSION >= 1009 |
9768 | char* tmpPtr; int tmpSize; | |
9769 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 9770 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9771 | return NULL; |
9772 | } | |
9773 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9774 | return NULL; | |
9775 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9776 | #else | |
b1462dfa RD |
9777 | if (!PyString_Check(_obj3)) { |
9778 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9779 | return NULL; | |
9780 | } | |
2cd2fac8 RD |
9781 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
9782 | #endif | |
b1462dfa RD |
9783 | } |
9784 | _arg4 = (bool ) tempbool4; | |
9785 | if (_argo5) { | |
9786 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9787 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
9789 | return NULL; |
9790 | } | |
9791 | } | |
cf694132 RD |
9792 | { |
9793 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9794 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 RD |
9795 | |
9796 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9797 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9798 | } if (_result) { |
9799 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9800 | _resultobj = Py_BuildValue("s",_ptemp); | |
9801 | } else { | |
9802 | Py_INCREF(Py_None); | |
9803 | _resultobj = Py_None; | |
9804 | } | |
9805 | { | |
9806 | if (_obj2) | |
9807 | delete _arg2; | |
9808 | } | |
9809 | { | |
9810 | if (_obj3) | |
9811 | delete _arg3; | |
9812 | } | |
8ab979d7 RD |
9813 | return _resultobj; |
9814 | } | |
9815 | ||
b1462dfa RD |
9816 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
9817 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9818 | PyObject * _resultobj; |
b1462dfa | 9819 | wxMenu * _result; |
8ab979d7 | 9820 | wxMenuItem * _arg0; |
1d99702e | 9821 | PyObject * _argo0 = 0; |
efc5f224 | 9822 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9823 | |
9824 | self = self; | |
b1462dfa | 9825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 9826 | return NULL; |
1d99702e RD |
9827 | if (_argo0) { |
9828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9831 | return NULL; |
9832 | } | |
9833 | } | |
cf694132 RD |
9834 | { |
9835 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9836 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 RD |
9837 | |
9838 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9839 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9840 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9841 | return _resultobj; |
9842 | } | |
9843 | ||
2abc0a0f RD |
9844 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
9845 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9846 | PyObject * _resultobj; |
9847 | wxMenuItem * _arg0; | |
2abc0a0f | 9848 | int _arg1; |
1d99702e | 9849 | PyObject * _argo0 = 0; |
2abc0a0f | 9850 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9851 | |
9852 | self = self; | |
2abc0a0f | 9853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9854 | return NULL; |
1d99702e RD |
9855 | if (_argo0) { |
9856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 9858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9859 | return NULL; |
9860 | } | |
9861 | } | |
cf694132 RD |
9862 | { |
9863 | wxPy_BEGIN_ALLOW_THREADS; | |
2abc0a0f | 9864 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 RD |
9865 | |
9866 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9867 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9868 | } Py_INCREF(Py_None); |
8ab979d7 | 9869 | _resultobj = Py_None; |
8ab979d7 RD |
9870 | return _resultobj; |
9871 | } | |
9872 | ||
b1462dfa RD |
9873 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
9874 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9875 | PyObject * _resultobj; |
b1462dfa | 9876 | int _result; |
8ab979d7 | 9877 | wxMenuItem * _arg0; |
1d99702e | 9878 | PyObject * _argo0 = 0; |
efc5f224 | 9879 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9880 | |
9881 | self = self; | |
b1462dfa | 9882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 9883 | return NULL; |
1d99702e RD |
9884 | if (_argo0) { |
9885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9888 | return NULL; |
9889 | } | |
9890 | } | |
8ab979d7 | 9891 | { |
cf694132 | 9892 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9893 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 RD |
9894 | |
9895 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9896 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9897 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9898 | return _resultobj; |
9899 | } | |
9900 | ||
b1462dfa RD |
9901 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
9902 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9903 | PyObject * _resultobj; |
b1462dfa | 9904 | bool _result; |
8ab979d7 | 9905 | wxMenuItem * _arg0; |
1d99702e | 9906 | PyObject * _argo0 = 0; |
efc5f224 | 9907 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9908 | |
9909 | self = self; | |
b1462dfa | 9910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 9911 | return NULL; |
1d99702e RD |
9912 | if (_argo0) { |
9913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9916 | return NULL; |
9917 | } | |
9918 | } | |
8ab979d7 | 9919 | { |
cf694132 | 9920 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9921 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 RD |
9922 | |
9923 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9924 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9925 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9926 | return _resultobj; |
9927 | } | |
9928 | ||
b1462dfa RD |
9929 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
9930 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9931 | PyObject * _resultobj; |
9932 | wxMenuItem * _arg0; | |
9933 | wxString * _arg1; | |
1d99702e | 9934 | PyObject * _argo0 = 0; |
8ab979d7 | 9935 | PyObject * _obj1 = 0; |
b1462dfa | 9936 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
9937 | |
9938 | self = self; | |
b1462dfa | 9939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9940 | return NULL; |
1d99702e RD |
9941 | if (_argo0) { |
9942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9945 | return NULL; |
9946 | } | |
9947 | } | |
9948 | { | |
2cd2fac8 RD |
9949 | #if PYTHON_API_VERSION >= 1009 |
9950 | char* tmpPtr; int tmpSize; | |
9951 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 9952 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9953 | return NULL; |
9954 | } | |
9955 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9956 | return NULL; | |
9957 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9958 | #else | |
8ab979d7 RD |
9959 | if (!PyString_Check(_obj1)) { |
9960 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9961 | return NULL; | |
9962 | } | |
2cd2fac8 RD |
9963 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9964 | #endif | |
8ab979d7 | 9965 | } |
cf694132 RD |
9966 | { |
9967 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9968 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 RD |
9969 | |
9970 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9971 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9972 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9973 | _resultobj = Py_None; |
9974 | { | |
9975 | if (_obj1) | |
9976 | delete _arg1; | |
9977 | } | |
9978 | return _resultobj; | |
9979 | } | |
9980 | ||
b1462dfa RD |
9981 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
9982 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9983 | PyObject * _resultobj; |
b1462dfa | 9984 | wxString * _result; |
8ab979d7 | 9985 | wxMenuItem * _arg0; |
1d99702e | 9986 | PyObject * _argo0 = 0; |
b1462dfa | 9987 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9988 | |
9989 | self = self; | |
b1462dfa | 9990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 9991 | return NULL; |
1d99702e RD |
9992 | if (_argo0) { |
9993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9996 | return NULL; |
9997 | } | |
9998 | } | |
cf694132 RD |
9999 | { |
10000 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 10001 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 RD |
10002 | |
10003 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10004 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10005 | }{ |
eec92d76 | 10006 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 10007 | } |
cf694132 | 10008 | { |
b1462dfa RD |
10009 | delete _result; |
10010 | } | |
cf694132 RD |
10011 | return _resultobj; |
10012 | } | |
10013 | ||
b1462dfa RD |
10014 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
10015 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10016 | PyObject * _resultobj; |
b1462dfa | 10017 | wxString * _result; |
cf694132 | 10018 | wxMenuItem * _arg0; |
1d99702e | 10019 | PyObject * _argo0 = 0; |
efc5f224 | 10020 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10021 | |
10022 | self = self; | |
b1462dfa | 10023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 10024 | return NULL; |
1d99702e RD |
10025 | if (_argo0) { |
10026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
10029 | return NULL; |
10030 | } | |
10031 | } | |
10032 | { | |
10033 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
10034 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
10035 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
10036 | |
10037 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10038 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10039 | }{ |
eec92d76 | 10040 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 10041 | } |
cf694132 RD |
10042 | return _resultobj; |
10043 | } | |
10044 | ||
b1462dfa RD |
10045 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
10046 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10047 | PyObject * _resultobj; |
cf694132 | 10048 | wxMenuItem * _arg0; |
b1462dfa | 10049 | bool _arg1; |
1d99702e | 10050 | PyObject * _argo0 = 0; |
b1462dfa RD |
10051 | int tempbool1; |
10052 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
10053 | |
10054 | self = self; | |
b1462dfa | 10055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 10056 | return NULL; |
1d99702e RD |
10057 | if (_argo0) { |
10058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
10061 | return NULL; |
10062 | } | |
10063 | } | |
b1462dfa | 10064 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
10065 | { |
10066 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 10067 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 RD |
10068 | |
10069 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10070 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10071 | } Py_INCREF(Py_None); |
10072 | _resultobj = Py_None; | |
cf694132 RD |
10073 | return _resultobj; |
10074 | } | |
10075 | ||
b1462dfa RD |
10076 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
10077 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10078 | PyObject * _resultobj; |
b1462dfa | 10079 | bool _result; |
cf694132 | 10080 | wxMenuItem * _arg0; |
1d99702e | 10081 | PyObject * _argo0 = 0; |
efc5f224 | 10082 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10083 | |
10084 | self = self; | |
b1462dfa | 10085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 10086 | return NULL; |
1d99702e RD |
10087 | if (_argo0) { |
10088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
10091 | return NULL; |
10092 | } | |
10093 | } | |
10094 | { | |
10095 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 10096 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 RD |
10097 | |
10098 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10099 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10100 | } _resultobj = Py_BuildValue("i",_result); |
10101 | return _resultobj; | |
10102 | } | |
10103 | ||
b1462dfa RD |
10104 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
10105 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10106 | PyObject * _resultobj; |
b1462dfa | 10107 | bool _result; |
cf694132 | 10108 | wxMenuItem * _arg0; |
1d99702e | 10109 | PyObject * _argo0 = 0; |
efc5f224 | 10110 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10111 | |
10112 | self = self; | |
b1462dfa | 10113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 10114 | return NULL; |
1d99702e RD |
10115 | if (_argo0) { |
10116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10119 | return NULL; |
10120 | } | |
10121 | } | |
10122 | { | |
10123 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 10124 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 RD |
10125 | |
10126 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10127 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10128 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
10129 | return _resultobj; |
10130 | } | |
10131 | ||
b1462dfa RD |
10132 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
10133 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10134 | PyObject * _resultobj; |
10135 | wxMenuItem * _arg0; | |
b1462dfa | 10136 | wxMenu * _arg1; |
1d99702e RD |
10137 | PyObject * _argo0 = 0; |
10138 | PyObject * _argo1 = 0; | |
b1462dfa | 10139 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
10140 | |
10141 | self = self; | |
b1462dfa | 10142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 10143 | return NULL; |
1d99702e RD |
10144 | if (_argo0) { |
10145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10148 | return NULL; |
10149 | } | |
10150 | } | |
1d99702e RD |
10151 | if (_argo1) { |
10152 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
10153 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
10154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
10155 | return NULL; |
10156 | } | |
10157 | } | |
10158 | { | |
10159 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 10160 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 RD |
10161 | |
10162 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10163 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10164 | } Py_INCREF(Py_None); |
10165 | _resultobj = Py_None; | |
10166 | return _resultobj; | |
10167 | } | |
10168 | ||
b1462dfa RD |
10169 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
10170 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10171 | PyObject * _resultobj; |
b1462dfa | 10172 | wxMenu * _result; |
cf694132 | 10173 | wxMenuItem * _arg0; |
1d99702e | 10174 | PyObject * _argo0 = 0; |
b1462dfa | 10175 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10176 | |
10177 | self = self; | |
b1462dfa | 10178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 10179 | return NULL; |
1d99702e RD |
10180 | if (_argo0) { |
10181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10184 | return NULL; |
10185 | } | |
10186 | } | |
b1462dfa RD |
10187 | { |
10188 | wxPy_BEGIN_ALLOW_THREADS; | |
10189 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
10190 | ||
10191 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10192 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10193 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
10194 | return _resultobj; |
10195 | } | |
10196 | ||
10197 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
10198 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10199 | PyObject * _resultobj; | |
10200 | wxMenuItem * _arg0; | |
10201 | bool _arg1 = (bool ) TRUE; | |
10202 | PyObject * _argo0 = 0; | |
10203 | int tempbool1 = (int) TRUE; | |
10204 | char *_kwnames[] = { "self","enable", NULL }; | |
10205 | ||
10206 | self = self; | |
10207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
10208 | return NULL; | |
10209 | if (_argo0) { | |
10210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
10213 | return NULL; |
10214 | } | |
10215 | } | |
b1462dfa | 10216 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
10217 | { |
10218 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 10219 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 RD |
10220 | |
10221 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10222 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10223 | } Py_INCREF(Py_None); |
10224 | _resultobj = Py_None; | |
10225 | return _resultobj; | |
10226 | } | |
10227 | ||
b1462dfa RD |
10228 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
10229 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10230 | PyObject * _resultobj; |
b1462dfa | 10231 | bool _result; |
cf694132 | 10232 | wxMenuItem * _arg0; |
1d99702e | 10233 | PyObject * _argo0 = 0; |
b1462dfa | 10234 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10235 | |
10236 | self = self; | |
b1462dfa | 10237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 10238 | return NULL; |
1d99702e RD |
10239 | if (_argo0) { |
10240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
10243 | return NULL; |
10244 | } | |
10245 | } | |
10246 | { | |
10247 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 10248 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 RD |
10249 | |
10250 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10251 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10252 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
10253 | return _resultobj; |
10254 | } | |
10255 | ||
b1462dfa RD |
10256 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
10257 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10258 | PyObject * _resultobj; |
10259 | wxMenuItem * _arg0; | |
b1462dfa | 10260 | bool _arg1 = (bool ) TRUE; |
1d99702e | 10261 | PyObject * _argo0 = 0; |
b1462dfa RD |
10262 | int tempbool1 = (int) TRUE; |
10263 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
10264 | |
10265 | self = self; | |
b1462dfa | 10266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 10267 | return NULL; |
1d99702e RD |
10268 | if (_argo0) { |
10269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
10272 | return NULL; |
10273 | } | |
10274 | } | |
b1462dfa | 10275 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
10276 | { |
10277 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 10278 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 RD |
10279 | |
10280 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10281 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10282 | } Py_INCREF(Py_None); |
10283 | _resultobj = Py_None; | |
10284 | return _resultobj; | |
10285 | } | |
10286 | ||
b1462dfa RD |
10287 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
10288 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10289 | PyObject * _resultobj; |
b1462dfa | 10290 | bool _result; |
2abc0a0f | 10291 | wxMenuItem * _arg0; |
2abc0a0f | 10292 | PyObject * _argo0 = 0; |
b1462dfa | 10293 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
10294 | |
10295 | self = self; | |
b1462dfa | 10296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
10297 | return NULL; |
10298 | if (_argo0) { | |
10299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10302 | return NULL; |
10303 | } | |
10304 | } | |
2abc0a0f RD |
10305 | { |
10306 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 10307 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f RD |
10308 | |
10309 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10310 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10311 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
10312 | return _resultobj; |
10313 | } | |
10314 | ||
b1462dfa RD |
10315 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
10316 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10317 | PyObject * _resultobj; |
2abc0a0f RD |
10318 | wxMenuItem * _arg0; |
10319 | PyObject * _argo0 = 0; | |
10320 | char *_kwnames[] = { "self", NULL }; | |
10321 | ||
10322 | self = self; | |
b1462dfa | 10323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
10324 | return NULL; |
10325 | if (_argo0) { | |
10326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10329 | return NULL; |
10330 | } | |
10331 | } | |
10332 | { | |
10333 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 10334 | wxMenuItem_Toggle(_arg0); |
2abc0a0f RD |
10335 | |
10336 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10337 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10338 | } Py_INCREF(Py_None); |
10339 | _resultobj = Py_None; | |
2abc0a0f RD |
10340 | return _resultobj; |
10341 | } | |
10342 | ||
b1462dfa RD |
10343 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
10344 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10345 | PyObject * _resultobj; |
10346 | wxMenuItem * _arg0; | |
b1462dfa | 10347 | wxString * _arg1; |
1d99702e | 10348 | PyObject * _argo0 = 0; |
b1462dfa RD |
10349 | PyObject * _obj1 = 0; |
10350 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
10351 | |
10352 | self = self; | |
b1462dfa | 10353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 10354 | return NULL; |
1d99702e RD |
10355 | if (_argo0) { |
10356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
10359 | return NULL; |
10360 | } | |
10361 | } | |
b1462dfa | 10362 | { |
2cd2fac8 RD |
10363 | #if PYTHON_API_VERSION >= 1009 |
10364 | char* tmpPtr; int tmpSize; | |
10365 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 10366 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
10367 | return NULL; |
10368 | } | |
10369 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
10370 | return NULL; | |
10371 | _arg1 = new wxString(tmpPtr, tmpSize); | |
10372 | #else | |
b1462dfa RD |
10373 | if (!PyString_Check(_obj1)) { |
10374 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 10375 | return NULL; |
cf694132 | 10376 | } |
2cd2fac8 RD |
10377 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
10378 | #endif | |
b1462dfa | 10379 | } |
cf694132 RD |
10380 | { |
10381 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 10382 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 RD |
10383 | |
10384 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10385 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10386 | } Py_INCREF(Py_None); |
8ab979d7 | 10387 | _resultobj = Py_None; |
b1462dfa RD |
10388 | { |
10389 | if (_obj1) | |
10390 | delete _arg1; | |
10391 | } | |
8ab979d7 RD |
10392 | return _resultobj; |
10393 | } | |
10394 | ||
b1462dfa RD |
10395 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
10396 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 10397 | PyObject * _resultobj; |
b1462dfa | 10398 | wxString * _result; |
be4d9c1f | 10399 | wxMenuItem * _arg0; |
1d99702e | 10400 | PyObject * _argo0 = 0; |
efc5f224 | 10401 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
10402 | |
10403 | self = self; | |
b1462dfa | 10404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 10405 | return NULL; |
1d99702e RD |
10406 | if (_argo0) { |
10407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
10410 | return NULL; |
10411 | } | |
10412 | } | |
cf694132 RD |
10413 | { |
10414 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
10415 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
10416 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
10417 | |
10418 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10419 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10420 | }{ |
eec92d76 | 10421 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 10422 | } |
be4d9c1f RD |
10423 | return _resultobj; |
10424 | } | |
10425 | ||
b1462dfa RD |
10426 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
10427 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10428 | PyObject * _resultobj; |
b1462dfa | 10429 | wxAcceleratorEntry * _result; |
2abc0a0f | 10430 | wxMenuItem * _arg0; |
2abc0a0f | 10431 | PyObject * _argo0 = 0; |
b1462dfa RD |
10432 | char *_kwnames[] = { "self", NULL }; |
10433 | char _ptemp[128]; | |
2abc0a0f RD |
10434 | |
10435 | self = self; | |
b1462dfa | 10436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
10437 | return NULL; |
10438 | if (_argo0) { | |
10439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10442 | return NULL; |
10443 | } | |
10444 | } | |
2abc0a0f RD |
10445 | { |
10446 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 10447 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f RD |
10448 | |
10449 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10450 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10451 | } if (_result) { |
10452 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
10453 | _resultobj = Py_BuildValue("s",_ptemp); | |
10454 | } else { | |
10455 | Py_INCREF(Py_None); | |
10456 | _resultobj = Py_None; | |
10457 | } | |
2abc0a0f RD |
10458 | return _resultobj; |
10459 | } | |
10460 | ||
b1462dfa RD |
10461 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
10462 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
10463 | PyObject * _resultobj; |
10464 | wxMenuItem * _arg0; | |
b1462dfa | 10465 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
10466 | PyObject * _argo0 = 0; |
10467 | PyObject * _argo1 = 0; | |
b1462dfa | 10468 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
10469 | |
10470 | self = self; | |
b1462dfa | 10471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
10472 | return NULL; |
10473 | if (_argo0) { | |
10474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10477 | return NULL; |
10478 | } | |
10479 | } | |
10480 | if (_argo1) { | |
10481 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
10482 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
10483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
10484 | return NULL; |
10485 | } | |
10486 | } | |
10487 | { | |
10488 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 10489 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f RD |
10490 | |
10491 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10492 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
10493 | } Py_INCREF(Py_None); |
10494 | _resultobj = Py_None; | |
10495 | return _resultobj; | |
10496 | } | |
10497 | ||
9c4165ad RD |
10498 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
10499 | PyObject * _resultobj; | |
10500 | wxString * _result; | |
10501 | wxString * _arg0; | |
10502 | PyObject * _obj0 = 0; | |
10503 | char *_kwnames[] = { "text", NULL }; | |
10504 | ||
10505 | self = self; | |
10506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
10507 | return NULL; | |
10508 | { | |
10509 | #if PYTHON_API_VERSION >= 1009 | |
10510 | char* tmpPtr; int tmpSize; | |
10511 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 10512 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
9c4165ad RD |
10513 | return NULL; |
10514 | } | |
10515 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
10516 | return NULL; | |
10517 | _arg0 = new wxString(tmpPtr, tmpSize); | |
10518 | #else | |
10519 | if (!PyString_Check(_obj0)) { | |
10520 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10521 | return NULL; | |
10522 | } | |
10523 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
10524 | #endif | |
10525 | } | |
10526 | { | |
10527 | wxPy_BEGIN_ALLOW_THREADS; | |
10528 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); | |
10529 | ||
10530 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10531 | if (PyErr_Occurred()) return NULL; |
9c4165ad RD |
10532 | }{ |
10533 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10534 | } | |
10535 | { | |
10536 | if (_obj0) | |
10537 | delete _arg0; | |
10538 | } | |
10539 | { | |
10540 | delete _result; | |
10541 | } | |
10542 | return _resultobj; | |
10543 | } | |
10544 | ||
8ab979d7 | 10545 | static PyMethodDef windowscMethods[] = { |
9c4165ad | 10546 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10547 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
10548 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10549 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10550 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10551 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10552 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10553 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10554 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10555 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10556 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10557 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 10558 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10559 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10560 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
10561 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10562 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10563 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10564 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10565 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
10566 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10567 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10568 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10569 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10570 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
10571 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10572 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
10573 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10574 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10575 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10576 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
10577 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10578 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10be44ac | 10579 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10580 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
10581 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10582 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
10583 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10584 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10585 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10586 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
10587 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10588 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
10589 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10590 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
10591 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
10592 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
10593 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10594 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10595 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10596 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10597 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10598 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
10599 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10600 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
10601 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10602 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10603 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
10604 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10605 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
10606 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10607 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10608 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10609 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10610 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10611 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
10612 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10613 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
10614 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 10615 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10616 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10617 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10618 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10619 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10620 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
10621 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
10622 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10623 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
10624 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
10625 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
10626 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
7a446686 RD |
10627 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10628 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
10629 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
10630 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
10631 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
10632 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 10633 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10634 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10635 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10636 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10637 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
10638 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
10639 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10640 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10641 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10642 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10643 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10644 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10645 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10646 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10647 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
4662be59 RD |
10648 | { "wxDialog_CreateButtonSizer", (PyCFunction) _wrap_wxDialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, |
10649 | { "wxDialog_CreateTextSizer", (PyCFunction) _wrap_wxDialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10650 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, |
10651 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
10652 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
10653 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
10654 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10655 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
10656 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
10657 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
10658 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
10659 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10660 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
10661 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10662 | { "wxDialog_Create", (PyCFunction) _wrap_wxDialog_Create, METH_VARARGS | METH_KEYWORDS }, |
10663 | { "new_wxPreDialog", (PyCFunction) _wrap_new_wxPreDialog, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10664 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, |
10665 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10666 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10667 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10668 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
10669 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10670 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10671 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
10672 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10673 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
10674 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
10675 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
10676 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
10677 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
10678 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
10679 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
10680 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
10681 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
10682 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 10683 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
10be44ac RD |
10684 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
10685 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10686 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
10687 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10688 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10689 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
10690 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10691 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
10692 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10693 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10694 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10695 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
10696 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10697 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10698 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10699 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10700 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10701 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10702 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10703 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10704 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10705 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
10706 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
10707 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10708 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10709 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 10710 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10711 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10712 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
10713 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10714 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10715 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
2cd2fac8 | 10716 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10717 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
10718 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10719 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10720 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10721 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10722 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10723 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10724 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10725 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10726 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10727 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10728 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10729 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10730 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 10731 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10732 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
10733 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
10734 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
10735 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10736 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10737 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10738 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10739 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 10740 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10741 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
10742 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10743 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10744 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10745 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10746 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10747 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
10748 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10749 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10750 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10751 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10752 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10753 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10754 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
10756 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
10757 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10758 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10759 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10760 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10762 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10763 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10764 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
10765 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10766 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10767 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10768 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10769 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10770 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10771 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10772 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10773 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10774 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10775 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10776 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10777 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10778 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10779 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10780 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 10782 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10783 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
10784 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10785 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10786 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10787 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10788 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10789 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10790 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10791 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10792 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10793 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10794 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
10795 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10796 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
10797 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
4dfaa61e | 10798 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10799 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
10800 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10801 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
10802 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
10803 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
9d6da64a | 10804 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
10805 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
10806 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10807 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
10808 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
10809 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10810 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
10811 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10812 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10813 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10814 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10815 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10816 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9df61a29 RD |
10817 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
10818 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10819 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
10820 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10821 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
10822 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 10823 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10824 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
10825 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
10826 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10827 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
10828 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10829 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10830 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10831 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10832 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10833 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
10834 | { NULL, NULL } |
10835 | }; | |
1d99702e RD |
10836 | #ifdef __cplusplus |
10837 | } | |
10838 | #endif | |
10839 | /* | |
10840 | * This table is used by the pointer type-checker | |
10841 | */ | |
10842 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 10843 | { "_signed_long","_long",0}, |
b1462dfa | 10844 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10845 | { "_wxPrintQuality","_int",0}, |
10846 | { "_wxPrintQuality","_signed_int",0}, | |
10847 | { "_wxPrintQuality","_unsigned_int",0}, | |
10848 | { "_wxPrintQuality","_wxWindowID",0}, | |
10849 | { "_wxPrintQuality","_uint",0}, | |
10850 | { "_wxPrintQuality","_EBool",0}, | |
10851 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10852 | { "_wxPrintQuality","_time_t",0}, |
1d99702e RD |
10853 | { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
10854 | { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10855 | { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10856 | { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10857 | { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10858 | { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10859 | { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10860 | { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10861 | { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10862 | { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10863 | { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
10864 | { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
10865 | { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
10866 | { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
10867 | { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
10868 | { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
1d99702e | 10869 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10870 | { "_long","_unsigned_long",0}, |
10871 | { "_long","_signed_long",0}, | |
9df61a29 RD |
10872 | { "_class_wxObject","_class_wxMenuItem",SwigwxMenuItemTowxObject}, |
10873 | { "_class_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, | |
10874 | { "_class_wxObject","_class_wxMenuBar",SwigwxMenuBarTowxObject}, | |
10875 | { "_class_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, | |
10876 | { "_class_wxObject","_class_wxMenu",SwigwxMenuTowxObject}, | |
10877 | { "_class_wxObject","_wxMenu",SwigwxMenuTowxObject}, | |
10878 | { "_class_wxObject","_class_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
10879 | { "_class_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
10880 | { "_class_wxObject","_class_wxDialog",SwigwxDialogTowxObject}, | |
10881 | { "_class_wxObject","_wxDialog",SwigwxDialogTowxObject}, | |
10882 | { "_class_wxObject","_class_wxPanel",SwigwxPanelTowxObject}, | |
10883 | { "_class_wxObject","_wxPanel",SwigwxPanelTowxObject}, | |
10884 | { "_class_wxObject","_class_wxWindow",SwigwxWindowTowxObject}, | |
10885 | { "_class_wxObject","_wxWindow",SwigwxWindowTowxObject}, | |
10886 | { "_class_wxObject","_class_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
10887 | { "_class_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
10888 | { "_class_wxObject","_class_wxValidator",SwigwxValidatorTowxObject}, | |
10889 | { "_class_wxObject","_wxValidator",SwigwxValidatorTowxObject}, | |
10890 | { "_class_wxObject","_class_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
10891 | { "_class_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
b1462dfa | 10892 | { "_size_t","_wxCoord",0}, |
1d99702e | 10893 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10894 | { "_size_t","_time_t",0}, |
1d99702e RD |
10895 | { "_size_t","_unsigned_int",0}, |
10896 | { "_size_t","_int",0}, | |
10897 | { "_size_t","_wxWindowID",0}, | |
10898 | { "_size_t","_uint",0}, | |
1d99702e RD |
10899 | { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
10900 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
10901 | { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
10902 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
b1462dfa | 10903 | { "_uint","_wxCoord",0}, |
1d99702e | 10904 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10905 | { "_uint","_time_t",0}, |
1d99702e RD |
10906 | { "_uint","_size_t",0}, |
10907 | { "_uint","_unsigned_int",0}, | |
10908 | { "_uint","_int",0}, | |
10909 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10910 | { "_wxChar","_char",0}, |
f6bcfd97 | 10911 | { "_char","_wxChar",0}, |
2f90df85 RD |
10912 | { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
10913 | { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
059a841c | 10914 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10915 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10916 | { "_EBool","_wxPrintQuality",0}, |
10917 | { "_EBool","_signed_int",0}, | |
10918 | { "_EBool","_int",0}, | |
10919 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10920 | { "_unsigned_long","_long",0}, |
059a841c | 10921 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
1d99702e RD |
10922 | { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
10923 | { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
10924 | { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
10925 | { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
b1462dfa | 10926 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10927 | { "_signed_int","_wxPrintQuality",0}, |
10928 | { "_signed_int","_EBool",0}, | |
10929 | { "_signed_int","_wxWindowID",0}, | |
10930 | { "_signed_int","_int",0}, | |
1d99702e RD |
10931 | { "_WXTYPE","_short",0}, |
10932 | { "_WXTYPE","_signed_short",0}, | |
10933 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
10934 | { "_unsigned_short","_WXTYPE",0}, |
10935 | { "_unsigned_short","_short",0}, | |
b1462dfa RD |
10936 | { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, |
10937 | { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
10938 | { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
10939 | { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
10940 | { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
10941 | { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
10942 | { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
10943 | { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
9df61a29 RD |
10944 | { "_wxObject","_class_wxMenuItem",SwigwxMenuItemTowxObject}, |
10945 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, | |
10946 | { "_wxObject","_class_wxMenuBar",SwigwxMenuBarTowxObject}, | |
10947 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, | |
10948 | { "_wxObject","_class_wxMenu",SwigwxMenuTowxObject}, | |
10949 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, | |
10950 | { "_wxObject","_class_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
10951 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
10952 | { "_wxObject","_class_wxDialog",SwigwxDialogTowxObject}, | |
10953 | { "_wxObject","_wxDialog",SwigwxDialogTowxObject}, | |
10954 | { "_wxObject","_class_wxPanel",SwigwxPanelTowxObject}, | |
10955 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, | |
10956 | { "_wxObject","_class_wxWindow",SwigwxWindowTowxObject}, | |
10957 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, | |
10958 | { "_wxObject","_class_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
10959 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
10960 | { "_wxObject","_class_wxValidator",SwigwxValidatorTowxObject}, | |
10961 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, | |
10962 | { "_wxObject","_class_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
10963 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
1d99702e RD |
10964 | { "_signed_short","_WXTYPE",0}, |
10965 | { "_signed_short","_short",0}, | |
1d99702e | 10966 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10967 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10968 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10969 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10970 | { "_unsigned_int","_size_t",0}, |
10971 | { "_unsigned_int","_uint",0}, | |
10972 | { "_unsigned_int","_wxWindowID",0}, | |
10973 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
10974 | { "_short","_WXTYPE",0}, |
10975 | { "_short","_unsigned_short",0}, | |
10976 | { "_short","_signed_short",0}, | |
b1462dfa | 10977 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10978 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10979 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10980 | { "_wxWindowID","_size_t",0}, |
10981 | { "_wxWindowID","_EBool",0}, | |
10982 | { "_wxWindowID","_uint",0}, | |
10983 | { "_wxWindowID","_int",0}, | |
10984 | { "_wxWindowID","_signed_int",0}, | |
10985 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10986 | { "_int","_wxCoord",0}, |
1d99702e | 10987 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10988 | { "_int","_time_t",0}, |
1d99702e RD |
10989 | { "_int","_size_t",0}, |
10990 | { "_int","_EBool",0}, | |
10991 | { "_int","_uint",0}, | |
10992 | { "_int","_wxWindowID",0}, | |
10993 | { "_int","_unsigned_int",0}, | |
10994 | { "_int","_signed_int",0}, | |
c368d904 RD |
10995 | { "_time_t","_wxCoord",0}, |
10996 | { "_time_t","_wxPrintQuality",0}, | |
10997 | { "_time_t","_unsigned_int",0}, | |
10998 | { "_time_t","_int",0}, | |
10999 | { "_time_t","_wxWindowID",0}, | |
11000 | { "_time_t","_uint",0}, | |
11001 | { "_time_t","_size_t",0}, | |
2f90df85 RD |
11002 | { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
11003 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
b1462dfa RD |
11004 | { "_wxCoord","_int",0}, |
11005 | { "_wxCoord","_signed_int",0}, | |
11006 | { "_wxCoord","_unsigned_int",0}, | |
11007 | { "_wxCoord","_wxWindowID",0}, | |
11008 | { "_wxCoord","_uint",0}, | |
11009 | { "_wxCoord","_EBool",0}, | |
11010 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11011 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11012 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e RD |
11013 | { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
11014 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
11015 | { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
11016 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
11017 | { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
11018 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
11019 | { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
11020 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
11021 | { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
11022 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
11023 | { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
11024 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
2f90df85 RD |
11025 | { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
11026 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
11027 | { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
11028 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
b1462dfa RD |
11029 | { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, |
11030 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
1d99702e RD |
11031 | { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
11032 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
11033 | { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
11034 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
11035 | { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
11036 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
1d99702e RD |
11037 | {0,0,0}}; |
11038 | ||
8ab979d7 RD |
11039 | static PyObject *SWIG_globals; |
11040 | #ifdef __cplusplus | |
11041 | extern "C" | |
11042 | #endif | |
1d99702e | 11043 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
11044 | PyObject *m, *d; |
11045 | SWIG_globals = SWIG_newvarlink(); | |
11046 | m = Py_InitModule("windowsc", windowscMethods); | |
11047 | d = PyModule_GetDict(m); | |
1d99702e RD |
11048 | { |
11049 | int i; | |
11050 | for (i = 0; _swig_mapping[i].n1; i++) | |
11051 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11052 | } | |
8ab979d7 | 11053 | } |